🎨 Improve text (#12112)
This commit is contained in:
parent
1f46d16055
commit
96d2dcc09e
8 changed files with 21 additions and 9 deletions
|
@ -525,6 +525,7 @@
|
|||
"tagSnapshotTip": "Do not include symbols \\ / : * ? " ' < > |",
|
||||
"dataRepo": "Data repo",
|
||||
"newSubDoc": "Create sub doc",
|
||||
"newSubDocRef": "Create sub Doc with reference",
|
||||
"newDocBelow": "Create doc below",
|
||||
"newDocAbove": "Create doc above",
|
||||
"fullWidth": "Adaptive Width",
|
||||
|
@ -1108,6 +1109,7 @@
|
|||
"paragraphBeginningSpace": "Two empty spaces at the beginning of the paragraph",
|
||||
"outline": "Outline",
|
||||
"newFile": "New Doc",
|
||||
"newFileRef": "Create new Doc with reference",
|
||||
"close": "Close",
|
||||
"delete": "Delete",
|
||||
"rename": "Rename",
|
||||
|
|
|
@ -525,6 +525,7 @@
|
|||
"tagSnapshotTip": "No incluir símbolos \\ / : * ? " ' < > |",
|
||||
"dataRepo": "Repositorio de datos",
|
||||
"newSubDoc": "Crear subdocumento",
|
||||
"newSubDocRef": "Crear subdocumento y hacer referencia",
|
||||
"newDocBelow": "Crear documento a continuación",
|
||||
"newDocAbove": "Crear documento arriba",
|
||||
"fullWidth": "Ancho adaptable",
|
||||
|
@ -1108,6 +1109,7 @@
|
|||
"paragraphBeginningSpace": "Dos espacios vacíos al principio del párrafo",
|
||||
"outline": "Esquema",
|
||||
"newFile": "Nuevo documento",
|
||||
"newFileRef": "Crear un nuevo documento y hacer referencia",
|
||||
"close": "Cerrar",
|
||||
"delete": "Borrar",
|
||||
"rename": "Cambiar nombre",
|
||||
|
|
|
@ -525,6 +525,7 @@
|
|||
"tagSnapshotTip": "Ne pas inclure les symboles \\ / : * ? " ' < > |",
|
||||
"dataRepo": "Dépôt de données",
|
||||
"newSubDoc": "Créer un sous-doc",
|
||||
"newSubDocRef": "Créer un sous-doc et le référencer",
|
||||
"newDocBelow": "Créer un document ci-dessous",
|
||||
"newDocAbove": "Créer un document ci-dessus",
|
||||
"fullWidth": "Largeur adaptative",
|
||||
|
@ -1108,6 +1109,7 @@
|
|||
"paragraphBeginningSpace": "Deux espaces vides au début du paragraphe",
|
||||
"outline": "Outline",
|
||||
"newFile": "Nouveau Doc",
|
||||
"newFileRef": "Créer un nouveau document et le citer",
|
||||
"close": "Fermer",
|
||||
"delete": "Supprimer",
|
||||
"rename": "Renommer",
|
||||
|
|
|
@ -525,6 +525,7 @@
|
|||
"tagSnapshotTip": "次の記号を含めないでください \\ / : * ? " ' < > |",
|
||||
"dataRepo": "データリポジトリ",
|
||||
"newSubDoc": "サブドキュメントを作成",
|
||||
"newSubDocRef": "サブドキュメントを作成して参照する",
|
||||
"newDocBelow": "下にドキュメントを作成",
|
||||
"newDocAbove": "上にドキュメントを作成",
|
||||
"fullWidth": "幅に合わせる",
|
||||
|
@ -1108,6 +1109,7 @@
|
|||
"paragraphBeginningSpace": "段落の先頭にスペースを2つ挿入",
|
||||
"outline": "アウトライン",
|
||||
"newFile": "新規ドキュメント",
|
||||
"newFileRef": "新規ドキュメントを作成して引用する",
|
||||
"close": "閉じる",
|
||||
"delete": "削除",
|
||||
"rename": "名前の変更",
|
||||
|
|
|
@ -525,6 +525,7 @@
|
|||
"tagSnapshotTip": "請勿包含符號 \\ / : * ? " ' < > |",
|
||||
"dataRepo": "資料倉庫",
|
||||
"newSubDoc": "新建子文檔",
|
||||
"newSubDocRef": "新建子文檔並引用",
|
||||
"newDocBelow": "在下方新建文檔",
|
||||
"newDocAbove": "在上方新建文檔",
|
||||
"fullWidth": "自適應寬度",
|
||||
|
@ -1108,6 +1109,7 @@
|
|||
"paragraphBeginningSpace": "段落開頭空兩格",
|
||||
"outline": "大綱",
|
||||
"newFile": "新建文檔",
|
||||
"newFileRef": "新建文檔並引用",
|
||||
"close": "關閉",
|
||||
"delete": "刪除",
|
||||
"rename": "重命名",
|
||||
|
|
|
@ -525,6 +525,7 @@
|
|||
"tagSnapshotTip": "请勿包含符号 \\ / : * ? " ' < > |",
|
||||
"dataRepo": "数据仓库",
|
||||
"newSubDoc": "新建子文档",
|
||||
"newSubDocRef": "新建子文档并引用",
|
||||
"newDocBelow": "在下方新建文档",
|
||||
"newDocAbove": "在上方新建文档",
|
||||
"fullWidth": "自适应宽度",
|
||||
|
@ -1108,6 +1109,7 @@
|
|||
"paragraphBeginningSpace": "段落开头空两格",
|
||||
"outline": "大纲",
|
||||
"newFile": "新建文档",
|
||||
"newFileRef": "新建文档并引用",
|
||||
"close": "关闭",
|
||||
"delete": "删除",
|
||||
"rename": "重命名",
|
||||
|
|
|
@ -215,7 +215,7 @@ const renderSlashMenu = (protyle: IProtyle, toolbarElement: Element) => {
|
|||
${getSlashItem("{{", "iconSQL", window.siyuan.languages.blockEmbed, "true")}
|
||||
${getSlashItem(Constants.ZWSP + 5, "iconSparkles", "AI Chat")}
|
||||
${getSlashItem('<div data-type="NodeAttributeView" data-av-type="table"></div>', "iconDatabase", window.siyuan.languages.database, "true")}
|
||||
${getSlashItem(Constants.ZWSP + 4, "iconFile", window.siyuan.languages.newSubDoc)}
|
||||
${getSlashItem(Constants.ZWSP + 4, "iconFile", window.siyuan.languages.newSubDocRef)}
|
||||
</div>
|
||||
<div class="keyboard__slash-title"></div>
|
||||
<div class="keyboard__slash-block">
|
||||
|
|
|
@ -23,7 +23,7 @@ import {avRender} from "../render/av/render";
|
|||
|
||||
export const hintSlash = (key: string, protyle: IProtyle) => {
|
||||
const allList: IHintData[] = [{
|
||||
filter: ["模版", "moban", "mb", "template"],
|
||||
filter: ["模版", "moban", "muban", "mb", "template"],
|
||||
value: Constants.ZWSP,
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconMarkdown"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.template}</span></div>`,
|
||||
}, {
|
||||
|
@ -35,7 +35,7 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
|
|||
value: Constants.ZWSP + 2,
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconImage"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.assets}</span></div>`,
|
||||
}, {
|
||||
filter: ["块引用", "yinyong", "yy", "block reference"],
|
||||
filter: ["块引用", "kuaiyinyong", "kyy", "block reference"],
|
||||
value: "((",
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconRef"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.ref}</span><span class="b3-list-item__meta">((</span></div>`,
|
||||
}, {
|
||||
|
@ -51,13 +51,13 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
|
|||
value: '<div data-type="NodeAttributeView" data-av-type="table"></div>',
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconDatabase"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.database}</span></div>`,
|
||||
}, {
|
||||
filter: ["文档", "wendang", "wd", "xjwd", "new doc"],
|
||||
filter: ["新建文档并引用", "xinjianwendangbingyinyong","xjwdbyy", "new doc"],
|
||||
value: Constants.ZWSP + 4,
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newFile}</span><span class="b3-menu__accelerator">${updateHotkeyTip(window.siyuan.config.keymap.general.newFile.custom)}</span></div>`,
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newFileRef}</span></div>`,
|
||||
}, {
|
||||
filter: ["子文档", "ziwendang", "zwd", "xjzwd", "create sub doc"],
|
||||
filter: ["新建子文档并引用", "xinjianziwendangbingyinyong", "xjzwdbyy", "create sub doc"],
|
||||
value: Constants.ZWSP + 6,
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newSubDoc}</span></div>`,
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newSubDocRef}</span></div>`,
|
||||
}, {
|
||||
value: "",
|
||||
html: "separator",
|
||||
|
@ -165,11 +165,11 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
|
|||
value: "tag",
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconTags"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.tag}</span><span class="b3-menu__accelerator">${updateHotkeyTip((window.siyuan.config.keymap.editor.insert.tag.custom))}</span></div>`,
|
||||
}, {
|
||||
filter: ["行内代码", "hangneidaima", "hndm", "inline code"],
|
||||
filter: ["行级代码", "hangjidaima", "hjdm", "行内代码", "hangneidaima", "hndm", "inline code"],
|
||||
value: "code",
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconInlineCode"></use></svg><span class="b3-list-item__text">${window.siyuan.languages["inline-code"]}</span><span class="b3-menu__accelerator">${updateHotkeyTip((window.siyuan.config.keymap.editor.insert["inline-code"].custom))}</span></div>`,
|
||||
}, {
|
||||
filter: ["行内数学公式", "hangneishuxuegongshi", "hnsxgs", "inline math"],
|
||||
filter: ["行级公式", "hangjigongshi", "hjgs", "行级数学公式", "hangjishuxuegongshi", "hjsxgs", "行内数学公式", "hangneishuxuegongshi", "hnsxgs", "inline math"],
|
||||
value: "inline-math",
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconMath"></use></svg><span class="b3-list-item__text">${window.siyuan.languages["inline-math"]}</span><span class="b3-menu__accelerator">${updateHotkeyTip((window.siyuan.config.keymap.editor.insert["inline-math"].custom))}</span></div>`,
|
||||
}, {
|
||||
|
|
Loading…
Add table
Reference in a new issue