Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-10-22 18:13:37 +08:00
commit 72d1a059ac
5 changed files with 24 additions and 11 deletions

View File

@ -124,7 +124,13 @@ Some features are only available to paid members, for more details please refer
## 🌟 Star History
[![Star History Chart](https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date)](https://star-history.com/#siyuan-note/siyuan&Date)
<a href="https://star-history.com/#siyuan-note/siyuan&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date" />
</picture>
</a>
## 🗺️ Roadmap

View File

@ -123,7 +123,13 @@ SiYuanは、プライバシーを最優先とする個人の知識管理シス
## 🌟 スター履歴
[![Star History Chart](https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date)](https://star-history.com/#siyuan-note/siyuan&Date)
<a href="https://star-history.com/#siyuan-note/siyuan&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date" />
</picture>
</a>
## 🗺️ ロードマップ

View File

@ -124,7 +124,13 @@
## 🌟 星标历史
[![Star History Chart](https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date)](https://star-history.com/#siyuan-note/siyuan&Date)
<a href="https://star-history.com/#siyuan-note/siyuan&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=siyuan-note/siyuan&type=Date" />
</picture>
</a>
## 🗺️ 路线图

View File

@ -811,7 +811,7 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0) => {
cellValue?.rollup?.contents?.forEach((item) => {
const rollupText = ["select", "mSelect", "mAsset", "checkbox", "relation"].includes(item.type) ? renderCell(item) : renderRollup(item);
if (rollupText) {
text += rollupText + ", ";
text += rollupText + " ";
}
});
if (text && text.endsWith(", ")) {
@ -820,7 +820,7 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0) => {
} else if (cellValue.type === "relation") {
cellValue?.relation?.contents?.forEach((item) => {
if (item && item.block) {
text += renderRollup(item) + ", ";
text += renderRollup(item) + " ";
}
});
if (text && text.endsWith(", ")) {

View File

@ -36,7 +36,6 @@ var (
operationQueue []*dbQueueOperation
dbQueueLock = sync.Mutex{}
txLock = sync.Mutex{}
isWriting = false
)
type dbQueueOperation struct {
@ -72,11 +71,7 @@ func FlushQueue() {
}
txLock.Lock()
isWriting = true
defer func() {
isWriting = false
txLock.Unlock()
}()
defer txLock.Unlock()
start := time.Now()