File tree Expand file tree Collapse file tree 11 files changed +21
-14
lines changed
modules/song/components/client Expand file tree Collapse file tree 11 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 11import { faNewspaper } from '@fortawesome/free-solid-svg-icons' ;
22import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
3+ import { Metadata } from 'next' ;
34import Image from 'next/image' ;
45import Link from 'next/link' ;
56
67import { getSortedPostsData } from '@web/src/lib/posts' ;
78import type { PostType } from '@web/src/lib/posts' ;
8- import { Metadata } from 'next' ;
99
1010export const metadata : Metadata = {
1111 title : 'Blog' ,
1212} ;
13+
1314async function BlogPage ( ) {
1415 const allPostsData = getSortedPostsData ( 'blog' , 'date' ) ;
1516 return < BlogPageComponent posts = { allPostsData } > </ BlogPageComponent > ;
Original file line number Diff line number Diff line change 11import { faCircleQuestion } from '@fortawesome/free-solid-svg-icons' ;
22import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
3+ import { Metadata } from 'next' ;
34import Image from 'next/image' ;
45import Link from 'next/link' ;
56
67import { getSortedPostsData } from '@web/src/lib/posts' ;
78import type { PostType } from '@web/src/lib/posts' ;
8- import { Metadata } from 'next' ;
99
1010export const metadata : Metadata = {
1111 title : 'Help Center' ,
Original file line number Diff line number Diff line change 1+ import { Metadata } from 'next' ;
12import { redirect } from 'next/navigation' ;
23
34import { checkLogin } from '@web/src/modules/auth/features/auth.utils' ;
45import Page from '@web/src/modules/my-songs/components/MySongsPage' ;
5- import { Metadata } from 'next' ;
66
77export const metadata : Metadata = {
88 title : 'My songs' ,
Original file line number Diff line number Diff line change 1+ import { Metadata } from 'next' ;
12import { redirect } from 'next/navigation' ;
23
34import {
45 checkLogin ,
56 getUserData ,
67} from '@web/src/modules/auth/features/auth.utils' ;
78import { UploadSongPage } from '@web/src/modules/song-upload/components/client/UploadSongPage' ;
8- import { Metadata } from 'next' ;
99
1010export const metadata : Metadata = {
1111 title : 'Upload song' ,
Original file line number Diff line number Diff line change 1+ import { Metadata } from 'next' ;
12import { redirect } from 'next/navigation' ;
23
34import { LoginPage } from '@web/src/modules/auth/components/loginPage' ;
45import { checkLogin } from '@web/src/modules/auth/features/auth.utils' ;
5- import { Metadata } from 'next' ;
66
77export const metadata : Metadata = {
88 title : 'Sign in' ,
Original file line number Diff line number Diff line change 11import fs from 'fs' ;
22import path from 'path' ;
33
4- import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown' ;
54import { Metadata } from 'next' ;
65
6+ import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown' ;
7+
78export const metadata : Metadata = {
89 title : 'Community Guidelines' ,
910} ;
Original file line number Diff line number Diff line change 11import fs from 'fs' ;
22import path from 'path' ;
33
4- import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown' ;
54import { Metadata } from 'next' ;
65
6+ import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown' ;
7+
78export const metadata : Metadata = {
89 title : 'Privacy Policy' ,
910} ;
11+
1012async function PrivacyPolicyPage ( ) {
1113 const fullPath = path . join ( './public/docs/privacy.md' ) ;
1214 const fileContents = fs . readFileSync ( fullPath , 'utf8' ) ;
Original file line number Diff line number Diff line change 11import fs from 'fs' ;
22import path from 'path' ;
33
4- import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown' ;
54import { Metadata } from 'next' ;
65
6+ import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown' ;
7+
78export const metadata : Metadata = {
89 title : 'Terms of Service' ,
910} ;
11+
1012async function TermsOfServicePage ( ) {
1113 const fullPath = path . join ( './public/docs/terms.md' ) ;
1214 const fileContents = fs . readFileSync ( fullPath , 'utf8' ) ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { notFound } from 'next/navigation';
77export const metadata : Metadata = {
88 title : 'Page not found' ,
99} ;
10+
1011export default function NotFound ( ) {
1112 notFound ( ) ;
1213}
Original file line number Diff line number Diff line change 1+ import {
2+ faExclamationCircle ,
3+ faExternalLink ,
4+ } from '@fortawesome/free-solid-svg-icons' ;
5+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
16import { UploadConst } from '@shared/validation/song/constants' ;
27import Link from 'next/link' ;
38import { useRouter } from 'next/navigation' ;
@@ -18,11 +23,6 @@ import {
1823 UploadButton ,
1924} from '../../../shared/components/client/FormElements' ;
2025import { useSongProvider } from '../../../song/components/client/context/Song.context' ;
21- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
22- import {
23- faExclamationCircle ,
24- faExternalLink ,
25- } from '@fortawesome/free-solid-svg-icons' ;
2626
2727type SongFormProps = {
2828 type : 'upload' | 'edit' ;
You can’t perform that action at this time.
0 commit comments