mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 11:50:15 +01:00
🎨 Update text
This commit is contained in:
parent
0cd68fe571
commit
517cf0e15f
12 changed files with 7 additions and 21 deletions
|
|
@ -37,7 +37,7 @@ export const exportConfig = {
|
|||
</label>
|
||||
<label class="fn__flex b3-label config__item">
|
||||
<div class="fn__flex-1">
|
||||
${window.siyuan.languages.blockRef}
|
||||
${window.siyuan.languages.ref}
|
||||
<div class="b3-label__text">${window.siyuan.languages.export11}</div>
|
||||
</div>
|
||||
<span class="fn__space"></span>
|
||||
|
|
|
|||
|
|
@ -972,7 +972,7 @@ export class Files extends Model {
|
|||
private genFileHTML = (item: IFile) => {
|
||||
let countHTML = "";
|
||||
if (item.count && item.count > 0) {
|
||||
countHTML = `<span class="popover__block counter b3-tooltips b3-tooltips__nw" aria-label="${window.siyuan.languages.blockRef}">${item.count}</span>`;
|
||||
countHTML = `<span class="popover__block counter b3-tooltips b3-tooltips__nw" aria-label="${window.siyuan.languages.ref}">${item.count}</span>`;
|
||||
}
|
||||
return `<li title="${getDisplayName(item.name, true, true)} ${item.hSize}${item.bookmark ? "\n" + window.siyuan.languages.bookmark + " " + item.bookmark : ""}${item.name1 ? "\n" + window.siyuan.languages.name + " " + item.name1 : ""}${item.alias ? "\n" + window.siyuan.languages.alias + " " + item.alias : ""}${item.memo ? "\n" + window.siyuan.languages.memo + " " + item.memo : ""}${item.subFileCount !== 0 ? window.siyuan.languages.includeSubFile.replace("x", item.subFileCount) : ""}\n${window.siyuan.languages.modifiedAt} ${item.hMtime}\n${window.siyuan.languages.createdAt} ${item.hCtime}"
|
||||
data-node-id="${item.id}" data-name="${Lute.EscapeHTMLStr(item.name)}" draggable="true" data-count="${item.subFileCount}"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import {Model} from "./Model";
|
|||
import {Graph} from "./dock/Graph";
|
||||
import {Editor} from "../editor";
|
||||
import {Files} from "./dock/Files";
|
||||
import {setPadding} from "../protyle/ui/initUI";
|
||||
import {newFile} from "../util/newFile";
|
||||
import {Outline} from "./dock/Outline";
|
||||
import {Bookmark} from "./dock/Bookmark";
|
||||
|
|
@ -36,7 +35,7 @@ import {getIdZoomInByPath} from "../util/pathName";
|
|||
import {openHistory} from "../history/history";
|
||||
import {Custom} from "./dock/Custom";
|
||||
import {newCardModel} from "../card/newCardTab";
|
||||
import { openRecentDocs } from "../business/openRecentDocs";
|
||||
import {openRecentDocs} from "../business/openRecentDocs";
|
||||
|
||||
export const setPanelFocus = (element: Element) => {
|
||||
if (element.classList.contains("layout__tab--active") || element.classList.contains("layout__wnd--active")) {
|
||||
|
|
@ -800,8 +799,6 @@ export const newCenterEmptyTab = () => {
|
|||
</div>
|
||||
<div class="b3-label__text">${window.siyuan.languages.slogan}</div>
|
||||
</div>
|
||||
<h1>${window.siyuan.languages.noOpenFile}</h1>
|
||||
<div class="fn__hr"></div>
|
||||
<div class="fn__hr"></div>
|
||||
<div class="b3-list-item" id="editorEmptySearch">
|
||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconSearch"></use></svg>
|
||||
|
|
|
|||
|
|
@ -820,7 +820,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText
|
|||
}
|
||||
if (linkAddress?.startsWith("siyuan://blocks/")) {
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: `${window.siyuan.languages.turnInto} <b>${window.siyuan.languages.blockRef}</b>`,
|
||||
label: `${window.siyuan.languages.turnInto} <b>${window.siyuan.languages.ref}</b>`,
|
||||
icon: "iconRef",
|
||||
click() {
|
||||
linkElement.setAttribute("data-subtype", "s");
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@ export const setEmpty = () => {
|
|||
if (emptyElement.innerHTML !== "") {
|
||||
return;
|
||||
}
|
||||
emptyElement.innerHTML = `<h1 style="width: 200px">${window.siyuan.languages.noOpenFile}</h1>
|
||||
<div class="fn__hr--b"></div>
|
||||
emptyElement.innerHTML = `
|
||||
<div id="emptySearch" class="b3-list-item">
|
||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconSearch"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.search}</span>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
|
|||
}, {
|
||||
filter: ["引用块", "yinyong", "yy", "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.blockRef}</span><span class="b3-list-item__meta">((</span></div>`,
|
||||
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>`,
|
||||
}, {
|
||||
filter: ["嵌入块", "qianrukuai", "qrk", "embed block"],
|
||||
value: "{{",
|
||||
|
|
|
|||
|
|
@ -465,7 +465,7 @@ const getLeaf = (liElement: HTMLElement, flashcard:boolean) => {
|
|||
response.data.files.forEach((item: IFile) => {
|
||||
let countHTML = "";
|
||||
if (item.count && item.count > 0) {
|
||||
countHTML = `<span class="popover__block counter b3-tooltips b3-tooltips__nw" aria-label="${window.siyuan.languages.blockRef}">${item.count}</span>`;
|
||||
countHTML = `<span class="popover__block counter b3-tooltips b3-tooltips__nw" aria-label="${window.siyuan.languages.ref}">${item.count}</span>`;
|
||||
}
|
||||
fileHTML += `<li title="${getDisplayName(item.name, true, true)} ${item.hSize}${item.bookmark ? "\n" + window.siyuan.languages.bookmark + " " + item.bookmark : ""}${item.name1 ? "\n" + window.siyuan.languages.name + " " + item.name1 : ""}${item.alias ? "\n" + window.siyuan.languages.alias + " " + item.alias : ""}${item.memo ? "\n" + window.siyuan.languages.memo + " " + item.memo : ""}${item.subFileCount !== 0 ? window.siyuan.languages.includeSubFile.replace("x", item.subFileCount) : ""}\n${window.siyuan.languages.modifiedAt} ${item.hMtime}\n${window.siyuan.languages.createdAt} ${item.hCtime}"
|
||||
data-box="${notebookId}" class="b3-list-item" data-path="${item.path}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue