桌面下载端改用共享核心包,并修两处已知缺陷

- store 改由 createGalleryStore 生成:totalGalleryTask 成为唯一任务源,
  收藏/下载/分类/搜索结果全部由 getter 派生,不再维护三份互相引用的数组
- 排序不再原地修改分类数组;本地搜索记住关键词,任务刷新后结果仍在
- 本地搜索结果补齐翻页入口:此前匹配 25 项却只显示 10 项,其余无法看到
- 取消收藏不再因本地找不到 gid 抛 TypeError
- 删除重复的 taskSocket/progressiveImages/validate/thumbnail,改从共享包导入
- 远端搜索改用共享 fetchGalleries,关键词交给 axios 序列化,翻页按游标转发
- main.js 按需注册 Element Plus,入口 JS 由约 1.14MB 降到约 494KB
- 依赖新增 file:../lionwebsite-frontend-shared

测试:14 项通过;构建成功,入口仍为 /asserts/index/index.js|css。
This commit is contained in:
root
2026-10-07 16:15:23 +08:00
parent 5208b7ccec
commit 97d635fbc7
17 changed files with 208 additions and 953 deletions
+2 -1
View File
@@ -13,7 +13,8 @@
"element-plus": "^2.2.0",
"qs": "^6.11.0",
"vue": "^3.0.4",
"vuex": "^4.0.2"
"vuex": "^4.0.2",
"lionwebsite-frontend-shared": "file:../lionwebsite-frontend-shared"
},
"devDependencies": {
"@vitejs/plugin-vue": "6.0.9",