Commit Graph

327 Commits

Author SHA1 Message Date
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 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 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
Jeffrey Chen e009b26d97 🧑‍💻 Add kernel API /api/file/workspaceCopyFiles (#17421) 2026-04-07 09:55: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 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 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 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 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 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
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 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 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 7aaa7c544f ✏️ Fix typo
Signed-off-by: Daniel <845765@qq.com>
2026-02-06 11:13:42 +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
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 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 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
Davide Garberi 43ea6757d5 🎨 Implement HTTPS network serving (#16912)
* 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
2026-01-27 12:59:11 +08:00
Jeffrey Chen b0f71123a3 Improve recent documents handling (#16727)
* merge

* Update RecentDoc struct to make timestamp fields optional

* GetDoc is solely responsible for retrieving document content and does not handle business logic

* Remove RemoveRecentDoc function and its calls from multiple files to streamline document handling

* Ensure the API correctly returns an empty array, add deduplication logic, and remove redundant sorting steps when updating fields

* 🎨 Supports configuring the maximum number of `Recent documents` to be listed https://github.com/siyuan-note/siyuan/issues/16720

* merge

* 🎨 Supports configuring the maximum number of `Recent documents` to be listed https://github.com/siyuan-note/siyuan/issues/16720

* 🐛 Fix browsing time not sorted

* 🎨 Supports configuring the maximum number of `Recent documents` to be listed https://github.com/siyuan-note/siyuan/issues/16720

* merge

* remove async

* try catch
2026-01-21 08:52:05 +08:00
Daniel 65532aec99 🎨 Support exporting .sy.zip after selecting multiple documents https://github.com/siyuan-note/siyuan/issues/14484
Signed-off-by: Daniel <845765@qq.com>
2026-01-16 13:52:32 +08:00
Daniel 941e153a4b 🎨 Supports cleaning temporary files https://github.com/siyuan-note/siyuan/issues/16745
Signed-off-by: Daniel <845765@qq.com>
2026-01-09 09:28:09 +08:00
Daniel 58bb751cd4 🎨 Supports exporting a code block as a file https://github.com/siyuan-note/siyuan/pull/16774
Signed-off-by: Daniel <845765@qq.com>
2026-01-07 15:33:02 +08:00
Vip 89a6dd6fa9 🧑‍💻 Add internal kernel API /api/block/getBlockKramdowns (#16751) 2026-01-02 11:12:37 +08:00
Daniel 7dc84e5447 🎨 https://github.com/siyuan-note/siyuan/issues/16664#issuecomment-3694774305
Signed-off-by: Daniel <845765@qq.com>
2025-12-28 22:13:58 +08:00
Daniel d1b62c1b3e 🎨 https://github.com/siyuan-note/siyuan/issues/16664#issuecomment-3694774305
Signed-off-by: Daniel <845765@qq.com>
2025-12-28 22:13:58 +08:00
Daniel 1c48345150 🧑‍💻 Fix https://github.com/siyuan-note/siyuan/issues/16654
Signed-off-by: Daniel <845765@qq.com>
2025-12-21 18:42:50 +08:00
Jeffrey Chen 4c2684d11d 🧑‍💻 Add internal kernel API /api/block/getBlockDOMWithEmbed and /api/block/getBlockDOMsWithEmbed (#16237)
* 🎨 Add internal kernel API `/api/block/getBlockDOMWithEmbed` and `/api/block/getBlockDOMsWithEmbed`

fix https://github.com/siyuan-note/siyuan/issues/16021

* 🎨 Add internal kernel API `/api/block/getBlockDOMWithEmbed` and `/api/block/getBlockDOMsWithEmbed`

fix https://github.com/siyuan-note/siyuan/issues/16021
2025-10-29 15:27:19 +08:00
Daniel fc4cadfd58 🎨 https://github.com/siyuan-note/siyuan/issues/16206
Signed-off-by: Daniel <845765@qq.com>
2025-10-28 20:44:19 +08:00
Jeffrey Chen 90a447f914 🎨 Improve exporting document HTML (#16219)
* 🎨 The browser-side supports exporting document HTML

fix https://github.com/siyuan-note/siyuan/issues/16213

* 修复导出 HTML 时引入资源没有使用相对路径,修复文档导出 HTML/PDF 时缺失图标

fix https://github.com/siyuan-note/siyuan/issues/16217

fix https://github.com/siyuan-note/siyuan/issues/16216 01

* 修复文档导出 HTML/PDF 时冗余图标

fix https://github.com/siyuan-note/siyuan/issues/16216 02
2025-10-28 09:28:56 +08:00
Daniel d154b05083 🧑‍💻 Add an internal kernel API /api/outline/getDocOutlineAndStorage https://github.com/siyuan-note/siyuan/issues/16206
Signed-off-by: Daniel <845765@qq.com>
2025-10-27 17:14:38 +08:00
Achuan-2 d9e0c56a47 Improve Recent documents (#15824)
* ✨ Improve Recent documents
基于文档最近浏览时间进行排序

* ✨ 支持显示最近关闭文档

* ✨ 支持显示最近关闭文档

* ✨ 支持显示最近关闭文档

* ✨ 支持显示最近关闭文档

* ✨ 支持显示最近关闭文档

* ✨ 支持显示最近关闭文档

* ✨支持Ctrl+Shift+T打开最近关闭的文档

* 🎨 clean code

* 🔥 移除表格插入行/列的默认快捷键

* ✨ 最近文档支持显示最近修改文档

* 🎨

* ✨ 最近文档支持查看最近打开

* 🎨

* ⏪

* Update win-build.bat
2025-10-24 11:12:14 +08:00
Daniel 950f392217 🎨 https://github.com/siyuan-note/siyuan/issues/16149
Signed-off-by: Daniel <845765@qq.com>
2025-10-20 10:49:16 +08:00
Achuan-2 7545c2517f Improve the outline panel (#15814)
* ✨ 实现大纲持久化
- 添加折叠状态变化的实时保存功能
- 在文档更新时恢复折叠状态
- 保存拖拽前的折叠状态并在拖拽后恢复
- 更新本地存储结构以支持折叠状态

* 🎨 clean code

* ✨ 在`data/storage`文件夹下创建`outline/${docID}.json`文件,存储标题outline展开信息

* ✨ alt click折叠/展开统计标题

* ✨添加层级控制功能
- 新增层级控制滑条,允许用户展开指定层级

* 🌐 添加多语言支持的展开层级功能

* ✨ f添加层级重置显示功能
- 新增 resetLevelDisplay 方法以重置层级显示状态
- 更新层级控制的初始化逻辑,默认不显示层级
- 在文档切换时重置层级显示状态

* ✨优化层级控制功能
- 添加用户主动层级控制标记
- 修改层级显示重置逻辑,仅在非用户操作时重置
- 更新层级控制滑条的点击事件处理

* ♻️ 重构大纲存储逻辑
- 合并大纲存储为单一文件 outline.json

* ♻️ outline.json 单行存储

* ♻️ outline.json参考recent-doc.json,只存储前1000个文档信息,每次新增信息会把数据放在最前面

* ♻️单行存储json

* ♻️ 增加outline.json存储限制至2000个

* ✨ 新增`保持当前标题展开`按钮,`保持全部展开`改为`全部展开`按钮

* ✨ 保持当前标题展开优化
- 超过两级折叠,也能都展开
- 如果父节点折叠,展开时自动折叠兄弟节点,只展开当前节点路径,如果父节点是展开状态,则不影响兄弟节点折叠状态

* 🔥 移除层级文本

* ✨ 右键点击toggle时展开所有子标题

* ✨ 右键click点击折叠图标,会折叠/展开所有子标题

* ✨ 大纲支持筛选功能

* ✨ feat(大纲): 优化筛选功能以显示所有子标题
- 添加 showAllDescendants 函数以显示所有子标题
- 修改 processUL 函数以在父标题命中时显示所有子标题
- 确保未命中的子标题隐藏

* ✨ 优化大纲筛选

- ✅如果标题命中筛选,这个标题的所有父标题展开,以显示出这个标题位置
- ✅如果父标题命中筛选,子项都没有命中筛选,则折叠全部子项(依然可以展开显示)
- ✅如果父标题命中筛选,子项也有命中筛选,则展开命中的子项,其他无关子项隐藏

* 💄 展开层级改为按钮,原先的圆点样式碍眼

* 💄 展开层级改为按钮,原先的圆点样式碍眼

* 💄 style(菜单): 优化展开层级菜单的样式和位置
- 添加图标以增强可视化
- 调整菜单弹出位置以改善用户体验

* ♻️ refactor(大纲): 优化标题级别获取逻辑
- 调整展开到指定层级的逻辑,使用标题级别进行判断

* 🎨

* ✨ feat(大纲): 添加右键菜单功能
- 实现右键点击标题时显示上下文菜单
- 增加标题升级、降级、插入、删除等操作
- 基于标题级别展开/折叠同级标题

* ✨ feat(大纲): 添加子标题功能
- 在右键菜单中添加“添加子标题”选项
- 实现子标题的添加逻辑,支持最大级别为H6
- 使用当前标题作为父标题,插入新子标题

* ✨ feat(大纲): "添加子标题"确保父标题展开状态

* ✨ feat(大纲): 使用expandIds方式保存父标题展开状态
- 确保父标题保持展开状态
- 保存展开状态到持久化存储
- 移除冗余的状态保存逻辑

* ✨ feat(大纲): 调整右键菜单顺序,将“全部折叠”功能移至“全部展开”之后

* 🌐 i18n optimization
2025-10-15 10:01:47 +08:00
Daniel e22d373ba8 🧑‍💻 Add internal kernel API /api/ui/reloadIcon https://github.com/siyuan-note/siyuan/issues/16008
Signed-off-by: Daniel <845765@qq.com>
2025-10-03 15:50:43 +08:00
Daniel cf3e9ca081 🎨 Add a kernel internal api /api/av/getAttributeViewKeysByID
Signed-off-by: Daniel <845765@qq.com>
2025-09-30 21:20:13 +08:00
Daniel 3f7421a393 🎨 Add scenes for expanding and collapsing headings https://github.com/siyuan-note/siyuan/issues/15726
Signed-off-by: Daniel <845765@qq.com>
2025-09-15 22:07:53 +08:00
Daniel fe9aba122c 🎨 Some APIs will undergo breaking changes 一些 API 将发生破坏性变更 https://github.com/siyuan-note/siyuan/issues/15727
Signed-off-by: Daniel <845765@qq.com>
2025-09-15 17:58:38 +08:00
Daniel 07cfc58642 🎨 The database rollup field supports using the relation field https://github.com/siyuan-note/siyuan/issues/15851
Signed-off-by: Daniel <845765@qq.com>
2025-09-15 17:55:58 +08:00
Daniel c55c413365 🎨 Copy/Cut folded heading changed to copy/cut Headings and Bottom Blocks and support multiple headings copy/cut https://github.com/siyuan-note/siyuan/issues/8019 2025-09-06 17:10:43 +08:00
Daniel ab66716178 🧑‍💻 Add internal kernel API /api/av/getAttributeViewBoundBlockIDs and getAttributeViewItemIDs https://github.com/siyuan-note/siyuan/issues/15708 2025-08-30 19:09:09 +08:00
Daniel 29ac895046 🎨 Manually optimize the data index to reduce space usage and improve performance https://github.com/siyuan-note/siyuan/issues/15663 2025-08-25 16:24:16 +08:00