From 3f5ae113d531039854fadf3812f9babc1d938f16 Mon Sep 17 00:00:00 2001 From: zhangtao <9480807882@qq.com> Date: Thu, 25 Sep 2025 22:59:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E9=80=82=E9=85=8D=E7=B1=BB=E5=B9=B6=E6=B8=85=E7=90=86?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除页面中的 theme-adaptive 类,简化样式结构 删除不再使用的 husky、prettier 和 stylelint 配置文件 优化 tabbar 逻辑,根据登录状态动态显示工作台项 重构主题存储模块,改进导航栏颜色设置逻辑 清理 package.json 中的冗余配置和依赖 统一页面样式和路由配置,移除重复的导航栏标题设置 --- fastapp/.cursorrules | 99 --------- fastapp/.husky/commit-msg | 1 - fastapp/.husky/pre-commit | 2 - fastapp/.prettierignore | 6 - fastapp/.prettierrc.yaml | 50 ----- fastapp/.stylelintignore | 5 - fastapp/.stylelintrc.json | 55 ----- fastapp/commitlint.config.cjs | 88 -------- fastapp/package.json | 26 +-- fastapp/src/composables/useTabbar.ts | 19 +- fastapp/src/layouts/default.vue | 18 +- fastapp/src/pages.json | 28 +-- fastapp/src/pages/index/index.vue | 10 +- fastapp/src/pages/login/index.vue | 9 +- fastapp/src/pages/mine/about/index.vue | 7 +- fastapp/src/pages/mine/faq/index.vue | 208 +++++++++--------- fastapp/src/pages/mine/feedback/index.vue | 84 ++++--- fastapp/src/pages/mine/index.vue | 2 +- fastapp/src/pages/mine/profile/index.vue | 18 +- .../src/pages/mine/settings/account/index.vue | 10 +- .../pages/mine/settings/agreement/index.vue | 8 +- .../src/pages/mine/settings/network/index.vue | 19 +- .../src/pages/mine/settings/privacy/index.vue | 15 +- fastapp/src/pages/work/index.vue | 8 +- fastapp/src/store/modules/theme.store.ts | 46 +++- 25 files changed, 252 insertions(+), 589 deletions(-) delete mode 100644 fastapp/.cursorrules delete mode 100644 fastapp/.husky/commit-msg delete mode 100644 fastapp/.husky/pre-commit delete mode 100644 fastapp/.prettierignore delete mode 100644 fastapp/.prettierrc.yaml delete mode 100644 fastapp/.stylelintignore delete mode 100644 fastapp/.stylelintrc.json delete mode 100644 fastapp/commitlint.config.cjs diff --git a/fastapp/.cursorrules b/fastapp/.cursorrules deleted file mode 100644 index 4f52b823..00000000 --- a/fastapp/.cursorrules +++ /dev/null @@ -1,99 +0,0 @@ -## 样式(CSS/SCSS)与 UnoCSS 使用规范(Cursor Rules) - -目标:在不牺牲可读性的前提下最大化复用,减少冗余,保证小程序/H5 多端一致、整洁大方。 - -### 1) 总原则 -- 优先使用 UnoCSS 工具类与已定义的 shortcuts,避免重复造轮子。 -- 同一工具类组合在同一页面或多个页面中出现 ≥ 2 次时,提取为“语义化类名”。 -- 禁止使用 `@apply`,禁止在 SCSS 中重复定义 UnoCSS 已提供的工具类或在 `unocss.config.ts` 中已存在的 shortcuts(如:`flex`、`flex-start`、`flex-between`、`flex-col-center` 等)。 -- 组件库样式覆盖和页面布局样式分离:页面/组件的布局与样式用普通类,覆盖 wot 组件样式用“外部样式类”。 - -### 2) 目录与作用域 -- 页面私有样式:写在当前 `.vue` 的 ` \ No newline at end of file + + \ No newline at end of file diff --git a/fastapp/src/pages/login/index.vue b/fastapp/src/pages/login/index.vue index 08247ff2..a9ecc8a6 100644 --- a/fastapp/src/pages/login/index.vue +++ b/fastapp/src/pages/login/index.vue @@ -1,5 +1,5 @@