This commit is contained in:
parent
adb8f65c10
commit
2d52dbfd1c
8 changed files with 4 additions and 70 deletions
|
@ -313,14 +313,6 @@
|
|||
"aiContinueWrite": "Continue writing",
|
||||
"aiTranslate": "Translate",
|
||||
"aiExtractSummary": "Extract summary",
|
||||
"aiTranslate_zh_Hans": "Simplified Chinese",
|
||||
"aiTranslate_zh_Hant": "Traditional Chinese",
|
||||
"aiTranslate_ja_JP": "Japanese",
|
||||
"aiTranslate_ko_KR": "Korean",
|
||||
"aiTranslate_en_US": "English",
|
||||
"aiTranslate_es_ES": "Spanish",
|
||||
"aiTranslate_fr_FR": "French",
|
||||
"aiTranslate_de_DE": "German",
|
||||
"aiBrainStorm": "Brainstorm",
|
||||
"aiFixGrammarSpell": "Fix grammar, spelling and typos",
|
||||
"aiCustomAction": "Custom action...",
|
||||
|
|
|
@ -313,14 +313,6 @@
|
|||
"aiContinueWrite": "Continuar escribiendo",
|
||||
"aiTranslate": "Traducir",
|
||||
"aiExtractSummary": "Extraer resumen",
|
||||
"aiTranslate_zh_Hans": "Chino simplificado",
|
||||
"aiTranslate_zh_Hant": "Chino tradicional",
|
||||
"aiTranslate_ja_JP": "Japonés",
|
||||
"aiTranslate_ko_KR": "Coreano",
|
||||
"aiTranslate_en_US": "Inglés",
|
||||
"aiTranslate_es_ES": "Español",
|
||||
"aiTranslate_fr_FR": "Francés",
|
||||
"aiTranslate_de_DE": "Alemán",
|
||||
"aiBrainStorm": "Lluvia de ideas",
|
||||
"aiFixGrammarSpell": "Corregir gramática, ortografía y errores tipográficos.",
|
||||
"aiCustomAction": "Acción personalizada...",
|
||||
|
|
|
@ -313,14 +313,6 @@
|
|||
"aiContinueWrite": "Continuer à écrire",
|
||||
"aiTranslate": "Traduire",
|
||||
"aiExtractSummary": "Résumé de l'extrait",
|
||||
"aiTranslate_zh_Hans": "Chinois simplifié",
|
||||
"aiTranslate_zh_Hant": "chinois traditionnel",
|
||||
"aiTranslate_ja_JP": "Japonais",
|
||||
"aiTranslate_ko_KR": "Coréen",
|
||||
"aiTranslate_en_US": "Anglais",
|
||||
"aiTranslate_es_ES": "Espagnol",
|
||||
"aiTranslate_fr_FR": "Français",
|
||||
"aiTranslate_de_DE": "Allemand",
|
||||
"aiBrainStorm": "Remue-méninges",
|
||||
"aiFixGrammarSpell": "Correction de la grammaire, de l'orthographe et des fautes de frappe",
|
||||
"aiCustomAction": "Action personnalisée...",
|
||||
|
|
|
@ -313,14 +313,6 @@
|
|||
"aiContinueWrite": "續寫",
|
||||
"aiTranslate": "翻譯",
|
||||
"aiExtractSummary": "提取摘要",
|
||||
"aiTranslate_zh_Hans": "簡體中文",
|
||||
"aiTranslate_zh_Hant": "繁體中文",
|
||||
"aiTranslate_ja_JP": "日文",
|
||||
"aiTranslate_ko_KR": "韓文",
|
||||
"aiTranslate_en_US": "英文",
|
||||
"aiTranslate_es_ES": "西班牙文",
|
||||
"aiTranslate_fr_FR": "法文",
|
||||
"aiTranslate_de_DE": "德文",
|
||||
"aiBrainStorm": "頭腦風暴",
|
||||
"aiFixGrammarSpell": "修正語法、拼寫和錯別字",
|
||||
"aiCustomAction": "自定義操作...",
|
||||
|
|
|
@ -313,14 +313,6 @@
|
|||
"aiContinueWrite": "续写",
|
||||
"aiTranslate": "翻译",
|
||||
"aiExtractSummary": "提取摘要",
|
||||
"aiTranslate_zh_Hans": "简体中文",
|
||||
"aiTranslate_zh_Hant": "繁体中文",
|
||||
"aiTranslate_ja_JP": "日文",
|
||||
"aiTranslate_ko_KR": "韩文",
|
||||
"aiTranslate_en_US": "英文",
|
||||
"aiTranslate_es_ES": "西班牙文",
|
||||
"aiTranslate_fr_FR": "法文",
|
||||
"aiTranslate_de_DE": "德文",
|
||||
"aiBrainStorm": "头脑风暴",
|
||||
"aiFixGrammarSpell": "修正语法、拼写和错别字",
|
||||
"aiCustomAction": "自定义操作...",
|
||||
|
|
|
@ -861,14 +861,12 @@ app.whenReady().then(() => {
|
|||
ipcMain.on("siyuan-export-newwindow", (event, data) => {
|
||||
const parentWnd = getWindowByContentId(event.sender.id);
|
||||
// The PDF/Word export preview window automatically adjusts according to the size of the main window https://github.com/siyuan-note/siyuan/issues/10554
|
||||
const width = parentWnd.getBounds().width * 0.8;
|
||||
const height = parentWnd.getBounds().height * 0.8;
|
||||
const printWin = new BrowserWindow({
|
||||
parent: parentWnd,
|
||||
modal: false,
|
||||
show: true,
|
||||
width: width,
|
||||
height: height,
|
||||
width: Math.floor(parentWnd.getBounds().width * 0.8),
|
||||
height: Math.floor(parentWnd.getBounds().height * 0.8),
|
||||
resizable: false,
|
||||
frame: "darwin" === process.platform,
|
||||
icon: path.join(appDir, "stage", "icon-large.png"),
|
||||
|
|
|
@ -185,31 +185,6 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
|
|||
${window.siyuan.languages.aiContinueWrite}
|
||||
</div>
|
||||
<div class="b3-menu__separator"></div>
|
||||
<div class="b3-list-item b3-list-item--narrow" data-action="Translate as follows to [zh-Hans]">
|
||||
${window.siyuan.languages.aiTranslate_zh_Hans}
|
||||
</div>
|
||||
<div class="b3-list-item b3-list-item--narrow" data-action="Translate as follows to [zh-Hant]">
|
||||
${window.siyuan.languages.aiTranslate_zh_Hant}
|
||||
</div>
|
||||
<div class="b3-list-item b3-list-item--narrow" data-action="Translate as follows to [ja-JP]">
|
||||
${window.siyuan.languages.aiTranslate_ja_JP}
|
||||
</div>
|
||||
<div class="b3-list-item b3-list-item--narrow" data-action="Translate as follows to [ko-KR]">
|
||||
${window.siyuan.languages.aiTranslate_ko_KR}
|
||||
</div>
|
||||
<div class="b3-list-item b3-list-item--narrow" data-action="Translate as follows to [en-US]">
|
||||
${window.siyuan.languages.aiTranslate_en_US}
|
||||
</div>
|
||||
<div class="b3-list-item b3-list-item--narrow" data-action="Translate as follows to [es-ES]">
|
||||
${window.siyuan.languages.aiTranslate_es_ES}
|
||||
</div>
|
||||
<div class="b3-list-item b3-list-item--narrow" data-action="Translate as follows to [fr-FR]">
|
||||
${window.siyuan.languages.aiTranslate_fr_FR}
|
||||
</div>
|
||||
<div class="b3-list-item b3-list-item--narrow" data-action="Translate as follows to [de-DE]">
|
||||
${window.siyuan.languages.aiTranslate_de_DE}
|
||||
</div>
|
||||
<div class="b3-menu__separator"></div>
|
||||
<div class="b3-list-item b3-list-item--narrow" data-action="${window.siyuan.languages.aiExtractSummary}">
|
||||
${window.siyuan.languages.aiExtractSummary}
|
||||
</div>
|
||||
|
@ -222,6 +197,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
|
|||
<div class="b3-list-item b3-list-item--narrow" data-action="Clear context">
|
||||
${window.siyuan.languages.clearContext}
|
||||
</div>
|
||||
<div class="b3-menu__separator"></div>
|
||||
<div class="b3-list-item b3-list-item--narrow" data-type="custom">
|
||||
${window.siyuan.languages.aiCustomAction}
|
||||
</div>
|
||||
|
|
|
@ -17,7 +17,7 @@ export const initBlockPopover = (app: App) => {
|
|||
let timeoutHide: number;
|
||||
// 编辑器内容块引用/backlinks/tag/bookmark/套娃中使用
|
||||
document.addEventListener("mouseover", (event: MouseEvent & { target: HTMLElement, path: HTMLElement[] }) => {
|
||||
if (!window.siyuan.config) {
|
||||
if (!window.siyuan.config || !window.siyuan.menus) {
|
||||
return;
|
||||
}
|
||||
const aElement = hasClosestByAttribute(event.target, "data-type", "a", true) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue