diff options
| author | shu <nvcsadjkojf@outlook.com> | 2026-09-06 19:13:10 +0800 |
|---|---|---|
| committer | shu <nvcsadjkojf@outlook.com> | 2026-09-06 19:13:10 +0800 |
| commit | 61c1674e439dd791aee4fdc72e5738bbefed13e9 (patch) | |
| tree | e2e7bff86a0ee15d99b3cebd50f45bce28b74bd1 /src/routes.ts | |
| parent | 879872ac238682ceb01f2fc5c0a261fc10572bb6 (diff) | |
统一路由页面文件的 page 前缀与命名规范
- 将首页、关于概览、关于我、表单和 UI Kit 页面改为 page- 前缀的小写横线文件名
- 同步重命名页面 CSS Modules,并更新组件样式引用
- 更新静态路由导入与懒加载路径,保持访问地址和页面行为不变
- 在代理约定中补充文件名称使用小写英文加横线的规范
验证:pnpm build、pnpm lint 和暂存区空白检查均通过。
Diffstat (limited to 'src/routes.ts')
| -rw-r--r-- | src/routes.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/routes.ts b/src/routes.ts index 92eced8..dc351e0 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -1,9 +1,9 @@ import { ClipboardTextIcon, HouseIcon, InfoIcon, SquaresFourIcon, UserIcon } from '@phosphor-icons/react' import type { Icon } from '@phosphor-icons/react' import type { RouteObject } from 'react-router' -import App from './App.tsx' -import About from './About.tsx' -import Me from './Me.tsx' +import App from './page-home.tsx' +import About from './page-about.tsx' +import Me from './page-about-me.tsx' export type PageRoute = RouteObject & { handle?: { title: string; icon: Icon } @@ -20,13 +20,13 @@ export const pageRoutes = [ { id: 'form', path: '/form', - lazy: async () => ({ Component: (await import('./FormExample.tsx')).default }), + lazy: async () => ({ Component: (await import('./page-form.tsx')).default }), handle: { title: '表单示例', icon: ClipboardTextIcon }, }, { id: 'ui-kit', path: '/ui-kit', - lazy: async () => ({ Component: (await import('./UiKit.tsx')).default }), + lazy: async () => ({ Component: (await import('./page-ui-kit.tsx')).default }), handle: { title: 'UI Kit', icon: SquaresFourIcon }, }, { |
