From 61c1674e439dd791aee4fdc72e5738bbefed13e9 Mon Sep 17 00:00:00 2001 From: shu Date: Sun, 6 Sep 2026 19:13:10 +0800 Subject: 统一路由页面文件的 page 前缀与命名规范 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将首页、关于概览、关于我、表单和 UI Kit 页面改为 page- 前缀的小写横线文件名 - 同步重命名页面 CSS Modules,并更新组件样式引用 - 更新静态路由导入与懒加载路径,保持访问地址和页面行为不变 - 在代理约定中补充文件名称使用小写英文加横线的规范 验证:pnpm build、pnpm lint 和暂存区空白检查均通过。 --- src/routes.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/routes.ts') 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 }, }, { -- cgit v1.2.3