Commit graph

7378 commits

Author SHA1 Message Date
Jeffrey Chen
9815ea5226
♻️ Migrate some JSON parameter extraction to util.ParseJsonArgs (#17372) 2026-03-31 23:03:55 +08:00
Jeffrey Chen
a674b14806
🎨 Empty tags no longer appear in the tag panel https://github.com/siyuan-note/siyuan/issues/17367 (#17369)
Co-authored-by: D <845765@qq.com>
2026-03-31 22:14:00 +08:00
Daniel
52fc9bea6b
🐛 Images in the database assets fields are not displaying https://github.com/siyuan-note/siyuan/issues/17368
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-rx4h-526q-4458

Signed-off-by: Daniel <845765@qq.com>
2026-03-31 22:05:01 +08:00
Daniel
0fdf00f362
🎨 Empty tags no longer appear in the tag panel https://github.com/siyuan-note/siyuan/issues/17367
Signed-off-by: Daniel <845765@qq.com>
2026-03-31 20:10:42 +08:00
Daniel
a9caf1f2c7
🎨 Empty tags no longer appear in the tag panel https://github.com/siyuan-note/siyuan/issues/17367
Signed-off-by: Daniel <845765@qq.com>
2026-03-31 20:10:25 +08:00
Daniel
d8e33acb48
🎨 Empty tags no longer appear in the tag panel https://github.com/siyuan-note/siyuan/issues/17367
Signed-off-by: Daniel <845765@qq.com>
2026-03-31 20:02:05 +08:00
Daniel
ad79d83027
🎨 https://github.com/siyuan-note/siyuan/pull/17361
Signed-off-by: Daniel <845765@qq.com>
2026-03-31 18:21:31 +08:00
Jeffrey Chen
e6b4c29626
🎨 Improve Linux disk type detection (#17361)
Co-authored-by: D <845765@qq.com>
2026-03-31 18:14:32 +08:00
Daniel
1d44086109
🎨 https://github.com/siyuan-note/siyuan/pull/17361
Signed-off-by: Daniel <845765@qq.com>
2026-03-31 17:48:16 +08:00
Daniel
57466c341c
🔖 Release v3.6.2
Signed-off-by: Daniel <845765@qq.com>
2026-03-31 10:02:56 +08:00
Daniel
93817bee2f
⬆️ Upgrade kernel deps
Signed-off-by: Daniel <845765@qq.com>
2026-03-31 09:33:22 +08:00
Daniel
83bd6acf68
🐛 Escaping issues in attribute panel https://github.com/siyuan-note/siyuan/issues/17345
Signed-off-by: Daniel <845765@qq.com>
2026-03-31 00:10:42 +08:00
Daniel
c060539136
⬆️ Upgrade lute
Signed-off-by: Daniel <845765@qq.com>
2026-03-30 21:24:55 +08:00
Daniel
e602475349
⬆️ Upgrade lute
Signed-off-by: Daniel <845765@qq.com>
2026-03-30 20:59:12 +08:00
Daniel
bec2a00f95
🐛 https://github.com/siyuan-note/siyuan/issues/17345
Signed-off-by: Daniel <845765@qq.com>
2026-03-30 18:06:25 +08:00
Daniel
7c3d6b0f1a
🐛 https://github.com/siyuan-note/siyuan/issues/17345
Signed-off-by: Daniel <845765@qq.com>
2026-03-30 18:04:29 +08:00
Jeffrey Chen
5a4e6b6483
🎨 Bazaar cache invalidates following hash changes (#17320) 2026-03-30 12:16:20 +08:00
Daniel
1bc7f556ff
🐛 https://github.com/siyuan-note/siyuan/issues/17345
Signed-off-by: Daniel <845765@qq.com>
2026-03-30 12:10:30 +08:00
Daniel
f09953afc5
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-73g7-86qr-jrg3
Signed-off-by: Daniel <845765@qq.com>
2026-03-30 11:11:06 +08:00
Daniel
b941de9a5f
🎨 Clean code https://github.com/siyuan-note/siyuan/pull/17347
Signed-off-by: Daniel <845765@qq.com>
2026-03-30 10:52:35 +08:00
Jeffrey Chen
8b9ddfec65
🎨 Improve document data correction logic and performance (#17347)
* 🎨 Improve document data correction logic

* 🎨 Improve document data correction performance
2026-03-30 10:36:01 +08:00
Jiacheng
5b84279673
🎨 Support auto-convert pasted URL to clickable link format (#17338)
* feat: auto-convert pasted URL to clickable link format (#17337)

Agent-Logs-Url: https://github.com/bytemain/siyuan/sessions/cdea999d-27c0-4260-a0b4-519e011e6667

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>

* fix: use angle bracket URL syntax for markdown link safety

Agent-Logs-Url: https://github.com/bytemain/siyuan/sessions/cdea999d-27c0-4260-a0b4-519e011e6667

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>

* feat: add pasteURLAutoConvert editor setting to control URL auto-linking

Agent-Logs-Url: https://github.com/bytemain/siyuan/sessions/1b722c05-e69f-4964-89bb-7f928d5adeb3

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>

* refactor: reuse setInlineMark for paste URL auto-convert, matching Ctrl+K link handler pattern

Agent-Logs-Url: https://github.com/bytemain/siyuan/sessions/332d1b44-cebe-45b2-833e-72d7e3253a3d

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>

* refactor: extract shared resolveLinkDest and genLinkText utility functions

Agent-Logs-Url: https://github.com/bytemain/siyuan/sessions/316f674d-3ce9-4b40-8711-08edb8af1aec

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>

* Disable automatic URL conversion on paste

* feat: add stripScheme option to genLinkText - keep scheme for paste, strip for Ctrl+K

Agent-Logs-Url: https://github.com/bytemain/siyuan/sessions/960eaf33-f873-4709-8e63-8d9b473de4ee

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>

* Improve link handling in paste function

Refactor link handling in paste function to update range after setting inline mark.

* Fix return statement in paste.ts

* style: fix json tag alignment in Editor struct

* Update app/src/mobile/settings/editor.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(Link): handle URI decoding more safely in genLinkText

Add try-catch block to prevent URI decoding errors and make decoding optional

* feat(editor): add auto URL to link conversion on paste

Implement automatic conversion of pasted URLs to clickable links when the pasteURLAutoConvert setting is enabled. This improves user experience by eliminating the manual step of creating links for pasted URLs. The functionality is extracted into a separate function for better code organization and reuse.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-29 22:40:42 +08:00
Daniel
918d1bd9f9
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-ff66-236v-p4fg
Signed-off-by: Daniel <845765@qq.com>
2026-03-29 22:23:31 +08:00
Daniel
f2e6587120
🔨 Update kernel building script
Signed-off-by: Daniel <845765@qq.com>
2026-03-29 16:12:11 +08:00
Daniel
6c88fdb3a0
🎨 a1d2d0f1b0 (r180852112)
Signed-off-by: Daniel <845765@qq.com>
2026-03-28 20:16:29 +08:00
Daniel
c4b41e300e
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-c77m-r996-jr3q
Signed-off-by: Daniel <845765@qq.com>
2026-03-28 19:40:18 +08:00
Daniel
ebb7dd8511
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-68p4-j234-43mv
Signed-off-by: Daniel <845765@qq.com>
2026-03-28 19:37:37 +08:00
Daniel
a1d2d0f1b0
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-rx4h-526q-4458
Signed-off-by: Daniel <845765@qq.com>
2026-03-28 19:37:36 +08:00
Jeffrey Chen
ea69c9ab3c
🎨 Add kernel API /api/setting/setIcon (#17326) 2026-03-24 23:00:53 +08:00
Daniel
710548dc68
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-xmw9-6r43-x9ww
Signed-off-by: Daniel <845765@qq.com>
2026-03-23 19:10:25 +08:00
Daniel
b957c769df
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-34xj-66v3-6j83
Signed-off-by: Daniel <845765@qq.com>
2026-03-23 19:07:24 +08:00
Daniel
677063aa44
🎨 https://github.com/siyuan-note/siyuan/issues/17261
Signed-off-by: Daniel <845765@qq.com>
2026-03-22 16:26:19 +08:00
Daniel
ad66b5c6dd
♻️ https://github.com/siyuan-note/siyuan/pull/17302
Signed-off-by: Daniel <845765@qq.com>
2026-03-22 16:04:00 +08:00
Jeffrey Chen
c055028af0
♻️ Code style: Potential resource leak (#17313)
* ♻️ Code style: Potential resource leak

* 🎨 Still use f.Unlock()

---------

Co-authored-by: D <845765@qq.com>
2026-03-22 12:41:59 +08:00
Daniel
a8abfa5ddf
♻️ https://github.com/siyuan-note/siyuan/pull/17307
Signed-off-by: Daniel <845765@qq.com>
2026-03-22 12:26:51 +08:00
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
b3e844ef7c
♻️ Code style: Constant conditions (#17312) 2026-03-22 11:35:05 +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
Daniel
bd5873559b
♻️ https://github.com/siyuan-note/siyuan/pull/17309
Signed-off-by: Daniel <845765@qq.com>
2026-03-22 11:29:03 +08:00
Jeffrey Chen
8dbe00d634
♻️ Code style: Unused formal parameters (#17309) 2026-03-22 11:26:39 +08:00
Jeffrey Chen
64fd483ba7
♻️ Code style: Unused constants (#17308) 2026-03-22 11:24:07 +08:00
Jeffrey Chen
7ad7fa3cad
♻️ Code style: unused variable (#17306) 2026-03-22 11:20:52 +08:00
Jeffrey Chen
afb3ad1447
♻️ Code style: Redundant type casting (#17305) 2026-03-22 11:18:52 +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
Daniel
669577930a
♻️ https://github.com/siyuan-note/siyuan/pull/17302
Signed-off-by: Daniel <845765@qq.com>
2026-03-22 11:09:55 +08:00
Jeffrey Chen
6d95cd099f
♻️ Code style: The placeholder argument has an incorrect type (#17302) 2026-03-22 11:08:48 +08:00
Jeffrey Chen
bd1d45d437
♻️ Code style: Field assignment without explicit names (#17301) 2026-03-22 11:07:04 +08:00
Jeffrey Chen
5a27e25ca6
♻️ Code style: Format kernel/model/publish_access.go (#17300) 2026-03-22 11:05:48 +08:00
Jeffrey Chen
60fa7fe545
♻️ Code style: Adjust comment formatting (#17299) 2026-03-22 11:05:22 +08:00
Daniel
9497f5dc1b
🎨 Supports rolling back a specified file within a data snapshot https://github.com/siyuan-note/siyuan/issues/12355
Signed-off-by: Daniel <845765@qq.com>
2026-03-22 11:03:03 +08:00
Jeffrey Chen
fdd7285e90
♻️ Code style: Redundant else branch (#17298) 2026-03-22 10:50:13 +08:00
Daniel
246a499340
⬆️ Upgrade lute
Signed-off-by: Daniel <845765@qq.com>
2026-03-21 23:04:13 +08:00
Daniel
db7dd2e9e9
⬆️ Upgrade lute
Signed-off-by: Daniel <845765@qq.com>
2026-03-21 22:56:53 +08:00
Daniel
1667adb1c4
♻️ min(runtime.NumCPU(), n)
Signed-off-by: Daniel <845765@qq.com>
2026-03-21 11:59:42 +08:00
iliya
717a8e857c
♻️ kernel/model/index: optimizations (#17286)
* kernel/model/carddav: modernize with wg.Go

* kernel/model/carddav: remove unused code
2026-03-21 11:55:47 +08:00
iliya
4597117e56
♻️ modernize with wg.Go and remove unused code (#17285)
* kernel/model/caldav: modernize with wg.Go

* kernel/model/caldav: remove unused code
2026-03-21 11:55:13 +08:00
iliya
c3808f4e77
♻️ kernel/search/find: modernize with wg.Go (#17289) 2026-03-21 11:53:41 +08:00
iliya
440f9e29ec
♻️ kernel/model/repository: refactor with wg.Go (#17288) 2026-03-21 11:53:35 +08:00
iliya
956bf40c6d
♻️ kernel/model/bazaar: modernize with wg.Go (#17284) 2026-03-21 11:53:03 +08:00
iliya
c918a967da
♻️ kernel/bazaar/stage: modernize with wg.Go (#17283)
* kernel/bazaar/stage: modernize with wg.Go

* kernel/filesys/tree: optimize with min
2026-03-21 11:52:37 +08:00
iliya
6bd344a4bb
♻️ kernel/model/index: remove redundant return (#17287) 2026-03-21 11:51:41 +08:00
iliya
31a1b17440
♻️ kernel/api/broadcast: modernize with wg.Go (#17282) 2026-03-21 11:50:17 +08:00
iliya
b77e174066
♻️ kernel/util/path: remove unnecessary second val from loop (#17279) 2026-03-21 11:44:00 +08:00
iliya
87b28d3bdc
♻️ kernel/model/import: refactor bytes.HasPrefix + bytes.TrimPrefix (#17270)
* kernel/model/import: refactor bytes.HasPrefix + bytes.TrimPrefix

with bytes.CutPrefix.

remove redundant return in htmlBlock2Inline func

* Refactor token trimming for HTML blocks and links

* Update import.go

* Fix token trimming for HTML block processing
2026-03-21 11:43:15 +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
iliya
322477e282
♻️ kernel/sql/queue_history: refactor time.Now().Sub with time.Since (#17277) 2026-03-21 11:27:47 +08:00
iliya
d3c78f75e7
♻️ kernel/server/serve: remove redundant returns (#17275) 2026-03-21 11:23:40 +08:00
iliya
ee1b22e3d2
♻️ kernel/server/port: refactor strings.Split with more optimized strings.SplitSeq (#17274) 2026-03-21 11:21:54 +08:00
iliya
780039a553
♻️ kernel/search/mark: optimize string concatenating with string builder (#17273) 2026-03-21 11:15:39 +08:00
iliya
87e540c475
♻️ kernel/model/sync: refactor HasPrefix + manual trimming and Index + m… (#17272)
* kernel/model/sync: refactor HasPrefix + manual trimming and Index + manual trimming

remove redundant returns.

rename arg in SetSyncPerception.

refactor errors.New fmt.Sprintf with fmt.Errorf

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-21 11:07:35 +08:00
iliya
0065886057
♻️ kernel/model/search: refactor for loops (#17271) 2026-03-21 11:03:18 +08:00
iliya
b45824d75a
♻️ kernel/model/history: remove unnecessary val in loop (#17269) 2026-03-21 10:49:41 +08:00
iliya
253b64fe3a
♻️ kernel/model/export: refactor manual loop with slices.Contains and manual copying with maps.Copy (#17268) 2026-03-21 10:48:37 +08:00
iliya
76d72e1334
♻️ kernel/model/assets: refactoring (#17267)
* kernel/model/assets: refactoring

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: D <845765@qq.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-21 10:42:38 +08:00
iliya
7c727bd140
♻️ kernel/model/assets: refactor with strings.Cut (#17266) 2026-03-21 10:37:10 +08:00
Daniel
009bb598b3
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-hhgj-gg9h-rjp7
Signed-off-by: Daniel <845765@qq.com>
2026-03-20 21:54:42 +08:00
Daniel
d90bcec19d
🎨 https://github.com/siyuan-note/siyuan/issues/17262
Signed-off-by: Daniel <845765@qq.com>
2026-03-20 21:29:14 +08:00
Daniel
edb3e6ff6c
🎨 https://github.com/siyuan-note/siyuan/issues/17261
Signed-off-by: Daniel <845765@qq.com>
2026-03-20 20:46:22 +08:00
Daniel
ccc4e48c79
🎨 https://github.com/siyuan-note/siyuan/issues/12355#issuecomment-4087872586
Signed-off-by: Daniel <845765@qq.com>
2026-03-19 14:00:06 +08:00
Daniel
49e2a672c7
🎨 Supports rolling back a specified file within a data snapshot https://github.com/siyuan-note/siyuan/issues/12355
Signed-off-by: Daniel <845765@qq.com>
2026-03-19 13:01:45 +08:00
Daniel
59da115cc9
♻️ Rename func
Signed-off-by: Daniel <845765@qq.com>
2026-03-19 13:01:45 +08:00
Daniel
974008f950
🔊 Print a warning log when calling a deprecated kernel API https://github.com/siyuan-note/siyuan/issues/17257
Signed-off-by: Daniel <845765@qq.com>
2026-03-19 10:01:02 +08:00
Daniel
f31ba9485c
🎨 Improve set publish
Signed-off-by: Daniel <845765@qq.com>
2026-03-18 12:43:55 +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
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
Daniel
3e0dc24ef4
🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2026-03-10 16:31:15 +08:00
Daniel
8ae15cb058
🎨 Improve harmonyos build script
Signed-off-by: Daniel <845765@qq.com>
2026-03-10 13:01:28 +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
b48202bbb8
🎨 Improve reindex
Signed-off-by: Daniel <845765@qq.com>
2026-03-09 11:43:25 +08:00
Daniel
f7f05ffad1
🎨 Improve reindex
Signed-off-by: Daniel <845765@qq.com>
2026-03-09 11:25:05 +08:00
Daniel
ecfb9329f9
🎨 https://github.com/siyuan-note/siyuan/issues/17158
Signed-off-by: Daniel <845765@qq.com>
2026-03-09 11:23:34 +08:00
Daniel
a0a9447458
♻️ Improve insert blocktree tx
Signed-off-by: Daniel <845765@qq.com>
2026-03-09 10:47:04 +08:00
Daniel
3515e68e24
🎨 Improve bazaar
Signed-off-by: Daniel <845765@qq.com>
2026-03-09 00:54:50 +08:00
Daniel
0cec542db2
🎨 Improve bazaar
Signed-off-by: Daniel <845765@qq.com>
2026-03-08 22:31:35 +08:00
Jeffrey Chen
3e808209e5
♻️ Adjust some details (#17165) 2026-03-08 22:14:06 +08:00
Daniel
5aa9f4b5ef
⬆️ Upgrade lute
Signed-off-by: Daniel <845765@qq.com>
2026-03-08 22:06:30 +08:00