Commit Graph

288 Commits

Author SHA1 Message Date
Asuna
b154ddc204 Merge pull request #92 from Moe-Sakura/dev
依赖升级 + 代码质量、打包体积与组件结构优化
2026-05-14 07:24:02 +08:00
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
Asuna
a0c61384d6 Merge pull request #91 from Moe-Sakura/dev
更新 TouchGal 的链接和图标地址
2026-05-14 06:06:10 +08:00
AdingApkgg
7ece172870 更新 TouchGal 的链接和图标地址 2026-05-14 06:05:21 +08:00
Asuna
5ade899ced Merge pull request #90 from Moe-Sakura/dev
Remove AI ACG from friends.json
2026-05-12 01:28:02 +08:00
Asuna
4fd4258476 Remove AI ACG from friends.json
Removed AI ACG entry from friends list.
2026-05-12 01:27:36 +08:00
Asuna
ae3f123dc6 Update friends.json 2026-05-12 01:26:44 +08:00
Asuna
9dbf989aeb Merge pull request #89 from Moe-Sakura/dev
Dev
2026-04-25 01:22:49 +08:00
Asuna
c518e4a921 Merge pull request #87 from a-xw2001/patch-2
友链交换
2026-04-25 01:19:46 +08:00
Asuna
78871f0cc2 Merge branch 'dev' into patch-2 2026-04-25 01:19:34 +08:00
Asuna
f9957473f8 Merge pull request #86 from a-xw2001/patch-1
Update friends.json
2026-04-25 01:18:21 +08:00
Asuna
391794fb20 Merge pull request #88 from Moe-Sakura/dev
Add new friend resource entry in friends.json
2026-04-25 01:17:54 +08:00
Asuna
c1242e79d9 Add new friend resource entry in friends.json 2026-04-25 01:17:19 +08:00
18201328712
c4cda9454d Update friends.json
AI ACG 站长申请友链
2026-04-16 16:00:12 +08:00
18201328712
4c00283f95 Update friends.json 2026-04-16 15:51:09 +08:00
Asuna
7ade52e732 Merge pull request #85 from Moe-Sakura/dev
Dev
2026-04-03 23:01:56 +08:00
Asuna
ccd2bda3ee Merge pull request #84 from bdzlc/patch-1
Update friends.json
2026-04-03 23:01:23 +08:00
笨蛋之主
59ecc92992 Update friends.json 2026-04-03 15:03:15 +08:00
Asuna
31cc4fdbfd Merge pull request #83 from Moe-Sakura/dev
refactor: update PrismJS plugin in Vite configuration to use ESM import
2026-03-31 00:05:31 +08:00
AdingApkgg
d4498e2f46 refactor: update PrismJS plugin in Vite configuration to use ESM import
- Renamed the PrismJS plugin to 'prismjs-esm-fix' for clarity.
- Modified the code transformation to use ESM import for 'prism-core', enhancing compatibility with modern module systems.
2026-03-31 00:04:57 +08:00
Asuna
eff844308a Merge pull request #82 from Moe-Sakura/dev
feat: add global fix for PrismJS in Vite configuration
2026-03-31 00:01:04 +08:00
AdingApkgg
048560fd0a feat: add global fix for PrismJS in Vite configuration
- Introduced a new plugin to ensure PrismJS is correctly referenced in components, preventing issues with global scope.
- The plugin modifies the code for PrismJS components to use the appropriate global context, enhancing compatibility.
2026-03-30 23:59:32 +08:00
Asuna
0e154d6eb8 Merge pull request #81 from Moe-Sakura/dev
Dev
2026-03-30 23:43:53 +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
aa461e0b1b refactor: update CommentsModal and friends.json for improved configuration
- Changed the pageKey in CommentsModal.vue to use the root path for better routing.
- Updated the logo URL in friends.json to point to the correct image path, ensuring consistency in asset references.
2026-03-30 23:20:27 +08:00
Asuna
14bcac9b58 Merge pull request #80 from Moe-Sakura/dev
refactor: 更新 Artalk 配置中的站点名称为“旮旯聚搜”
2026-02-22 08:12:45 +08:00
AdingApkgg
b11ff24780 refactor: 更新 Artalk 配置中的站点名称为“旮旯聚搜” 2026-02-22 08:10:59 +08:00
Asuna
72e127f3d1 Merge pull request #79 from Moe-Sakura/dev
chore: 更新依赖包至最新版本
2026-02-21 14:00:47 +08:00
AdingApkgg
a7b23f813a chore: 更新依赖包至最新版本
更新所有开发依赖和运行时依赖到最新次要版本,包括 TypeScript 生态系统工具链、Vue 相关插件和 UI 库。同时将 pnpm 包管理器版本更新至 10.30.1 以保持开发环境一致性。
2026-02-21 14:00:05 +08:00
Asuna
db5da4df87 Merge pull request #78 from Moe-Sakura/dev
refactor: simplify domain change notification in SearchHeader component
2026-02-04 22:36:39 +08:00
AdingApkgg
d43f9b86ee refactor: simplify domain change notification in SearchHeader component
- Consolidated the domain change message into a single paragraph for improved readability.
- Updated the link to the new domain, ensuring users are informed to update their bookmarks.
2026-02-04 22:36:13 +08:00
Asuna
ffe70174f6 Merge pull request #77 from Moe-Sakura/dev
refactor: update StatsCorner component to use new busuanzi API and re…
2026-02-01 15:51:09 +08:00
AdingApkgg
d864bd0718 refactor: update StatsCorner component to use new busuanzi API and remove obsolete script
- Removed the old busuanzi script from index.html.
- Updated StatsCorner.vue to use the new busuanzi API for fetching statistics.
- Improved error handling and response parsing in the fetchBusuanziStats function.
2026-02-01 15:50:29 +08:00
Asuna
83f3da1a44 Merge pull request #76 from Moe-Sakura/dev
refactor: update PWA registration and StatsCorner component for impro…
2026-02-01 13:59:47 +08:00
AdingApkgg
92e0be566f refactor: update PWA registration and StatsCorner component for improved functionality
- Changed PWA registration type to 'autoUpdate' for immediate updates upon new version availability.
- Removed obsolete busuanzi elements and replaced the data fetching method with a new API call for site statistics.
- Simplified the UpdateToast component to trigger immediate updates without countdown, enhancing user experience.
2026-02-01 13:58:23 +08:00
Asuna
0672683f7f Merge pull request #75 from Moe-Sakura/dev
chore: 更新网站主域名为 www.searchgal.top
2026-01-31 07:32:41 +08:00
AdingApkgg
201afc1493 chore: 更新网站主域名为 www.searchgal.top
- 移除旧域名重定向规则,不再将 www 和非 www 版本相互重定向
- 更新所有配置文件、环境变量和代码中的站点 URL 引用
- 更新文档中的示例链接和说明
- 删除 Vercel 重定向配置文件,简化部署配置
- 更新 Open Graph 和 Twitter 卡片中的元数据 URL
2026-01-31 07:32:01 +08:00
Asuna
62938edc13 Merge pull request #74 from Moe-Sakura/dev
fix: update API keys in api.json for consistency and clarity
2026-01-30 06:46:32 +08:00
AdingApkgg
b26a1abef0 fix: update API keys in api.json for consistency and clarity
- Changed API keys for Cloudflare, Vercel, Netlify, and ClawCloud entries to ensure uniformity.
- Removed redundant Netlify entries to streamline the API configuration.
2026-01-30 06:45:40 +08:00
Asuna
97ac5993d7 Merge pull request #73 from Moe-Sakura/dev
Dev
2026-01-30 06:14:30 +08:00
AdingApkgg
e7c36e5ece fix: update Netlify API key in api.json for consistency
- Changed the key for the Netlify API entry from "netlify2api" to "netlify1api" to ensure clarity and consistency in API identification.
2026-01-30 06:13:15 +08:00
AdingApkgg
a32abd946c fix: reorder and update API server entries in api.json
- Moved Vercel API entry to a new position for better organization.
- Updated Netlify API entries to include distinct labels and URLs for clarity.
- Ensured all API entries are correctly formatted and aligned with the current project structure.
2026-01-30 06:12:54 +08:00
Asuna
36edb2b4ef Merge pull request #72 from Moe-Sakura/dev
feat: enhance SettingsModal with search history management and projec…
2026-01-29 03:04:20 +08:00
AdingApkgg
2898e6455c feat: enhance SettingsModal with search history management and project information
- Added a new section in SettingsModal for managing search history, including export and import functionality.
- Updated the project information card to provide links to the project's GitHub repositories.
- Removed the previous search history display and buttons, streamlining the settings interface.
- Integrated GitHub hash generation for dynamic repository links.
2026-01-29 03:03:28 +08:00
Asuna
53109df41e Merge pull request #71 from Moe-Sakura/dev
feat: add search history management features in SettingsModal and Sea…
2026-01-29 01:40:15 +08:00
AdingApkgg
9b80b9429a feat: add search history management features in SettingsModal and SearchHeader
- Introduced a new section in SettingsModal for managing search history, including export and import functionality.
- Added visual prompts for users regarding the new domain change in SearchHeader.
- Implemented importHistory method in the history store to handle merging and deduplication of imported records.
2026-01-29 01:39:28 +08:00
Asuna
999cf9d8a7 Merge pull request #70 from Moe-Sakura/dev
chore: 将域名从 searchgal.homes 迁移至 searchgal.top并增加API节点
2026-01-28 07:09:56 +08:00
Jurangren
fe5f836b87 chore: 将域名从 searchgal.homes 迁移至 searchgal.top并增加API节点
- 更新所有环境配置文件中的 API 和站点域名为 searchgal.top。
- 在 api.json 中新增多个区域的 ClawCloud API 节点。
2026-01-28 04:24:08 +08:00
Asuna
31a62342bf Merge pull request #69 from Moe-Sakura/dev
feat: enhance URL handling and update API server configuration
2026-01-21 00:49:17 +08:00
AdingApkgg
04c8e43ef7 feat: enhance URL handling and update API server configuration
- Renamed extractPath function to decodeUrl for clarity and updated its implementation to decode URLs properly.
- Modified SettingsModal to use a new default API key variable for better maintainability.
- Added new API server entries for Vercel and Netlify in api.json to expand available options.
2026-01-21 00:48:39 +08:00