27 Commits

Author SHA1 Message Date
fonghehe
7b1c087c00 feat: 重构整体架构并迁移 oxlint/oxfmt 工具链
架构与目录:
- 引入分层 API:transport/interceptors 收敛到 src/api/client.ts,
  域名端点拆到 src/api/modules,页面不再直接依赖 Axios
- 服务层(src/services)承载 AI 流式解析与框架无关的 provider
- TanStack Query 接管服务端状态,Pinia 仅保留会话/主题等客户端状态
- 路由表显式懒加载,组件/组合式函数按职责拆分

功能:
- AI 流式对话:fetchStreamProvider + useStreamingChat + 安全 Markdown 渲染
- 商店模块:商品列表/详情/购物车/后台管理,多语言(中/英/日)
- 示例页:请求错误矩阵、query 缓存、移动端适配、图标演示
- 离线页、PWA、图片优化、eruda 调试等能力

工程化:
- ESLint/Prettier 迁移到 oxlint/oxfmt,stylelint 保留
  - 新增 oxlint.config.ts(移植自 monorepo 的 @vh5/oxlint-config 全套规则)
  - 新增 oxfmt.config.ts(移植自 @vh5/oxfmt-config,printWidth 80)
  - lint-staged、format、lint 脚本同步切换
- pnpm 作为唯一包管理器,删除 package-lock.json 与 yarn.lock
- 引入 Vitest/Playwright/release-please,补充单元与组件测试
- OpenAPI schema 与生成类型入库
- 环境变量按 mode 拆分,重构 wrapperEnv 解析

清理:
- 删除 .commitlintrc.js(CJS 配置在 type:module 下会崩溃),改用 commitlint.config.mjs
- 删除 eslint.config.mjs、prettier.config.js、.prettierignore
- 停止跟踪 .eslintrc-auto-import.json(已切 oxlint,无人引用)
- 移除 iconfont、旧 demo/list 页与 useAxiosApi/useFetchApi 等遗留实现
- husky 钩子移除 DEPRECATED 的 shebang 写法
- .workbuddy/ 加入 .gitignore
2026-09-02 14:37:52 +08:00
fonghehe
7552cc175b fix: 修复已知问题并优化代码质量 2026-04-28 10:51:28 +08:00
fonghehe
fdbc841c30 fix: 修复依赖安装失败的问题 2025-09-29 13:40:43 +08:00
fonghehe
37d0474226 feat: 修改Vite插件配置和新增qrcode和pwa插件 2025-09-29 11:00:31 +08:00
fonghehe
1ab51e68d8 chore: 优化项目的整体结构 2025-08-27 14:28:41 +08:00
fonghehe
bd3e6cb8e6 fix: 解决组件样式引入的问题 2025-02-20 18:24:50 +08:00
fonghehe
1f9a7d5cd4 feat: 优化项目整体和更新相关依赖 2025-02-19 18:16:32 +08:00
fonghehe
ab5a4502e6 chore: 更新依赖 2023-07-03 16:43:27 +08:00
fonghehe
1c85b5b606 chore: 更新依赖 2023-06-21 16:57:43 +08:00
fonghehe
412f5f2e34 chore: 更新依赖 2023-05-27 11:32:02 +08:00
huangwentao
414aebae3f feat: 🎸 新增hooks弹窗解决方案 2023-05-15 14:42:18 +08:00
fonghehe
d768ec6c31 chore: 更新依赖 2023-03-21 17:13:00 +08:00
fonghehe
18dbf4c9b6 feat: 优化项目环境变量 2023-03-11 15:32:10 +08:00
fonghehe
cb41b76e06 chore: 更新依赖 2023-02-23 14:04:43 +08:00
fonghehe
f6bbe4d396 fix: 修改vant的引入问题和更新依赖 2023-02-08 17:56:45 +08:00
fonghehe
73d83d5665 feat: 升级nutUI并修改引入的方式 2023-01-14 16:06:04 +08:00
fonghehe
8d843dd7f4 feat: 增加详情页 2023-01-05 18:22:47 +08:00
fonghehe
de62f8a9b4 feat: 修改demo和readme 2023-01-03 10:15:20 +08:00
fonghehe
458deeac32 chore: 优化代码和更新依赖 2022-10-30 08:48:26 +08:00
fonghehe
660e1ffb07 chore: 更新依赖 2022-10-10 10:52:39 +08:00
fonghehe
8ac5e2c860 chore: 更新依赖 2022-09-04 00:11:57 +08:00
fonghehe
34da551fee feat: 修改类型定义 2022-07-21 12:20:49 +08:00
fonghehe
d12e073fce feat: 添加varletUI框架和升级依赖 2022-07-14 18:47:43 +08:00
fonghehe
7ecc931915 feat: 更新依赖 2022-07-01 19:38:01 +08:00
fonghehe
a45a73f216 feat: 引入新插件和调整vite插件目录 2022-06-09 18:31:51 +08:00
fonghehe
1400bdf15c feat: 更新相关的依赖和修复一些已知的问题 2022-05-27 16:29:39 +08:00
fonghehe
d23e5bacb1 feat: sunniejs/vue3 template project init 2022-05-17 18:57:32 +08:00