From ebabd66ebc312c8c061c2131221102c73ef80ced Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 4 Mar 2024 23:07:01 +0800 Subject: [PATCH 1/3] :art: Database block support specified view https://github.com/siyuan-note/siyuan/issues/10443 --- kernel/model/attribute_view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 718fbf161..8bdf7cc27 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -1345,6 +1345,7 @@ func (tx *Transaction) doRemoveAttrViewView(operation *Operation) (ret *TxErr) { if 0 > index { index = 0 } + attrView.ViewID = attrView.Views[index].ID mirrorBlocks := av.GetMirrorBlockIDs(avID) mirrorBlockTree := map[string]*parse.Tree{} @@ -1399,7 +1400,6 @@ func (tx *Transaction) doRemoveAttrViewView(operation *Operation) (ret *TxErr) { } } - attrView.ViewID = attrView.Views[index].ID if err = av.SaveAttributeView(attrView); nil != err { logging.LogErrorf("save attribute view [%s] failed: %s", avID, err) return &TxErr{code: TxErrCodeWriteTree, msg: err.Error(), id: avID} From 9315ac1cf803323d49ac9efbbd37af68f70838c8 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 4 Mar 2024 23:07:32 +0800 Subject: [PATCH 2/3] :art: Database block support specified view https://github.com/siyuan-note/siyuan/issues/10443 --- kernel/model/attribute_view.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 8bdf7cc27..77acae96b 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -1345,7 +1345,12 @@ func (tx *Transaction) doRemoveAttrViewView(operation *Operation) (ret *TxErr) { if 0 > index { index = 0 } + attrView.ViewID = attrView.Views[index].ID + if err = av.SaveAttributeView(attrView); nil != err { + logging.LogErrorf("save attribute view [%s] failed: %s", avID, err) + return &TxErr{code: TxErrCodeWriteTree, msg: err.Error(), id: avID} + } mirrorBlocks := av.GetMirrorBlockIDs(avID) mirrorBlockTree := map[string]*parse.Tree{} @@ -1399,11 +1404,6 @@ func (tx *Transaction) doRemoveAttrViewView(operation *Operation) (ret *TxErr) { return } } - - if err = av.SaveAttributeView(attrView); nil != err { - logging.LogErrorf("save attribute view [%s] failed: %s", avID, err) - return &TxErr{code: TxErrCodeWriteTree, msg: err.Error(), id: avID} - } return } From b1029188940d2d29c4c546d7121076d382c1593b Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 4 Mar 2024 23:52:52 +0800 Subject: [PATCH 3/3] :memo: Update changelogs --- app/changelogs/v3.0.2/v3.0.2.md | 49 +++++++++++++++++++++++++ app/changelogs/v3.0.2/v3.0.2_zh_CHT.md | 50 ++++++++++++++++++++++++++ app/changelogs/v3.0.2/v3.0.2_zh_CN.md | 49 +++++++++++++++++++++++++ 3 files changed, 148 insertions(+) create mode 100644 app/changelogs/v3.0.2/v3.0.2.md create mode 100644 app/changelogs/v3.0.2/v3.0.2_zh_CHT.md create mode 100644 app/changelogs/v3.0.2/v3.0.2_zh_CN.md diff --git a/app/changelogs/v3.0.2/v3.0.2.md b/app/changelogs/v3.0.2/v3.0.2.md new file mode 100644 index 000000000..7077ab372 --- /dev/null +++ b/app/changelogs/v3.0.2/v3.0.2.md @@ -0,0 +1,49 @@ +## Overview + +This version supports listing of invalid block references, the mobile app supports taking pictures, and the database date field supports "relative to today" filtering. + +## Changelogs + +Below are the detailed changes in this version. + +### Enhancement + +* [Support listing blocks with invalid references in the search dialog](https://github.com/siyuan-note/siyuan/issues/10396) +* [Database block support specified view](https://github.com/siyuan-note/siyuan/issues/10443) +* [Improve database view switching](https://github.com/siyuan-note/siyuan/issues/10448) +* [Support database date field relative to today's filtering](https://github.com/siyuan-note/siyuan/issues/10451) +* [Don't pop up the keyboard when selecting a doc for the flashcard on the mobile](https://github.com/siyuan-note/siyuan/issues/10457) +* [Improve the flashcard review UI when the mobile is in landscape mode](https://github.com/siyuan-note/siyuan/issues/10459) +* [Improve Tab Limit setting](https://github.com/siyuan-note/siyuan/issues/10470) +* [Improve `Exit the application` UI on the mobile](https://github.com/siyuan-note/siyuan/issues/10473) +* [Use filtering and sorting of current view settings when exporting database blocks](https://github.com/siyuan-note/siyuan/issues/10474) +* [Improve doc tree expansion button scope on the mobile](https://github.com/siyuan-note/siyuan/issues/10477) +* [Support hiding database table view title](https://github.com/siyuan-note/siyuan/issues/10478) +* [Support taking photos for inserting on Android](https://github.com/siyuan-note/siyuan/issues/10479) +* [Limit KaTex macro maximum recursive parsing depth is 16](https://github.com/siyuan-note/siyuan/issues/10484) +* [Adding rows after setting the sort field in the database table view no longer fills in the default value](https://github.com/siyuan-note/siyuan/issues/10486) +* [Update document reference count after deleting reference](https://github.com/siyuan-note/siyuan/issues/10487) + +### Bugfix + +* [Document title rename escape ref anchor text exception](https://github.com/siyuan-note/siyuan/issues/10458) +* [Search type "Database" cannot be saved](https://github.com/siyuan-note/siyuan/issues/10462) +* [Unable to search audio, video blocks by asset path](https://github.com/siyuan-note/siyuan/issues/10468) +* [Unable to set up Azure OpenAI](https://github.com/siyuan-note/siyuan/issues/10469) +* [Full screen editor in dialog box cannot drag window after Esc](https://github.com/siyuan-note/siyuan/issues/10475) +* [Database table view sorts abnormally after deleting numeric values](https://github.com/siyuan-note/siyuan/issues/10476) +* [Unexpected spacing on the right of the editing area after resizing Alt+O outline](https://github.com/siyuan-note/siyuan/issues/10500) + +### Refactor + +* [Downgrade Electron v28.2.4](https://github.com/siyuan-note/siyuan/issues/10463) + +### Development + +* [Add parameter `reloadUI` for kernel API `/api/block/transferBlockRef`](https://github.com/siyuan-note/siyuan/issues/10456) +* [Database table view cell value adds `createdAt` and `updatedAt` fields](https://github.com/siyuan-note/siyuan/issues/10492) + +## Download + +* [B3log](https://b3log.org/siyuan/en/download.html) +* [GitHub](https://github.com/siyuan-note/siyuan/releases) diff --git a/app/changelogs/v3.0.2/v3.0.2_zh_CHT.md b/app/changelogs/v3.0.2/v3.0.2_zh_CHT.md new file mode 100644 index 000000000..a6398b463 --- /dev/null +++ b/app/changelogs/v3.0.2/v3.0.2_zh_CHT.md @@ -0,0 +1,50 @@ +## 概述 + +此版本支援列出失效的區塊引用,行動端支援拍照並插入,資料庫日期欄位支援「相對於今天」過濾。 + +## 變更記錄 + +以下是此版本中的詳細變更。 + +### 改進功能 + +* [支援閃卡設定複習模式](https://github.com/siyuan-note/siyuan/issues/10303) +* [顯示 Mermaid 錯誤日誌並降低渲染抖動](https://github.com/siyuan-note/siyuan/issues/10374) +* [支援 F13-32 快捷鍵配置](https://github.com/siyuan-note/siyuan/issues/10375) +* [`上方/下方新文件` 功能在筆記本等級自訂排序時可用](https://github.com/siyuan-note/siyuan/issues/10381) +* [改進刪除作業後的遊標位置](https://github.com/siyuan-note/siyuan/issues/10389) +* [改進分隔線下方空格刪除操作](https://github.com/siyuan-note/siyuan/issues/10393) +* [改進資料庫建立列時彈出視窗的效能](https://github.com/siyuan-note/siyuan/issues/10394) +* [浮窗中有選單時保持顯示](https://github.com/siyuan-note/siyuan/issues/10397) +* [關閉所有編輯器後更新大綱](https://github.com/siyuan-note/siyuan/issues/10400) +* [資料庫關聯欄位候選值不再受視圖過濾影響](https://github.com/siyuan-note/siyuan/issues/10411) +* [改進資料庫表格視圖選擇列互動](https://github.com/siyuan-note/siyuan/issues/10421) +* [遊標在行級工具列時不再觸發停靠列](https://github.com/siyuan-note/siyuan/issues/10427) +* [改進行動端 `+` 選單](https://github.com/siyuan-note/siyuan/issues/10430) +* [支援禁用清單項目圓點/數字點擊對焦](https://github.com/siyuan-note/siyuan/issues/10431) +* [唯讀模式下顯示嵌入區塊刷新按鈕](https://github.com/siyuan-note/siyuan/issues/10432) +* [資料庫表格檢視範本列支援讀取關聯、匯總、建立時間和更新時間列](https://github.com/siyuan-note/siyuan/issues/10442) +* [改進建立資料庫後遊標焦點](https://github.com/siyuan-note/siyuan/issues/10444) + +### 修復缺陷 + +* [無法設定 Azure OpenAI](https://github.com/siyuan-note/siyuan/issues/10390) +* [行級元素 Markdown 編輯異常](https://github.com/siyuan-note/siyuan/issues/10391) +* [匯出資料庫區塊時日期欄位未遵循結束時間開關設定](https://github.com/siyuan-note/siyuan/issues/10409) +* [貼為純文字時出現程式碼](https://github.com/siyuan-note/siyuan/issues/10435) +* [退出時關閉使用者指南但未關閉編輯器頁籤](https://github.com/siyuan-note/siyuan/issues/10441) + +### 開發重構 + +* [升級 Electron v29.0.1](https://github.com/siyuan-note/siyuan/issues/10406) + +### 開發者 + +* [改進內部核心 API `/api/attr/batchSetBlockAttrs`](https://github.com/siyuan-note/siyuan/issues/10401) +* [新增內部核心 API `/api/riff/batchSetRiffCardsDueTime`](https://github.com/siyuan-note/siyuan/issues/10423) +* [核心 API `/api/riff/getRiffCards` 新增參數 `pageSize`](https://github.com/siyuan-note/siyuan/issues/10445) + +## 下載 + +* [B3log](https://b3log.org/siyuan/download.html) +* [GitHub](https://github.com/siyuan-note/siyuan/releases) diff --git a/app/changelogs/v3.0.2/v3.0.2_zh_CN.md b/app/changelogs/v3.0.2/v3.0.2_zh_CN.md new file mode 100644 index 000000000..e55c1f3f1 --- /dev/null +++ b/app/changelogs/v3.0.2/v3.0.2_zh_CN.md @@ -0,0 +1,49 @@ +## 概述 + +此版本支援列出失效的區塊引用,行動端支援拍照並插入,資料庫日期欄位支援「相對於今天」過濾。 + +## 變更記錄 + +以下是此版本中的詳細變更。 + +### 改進功能 + +* [支援在搜尋對話方塊中列出失效的區塊參考](https://github.com/siyuan-note/siyuan/issues/10396) +* [資料庫區塊支援指定視圖](https://github.com/siyuan-note/siyuan/issues/10443) +* [改進資料庫視圖切換](https://github.com/siyuan-note/siyuan/issues/10448) +* [資料庫日期欄位支援相對於今天的過濾](https://github.com/siyuan-note/siyuan/issues/10451) +* [在移動到選擇閃卡文件後不再彈出鍵盤](https://github.com/siyuan-note/siyuan/issues/10457) +* [改良行動端橫屏時的閃卡複習介面](https://github.com/siyuan-note/siyuan/issues/10459) +* [改進頁籤限制設定](https://github.com/siyuan-note/siyuan/issues/10470) +* [改進行動端 `退出應用程式` 按鈕樣式](https://github.com/siyuan-note/siyuan/issues/10473) +* [匯出資料庫區塊時使用目前視圖設定的篩選和排序](https://github.com/siyuan-note/siyuan/issues/10474) +* [改進行動裝置文件樹展開按鈕區域](https://github.com/siyuan-note/siyuan/issues/10477) +* [支援隱藏資料庫表格視圖標題](https://github.com/siyuan-note/siyuan/issues/10478) +* [Android 端支援拍照插入圖片](https://github.com/siyuan-note/siyuan/issues/10479) +* [限制 KaTex 巨集最大遞歸解析深度為 16](https://github.com/siyuan-note/siyuan/issues/10484) +* [資料庫表格視圖存在過濾時新增行不再填入預設值](https://github.com/siyuan-note/siyuan/issues/10486) +* [取消引用後自動刷新文件引用計數](https://github.com/siyuan-note/siyuan/issues/10487) + +### 修復缺陷 + +* [文件標題重新命名導致錨文本轉義異常](https://github.com/siyuan-note/siyuan/issues/10458) +* [搜尋類型 "資料庫" 無法儲存](https://github.com/siyuan-note/siyuan/issues/10462) +* [無法透過路徑搜尋影片、音訊區塊](https://github.com/siyuan-note/siyuan/issues/10468) +* [無法設定 Azure OpenAI](https://github.com/siyuan-note/siyuan/issues/10469) +* [對話方塊中的全螢幕編輯器在 Esc 後無法拖曳視窗](https://github.com/siyuan-note/siyuan/issues/10475) +* [資料庫表格視圖刪除數字值後排序異常](https://github.com/siyuan-note/siyuan/issues/10476) +* [Alt+O 大綱大小拖曳後編輯器右側空白](https://github.com/siyuan-note/siyuan/issues/10500) + +### 開發重構 + +* [降級 Electron v28.2.4](https://github.com/siyuan-note/siyuan/issues/10463) + +### 開發者 + +* [核心 API `/api/block/transferBlockRef` 新增參數 `reloadUI`](https://github.com/siyuan-note/siyuan/issues/10456) +* [資料庫表格視儲存格值新增 `createdAt` 和 `updatedAt` 欄位](https://github.com/siyuan-note/siyuan/issues/10492) + +## 下載 + +* [B3log](https://b3log.org/siyuan/download.html) +* [GitHub](https://github.com/siyuan-note/siyuan/releases)