File tree 5 files changed +26
-9
lines changed
5 files changed +26
-9
lines changed Original file line number Diff line number Diff line change 1
- declare module 'virtual:react-app ' {
1
+ declare module 'virtual:react-pages ' {
2
2
import type { RouteObject } from 'react-router-dom' ;
3
3
4
4
export const routes : RouteObject [ ] ;
Original file line number Diff line number Diff line change 9
9
"main" : " index.js" ,
10
10
"scripts" : {
11
11
"dev" : " vite dev" ,
12
- "build" : " vite build" ,
12
+ "build" : " NODE_ENV=production vite build" ,
13
+ "preview" : " vite preview" ,
13
14
"lint:type" : " tsc --noEmit"
14
15
},
15
16
"dependencies" : {
Original file line number Diff line number Diff line change 1
1
import classNames from 'classnames' ;
2
2
import type { PropsWithChildren } from 'react' ;
3
3
import { NavLink , useRoutes } from 'react-router-dom' ;
4
- import { routes } from 'virtual:react-app ' ;
4
+ import { routes } from 'virtual:react-pages ' ;
5
5
import SvgIcon from './icons/SvgIcon' ;
6
6
7
7
function A ( { children, to } : PropsWithChildren < { to : string } > ) {
Original file line number Diff line number Diff line change @@ -5,28 +5,28 @@ export default function Page() {
5
5
return (
6
6
< div className = "flex grow-1 flex-col items-center gap-20" >
7
7
< div className = "flex flex-col items-center gap-10 pt-15" >
8
- < div className = "flex items-center gap-4 text-8 text-blue-6" > 一个基于文件系统</ div >
8
+ < div className = "flex items-center gap-4 text-6 text-blue-6" > 一个基于文件系统</ div >
9
9
10
10
< div className = "grid grid-cols-3 place-items-center items-center gap-4" >
11
11
< div className = "flex flex-col items-center justify-between gap-5" >
12
12
< SvgIcon className = "h-30 w-30" icon = "react" />
13
- < span className = "text-10 text-#007398" > React 应用</ span >
13
+ < span className = "text-8 text-#007398" > React 应用</ span >
14
14
</ div >
15
15
< span className = "text-8 text-gray" > ×</ span >
16
16
< div className = "flex flex-col items-center justify-between gap-5" >
17
17
< SvgIcon className = "h-30 w-30" icon = "react-router" />
18
- < span className = "text-10 text-#D30019" > React Router</ span >
18
+ < span className = "text-8 text-#D30019" > React Router</ span >
19
19
</ div >
20
20
</ div >
21
21
22
22
< div className = "flex flex-col items-center justify-between gap-5" >
23
- < SvgIcon className = "h-20 w-20" icon = "vite " />
24
- < span className = "text-8 text-#BE32F7" > Vite 插件 </ span >
23
+ < SvgIcon className = "h-20 w-20" icon = "unplugin " />
24
+ < span className = "text-8 text-#BE32F7" > 通用插件 </ span >
25
25
</ div >
26
26
</ div >
27
27
28
28
< Link
29
- to = "/docs/quick-start "
29
+ to = "/docs"
30
30
className = "rounded-2 bg-gray-1 px-10 py-5 text-6 text-gray-8 decoration-none transition-background-color duration-300 hover:bg-gray-2 hover:text-gray-7"
31
31
>
32
32
快速开始
You can’t perform that action at this time.
0 commit comments