Commit Graph

5 Commits

Author SHA1 Message Date
AdingApkgg
3d414157a0 依赖升级 + 代码质量、打包体积与组件结构优化
依赖:
- pnpm update --latest(vite、vue、eslint、typescript 等 14 个包到最新版)
- 显式加入 vue-eslint-parser ^10.4.0 / workbox-build ^7.4.1,消除 peer 警告

代码质量:
- 修复 ESLint vue parser 配置(用 vue-eslint-parser 作主 parser),lint 错误 17 → 0
- tsconfig 启用 noUncheckedIndexedAccess,修复 16 个潜在 undefined 访问 bug
- 删除未使用的 src/utils/icons.ts(723 行死代码)

打包体积:
- PWA precache 10.5 MB / 424 项 → 740 KB / 24 项(字体改为运行时缓存)
- vendor CSS gzip 201 KB → 141 KB(禁用字体 base64 内联,保留 unicode-range 子集策略)
- Artalk CSS 跟随 CommentsModal 异步加载
- 字体精简:移除未使用的 300 字重,补上用到的 600
- 删除僵尸的 fancybox manualChunks 配置

健壮性:
- SSE 搜索新增 AbortController + 60s 超时,新搜索取消旧请求,组件卸载取消进行中
- settings 持久化加 300ms 防抖 + QuotaExceededError 处理 + beforeunload 强制落盘

组件拆分:
- SearchHeader.vue 1330 → 1061 行,抽出 SearchErrorCard 子组件
- SettingsModal.vue 1289 → 1171 行,抽出 AdvancedApiSettings 子组件

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 07:23:19 +08:00
AdingApkgg
5cb5062c7a chore: update ESLint configuration and package dependencies
- Disabled the 'no-useless-assignment' rule in ESLint to accommodate <script setup> syntax in Vue components.
- Updated build and typecheck scripts in package.json for improved development workflow.
- Upgraded various dependencies, including ESLint, TypeScript, and Vue-related packages, to their latest versions for better performance and compatibility.
- Adjusted tsconfig settings for module resolution and removed unused options to streamline configuration.
2026-03-30 23:43:23 +08:00
AdingApkgg
33811051b7 Remove unused configuration files and improve TypeScript settings
- Deleted eslint.config.mjs and tailwind.config.ts as they are no longer needed.
- Updated tsconfig.json to include additional TypeScript files for better project structure.
- Refactored various components to enhance modal management and improve code clarity.
- Changed console.log statements to console.info for consistent logging practices across the application.
2025-12-28 08:07:10 +08:00
AdingApkgg
ccb9e16365 feat: 完成项目从 Material 3 迁移至 Tailwind CSS,重构组件与样式
* 移除所有 Material Web Components 和 GSAP 相关依赖,简化项目结构。
* 更新 `index.html`,添加 favicon 和优化 PWA 相关设置。
* 重构多个组件(如 `CommentsModal.vue`, `SearchHeader.vue`, `SearchResults.vue`)以使用 Tailwind CSS,提升样式一致性和用户体验。
* 移除不必要的调试日志,优化代码清理。
* 更新 `package.json` 和 `pnpm-lock.yaml`,引入新的依赖以支持 Tailwind CSS 和 Font Awesome。
* 简化 Service Worker,优化缓存策略。
2025-11-17 18:07:02 +08:00
AdingApkgg
2a5aa51ff5 feat: 更新首页结构与样式,移除旧版主文件
*   在 `index.html` 中添加了新的元数据和样式,以提升SEO和用户体验。
*   移除 `src/main.js` 文件,简化项目结构,集中管理逻辑。
*   新增 `SearchHeader.vue` 组件,重构搜索表单和状态显示,优化用户交互。
*   更新样式以符合 Material 3 设计规范,增强视觉一致性。
2025-11-17 15:48:49 +08:00