Commit Graph

1078 Commits

Author SHA1 Message Date
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
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
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
Jeffrey Chen
5fec46acd5 🎨 /api/bazaar/uninstallBazaarPlugin supports not passing the frontend parameter (#17173) 2026-03-10 18:49:58 +08:00
Daniel
3e0dc24ef4 🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-10 16:31:15 +08:00
Daniel
0cec542db2 🎨 Improve bazaar
Signed-off-by: Daniel <845765@qq.com>
2026-03-08 22:31:35 +08:00
Jeffrey Chen
465755e184 ♻️ Remove bazaar cache clear on appearance language change (#17160) 2026-03-08 15:13:43 +08:00
Jeffrey Chen
3cac07dfd9 ♻️ Unified marketplace Package Type Model (#17152) 2026-03-08 11:09:46 +08:00
Daniel
990ff0ec5e 🔒 Fix https://github.com/siyuan-note/siyuan/security/advisories/GHSA-f9cq-v43p-v523
Signed-off-by: Daniel <845765@qq.com>
2026-03-07 10:50:19 +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
3d5c24519b 🐛 Fix https://github.com/siyuan-note/siyuan/issues/17138
Signed-off-by: Daniel <845765@qq.com>
2026-03-06 08:44:31 +08:00
Daniel
091ec8991d 🐛 Fix https://github.com/siyuan-note/siyuan/issues/17138
Signed-off-by: Daniel <845765@qq.com>
2026-03-06 00:48:50 +08:00
Daniel
b8ee424d26 🎨 Support sending notifications on HarmonyOS https://github.com/siyuan-note/siyuan/issues/17125
Signed-off-by: Daniel <845765@qq.com>
2026-03-05 23:45:24 +08:00
Daniel
656e676c8b 🎨 Support sending notifications on HarmonyOS https://github.com/siyuan-note/siyuan/issues/17125
Signed-off-by: Daniel <845765@qq.com>
2026-03-05 23:45:23 +08:00
Jeffrey Chen
10dfb0855f ♻️ Adjust template and widget search data structure (#17142) 2026-03-05 18:44:16 +08:00
Daniel
5d98257e51 🎨 Support sending notifications on HarmonyOS https://github.com/siyuan-note/siyuan/issues/17125
Signed-off-by: Daniel <845765@qq.com>
2026-03-05 10:54:54 +08:00
Daniel
51295adb4b 🎨 Support sending notifications on Android https://github.com/siyuan-note/siyuan/issues/17114
Signed-off-by: Daniel <845765@qq.com>
2026-03-05 10:14:24 +08:00
Jeffrey Chen
487e27cb00 ♻️ refactor reloadPlugin (#17137) 2026-03-05 10:11:44 +08:00
Jeffrey Chen
26c378a820 🎨 Unified file listener logic (#17134) 2026-03-04 22:33:35 +08:00
Jeffrey Chen
17d49b481f ♻️ Bazaar adds parameter validation (#17132) 2026-03-04 20:48:12 +08:00
Daniel
d68bd5a793 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-6865-qjcf-286f
Signed-off-by: Daniel <845765@qq.com>
2026-03-04 11:48:09 +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
e878e5cc4b 🎨 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-02 23:28:49 +08:00
Daniel
3c6b784ffd 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5vwq-4757-x99q
Signed-off-by: Daniel <845765@qq.com>
2026-03-02 23:15:46 +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
c5bffb68f1 🎨 Support sending notifications on Android https://github.com/siyuan-note/siyuan/issues/17114
Signed-off-by: Daniel <845765@qq.com>
2026-03-02 16:55:13 +08:00
Daniel
c5931e6da1 🎨 Support sending notifications on Android https://github.com/siyuan-note/siyuan/issues/17114
Signed-off-by: Daniel <845765@qq.com>
2026-03-01 10:37:03 +08:00
Daniel
a7308d3c4f 🎨 Support sending notifications on Android https://github.com/siyuan-note/siyuan/issues/17114
Signed-off-by: Daniel <845765@qq.com>
2026-03-01 09:50:37 +08:00
Daniel
f07ae1fc75 🎨 Support sending notifications on Android https://github.com/siyuan-note/siyuan/issues/17114
Signed-off-by: Daniel <845765@qq.com>
2026-03-01 09:50:37 +08:00
Jeffrey Chen
f72cbf99a0 ♻️ Remove unused parameters (#17091) 2026-02-26 22:13:06 +08:00
Jeffrey Chen
31dbd553a5 🎨 Improve /api/attr/setBlockAttrs and /api/attr/batchSetBlockAttrs (#17027) 2026-02-17 13:35:26 +08:00
Jeffrey Chen
ca41244188 🎨 Support copying file in the asset menu on Windows and macOS (#17049) 2026-02-16 11:26:13 +08:00
Daniel
652a9eab73 🧑‍💻 Improve file API https://github.com/siyuan-note/siyuan/issues/17016
Signed-off-by: Daniel <845765@qq.com>
2026-02-12 00:08:45 +08:00
Daniel
7aaa7c544f ✏️ Fix typo
Signed-off-by: Daniel <845765@qq.com>
2026-02-06 11:13:42 +08:00
Daniel
89536ceb19 🎨 https://github.com/siyuan-note/siyuan/issues/11569#issuecomment-3828712765
Signed-off-by: Daniel <845765@qq.com>
2026-02-01 10:20:50 +08:00
Daniel
aa1893e3de 🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569
Signed-off-by: Daniel <845765@qq.com>
2026-01-29 22:58:21 +08:00
Daniel
efe11801ad 🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569
Signed-off-by: Daniel <845765@qq.com>
2026-01-29 10:15:57 +08:00
Davide Garberi
cff12611c0 🎨 Support HTTPS network serving (#16930)
* Add use TLS for network serving configuration option

* kernel: Implement TLS certificate generation

* kernel: server: Use https for fixed port proxy when needed

* Allow exporting the CA Certificate file

* Implement import and export of CA Certs

* kernel: fixedport: Use the same port for HTTP and HTTPS
2026-01-29 09:41:39 +08:00
Daniel
a5b863a4eb 🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569
Signed-off-by: Daniel <845765@qq.com>
2026-01-28 23:03:21 +08:00
Daniel
d7f790755e 🔒 Fix https://github.com/siyuan-note/siyuan/security/advisories/GHSA-c4jr-5q7w-f6r9
Signed-off-by: Daniel <845765@qq.com>
2026-01-28 21:42:30 +08:00
Daniel
399a38893e 🔒 Fix https://github.com/siyuan-note/siyuan/security/advisories/GHSA-f72r-2h5j-7639
Signed-off-by: Daniel <845765@qq.com>
2026-01-28 21:24:36 +08:00
Daniel
7c9acda465 🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569
Signed-off-by: Daniel <845765@qq.com>
2026-01-28 21:19:10 +08:00
Daniel
5c4660f520 🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569
Signed-off-by: Daniel <845765@qq.com>
2026-01-28 21:09:39 +08:00
Daniel
6c70144d7c 🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569
Signed-off-by: Daniel <845765@qq.com>
2026-01-28 21:09:39 +08:00
Daniel
34e3261bce 🎨 https://github.com/siyuan-note/siyuan/issues/16931#issuecomment-3808557014
Signed-off-by: Daniel <845765@qq.com>
2026-01-28 10:17:12 +08:00
Daniel
1fa674e430 🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569
Signed-off-by: Daniel <845765@qq.com>
2026-01-27 22:58:56 +08:00
Daniel
d36e9d7766 Revert "🎨 Implement HTTPS network serving (#16912)"
This reverts commit 43ea6757d5.
2026-01-27 14:16:16 +08:00