refactor(widget): 简化前端配置并重构核心逻辑

移除前端配置中的 postSlug 和 avatarPrefix 参数,改为从后端接口获取
重构 CWDComments 核心类,自动推导 postSlug 等参数并异步加载服务端配置
更新文档和示例页面以反映配置变更
This commit is contained in:
anghunk
2026-01-20 10:39:48 +08:00
parent 1c0c4b5657
commit 0485b1320c
11 changed files with 149 additions and 86 deletions

View File

@@ -1,7 +1,7 @@
> [!WARNING]
> 目前仍处于 Beta 测试阶段,欢迎反馈测试结果。
<img src="https://github.com/anghunk/cwd-comments/blob/main/icon.png?raw=true" width="128" />
<img src="https://github.com/anghunk/cwd-comments/blob/main/icon.png?raw=true" width="72" />
# cwd-comments