Commit graph

84 commits

Author SHA1 Message Date
Vanessa
9585375961 🎨 https://github.com/siyuan-note/siyuan/pull/16717 2025-12-29 12:29:16 +08:00
Jeffrey Chen
c243fea81c
🎨 Improve error handling and security for plugin data storage methods (#16717)
- Check if storageName contains path separators to prevent path injection
- saveData and removeData return complete IWebSocketData objects with code, msg, and data fields for result checking
- saveData and removeData immediately modify this.data[storageName] at function start, so even if the operation fails, subsequent use of this.data[storageName] is not affected
- All methods always resolve
2025-12-29 11:01:38 +08:00
Vanessa
8520b02df5 🎨 https://github.com/siyuan-note/siyuan/pull/16676 2025-12-24 21:12:00 +08:00
Jeffrey Chen
a02c616f22
🧑‍💻 Make hotkey optional for plugin commands (#16676) 2025-12-24 20:46:07 +08:00
Vanessa
748784554a 🎨 https://github.com/siyuan-note/siyuan/issues/16485 2025-12-03 19:17:37 +08:00
Vanessa
806ca9f213 🎨 https://github.com/siyuan-note/siyuan/issues/16485 2025-12-03 19:09:15 +08:00
Vanessa
7154879ddc 🎨 https://github.com/siyuan-note/siyuan/issues/16485 2025-12-03 17:44:24 +08:00
Vanessa
4433372bee ♻️ https://github.com/siyuan-note/siyuan/pull/16465 2025-12-02 11:00:13 +08:00
Jeffrey Chen
bcdef64d0f
Improve onDataChanged method (#16472)
* 🐛 Improve onDataChanged method

fix https://github.com/siyuan-note/siyuan/pull/16244

重构、修复插件重启逻辑

重构

比如插件在 onload() 中插入了图标,uninstall 会把图标删除,afterLoadPlugin 又不能执行 onload() 把图标加回来

使用 getElementById

先加载插件样式

避免插入重复的样式

改进插件样式插入位置

* reloadPlugin
2025-12-02 09:57:50 +08:00
Vanessa
17a6efd97e 🎨 https://github.com/siyuan-note/siyuan/pull/16244 2025-11-26 20:53:32 +08:00
Vanessa
370d549a48 🎨 https://github.com/siyuan-note/siyuan/pull/16244 2025-11-26 19:30:42 +08:00
Jeffrey Chen
9bfe00cf10
🧑‍💻 Add onDataChanged method to handle data changes in the plugin (#16244) 2025-11-25 16:49:22 +08:00
Daniel
b68756261d
🎨 https://github.com/siyuan-note/siyuan/issues/16149
Signed-off-by: Daniel <845765@qq.com>
2025-10-20 16:33:22 +08:00
Daniel
b4e10e5704
🎨 https://github.com/siyuan-note/siyuan/issues/16149 https://github.com/siyuan-note/siyuan/issues/16121
Signed-off-by: Daniel <845765@qq.com>
2025-10-19 09:57:41 +08:00
Vanessa
0a079a39ca 🎨 https://github.com/siyuan-note/siyuan/pull/15714 2025-08-29 10:45:36 +08:00
Jeffrey Chen
bf722a142a
🎨 The title of the plugin settings dialog displays the plugin name (#15714) 2025-08-29 10:43:24 +08:00
Vanessa
aee4c64006 🎨 https://github.com/siyuan-note/siyuan/issues/15453 2025-08-21 20:33:56 +08:00
Vanessa
1c3ebf7f75 🎨 https://github.com/siyuan-note/siyuan/issues/15453 2025-08-20 16:58:10 +08:00
Vanessa
97f74ea172 🎨 https://github.com/siyuan-note/siyuan/issues/15546 2025-08-12 23:26:19 +08:00
Vanessa
98a9635dd3 🎨 https://github.com/siyuan-note/siyuan/issues/15455 2025-08-12 18:20:33 +08:00
Vanessa
e103b5c2f0 🎨 https://github.com/siyuan-note/siyuan/issues/15453 2025-08-12 11:28:22 +08:00
Vanessa
c77bb214b4 🎨 2025-03-06 12:30:28 +08:00
Vanessa
a905742464 🎨 https://github.com/siyuan-note/siyuan/pull/13966 2025-02-27 23:46:58 +08:00
Vanessa
e76d0084ed 🎨 https://github.com/siyuan-note/siyuan/issues/14036 2025-02-11 18:47:24 +08:00
Vanessa
a635bcbafd 🎨 https://github.com/siyuan-note/siyuan/issues/13791 2025-01-13 12:47:28 +08:00
Vanessa
e8a1860920 🎨 https://github.com/siyuan-note/siyuan/issues/13776 2025-01-12 00:47:26 +08:00
Vanessa
4e3341985c 🎨 https://github.com/siyuan-note/siyuan/pull/13284 2024-11-27 23:03:50 +08:00
Vanessa
bd89dd67e1 🎨 https://github.com/siyuan-note/siyuan/issues/13277 2024-11-26 12:07:28 +08:00
Vanessa
97c4878376 🎨 https://github.com/siyuan-note/plugin-sample/issues/24 2024-11-08 01:17:38 +08:00
Vanessa
5760f7fe4c 🎨 https://github.com/siyuan-note/petal/issues/34 2024-10-22 18:13:21 +08:00
Vanessa
dc5882bd60 🎨 https://github.com/siyuan-note/siyuan/issues/10930 2024-04-08 12:05:27 +08:00
Vanessa
970f8c86b1 🎨 https://github.com/siyuan-note/siyuan/issues/10682 2024-04-01 23:43:08 +08:00
Vanessa
ee75476496 🎨 https://github.com/siyuan-note/siyuan/issues/10065 2024-01-08 22:12:19 +08:00
Yingyi / 颖逸
796df79931
🐛 Fix name attribute could not be visited in the plugin constructor (#10071) 2024-01-07 14:37:17 +08:00
Vanessa
473df4b185 🎨 https://github.com/siyuan-note/siyuan/issues/10090 2024-01-06 20:41:02 +08:00
Vanessa
1e3ca6bcde 🎨 fix https://github.com/siyuan-note/siyuan/issues/10086 2024-01-06 15:30:34 +08:00
Vanessa
2232cec2bf 🎨 https://github.com/siyuan-note/siyuan/issues/9943 2023-12-26 16:47:26 +08:00
Vanessa
1d0d7cb890 🎨 fix https://github.com/siyuan-note/siyuan/issues/9943 2023-12-22 00:05:17 +08:00
Vanessa
aa1a2728b0 🎨 fix https://github.com/siyuan-note/siyuan/issues/9926 2023-12-21 11:24:53 +08:00
Vanessa
b2e72fd9ab 🎨 https://github.com/siyuan-note/siyuan/issues/9210 2023-10-25 17:06:19 +08:00
Vanessa
bff2a4f8c9 🎨 fix https://github.com/siyuan-note/siyuan/issues/9170 2023-09-13 09:36:50 +08:00
Vanessa
4406dc687b 🚨 2023-08-18 20:03:04 +08:00
Vanessa
798a2970f9 🎨 fix https://github.com/siyuan-note/siyuan/issues/9002 2023-08-18 18:00:38 +08:00
Vanessa
4c7a01a911 🎨 fix https://github.com/siyuan-note/siyuan/issues/8644 2023-06-30 10:44:33 +08:00
Vanessa
dfc0a35c05 🎨 fix https://github.com/siyuan-note/siyuan/issues/8599 2023-06-23 16:27:54 +08:00
Vanessa
f3a1ce12f8 🎨 https://github.com/siyuan-note/siyuan/issues/8467 2023-06-13 00:08:05 +08:00
Vanessa
999081b573 🎨 https://github.com/siyuan-note/siyuan/issues/8418 2023-06-05 19:49:32 +08:00
Vanessa
82ce65fa7e 🎨 fix https://github.com/siyuan-note/siyuan/issues/8454 2023-06-05 11:30:58 +08:00
Vanessa
abf7b57827 🚨 2023-06-04 00:13:54 +08:00
Vanessa
f43770d8d2 🎨 https://github.com/siyuan-note/siyuan/issues/8345 2023-06-03 21:45:24 +08:00