基于 SvelteKit + TypeScript + Tailwind CSS 的后台管理系统。
src/
├── lib/
│ ├── api/ # API 请求层
│ ├── components/ # 组件
│ │ └── auth/ # 认证相关组件
│ ├── config/ # 配置文件
│ ├── constants/ # 常量定义
│ ├── services/ # 业务服务层
│ ├── stores/ # 状态管理
│ ├── types/ # TypeScript 类型定义
│ └── utils/ # 工具函数
├── routes/ # 路由页面
│ └── (auth)/ # 认证相关路由
└── hooks/ # SvelteKit hooks
npm install
npm run dev
npm run build
npm run preview
创建 .env 文件(参考 .env.example):
PUBLIC_API_BASE_URL=http://localhost:3000/api
所有认证页面采用左右布局:
/login - 登录页面/register - 注册页面/forgot-password - 忘记密码页面/reset-password - 重置密码页面(需要 token 参数)MIT