Commit Graph

7191 Commits

Author SHA1 Message Date
Daniel 501571c2d2 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vm69-h85x-8p85
Signed-off-by: Daniel <845765@qq.com>
2026-03-18 09:18:52 +08:00
Yuxin Zhao 7781e6d97b 🔒 Fix https://github.com/siyuan-note/siyuan/issues/17236 (#17242) 2026-03-18 09:14:19 +08:00
Jeffrey Chen 907baba895 ♻️ Remove unused callback parameter (#17245) 2026-03-18 09:13:38 +08:00
Jeffrey Chen a69ea3ef0d ♻️ Migrate some JSON parameter extraction to util.ParseJsonArgs (#17244)
v3.6.2
2026-03-18 09:10:39 +08:00
Daniel 6b073623c7 🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-17 20:15:57 +08:00
Daniel fe4523fff2 🔖 Release v3.6.1
Signed-off-by: Daniel <845765@qq.com>
2026-03-17 09:25:24 +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
Daniel 60e6b12708 🔖 Release v3.6.1
Signed-off-by: Daniel <845765@qq.com>
2026-03-17 09:01:34 +08:00
Daniel ca51c4cf8a 🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-17 08:58:05 +08:00
Jeffrey Chen 3375ee4ab5 🎨 Improve database preview image loading (#17237)
* 🎨 Improve database preview image loading https://github.com/siyuan-note/siyuan/issues/17229

* 🎨 Improve database preview image loading https://github.com/siyuan-note/siyuan/issues/17229

* 🎨 Improve database preview image loading https://github.com/siyuan-note/siyuan/issues/17229
2026-03-17 08:56:58 +08:00
Jeffrey Chen badf73723e 🎨 Improve support for URL-encoded local file names (#17238) 2026-03-17 08:52:58 +08:00
Daniel d9489ba311 ⬆️ Upgrade kernel deps
Signed-off-by: Daniel <845765@qq.com>
2026-03-16 12:22:19 +08:00
Daniel d01d561875 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4mx9-3c2h-hwhg
Signed-off-by: Daniel <845765@qq.com>
2026-03-16 10:39:23 +08:00
Daniel 294b8b429d 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-fq2j-j8hc-8vw8
Signed-off-by: Daniel <845765@qq.com>
2026-03-16 10:22:14 +08:00
Daniel 5418bca557 ⬆️ Upgrade kernel deps
Signed-off-by: Daniel <845765@qq.com>
2026-03-15 20:45:46 +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
Daniel d5e2d0bce0 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-j7wh-x834-p3r7
Signed-off-by: Daniel <845765@qq.com>
2026-03-14 19:41:36 +08:00
Daniel b382f50e18 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v3mg-9v85-fcm7
Signed-off-by: Daniel <845765@qq.com>
2026-03-14 19:15:50 +08:00
Daniel 1e370e3735 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-xp2m-98x8-rpj6
Signed-off-by: Daniel <845765@qq.com>
2026-03-14 19:15:49 +08:00
Daniel 13b6d3d45e 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-rjhh-m223-9qqv
Signed-off-by: Daniel <845765@qq.com>
2026-03-14 12:12:32 +08:00
Daniel 5ee00907f0 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-qvvf-q994-x79v
Signed-off-by: Daniel <845765@qq.com>
2026-03-14 12:12:32 +08:00
Daniel 9914fd1d39 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-h5vh-m7fg-w5h6
Signed-off-by: Daniel <845765@qq.com>
2026-03-14 11:14:25 +08:00
Yuxin Zhao a6c54a4787 🔒 Improve the security of publish service (#17210)
* 🎨 fix https://github.com/siyuan-note/siyuan/issues/17201

* 🎨 fix /api/block/getBlockDOM, /api/block/getBlockDOMs, /api/block/getBlockDOMWithEmbed, /api/block/getBlockDOMsWithEmbed

* 🎨 fix publish access for /api/file/getFile
2026-03-14 11:05:46 +08:00
Daniel 5859cc222f 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4j3x-hhg2-fm2x
Signed-off-by: Daniel <845765@qq.com>
2026-03-13 21:30: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
Daniel fa44496086 🎨 https://github.com/siyuan-note/siyuan/issues/17157#issuecomment-4054604709
Signed-off-by: Daniel <845765@qq.com>
2026-03-13 20:33:48 +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 fd6526133b 🔖 Release v3.6.0
Signed-off-by: Daniel <845765@qq.com>
2026-03-13 10:49:16 +08:00
Daniel a6a56a6442 🎨 https://github.com/siyuan-note/siyuan/issues/17157
Signed-off-by: Daniel <845765@qq.com>
2026-03-13 10:42: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 65d4aaf041 Merge remote-tracking branch 'origin/dev' into dev 2026-03-12 21:08:31 +08:00
Vanessa 8b1ff779ac ♻️ https://github.com/siyuan-note/siyuan/pull/16041 2026-03-12 21:08:11 +08:00
Daniel 923d492248 🎨 Fix https://github.com/siyuan-note/siyuan/issues/17191
Signed-off-by: Daniel <845765@qq.com>
2026-03-12 19:17:21 +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
Daniel 9a344830b4 🎨 https://github.com/siyuan-note/siyuan/issues/17157#issuecomment-4039704018
Signed-off-by: Daniel <845765@qq.com>
2026-03-12 08:42:08 +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
Daniel 93b354ece8 🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-11 09:10:34 +08:00
Daniel 3284e10028 🔒 Fix https://github.com/siyuan-note/siyuan/security/advisories/GHSA-56cv-c5p2-j2wg
Signed-off-by: Daniel <845765@qq.com>
2026-03-11 09:10:34 +08:00
Daniel 40a4c25a78 🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-11 09:10:33 +08:00
Jeffrey Chen 5fec46acd5 🎨 /api/bazaar/uninstallBazaarPlugin supports not passing the frontend parameter (#17173) 2026-03-10 18:49:58 +08:00