feat: 项目初始化

This commit is contained in:
JiaJun
2026-04-23 16:41:39 +08:00
parent be4669a9f1
commit bd92f10b83
42 changed files with 6047 additions and 2 deletions

View File

@@ -0,0 +1,42 @@
export default {
nav: {
home: 'Home',
},
shell: {
eyebrow: 'React SPA scaffold',
subtitle: 'TanStack Router + Query + Auth + i18n',
},
notFound: {
eyebrow: '404',
title: 'The page you requested could not be found.',
description: 'This route does not exist. Return to the scaffold home page.',
home: 'Back home',
},
home: {
eyebrow: 'Blank scaffold ready',
title: 'Start building your frontend project from here.',
description:
'The template already includes routing, data fetching, session state, head metadata, and i18n. After removing the examples, this page becomes your clean starting point.',
cards: {
routingMode: 'Routing mode',
dataLayer: 'Data layer',
transport: 'Transport',
auth: 'Auth layer',
metadata: 'Page metadata',
},
values: {
routingMode: 'SPA + file routes',
dataLayer: 'TanStack Query',
transport: 'ky',
auth: 'Zustand session scaffold',
metadata: 'Dynamic title / meta',
},
footnote:
'A practical place to start is replacing src/routes/$lang/index.tsx, src/lib/api/api-client.ts, and src/store/auth-store.ts with your project-specific structure.',
},
language: {
label: 'Language',
zhCN: '中文',
enUS: 'English',
},
} as const

View File

@@ -0,0 +1,42 @@
export default {
nav: {
home: '首页',
},
shell: {
eyebrow: 'React SPA 脚手架',
subtitle: 'TanStack Router + Query + Auth + i18n',
},
notFound: {
eyebrow: '404',
title: '找不到你访问的页面。',
description: '当前路由不存在,你可以返回脚手架首页继续开始开发。',
home: '返回首页',
},
home: {
eyebrow: '空白脚手架已就绪',
title: '从这里开始搭建你的前端项目。',
description:
'模板已经接好路由、请求层、会话状态、head metadata 和多语言。删除示例后,这一页就是你的干净起点。',
cards: {
routingMode: '路由模式',
dataLayer: '数据层',
transport: '请求层',
auth: '认证层',
metadata: '页面元信息',
},
values: {
routingMode: 'SPA + 文件路由',
dataLayer: 'TanStack Query',
transport: 'ky',
auth: 'Zustand 会话基座',
metadata: '动态 title / meta',
},
footnote:
'建议先从 src/routes/$lang/index.tsx、src/lib/api/api-client.ts 和 src/store/auth-store.ts 开始替换成你的项目结构。',
},
language: {
label: '语言',
zhCN: '中文',
enUS: 'English',
},
} as const