mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
f6dd7722ad
commit
622b6d2c84
12 changed files with 27 additions and 8 deletions
|
|
@ -393,6 +393,7 @@
|
|||
"math": "Formula Block",
|
||||
"listItem": "List item",
|
||||
"superBlock": "Super block",
|
||||
"embedBlock": "Embed block",
|
||||
"expand": "Expand",
|
||||
"showDock": "Show Dock",
|
||||
"hideDock": "Hide Dock",
|
||||
|
|
@ -574,7 +575,6 @@
|
|||
"sync": "Sync",
|
||||
"syncNow": "Sync now",
|
||||
"waitSync": "The editing data has not been synchronized to the cloud",
|
||||
"cloudBook": "Cloud Notebook",
|
||||
"paymentSum": "Cumulatively paid",
|
||||
"refresh": "Refresh",
|
||||
"accountManage": "Account Manage",
|
||||
|
|
|
|||
|
|
@ -393,6 +393,7 @@
|
|||
"math": "Bloque de fórmula",
|
||||
"listItem": "Elemento de la lista",
|
||||
"superBlock": "Superbloque",
|
||||
"embedBlock": "Bloque incrustado",
|
||||
"expand": "Expandir",
|
||||
"showDock": "Mostrar Dock",
|
||||
"hideDock": "Ocultar Dock",
|
||||
|
|
@ -574,7 +575,6 @@
|
|||
"sync": "Sincronización",
|
||||
"syncNow": "Sincronizar ahora",
|
||||
"waitSync": "Los datos de edición no se han sincronizado con la nube",
|
||||
"cloudBook": "Cuaderno de notas en la nube",
|
||||
"paymentSum": "Pagado acumulativamente",
|
||||
"refresh": "Actualizar",
|
||||
"accountManage": "Gestión de la cuenta",
|
||||
|
|
|
|||
|
|
@ -393,6 +393,7 @@
|
|||
"math": "Bloc de formule",
|
||||
"listItem": "Élément de liste",
|
||||
"superBlock": "Superblock",
|
||||
"embedBlock": "Bloc intégré",
|
||||
"expand": "Élargir",
|
||||
"showDock": "Montrer le Dock",
|
||||
"hideDock": "Cacher le Dock",
|
||||
|
|
@ -574,7 +575,6 @@
|
|||
"sync": "Synchro",
|
||||
"syncNow": "Synchro maintenant",
|
||||
"waitSync": "Les données d'édition n'ont pas été synchronisées avec le cloud",
|
||||
"cloudBook": "Carnet de notes du Cloud",
|
||||
"paymentSum": "Cumulativement payé",
|
||||
"refresh": "Rafraîchir",
|
||||
"accountManage": "Gestion des comptes",
|
||||
|
|
|
|||
|
|
@ -393,6 +393,7 @@
|
|||
"math": "公式塊",
|
||||
"listItem": "列表項",
|
||||
"superBlock": "超級塊",
|
||||
"embedBlock": "嵌入塊",
|
||||
"expand": "展開",
|
||||
"showDock": "顯示停靠欄",
|
||||
"hideDock": "隱藏停靠欄",
|
||||
|
|
@ -574,7 +575,6 @@
|
|||
"sync": "同步",
|
||||
"syncNow": "立即同步",
|
||||
"waitSync": "編輯數據尚未同步到雲端",
|
||||
"cloudBook": "雲端筆記本",
|
||||
"payment": "累計已支付",
|
||||
"refresh": "重新整理",
|
||||
"accountManage": "帳號管理",
|
||||
|
|
|
|||
|
|
@ -393,6 +393,7 @@
|
|||
"math": "公式块",
|
||||
"listItem": "列表项",
|
||||
"superBlock": "超级块",
|
||||
"embedBlock": "嵌入块",
|
||||
"expand": "展开",
|
||||
"showDock": "显示停靠栏",
|
||||
"hideDock": "隐藏停靠栏",
|
||||
|
|
@ -574,7 +575,6 @@
|
|||
"sync": "同步",
|
||||
"syncNow": "立即同步",
|
||||
"waitSync": "编辑数据尚未同步到云端",
|
||||
"cloudBook": "云端笔记本",
|
||||
"paymentSum": "累计已支付",
|
||||
"refresh": "刷新",
|
||||
"accountManage": "账号管理",
|
||||
|
|
|
|||
|
|
@ -83,6 +83,13 @@ export const query = {
|
|||
<span class="fn__space"></span>
|
||||
<input class="b3-switch fn__flex-center" id="htmlBlock" type="checkbox"${window.siyuan.config.search.htmlBlock ? " checked" : ""}/>
|
||||
</label>
|
||||
<label class="fn__flex">
|
||||
<div class="fn__flex-1 b3-label__text">
|
||||
${window.siyuan.languages.embedBlock}
|
||||
</div>
|
||||
<span class="fn__space"></span>
|
||||
<input class="b3-switch fn__flex-center" id="embedBlock" type="checkbox"${window.siyuan.config.search.embedBlock ? " checked" : ""}/>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="b3-label">
|
||||
|
|
@ -226,6 +233,7 @@ export const query = {
|
|||
listItem: (query.element.querySelector("#listItem") as HTMLInputElement).checked,
|
||||
codeBlock: (query.element.querySelector("#codeBlock") as HTMLInputElement).checked,
|
||||
htmlBlock: (query.element.querySelector("#htmlBlock") as HTMLInputElement).checked,
|
||||
embedBlock: (query.element.querySelector("#embedBlock") as HTMLInputElement).checked,
|
||||
mathBlock: (query.element.querySelector("#mathBlock") as HTMLInputElement).checked,
|
||||
table: (query.element.querySelector("#table") as HTMLInputElement).checked,
|
||||
blockquote: (query.element.querySelector("#blockquote") as HTMLInputElement).checked,
|
||||
|
|
|
|||
|
|
@ -197,6 +197,7 @@ export const getLocalStorage = (cb:()=>void) => {
|
|||
blockquote: window.siyuan.config.search.blockquote,
|
||||
superBlock: window.siyuan.config.search.superBlock,
|
||||
paragraph: window.siyuan.config.search.paragraph,
|
||||
embedBlock: window.siyuan.config.search.embedBlock,
|
||||
}
|
||||
};
|
||||
defaultStorage[Constants.LOCAL_ZOOM] = 1;
|
||||
|
|
|
|||
|
|
@ -846,6 +846,7 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
|
|||
blockquote: window.siyuan.config.search.blockquote,
|
||||
superBlock: window.siyuan.config.search.superBlock,
|
||||
paragraph: window.siyuan.config.search.paragraph,
|
||||
embedBlock: window.siyuan.config.search.embedBlock,
|
||||
}
|
||||
}, config, edit);
|
||||
}
|
||||
|
|
@ -990,6 +991,13 @@ const addConfigFilterMenu = (config: ISearchOption, edit: Protyle, element: Elem
|
|||
<span class="fn__space"></span>
|
||||
<input id="removeAssets" class="b3-switch fn__flex-center" data-type="htmlBlock" type="checkbox"${config.types.htmlBlock ? " checked" : ""}>
|
||||
</label>
|
||||
<label class="fn__flex b3-label">
|
||||
<div class="fn__flex-1 fn__flex-center">
|
||||
${window.siyuan.languages.embedBlock}
|
||||
</div>
|
||||
<span class="fn__space"></span>
|
||||
<input id="removeAssets" class="b3-switch fn__flex-center" data-type="embedBlock" type="checkbox"${config.types.embedBlock ? " checked" : ""}>
|
||||
</label>
|
||||
</div>
|
||||
<div class="b3-dialog__action">
|
||||
<button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button><div class="fn__space"></div>
|
||||
|
|
|
|||
2
app/src/types/index.d.ts
vendored
2
app/src/types/index.d.ts
vendored
|
|
@ -85,6 +85,7 @@ interface ISearchOption {
|
|||
listItem: boolean
|
||||
codeBlock: boolean
|
||||
htmlBlock: boolean
|
||||
embedBlock: boolean
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -442,6 +443,7 @@ declare interface IConfig {
|
|||
sort: number
|
||||
}
|
||||
search: {
|
||||
embedBlock: boolean
|
||||
htmlBlock: boolean
|
||||
document: boolean
|
||||
heading: boolean
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ func (s *Search) TypeFilter() string {
|
|||
buf.WriteString(",")
|
||||
}
|
||||
// 无法搜索到 iframe 块、视频块和音频块 https://github.com/siyuan-note/siyuan/issues/3604
|
||||
buf.WriteString("'iframe','query_embed','video','audio',")
|
||||
buf.WriteString("'iframe','video','audio',")
|
||||
// 挂件块支持内置属性搜索 https://github.com/siyuan-note/siyuan/issues/4497
|
||||
buf.WriteString("'widget',")
|
||||
|
||||
|
|
|
|||
|
|
@ -398,7 +398,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
|||
WaitForWritingFiles()
|
||||
|
||||
if !force {
|
||||
SyncData(false, true, false)
|
||||
syncData(false, true, false)
|
||||
if 0 != ExitSyncSucc {
|
||||
exitCode = 1
|
||||
return
|
||||
|
|
|
|||
|
|
@ -1220,7 +1220,7 @@ func updateRefText(refNode *ast.Node, changedDefNodes map[string]*ast.Node) (cha
|
|||
func AutoIndexEmbedBlock() {
|
||||
for {
|
||||
task.AppendTask(task.DatabaseIndexEmbedBlock, autoIndexEmbedBlock)
|
||||
time.Sleep(30 * time.Second)
|
||||
time.Sleep(10 * time.Minute)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue