Commit Graph

894 Commits

Author SHA1 Message Date
Jeffrey Chen 349a8ddc98 ♻️ Code style: unused function (#17307)
* ♻️ Code style: unused function

* Refactor reload handling in processMessage

Refactor reload logic to handle scroll reset and maintain functionality for mobile and non-mobile environments.

* Add ReloadUIResetScroll function to websocket.go

---------

Co-authored-by: D <845765@qq.com>
2026-03-22 12:19:44 +08:00
Jeffrey Chen 9a62f8ee86 ♻️ Code style: deprecated elements (#17311) 2026-03-22 11:33:45 +08:00
Jeffrey Chen 71342abe99 ♻️ Code style: Omit explicit types and remove unused (blank identifier) parameters (#17310) 2026-03-22 11:30:20 +08:00
Jeffrey Chen fb263abded ♻️ Code style: type assertion or type switch on errors fails on wrapped errors (#17304) 2026-03-22 11:15:54 +08:00
Jeffrey Chen fdb1e4ac00 ♻️ Code style: Comparing with the equality operator fails on wrapped errors (#17303) 2026-03-22 11:11:25 +08:00
Jeffrey Chen 60fa7fe545 ♻️ Code style: Adjust comment formatting (#17299) 2026-03-22 11:05:22 +08:00
Jeffrey Chen fdd7285e90 ♻️ Code style: Redundant else branch (#17298) 2026-03-22 10:50:13 +08:00
iliya b77e174066 ♻️ kernel/util/path: remove unnecessary second val from loop (#17279) 2026-03-21 11:44:00 +08:00
iliya 12a21ecdea ♻️ kernel/util/misc: use raw string to avoid escaping more than 1 time (#17278) 2026-03-21 11:40:24 +08:00
iliya c592f9d88a ♻️ kernel/util/working: remove redundant return (#17280) 2026-03-21 11:37:14 +08:00
Daniel 1048a2bc38 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-3g9h-9hp4-654v
Signed-off-by: Daniel <845765@qq.com>
2026-03-18 09:37:19 +08:00
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
Jeffrey Chen a69ea3ef0d ♻️ Migrate some JSON parameter extraction to util.ParseJsonArgs (#17244)
v3.6.2
2026-03-18 09:10:39 +08:00
Daniel fe4523fff2 🔖 Release v3.6.1
Signed-off-by: Daniel <845765@qq.com>
2026-03-17 09:25:24 +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
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 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 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
Daniel fd6526133b 🔖 Release v3.6.0
Signed-off-by: Daniel <845765@qq.com>
2026-03-13 10:49:16 +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 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
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 40a4c25a78 🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-11 09:10:33 +08:00
Daniel 3e0dc24ef4 🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-10 16:31:15 +08:00
Daniel 297bd52670 🔖 Release v3.5.10
Signed-off-by: Daniel <845765@qq.com>
2026-03-10 10:52:36 +08:00
Daniel 257aa0ef44 🔒 getDynamicIcon interface XSS vulnerability https://github.com/siyuan-note/siyuan/issues/17166
https://github.com/siyuan-note/siyuan/security/advisories/GHSA-pmc9-f5qr-2pcr

Signed-off-by: Daniel <845765@qq.com>
2026-03-09 16:39:05 +08:00
Daniel 9c4b184bef 🔒 getDynamicIcon interface XSS vulnerability https://github.com/siyuan-note/siyuan/issues/17166
https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5hc8-qmg8-pw27

Signed-off-by: Daniel <845765@qq.com>
2026-03-09 16:39:04 +08:00
Daniel f7f05ffad1 🎨 Improve reindex
Signed-off-by: Daniel <845765@qq.com>
2026-03-09 11:25:05 +08:00
Daniel 6feb2bc8ec 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-2h2p-mvfx-868w
Signed-off-by: Daniel <845765@qq.com>
2026-03-06 16:41:03 +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
Daniel 259b37b881 🔖 Release v3.5.9
Signed-off-by: Daniel <845765@qq.com>
2026-03-03 10:16:22 +08:00
Daniel 6071ced2af 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-9r8w-vhmw-fwv8
Signed-off-by: Daniel <845765@qq.com>
2026-03-02 22:28:51 +08:00
Daniel 9ab6a7a9ab 🌐 Add Slovak (sk_SK) language support https://github.com/siyuan-note/siyuan/pull/17120
Signed-off-by: Daniel <845765@qq.com>
2026-03-02 17:14:19 +08:00
Davide Garberi 0cc061dec8 🎨 Fix network serving TLS on mobile devices (#17119)
* Until now, the TLS would only work via the fixed port proxy, which
   isn't used on mobile devices.
 * Move the logic for the multiplexer out of the fixed port logic
 * Use the newly moved multiplexer logic for the regular server as well,
   whenever the fixed port and the server port match.
2026-03-02 16:43:27 +08:00
Daniel 7c3536cb18 ♻️ Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-01 10:13:48 +08:00
Vanessa f7c4249461 🎨 kernel 2026-02-24 10:26:33 +08:00
Daniel fe411f2edf 🔖 Release v3.5.8
Signed-off-by: Daniel <845765@qq.com>
2026-02-24 09:51:20 +08:00
Daniel bd076a36a8 🎨 Assets cannot be exported on Windows https://github.com/siyuan-note/siyuan/issues/17045 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-c4jr-5q7w-f6r9
Signed-off-by: Daniel <845765@qq.com>
2026-02-16 11:58:59 +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 813f523dc6 🐛 Assets cannot be exported on Windows https://github.com/siyuan-note/siyuan/issues/17045
Signed-off-by: Daniel <845765@qq.com>
2026-02-16 11:21:29 +08:00
Daniel 56e3ae82bb 🔖 Release v3.5.7
Signed-off-by: Daniel <845765@qq.com>
2026-02-14 08:33:52 +08:00
Daniel d6920580b9 🔖 Release v3.5.6
Signed-off-by: Daniel <845765@qq.com>
2026-02-13 14:18:36 +08:00
Davide Garberi 83161400b4 🐛 cert: Fix IP addresses not being collected properly (#17028) 2026-02-13 10:02:31 +08:00
Daniel a38a4c80d2 🎨 Improve pandoc export
Signed-off-by: Daniel <845765@qq.com>
2026-02-12 17:38:26 +08:00
Daniel b59c6fda43 🎨 Improve pandoc export
Signed-off-by: Daniel <845765@qq.com>
2026-02-12 17:37:58 +08:00