Commit graph

4099 commits

Author SHA1 Message Date
Daniel
08d283d3e1
🎨 Clean code https://github.com/siyuan-note/siyuan/pull/16647
Signed-off-by: Daniel <845765@qq.com>
2025-12-22 17:41:47 +08:00
Jeffrey Chen
64514b4fab
Improve the performance of the getCloudUser interface to resolve the lag issue during startup (#16647)
问题:
- /api/setting/getCloudUser 接口在启动时卡顿数百毫秒
- 根本原因:GetUser()、SetUser() 和 Conf.Save() 使用同一个锁,存在锁竞争

解决方案:
1. 将 GetUser() 改为使用读锁(RLock),允许并发读取
2. 将用户数据与配置数据分离,使用独立的 userLock 锁
   - m 锁:保护配置数据的读写(Conf.Save() 使用)
   - userLock 锁:保护用户数据的读写(GetUser() 和 SetUser() 使用)
3. 优化 RefreshUser 函数,先尝试从内存获取用户,避免不必要的文件读取

相关文件:
- kernel/model/conf.go: 添加 userLock,修改 GetUser/SetUser 使用独立锁
- kernel/model/cloud_service.go: 优化 RefreshUser 逻辑
2025-12-22 17:30:40 +08:00
Daniel
bd82eefbf3
🎨 Fix https://github.com/siyuan-note/siyuan/issues/16660
Signed-off-by: Daniel <845765@qq.com>
2025-12-22 10:29:52 +08:00
Daniel
9a0b08cdb3
🎨 https://github.com/siyuan-note/siyuan/pull/16657#issuecomment-3680075726
Signed-off-by: Daniel <845765@qq.com>
2025-12-22 10:21:55 +08:00
Jeffrey Chen
2d1618e639
🎨 Element attribute names are uniformly lowercase English letters https://github.com/siyuan-note/siyuan/issues/16604 (#16657)
部分属性名大写字母改为小写

兼容旧版带大写字母的属性名

更新用户指南说明

优化性能

统一前后端验证属性名的逻辑

改进验证属性名格式报错信息
2025-12-22 09:43:12 +08:00
Daniel
1c48345150
🧑‍💻 Fix https://github.com/siyuan-note/siyuan/issues/16654
Signed-off-by: Daniel <845765@qq.com>
2025-12-21 18:42:50 +08:00
Daniel
89952fa8b4
Improve performance for large-scale block deletion/insertion https://github.com/siyuan-note/siyuan/issues/16644
Signed-off-by: Daniel <845765@qq.com>
2025-12-21 18:29:10 +08:00
Daniel
80faba6c75
🎨 Fix https://github.com/siyuan-note/siyuan/issues/16637
Signed-off-by: Daniel <845765@qq.com>
2025-12-21 15:10:31 +08:00
Daniel
97232090fe
🎨 Fix https://github.com/siyuan-note/siyuan/issues/16637
Signed-off-by: Daniel <845765@qq.com>
2025-12-20 20:08:15 +08:00
Daniel
c07efea8de
🎨 Improve callout block https://github.com/siyuan-note/siyuan/issues/16607
Signed-off-by: Daniel <845765@qq.com>
2025-12-20 12:31:28 +08:00
Daniel
50f00c69d8
🎨 Improve fold heading editing https://github.com/siyuan-note/siyuan/issues/16197
Signed-off-by: Daniel <845765@qq.com>
2025-12-19 22:54:24 +08:00
Daniel
4b1e79bd15
🎨 Improve the behavior of Jump to parent block in lists https://github.com/siyuan-note/siyuan/issues/16516
Signed-off-by: Daniel <845765@qq.com>
2025-12-16 21:14:40 +08:00
Daniel
2dbef55788
🎨 Fix https://github.com/siyuan-note/siyuan/issues/16606
Signed-off-by: Daniel <845765@qq.com>
2025-12-16 20:55:34 +08:00
Daniel
3e9bd1547c
🎨 Improve the behavior of Jump to parent block in lists https://github.com/siyuan-note/siyuan/issues/16516
Signed-off-by: Daniel <845765@qq.com>
2025-12-16 11:53:34 +08:00
Daniel
059b0022d0
🎨 https://github.com/siyuan-note/siyuan/issues/16576#issuecomment-3652567696
Signed-off-by: Daniel <845765@qq.com>
2025-12-15 10:46:56 +08:00
Daniel
ea925aff32
🎨 Fix https://github.com/siyuan-note/siyuan/issues/16576
Signed-off-by: Daniel <845765@qq.com>
2025-12-14 11:36:02 +08:00
Daniel
1acbb7d06d
🎨 Improve the behavior of Jump to parent block in lists https://github.com/siyuan-note/siyuan/issues/16516#issuecomment-3649752632
Signed-off-by: Daniel <845765@qq.com>
2025-12-14 11:05:12 +08:00
Daniel
9dfc77a7e9
🎨 Supports converting relative path hyperlinks into document block references after importing Markdown https://github.com/siyuan-note/siyuan/issues/13817
Signed-off-by: Daniel <845765@qq.com>
2025-12-14 10:33:13 +08:00
Jeffrey Chen
ec881a76af
Fix executing the uninstall method when closing the plugin (#16522)
* 🐛 Fix executing the uninstall method when closing the plugin

* 后端推送区分插件禁用与卸载
2025-12-13 10:37:05 +08:00
Daniel
6da4e4b5a8
🎨 Fix https://github.com/siyuan-note/siyuan/issues/16558
Signed-off-by: Daniel <845765@qq.com>
2025-12-12 18:04:46 +08:00
Daniel
9e77b2e676
🎨 Fix https://github.com/siyuan-note/siyuan/issues/16558
Signed-off-by: Daniel <845765@qq.com>
2025-12-12 17:45:43 +08:00
Daniel
677417550a
🎨 Fix https://github.com/siyuan-note/siyuan/issues/16565
Signed-off-by: Daniel <845765@qq.com>
2025-12-12 12:03:23 +08:00
Daniel
f27684b26f
🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2025-12-11 16:04:42 +08:00
Daniel
25ca3be126
🎨 Improve the behavior of Jump to parent block in lists https://github.com/siyuan-note/siyuan/issues/16516
Signed-off-by: Daniel <845765@qq.com>
2025-12-11 10:26:03 +08:00
Daniel
6726ea51df
🎨 Fix https://github.com/siyuan-note/siyuan/issues/16549
Signed-off-by: Daniel <845765@qq.com>
2025-12-10 18:04:35 +08:00
Daniel
a110f902d5
🐛 Embed blocks are exported incorrectly https://github.com/siyuan-note/siyuan/issues/16547
Signed-off-by: Daniel <845765@qq.com>
2025-12-09 19:32:19 +08:00
Daniel
ad48451d51
🎨 Improve exit
Signed-off-by: Daniel <845765@qq.com>
2025-12-09 19:31:44 +08:00
Daniel
7d36fbc2f1
🎨 Improve exit
Signed-off-by: Daniel <845765@qq.com>
2025-12-09 16:43:38 +08:00
Daniel
106a679dba
🎨 Improve http server
Signed-off-by: Daniel <845765@qq.com>
2025-12-09 11:02:25 +08:00
Daniel
21dff696cc
🎨 Improve exit on Android
Signed-off-by: Daniel <845765@qq.com>
2025-12-09 10:40:38 +08:00
Daniel
5bef3bf817
🎨 Supports setting the spell check language on desktop https://github.com/siyuan-note/siyuan/issues/16524
Signed-off-by: Daniel <845765@qq.com>
2025-12-08 17:47:46 +08:00
Daniel
2e40a53802
🎨 Supports setting the spell check language on desktop https://github.com/siyuan-note/siyuan/issues/16524
Signed-off-by: Daniel <845765@qq.com>
2025-12-08 17:47:45 +08:00
Daniel
172615b0e3
🎨 Improve the behavior of Jump to parent block in lists https://github.com/siyuan-note/siyuan/issues/16516
Signed-off-by: Daniel <845765@qq.com>
2025-12-08 11:03:26 +08:00
Daniel
e8e36185da
Callout block https://github.com/siyuan-note/siyuan/issues/16051
Signed-off-by: Daniel <845765@qq.com>
2025-12-06 16:55:38 +08:00
Daniel
f6c905aa92
Callout block https://github.com/siyuan-note/siyuan/issues/16051
Signed-off-by: Daniel <845765@qq.com>
2025-12-06 16:55:38 +08:00
Daniel
980f6dd0b8
Callout block https://github.com/siyuan-note/siyuan/issues/16051
Signed-off-by: Daniel <845765@qq.com>
2025-12-06 16:46:33 +08:00
Daniel
362f6ffa05
Callout block https://github.com/siyuan-note/siyuan/issues/16051
Signed-off-by: Daniel <845765@qq.com>
2025-12-06 16:46:32 +08:00
Daniel
d3001ab120
🎨 Improve the behavior of Jump to parent block in lists https://github.com/siyuan-note/siyuan/issues/16516
Signed-off-by: Daniel <845765@qq.com>
2025-12-05 10:16:27 +08:00
Daniel
3a1376d49e
🐛 Database kanban view grouping modification issues https://github.com/siyuan-note/siyuan/issues/16511
Signed-off-by: Daniel <845765@qq.com>
2025-12-04 17:50:06 +08:00
Daniel
cb79c4aed6
🐛 Fix https://github.com/siyuan-note/siyuan/issues/16493
Signed-off-by: Daniel <845765@qq.com>
2025-12-04 11:35:49 +08:00
Daniel
b5c84f2354
🎨 The old version of the application no longer supports opening the new version of the document https://github.com/siyuan-note/siyuan/issues/16505
Signed-off-by: Daniel <845765@qq.com>
2025-12-03 22:03:37 +08:00
Daniel
364b253082
🎨 Improve file history generation https://github.com/siyuan-note/siyuan/issues/16501
Signed-off-by: Daniel <845765@qq.com>
2025-12-03 18:09:49 +08:00
Daniel
c917626d47
🎨 Improve searching for move blocks https://github.com/siyuan-note/siyuan/issues/15564#issuecomment-3604599711
Signed-off-by: Daniel <845765@qq.com>
2025-12-03 17:50:48 +08:00
Daniel
3a58d6dc60
🎨 Import the YAML at the beginning of the Markdown as a code block https://github.com/siyuan-note/siyuan/issues/16488
Signed-off-by: Daniel <845765@qq.com>
2025-12-02 17:37:31 +08:00
Daniel
36ac36e30d
Improve database rendering performance after editing https://github.com/siyuan-note/siyuan/issues/16464
Signed-off-by: Daniel <845765@qq.com>
2025-12-02 11:38:11 +08:00
Daniel
190ab07b98
🎨 Improve searching for move blocks
Signed-off-by: Daniel <845765@qq.com>
2025-12-01 18:58:53 +08:00
Daniel
c60d5ce42f
🎨 https://github.com/siyuan-note/siyuan/issues/16476
Signed-off-by: Daniel <845765@qq.com>
2025-12-01 10:52:47 +08:00
Daniel
f146ba878b
🎨 https://github.com/siyuan-note/siyuan/issues/16476
Signed-off-by: Daniel <845765@qq.com>
2025-12-01 10:50:43 +08:00
Daniel
5ebf8b9948
🎨 Improve av grouping https://github.com/siyuan-note/siyuan/issues/16473
Signed-off-by: Daniel <845765@qq.com>
2025-12-01 10:02:05 +08:00
Daniel
a2152fd423
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15563#issuecomment-3592191959
Signed-off-by: Daniel <845765@qq.com>
2025-12-01 09:48:24 +08:00