File tree Expand file tree Collapse file tree 15 files changed +138
-55
lines changed Expand file tree Collapse file tree 15 files changed +138
-55
lines changed Original file line number Diff line number Diff line change 1+ /// <reference types="next" />
2+ /// <reference types="next/image-types/global" />
3+ /// <reference types="next/navigation-types/compat/navigation" />
4+ /// <reference path="./.next/types/routes.d.ts" />
5+
6+ // NOTE: This file should not be edited
7+ // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Original file line number Diff line number Diff line change 1414 "license" : " ISC" ,
1515 "devDependencies" : {
1616 "@relative-ci/webpack-plugin" : " 5.1.0" ,
17+ "@types/node" : " 24.9.1" ,
1718 "eslint" : " 8.57.0" ,
1819 "eslint-config-next" : " 15.5.6"
1920 },
2021 "dependencies" : {
21- "@ant-design/cssinjs" : " 1.24.0" ,
2222 "@ant-design/compatible" : " 5.1.4" ,
23+ "@ant-design/cssinjs" : " 1.24.0" ,
2324 "@ant-design/icons" : " 5.3.7" ,
2425 "@ant-design/pro-components" : " 2.8.10" ,
2526 "antd" : " 5.27.6" ,
Original file line number Diff line number Diff line change 1+ "use client"
2+
3+ import { PageHeader } from '../../layout/page-header' ;
4+ import { Main } from '../../layout/main' ;
5+ import { About } from '../../components/about' ;
6+
7+ export default function AboutPage ( ) {
8+ return (
9+ < >
10+ < PageHeader title = "About" />
11+ < Main >
12+ < About />
13+ </ Main >
14+ </ >
15+ ) ;
16+ }
Original file line number Diff line number Diff line change 1+ import 'antd/dist/reset.css' ;
2+
3+ import { Layout } from '../layout' ;
4+
5+ export const metadata = {
6+ title : 'Next.js' ,
7+ description : 'Generated by Next.js' ,
8+ }
9+
10+ export default function RootLayout ( { children } ) {
11+ return (
12+ < html lang = "en" >
13+ < body >
14+ < Layout >
15+ { children }
16+ </ Layout >
17+ </ body >
18+ </ html >
19+ )
20+ }
Original file line number Diff line number Diff line change 1- import React from 'react' ;
2- import { useRouter } from 'next/router' ;
1+ "use client"
32
43import { PageHeader } from '../layout/page-header' ;
54import { Main } from '../layout/main' ;
65import { NotFound } from '../components/not-found' ;
76
87export default function NotFoundPage ( ) {
9- const router = useRouter ( ) ;
10-
118 return (
129 < >
1310 < PageHeader title = "Not found" />
1411 < Main >
15- < NotFound location = { router . pathname } />
12+ < NotFound />
1613 </ Main >
1714 </ >
1815 ) ;
Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ "use client"
2+
23import Link from 'next/link' ;
34import { Divider } from 'antd' ;
45
Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ "use client"
2+
23import { useRouter } from 'next/router' ;
34
4- import { PageHeader } from '../../../layout/page-header' ;
5- import { Main } from '../../../layout/main' ;
6- import { RepoDetails } from '../../../components/repo-details' ;
5+ import { PageHeader } from '../../../../ layout/page-header' ;
6+ import { Main } from '../../../../ layout/main' ;
7+ import { RepoDetails } from '../../../../ components/repo-details' ;
78
89export default function RepoDetailsPage ( all ) {
910 const router = useRouter ( ) ;
Original file line number Diff line number Diff line change 1+ "use client"
2+
3+ import { PageHeader } from '@/layout/page-header' ;
4+ import { Main } from '@/layout/main' ;
5+ import { RepoList } from '@/components/repo-list' ;
6+
7+ export default function ReposPage ( ) {
8+ return (
9+ < >
10+ < PageHeader title = "Examples" />
11+ < Main >
12+ < RepoList />
13+ </ Main >
14+ </ >
15+ ) ;
16+ }
Original file line number Diff line number Diff line change 1+ "use client" ;
2+
13import React from 'react' ;
24import Link from 'next/link' ;
5+ import { usePathname } from 'next/navigation' ;
36import { Typography } from 'antd' ;
47
5- export function NotFound ( { location } ) {
8+ export function NotFound ( ) {
9+ const pathname = usePathname ( ) ;
10+
611 return (
712 < div >
813 < Typography . Paragraph >
9- < code > { location } </ code >
14+ < code > { pathname } </ code >
1015 { ' ' }
1116 does not exit.
1217 </ Typography . Paragraph >
You can’t perform that action at this time.
0 commit comments