Commit Graph

1124 Commits

Author SHA1 Message Date
Jeffrey Chen
cce07ff01f 🎨 Improve some file operation APIs https://github.com/siyuan-note/siyuan/issues/17409 (#17460) 2026-04-11 20:22:19 +08:00
Jeffrey Chen
ca38872f11 🧑‍💻 Add kernel API /api/block/batchUpdateTaskListItemMarker https://github.com/siyuan-note/siyuan/issues/17451 (#17461) 2026-04-11 20:06:01 +08:00
Daniel
9fa3c8a2db 🐛 https://github.com/siyuan-note/siyuan/issues/17343#issuecomment-4223974591 https://github.com/siyuan-note/siyuan/issues/4658
Signed-off-by: Daniel <845765@qq.com>
2026-04-10 21:25:42 +08:00
Daniel
0ede0c7ce7 🧑‍💻 Add kernel API /api/block/updateTaskListItemMarker https://github.com/siyuan-note/siyuan/issues/17451
Signed-off-by: Daniel <845765@qq.com>
2026-04-10 21:15:04 +08:00
Daniel
46ce401552 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vw86-c94w-v3x4
Signed-off-by: Daniel <845765@qq.com>
2026-04-10 19:58:49 +08:00
Daniel
06d5ac7bd3 🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7m5h-w69j-qggg
Signed-off-by: Daniel <845765@qq.com>
2026-04-10 17:35:24 +08:00
Daniel
c1539878c8 ♻️ Move IsSubPath to gulu
Signed-off-by: Daniel <845765@qq.com>
2026-04-10 00:38:50 +08:00
Daniel
efed9d1604 🎨 https://github.com/siyuan-note/siyuan/issues/17409
Signed-off-by: Daniel <845765@qq.com>
2026-04-09 12:45:32 +08:00
Jeffrey Chen
68dde82a64 🐛 Only validate the name when the S3 bucket name changes https://ld246.com/article/1775665943744 (#17433) 2026-04-09 09:05:24 +08:00
Jeffrey Chen
e009b26d97 🧑‍💻 Add kernel API /api/file/workspaceCopyFiles (#17421) 2026-04-07 09:55:36 +08:00
Jeffrey Chen
698ee3d357 ♻️ Improve validation of some JSON parameters (#17412)
* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters

* 🎨 Improve validation of some JSON parameters
2026-04-05 17:03:13 +08:00
Jeffrey Chen
5c674d7249 ♻️ Replace interface{} with any (#17415) 2026-04-05 16:48:32 +08:00
Jeffrey Chen
209c29cdb0 ♻️ Migrate some JSON parameter extraction to util.ParseJsonArgs (#17400) 2026-04-04 08:53:54 +08:00
Jeffrey Chen
9256842fca ♻️ ParseJsonArg adds null value check (#17399) 2026-04-04 08:53:09 +08:00
Jeffrey Chen
064754128b ♻️ Replace time.Now().Sub(start) with time.Since(start) (#17401) 2026-04-04 08:48:32 +08:00
Daniel
7278f4dddb 🎨 https://github.com/siyuan-note/siyuan/issues/17393
Signed-off-by: Daniel <845765@qq.com>
2026-04-03 19:04:03 +08:00
Jeffrey Chen
0ee5fc385f Improve cloud configuration consistency (#17371)
* 🎨 Improve cloud configuration consistency

* 🎨 Improve cloud configuration consistency

* 🎨 Improve cloud configuration consistency

* 🎨 Improve cloud configuration consistency

* 🎨 Improve cloud configuration consistency

* 🎨 Improve cloud configuration consistency

* 🎨 Improve cloud configuration consistency

* 🎨 Improve cloud configuration consistency
2026-04-02 09:22:04 +08:00
Jeffrey Chen
9815ea5226 ♻️ Migrate some JSON parameter extraction to util.ParseJsonArgs (#17372) 2026-03-31 23:03:55 +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
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
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
71342abe99 ♻️ Code style: Omit explicit types and remove unused (blank identifier) parameters (#17310) 2026-03-22 11:30:20 +08:00
Jeffrey Chen
8dbe00d634 ♻️ Code style: Unused formal parameters (#17309) 2026-03-22 11:26:39 +08:00
Jeffrey Chen
afb3ad1447 ♻️ Code style: Redundant type casting (#17305) 2026-03-22 11:18:52 +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
fdd7285e90 ♻️ Code style: Redundant else branch (#17298) 2026-03-22 10:50:13 +08:00
iliya
31a1b17440 ♻️ kernel/api/broadcast: modernize with wg.Go (#17282) 2026-03-21 11:50:17 +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
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
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
Jeffrey Chen
26e72ea292 🎨 Use the util.FileURLToLocalPath function to convert file:// file links uniformly (#17239) 2026-03-17 09:04:37 +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
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
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
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
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