Commit Graph

4287 Commits

Author SHA1 Message Date
Daniel 6b073623c7 🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-17 20:15:57 +08:00
Jeffrey Chen 26e72ea292 🎨 Use the util.FileURLToLocalPath function to convert file:// file links uniformly (#17239) 2026-03-17 09:04:37 +08:00
Jeffrey Chen badf73723e 🎨 Improve support for URL-encoded local file names (#17238) 2026-03-17 08:52:58 +08:00
Daniel d6182c431d 🎨 https://github.com/siyuan-note/siyuan/issues/17228
Signed-off-by: Daniel <845765@qq.com>
2026-03-15 20:17:42 +08:00
Jeffrey Chen 4b0b075184 Improve closing user guide notebook (#17189)
* 🎨 Improve closing user guide notebook https://github.com/siyuan-note/siyuan/issues/17182

* 🎨 Improve closing user guide notebook https://github.com/siyuan-note/siyuan/pull/17189#issuecomment-4045377189

* 🎨 Improve closing user guide notebook

* 🎨 Improve closing user guide notebook https://github.com/siyuan-note/siyuan/pull/17189#issuecomment-4062459992
2026-03-15 19:51:20 +08:00
Jeffrey Chen c14301aed1 ♻️ Improve /api/setting/setTheme https://github.com/siyuan-note/siyuan/pull/17198 (#17205) 2026-03-13 20:38:32 +08:00
Jeffrey Chen a9d1d7eeac 🧑‍💻 Add kernel API /api/ui/reloadTheme (#17206) 2026-03-13 20:37:28 +08:00
konti1334 2e6b13eec4 🎨 add POST /api/setting/setTheme endpoint (#17198)
Adds a minimal endpoint for activating a theme by name and mode without
requiring the caller to fetch and re-POST the entire appearance config blob.

Request body:
  { "theme": "<theme-dir-name>", "mode": 0|1 }

Behaviour:
- Sets both ThemeLight and ThemeDark to the supplied theme name
- Sets Mode (0 = light, 1 = dark)
- Calls InitAppearance() to validate the theme exists and reads its
  version from theme.json for cache-busting
- Saves conf.json
- Broadcasts the "setAppearance" WebSocket event so all open windows
  call loadAssets() and reload the theme CSS with the new ?v= parameter

Returns the full Appearance config (same shape as setAppearance).

Motivation: external tools (e.g. OS-level theme switchers) previously
had to GET /api/system/getConf, patch the appearance object, and POST
the entire blob to /api/setting/setAppearance.  /api/setting/setTheme
reduces that to a single, self-contained call with no dependencies.

Co-authored-by: You name <konty@github.com>
2026-03-13 17:28:45 +08:00
Jeffrey Chen dd42efdc23 🎨 Improve block link export (#17202)
* 🎨 Improve block link export https://github.com/siyuan-note/siyuan/issues/17193

* 🎨 Improve block link export https://github.com/siyuan-note/siyuan/issues/17193
2026-03-13 17:02:42 +08:00
Daniel dd6377b29c 🎨 https://github.com/siyuan-note/siyuan/issues/17179
Signed-off-by: Daniel <845765@qq.com>
2026-03-13 10:28:20 +08:00
Daniel 3ae8b2f3ae 🎨 https://github.com/siyuan-note/siyuan/issues/17157
Signed-off-by: Daniel <845765@qq.com>
2026-03-13 10:15:20 +08:00
Daniel 1a4109d1e5 🎨 https://github.com/siyuan-note/siyuan/pull/17196
Signed-off-by: Daniel <845765@qq.com>
2026-03-13 09:30:59 +08:00
Daniel 3f944d0d75 🎨 https://github.com/siyuan-note/siyuan/pull/17196
Signed-off-by: Daniel <845765@qq.com>
2026-03-13 09:09:45 +08:00
konti1334 f0f2bdd2c1 ✨ Broadcast ws-main setBlockAttrs event after API call https://github.com/siyuan-note/siyuan/issues/17179 (#17196)
Co-authored-by: You name <konty@github.com>
2026-03-13 08:56:09 +08:00
Vanessa 8b1ff779ac ♻️ https://github.com/siyuan-note/siyuan/pull/16041 2026-03-12 21:08:11 +08:00
Yuxin Zhao 3facc37df9 Publish service supports document-level access control (#16041)
* 🎨 improve publish service https://github.com/siyuan-note/siyuan/issues/11928

* fix: change publish access storage

* 🎨 publish access control #16041

* fix: publish access in embed block and search

* fix: multiple lock in pubish service & insert locked content in publish service

* fix: multiple lock

* fix: password in embed block

* fix: locked and forbidden docs in gallery

* fix: dont use publish access block

* fix: attribute view of publish disabled docs

* fix: disable docs in table and gallery

* fix: locked docs in attribute view

* fix: purge publish access

* fix: disable docs in table and gallery groups

* fix: locked and disabled docs in attribute view, outline and preview

* fix: create publish_access.go

* fix: move publish auth to publish_access.go

* fix: tag and ref of locked docs

* fix: backlink of locked docs

* fix: search in locked docs

* fix: search history and asset

* fix: copy to markdown

* fix: hide command panel

* fix: publish access control in mobile

* fix: recent docs of invisible and locked docs

* fix: backlink in mobile

* fix: empty Tab

* fix: get locked and forbidden doc assets and files

* fix: refblock & asset

* fix: disable /api/file/sql in publish mode

* fix: publish access of kanban

* fix: adjustment for review

* fix: /api/filetree/setPublishAccess return error meesage

* fix: move the publishAccess button to the More Menu & revert the fix for barCommand/menuCommand

* fix: hotkey of command panel
2026-03-12 18:04:01 +08:00
Jeffrey Chen 60f783a3e8 Support setting document title to empty (#17110)
* 🎨 Support setting document title to empty

* 🎨 Support setting document title to empty

* 🎨 Support setting document title to empty

* 🎨 Support setting document title to empty
2026-03-12 10:47:12 +08:00
Jeffrey Chen 8b1cd2d5a3 ⚡ Improve exportTree https://github.com/siyuan-note/siyuan/issues/17178 (#17183) 2026-03-11 21:46:08 +08:00
Daniel 167c203d93 🎨 Fix https://github.com/siyuan-note/siyuan/issues/17180
Signed-off-by: Daniel <845765@qq.com>
2026-03-11 21:33:35 +08:00
Jeffrey Chen 90f0872b54 🎨 The database JSON file in the User Guide is ignored during synchronization and deleted when exiting the application (#17181) 2026-03-11 18:50:30 +08:00
Jeffrey Chen 3e808209e5 ♻️ Adjust some details (#17165) 2026-03-08 22:14:06 +08:00
Jeffrey Chen 2e8f6511e8 ♻️ Plugin existence by plugin.json and cleanup persisted info (#17162) 2026-03-08 18:29:15 +08:00
Jeffrey Chen 3cac07dfd9 ♻️ Unified marketplace Package Type Model (#17152) 2026-03-08 11:09:46 +08:00
Daniel 32622fee39 🔊 Add plugin load logging
Signed-off-by: Daniel <845765@qq.com>
2026-03-07 16:47:54 +08:00
Daniel 4abcb0d811 🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-06 17:56:00 +08:00
Jeffrey Chen 14c35bfa0c 🎨 Add the code-block class name when rendering code blocks in the market README (#17145) 2026-03-06 17:44:20 +08:00
Daniel d141c28700 🐛 The API insertBlock was not inserting completely via nextID https://github.com/siyuan-note/siyuan/issues/17149
Signed-off-by: Daniel <845765@qq.com>
2026-03-06 17:16:53 +08:00
Jeffrey Chen 10dfb0855f ♻️ Adjust template and widget search data structure (#17142) 2026-03-05 18:44:16 +08:00
Jeffrey Chen 487e27cb00 ♻️ refactor reloadPlugin (#17137) 2026-03-05 10:11:44 +08:00
Jeffrey Chen 5e0d1e64de ♻️ Normalize bazaar naming (#17136) 2026-03-04 22:47:44 +08:00
Jeffrey Chen 26c378a820 🎨 Unified file listener logic (#17134) 2026-03-04 22:33:35 +08:00
Daniel 36077ed5ce 🎨 Support configuring the floating window hover trigger delay https://github.com/siyuan-note/siyuan/pull/17123
Signed-off-by: Daniel <845765@qq.com>
2026-03-03 16:51:21 +08:00
Jeffrey Chen 75d29419c5 🐛 Unable to obtain the correct number of view entries when viewing unreferenced databases or historical databases (#17088) 2026-03-03 09:49:15 +08:00
Jeffrey Chen 104b634435 🎨 Unreferenced assets files and databases sorted by modification time (#17090)
* 🎨 Unreferenced assets files sorted by modification time

* 🐛 Unreferenced databases sorted by modification time
2026-03-03 00:06:23 +08:00
Daniel 498441c4c9 🎨 Improve lock screen interaction https://github.com/siyuan-note/siyuan/issues/17065
Signed-off-by: Daniel <845765@qq.com>
2026-03-02 23:56:37 +08:00
Jeffrey Chen 2739def842 🎨 Support configuring the floating window hover trigger delay (#17123)
* 🎨 Support configuring the floating window hover trigger delay

* 🎨 Support configuring the floating window hover trigger delay
2026-03-02 23:13:02 +08:00
Daniel d12754624d 🎨 Improve lock screen interaction https://github.com/siyuan-note/siyuan/issues/17065
Signed-off-by: Daniel <845765@qq.com>
2026-03-02 22:19:36 +08:00
Daniel 8b2151f7d0 🎨 Push exit event
Signed-off-by: Daniel <845765@qq.com>
2026-03-01 12:11:10 +08:00
Daniel 5b97a65151 🎨 Improve lock screen interaction https://github.com/siyuan-note/siyuan/issues/17065
Signed-off-by: Daniel <845765@qq.com>
2026-03-01 12:05:40 +08:00
Daniel 7c3536cb18 ♻️ Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-01 10:13:48 +08:00
Daniel 8c8aaa6a69 🐛 Outdent of list items causes database bind blocks to be deleted https://github.com/siyuan-note/siyuan/issues/17108
Signed-off-by: Daniel <845765@qq.com>
2026-02-27 10:28:37 +08:00
Jeffrey Chen f72cbf99a0 ♻️ Remove unused parameters (#17091) 2026-02-26 22:13:06 +08:00
Jeffrey Chen ce39730a10 🐛 Improve internal kernel API /api/block/getBlockKramdowns (#17106) 2026-02-26 09:06:59 +08:00
Daniel 398ae6fb23 🐛 https://github.com/siyuan-note/siyuan/issues/17079
Signed-off-by: Daniel <845765@qq.com>
2026-02-22 17:42:15 +08:00
Daniel 6b0732c99b 🐛 https://github.com/siyuan-note/siyuan/issues/17079#issuecomment-3940571835
Signed-off-by: Daniel <845765@qq.com>
2026-02-22 17:37:50 +08:00
Daniel c7dc67e055 🎨 Fix https://github.com/siyuan-note/siyuan/issues/17078
Signed-off-by: Daniel <845765@qq.com>
2026-02-22 11:33:11 +08:00
Daniel e17236b440 🐛 Fix https://github.com/siyuan-note/siyuan/issues/17079
Signed-off-by: Daniel <845765@qq.com>
2026-02-22 11:14:52 +08:00
Daniel 136a7f0d41 🐛 Fix https://github.com/siyuan-note/siyuan/issues/17076
Signed-off-by: Daniel <845765@qq.com>
2026-02-22 11:05:11 +08:00
Daniel 2010864576 🐛 Fix https://github.com/siyuan-note/siyuan/issues/17070
Signed-off-by: Daniel <845765@qq.com>
2026-02-21 11:59:53 +08:00
Daniel 72bce4036b 🐛 Fix https://github.com/siyuan-note/siyuan/issues/17070
Signed-off-by: Daniel <845765@qq.com>
2026-02-21 11:51:38 +08:00