添加书架刷新按钮 + 后端服务保活方案

前端:
- 书架筛选栏新增「↻ 刷新」按钮,点击重新加载分类和书架数据
- 新增 refreshShelf() 函数,带 loading 状态反馈
- 新增 .shelf-refresh-btn CSS 样式

后端保活:
- 新增 start_server.sh 启动脚本 (start/daemon/stop/restart/status)
- 新增 com.weread-dashboard.plist launchd 服务配置
  - KeepAlive=true: 崩溃自动重启
  - RunAtLoad=true: 开机自动启动
  - 日志输出到 /tmp/weread_server.log
This commit is contained in:
admin committed 2026-07-17 13:14:55 +08:00
1 parent 7d983e38da
commit 8333230f77
6 files changed
+161

No files matched your search

+7
View File
@@ -87,3 +87,10 @@
- app.js 中 shelfSortMode 默认值从 "default" 改为 "category"
- 删除 toggleShelfSort 函数和 .shelf-sort-btn CSS 样式
- 书架列表始终按分类分组渲染,无需手动切换
## 12:32 书架恢复横向网格展示,移除分类分组标题
- 用户反馈:不需要展示分类分组标题(如"历史-历史读物 3本"),恢复简单横向书架
- 删除 renderBooksGroupedByCategory 函数,loadShelf 始终用简单网格渲染
- 后端 sort=category 仍生效(按分类排序),但前端不显示分组
- 分类筛选标签(可折叠层级)保留不变