Commit Graph

110 Commits

Author SHA1 Message Date
callmer00t
d35dcfe513 feat: 支持自定义数组字段长度限制
为豆瓣拉取内容中数组类型的字段(actor、director、author、translator、aliases、menu 等)
新增按内容类型可配置的最大数量限制, 解决电影演员等列表过长导致笔记冗余的问题。

- 新增设置项 arrayLengthLimits, 支持按 type(电影/电视剧/书籍/音乐/游戏/笔记/戏剧/全部)
  + field + limit 三元组进行配置
- 在 VariableUtil.replaceSubject 中央渲染入口集中截断, 自动覆盖所有类型的所有数组字段
- 在设置面板新增 "数组限制" 页签, 提供添加/删除/编辑 UI
- 同字段同时存在 type=all 和具体类型时取较小限制值
- 新增对应中英文文案
2026-05-19 20:21:20 +08:00
Orphee Uroboros
007e85556e fix book user state fields 2026-04-23 21:45:03 +08:00
ChrsiGray
e8a0d8a00c fix: support douban image uploads with referer
- use subject page referer for douban image requests\n- keep PicGo clipboard upload flow and await clipboard writes\n- add webp clipboard fallback for image decoding
2026-04-02 11:26:16 +08:00
ChrsiGray
318aabb21b fix: upload Douban images to PicGo via temp file 2026-04-02 11:26:16 +08:00
YuBai
7ba1a7be0c feat: implement lazy login to eliminate startup network request
Replace eager login verification on startup with assumeLoggedIn(),
which sets login state from saved credentials without any network call.
Real verification is deferred until sync (which needs the actual user ID)
or when the settings page is opened.

- UserComponent: add verified flag, assumeLoggedIn(), isVerified()
- main.ts: replace onLayoutReady(login) with assumeLoggedIn(); fix
  inverted condition bug in checkLogin() (!needLogin -> needLogin)
- DoubanSyncModal: remove redundant login check before checkLogin()
- LoginSettingsHelper: handle assumed-but-unverified state in constructLoginUI()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 20:38:48 +08:00
YuBai
4e8d3f1318 Merge branch 'fix-undefined-actor-error' into fix/search-all-api-and-login-init 2026-03-04 18:25:45 +08:00
YuBai
c375512903 fix: restore All search type and initialize login state on startup
- Switch AllPageSearchPageFetcher from m.douban.com/rexxar/api/v2/search
  (returns 403 need_login) to www.douban.com/j/search (works with cookies)
- Update AllFirstPageSearchResultPageParser and OtherAllPageSearchResultPageParser
  to use SearchParserHandler.parseSearchJson() matching the j/search response format,
  replacing the old Rexxar-specific SearchParserHandlerV2 parsing logic
- Add await this.userComponent.login() in onload() so login state is initialized
  on startup, fixing false isLogin()=false causing "need login for next page" errors

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 18:20:58 +08:00
YuBai
99d4170626 fix: 为其他 handler 添加数组空值检查
在 parseVariable 方法中为所有数组字段的 .map() 调用添加 (field || []) 保护,

防止当字段为 undefined 时调用 .map() 报错。
2026-02-02 11:26:47 +08:00
YuBai
297ccd33cf fix: 当 JSON-LD 解析失败时添加回退机制
豆瓣现在对未登录请求返回反爬虫验证页面,导致 JSON-LD 解析返回 undefined。

添加从 OG meta 标签提取基本信息的回退机制,防止代码崩溃。

同时给所有数组字段添加默认值 || []。
2026-02-02 11:25:56 +08:00
YuBai
a0eccf7370 fix: handle() 方法 catch 块返回 undefined 而不是错误对象
当 HTTP 请求失败时,返回错误对象会导致上层代码尝试访问错误对象的属性,

造成 TypeError。改为返回 undefined 让上层代码正确处理空值情况。
2026-02-02 11:24:07 +08:00
ffc93a4a13 feat: 调整别名的转义 2025-11-09 23:16:34 +08:00
08749116f3 feat: 附件(图片)文件保存本地支持自定义
fix: 修复有些图片无法下问题
fix: 修复同步汇总文件中文件名和真实保存不一致问题
feat: 调整别名的转义
2025-11-09 22:43:17 +08:00
16b9ff581d docs: add documents website
Some checks failed
Deploy Jekyll site to Pages / build (push) Has been cancelled
Deploy Jekyll site to Pages / deploy (push) Has been cancelled
2025-07-24 00:01:09 +08:00
dd1648c20a fix #151 笔记存放位置,无法使用自定义字段 2025-06-05 14:00:28 +08:00
c09f96d3b8 fix #143 #132 #124
1. 增加游戏同步功能
2. 修复自定义参数配置问题
3. 增加搜索默认类型
4. 增加全部搜索为空时的提示
2025-03-11 14:45:14 +08:00
9403fef320 feature: #132 同步游戏 2025-03-10 09:02:54 +08:00
001cb5dc3e 调整说明
Some checks failed
Release Draft / build (push) Waiting to run
Deploy Jekyll site to Pages / build (push) Has been cancelled
Deploy Jekyll site to Pages / deploy (push) Has been cancelled
2025-03-09 16:11:22 +08:00
671b28f91a feature 游戏同步
Some checks are pending
Deploy Jekyll site to Pages / build (push) Waiting to run
Deploy Jekyll site to Pages / deploy (push) Blocked by required conditions
1. 增加游戏同步页面
2. 增加支持二维码
2025-03-09 00:13:21 +08:00
9fe0d1bfc9 fix #139
1. 优化导入配置,增加更多导入时的选项
2. 优化导入结果的显示,现在会在结果文本中显示具体的条件
2025-03-06 18:54:01 +08:00
ea700e481e fix #139 增加过滤条件:时间或条数限制 2025-03-06 18:54:01 +08:00
a120e450e9 fix #139 #128
1. 优化配置将配置页面调整为tab
2. 优化文件夹选取方式避免卡顿
3. 优化模板文件选取方式避免卡顿
4. 增加设置的导入导出用以备份
5. 优化加载插件的卡顿问题,现在加载会非常快
6. 优化了配置的文本,简化了文本内容
2025-03-06 18:54:01 +08:00
vran
132e47f2b2 fix: remove leading and and trailing whitespace of person name 2025-01-22 13:36:14 +08:00
wanxuping
eeedf23e7c fix #94 移动端加载失败 2024-12-26 13:47:01 +08:00
wanxuping
8437aee2e1 fix #94 移动端加载失败 2024-12-26 12:53:28 +08:00
d98a24545e Fixed clicking the next page has no effect 2024-07-15 23:04:32 +08:00
232439b64c fix search error 2024-07-11 10:19:14 +08:00
d0ed8cf1f3 fix mac os search error 2024-07-10 18:33:55 +08:00
441345ebb8 fix sync terminate when item wrong 2024-05-16 18:34:50 +08:00
910dbd30d9 fix sync terminate when item wrong 2024-05-16 18:34:38 +08:00
e1ae4cd88c
Merge pull request #113 from ruinshe/add-templated-attachment-support
support variables in attachment
2024-05-16 12:29:34 +08:00
c016bbdc46 fix fetch data error 2024-05-16 02:06:27 +08:00
290eaaa45b fix fetch data error 2024-05-16 01:56:17 +08:00
1d74714e6e fix fetch data error 2024-05-16 01:51:29 +08:00
eb25c5be2b update config description 2024-05-16 00:58:21 +08:00
661e8e7e2e add picture bed 2024-05-16 00:09:33 +08:00
Ruins He
6f6943bb09
docs(localization): update attachment folder instruction message
Signed-off-by: Ruins He <lyhypacm@gmail.com>
2024-05-15 19:26:56 +08:00
Ruins He
561e42fe73
feat(attachments): add template support for attachment folder support
Signed-off-by: Ruins He <lyhypacm@gmail.com>
2024-05-15 19:14:30 +08:00
c1bb8cf05a remove search item teleplay 2024-03-21 21:26:32 +08:00
0db96c31f5 move import follow-redirects position 2024-03-21 21:21:48 +08:00
9ccb10c5d4 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	package.json
#	src/org/wanxp/utils/HttpUtil.ts
2024-03-21 21:19:22 +08:00
58ced6cd1f fix game/book/movie import error 2024-03-21 21:18:28 +08:00
01276030ca fix mobile can not login 2024-03-17 21:58:23 +08:00
6a0cf9dab1 fix mobile can not login 2024-03-15 22:43:27 +08:00
6b047b595c custom lib 2024-03-15 20:11:27 +08:00
5c3edc909e fix android can not load plugins 2024-03-14 13:10:17 +08:00
ba5e6a8ee2 add new setting for {{scoreStar}} and {{myRatingStar}} 2023-12-30 20:20:19 +08:00
f2278b14d9 add new setting for {{scoreStar}} and {{myRatingStar}} 2023-12-29 23:35:32 +08:00
7539134b05 add new setting for {{scoreStar}} and {{myRatingStar}} 2023-12-29 23:09:05 +08:00
b4f41bcae8 add new setting for {{scoreStar}} and {{myRatingStar}} 2023-12-29 18:30:19 +08:00
b39e0a18a3 add new setting for {{scoreStar}} and {{myRatingStar}} 2023-12-29 18:26:53 +08:00