Commit graph

229 commits

Author SHA1 Message Date
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
Vanessa
1d1902813d 🎨 https://github.com/siyuan-note/siyuan/pull/16244 2025-11-26 10:26:57 +08:00
Jeffrey Chen
9bfe00cf10
🧑‍💻 Add onDataChanged method to handle data changes in the plugin (#16244) 2025-11-25 16:49:22 +08:00
Jeffrey Chen
33d63127b0
🐛 The plugin was not executed uninstall() when being uninstalled (#16243)
fix https://github.com/siyuan-note/siyuan/issues/16156
2025-11-02 17:48:24 +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
Jeffrey Chen
8725e5daa8
🎨 Improve #commonMenu menu (#16141)
* 改进菜单的 data-name 属性值和选项的 data-id 属性值

fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/16133

* 改进菜单的 data-name 属性值和选项的 data-id 属性值

fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/16133

* 更新数据库排序菜单文案

* 改进菜单的 data-name 属性值和选项的 data-id 属性值

fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/16133

使用正则 (?:get|set)Attribute\("data-name"|new Menu\((?:"|Constants) 来搜索

* 改进菜单的 data-name 属性值和选项的 data-subname 属性值

fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/15075

* 改进菜单的 data-name 属性值和选项的 data-subname 属性值

fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/15075
2025-10-18 10:41:11 +08:00
Jeffrey Chen
517f5c8453
🎨 Hide the separator line in the top bar plugin menu in publish service (#15809) 2025-09-09 18:08:21 +08:00
Vanessa
afa74ebb4b 🎨 https://github.com/siyuan-note/siyuan/issues/15771 2025-09-05 17:16:48 +08:00
Vanessa
d48e3d5211 🎨 https://github.com/siyuan-note/siyuan/issues/15771 2025-09-05 11:26:18 +08:00
Vanessa
65b52a2bc6 🎨 https://github.com/siyuan-note/siyuan/issues/15771 2025-09-05 08:59:52 +08:00
Vanessa
7ae90058c3 🎨 https://github.com/siyuan-note/siyuan/issues/15771 2025-09-04 20:48:40 +08:00
Vanessa
e91a37a98b 🎨 https://github.com/siyuan-note/siyuan/issues/15760 2025-09-04 16:38:07 +08:00
Vanessa
d47a8ffe02 🎨 https://github.com/siyuan-note/siyuan/issues/15639 2025-09-04 10:29:54 +08:00
Vanessa
91626c8fb5 🎨 https://github.com/siyuan-note/siyuan/issues/15639 2025-09-03 09:41:42 +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
540fe7cfde 🎨 https://github.com/siyuan-note/siyuan/issues/15455 2025-08-21 21:29:26 +08:00
Vanessa
19c5a9952e 🎨 https://github.com/siyuan-note/siyuan/issues/15455 2025-08-21 21:25:16 +08:00
Vanessa
38e7992e1a 🎨 https://github.com/siyuan-note/siyuan/issues/15455 2025-08-21 21:12:16 +08:00
Vanessa
aee4c64006 🎨 https://github.com/siyuan-note/siyuan/issues/15453 2025-08-21 20:33:56 +08:00
Vanessa
e35b203201 🎨 https://github.com/siyuan-note/siyuan/issues/15641 2025-08-21 20:28:35 +08:00
Vanessa
128b9d1f13 🎨 https://github.com/siyuan-note/siyuan/issues/15641 2025-08-21 20:27:51 +08:00
Vanessa
3bd7c92710 🎨 https://github.com/siyuan-note/siyuan/issues/15641 2025-08-21 20:25:10 +08:00
Vanessa
8b21b8fd03 🎨 https://github.com/siyuan-note/siyuan/issues/15641 2025-08-21 13:19:13 +08:00
Vanessa
1c3ebf7f75 🎨 https://github.com/siyuan-note/siyuan/issues/15453 2025-08-20 16:58:10 +08:00
Vanessa
516d9aa52a 🎨 https://github.com/siyuan-note/siyuan/issues/15415 2025-08-20 12:09:37 +08:00
Vanessa
e7c90f4709 🎨 https://github.com/siyuan-note/siyuan/issues/15415 2025-08-20 12:08:47 +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
ff29ab920b 🎨 https://github.com/siyuan-note/siyuan/issues/15485 2025-08-10 18:22:01 +08:00
Jeffrey Chen
be3db79688
🎨 Add data-id attribute to the buttons (#15052)
斜杠菜单中插件添加的选项、顶栏的插件菜单、顶栏的外观模式菜单,修正块引用锚文本的右键菜单

fix https://github.com/siyuan-note/siyuan/issues/12518
2025-07-23 17:53:25 +08:00
Vanessa
4c2c4b4a72 🎨 https://github.com/siyuan-note/siyuan/issues/15308 2025-07-16 23:18:51 +08:00
Vanessa
7ded2d4077 🎨 https://github.com/siyuan-note/siyuan/issues/14579 2025-04-16 23:53:17 +08:00
Vanessa
8324957783 🎨 https://github.com/siyuan-note/siyuan/issues/14499 2025-04-02 14:23:28 +08:00
Vanessa
b8bf4401bb 🎨 https://github.com/siyuan-note/siyuan/issues/14373 2025-03-20 18:57:40 +08:00
Vanessa
d0700b7527 🎨 https://github.com/siyuan-note/siyuan/pull/14380 2025-03-18 11:56:26 +08:00
Vanessa
c77bb214b4 🎨 2025-03-06 12:30:28 +08:00
Vanessa
2889872b89 🎨 https://github.com/siyuan-note/siyuan/issues/14276 2025-03-06 11:54:24 +08:00
Vanessa
a905742464 🎨 https://github.com/siyuan-note/siyuan/pull/13966 2025-02-27 23:46:58 +08:00
Vanessa
3464708aae 🎨 https://github.com/siyuan-note/siyuan/pull/14182 2025-02-25 23:48:53 +08:00
Jeffrey Chen
33f8def8ce
Add data-id attribute to the buttons (#14182)
fix https://github.com/siyuan-note/siyuan/issues/12518
2025-02-25 18:02:35 +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
sommermorgentraum
514e4da537
Expose openSetting func to plugin APIs (#13761)
* _

* remove binary that accidently pushed

* update gitignore
2025-01-11 21:31:18 +08:00
Vanessa
75b4b357e7 🎨 https://github.com/siyuan-note/siyuan/issues/13579 2024-12-22 23:30:31 +08:00