Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 支持浏览卡包内的闪卡 https://github.com/siyuan-note/siyuan/issues/6943

Liang Ding0f6915802a06
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json
index 68406e1d11..859c011084 100644
--- a/app/appearance/langs/en_US.json
+++ b/app/appearance/langs/en_US.json
@@ -1040,6 +1040,7 @@
"176": "SiYuan",
"177": "Exit application",
"178": "Access Authorization - SiYuan",
- "179": "The disk space may be insufficient. It is recommended to keep the free space of the disk where the workspace is located at more than twice the size of data"
+ "179": "The disk space may be insufficient. It is recommended to keep the free space of the disk where the workspace is located at more than twice the size of data",
+ "180": "Search content block does not exist"
}
}
diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json
index 250cdcb96e..93e9afda09 100644
--- a/app/appearance/langs/es_ES.json
+++ b/app/appearance/langs/es_ES.json
@@ -1040,6 +1040,7 @@
"176": "SiYuan",
"177": "Salir de la aplicación",
"178": "Autorización de acceso - SiYuan",
- "179": "El espacio en disco puede ser insuficiente. Se recomienda mantener el espacio libre del disco donde se encuentra el espacio de trabajo en más del doble del tamaño de los datos"
+ "179": "El espacio en disco puede ser insuficiente. Se recomienda mantener el espacio libre del disco donde se encuentra el espacio de trabajo en más del doble del tamaño de los datos",
+ "180": "El bloque de contenido de búsqueda no existe"
}
}
diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json
index 8dde2b23d3..0510a4efcd 100644
--- a/app/appearance/langs/fr_FR.json
+++ b/app/appearance/langs/fr_FR.json
@@ -1040,6 +1040,7 @@
"176": "SiYuan",
"177": "Quitter l'application",
"178": "Autorisation d'accès - SiYuan",
- "179": "L'espace disque peut être insuffisant. Il est recommandé de conserver l'espace libre du disque où se trouve l'espace de travail à plus de deux fois la taille des données"
+ "179": "L'espace disque peut être insuffisant. Il est recommandé de conserver l'espace libre du disque où se trouve l'espace de travail à plus de deux fois la taille des données",
+ "180": "Le bloc de contenu de recherche n'existe pas"
}
}
diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json
index 16c3458a41..a0dd617448 100644
--- a/app/appearance/langs/zh_CHT.json
+++ b/app/appearance/langs/zh_CHT.json
@@ -1040,6 +1040,7 @@
"176": "思源筆記",
"177": "退出應用",
"178": "訪問授權 - 思源筆記",
- "179": "磁碟空間可能不足,建議保持工作空間所在磁碟可用空間為 data 大小的 2 倍以上"
+ "179": "磁碟空間可能不足,建議保持工作空間所在磁碟可用空間為 data 大小的 2 倍以上",
+ "180": "不存在符合條件的內容塊"
}
}
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index 2a79b27440..c82a413b98 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -1040,6 +1040,7 @@
"176": "思源笔记",
"177": "退出应用",
"178": "访问授权 - 思源笔记",
- "179": "磁盘空间可能不足,建议保持工作空间所在磁盘可用空间为 data 大小的 2 倍以上"
+ "179": "磁盘空间可能不足,建议保持工作空间所在磁盘可用空间为 data 大小的 2 倍以上",
+ "180": "不存在符合条件的内容块"
}
}
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index 5d83d51cdf..1f7061e1c9 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -77,6 +77,15 @@ func GetFlashcards(deckID string, page int) (blocks []*Block, total, pageCount i
blocks = []*Block{}
return
}
+
+ for i, b := range blocks {
+ if nil == b {
+ blocks[i] = &Block{
+ ID: blockIDs[i],
+ Content: Conf.Language(180),
+ }
+ }
+ }
return
}