This commit is contained in:
Liang Ding 2023-01-04 14:44:04 +08:00
parent c0b63dffe9
commit 611861f80b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 35 additions and 30 deletions

View file

@ -356,6 +356,7 @@
"moveToRight": "Move Right",
"copyProtocol": "Copy block hyperlink",
"uploadAssets2CDN": "Upload asset files to cloud",
"uploadAssets2CDNConfirmTip": "Are you sure to upload the assets in this document to the cloud?",
"notSupport1": "Does not support drag and drop across notebooks",
"keymapTip": "After some shortcut keys are modified, you need to click the refresh button to take effect",
"keymapTip2": "Use default shortcut keys",

View file

@ -356,6 +356,7 @@
"moveToRight": "Mover a la derecha",
"copyProtocol": "Copiar hipervínculo de bloque",
"uploadAssets2CDN": "Subir archivos de activos a la nube",
"uploadAssets2CDNConfirmTip": "¿Está seguro de cargar los recursos de este documento en la nube?",
"notSupport1": "No admite la función de arrastrar y soltar en los cuadernos",
"keymapTip": "Después de modificar algunas teclas de acceso directo, es necesario hacer clic en el botón de actualización para que surta efecto",
"keymapTip2": "Usar teclas de acceso directo por defecto",

View file

@ -356,6 +356,7 @@
"moveToRight": "vers la Droite",
"copyProtocol": "Copier bloc d'hyperliens",
"uploadAssets2CDN": "Transférer les fichiers asset vers le Cloud",
"uploadAssets2CDNConfirmTip": "Êtes-vous sûr de télécharger les ressources de ce document dans le cloud ?",
"notSupport1": "Le glisser-déposer entre carnets n'est pas pris en charge",
"keymapTip": "Après la modification de certaines touches de raccourci, vous devez cliquer sur le bouton d'actualisation pour prendre effet",
"keymapTip2": "Utiliser les touches de raccourci par défaut",

View file

@ -356,6 +356,7 @@
"moveToRight": "向右移",
"copyProtocol": "複製塊超連結",
"uploadAssets2CDN": "上傳資料檔到圖床",
"uploadAssets2CDNConfirmTip": "確定將該文檔內的資源文件上傳到圖床嗎?",
"notSupport1": "不支援跨筆記本進行拖拽",
"keymapTip": "部分快捷鍵修改後需點擊刷新按鈕後才能生效",
"keymapTip2": "使用預設快捷鍵",

View file

@ -356,6 +356,7 @@
"moveToRight": "向右移",
"copyProtocol": "复制块超链接",
"uploadAssets2CDN": "上传资源文件到图床",
"uploadAssets2CDNConfirmTip": "确定将该文档内的资源文件上传到图床吗?",
"notSupport1": "不支持跨笔记本进行拖拽",
"keymapTip": "部分快捷键修改后需点击刷新按钮后才能生效",
"keymapTip2": "使用默认快捷键",

View file

@ -231,36 +231,6 @@ export class Breadcrumb {
}
}
if (!protyle.disabled) {
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.uploadAssets2CDN,
icon: "iconCloud",
click() {
if (!needSubscribe()) {
confirmDialog("🚀 " + window.siyuan.languages.uploadAssets2CDN, window.siyuan.languages.uploadAssets2CDNConfirmTip, () => {
fetchPost("/api/asset/uploadCloud", {id: protyle.block.parentID});
});
}
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.netImg2LocalAsset,
icon: "iconTransform",
accelerator: window.siyuan.config.keymap.editor.general.netImg2LocalAsset.custom,
click() {
netImg2LocalAssets(protyle);
}
}).element);
if (!needSubscribe("")) {
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.share2Liandi,
icon: "iconLiandi",
click() {
confirmDialog("🚀 " + window.siyuan.languages.share2Liandi, window.siyuan.languages.share2LiandiConfirmTip, () => {
fetchPost("/api/export/export2Liandi", {id: protyle.block.parentID});
});
}
}).element);
}
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.optimizeTypography,
icon: "iconFormat",
@ -293,6 +263,36 @@ export class Breadcrumb {
});
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.netImg2LocalAsset,
icon: "iconTransform",
accelerator: window.siyuan.config.keymap.editor.general.netImg2LocalAsset.custom,
click() {
netImg2LocalAssets(protyle);
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.uploadAssets2CDN,
icon: "iconCloud",
click() {
if (!needSubscribe()) {
confirmDialog("📦 " + window.siyuan.languages.uploadAssets2CDN, window.siyuan.languages.uploadAssets2CDNConfirmTip, () => {
fetchPost("/api/asset/uploadCloud", {id: protyle.block.parentID});
});
}
}
}).element);
if (!needSubscribe("")) {
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.share2Liandi,
icon: "iconLiandi",
click() {
confirmDialog("🚀 " + window.siyuan.languages.share2Liandi, window.siyuan.languages.share2LiandiConfirmTip, () => {
fetchPost("/api/export/export2Liandi", {id: protyle.block.parentID});
});
}
}).element);
}
}
if (!protyle.scroll?.element.classList.contains("fn__none")) {
window.siyuan.menus.menu.append(new MenuItem({