mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
💄 status menu
This commit is contained in:
parent
b4c73e7ca1
commit
b601a9af7c
5 changed files with 6 additions and 2 deletions
|
|
@ -100,7 +100,6 @@
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
display: inline-flex;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&--disabled {
|
&--disabled {
|
||||||
|
|
|
||||||
|
|
@ -252,6 +252,7 @@ export const openFileAttr = (attrs: IObject, id: string, focusName = "bookmark")
|
||||||
window.siyuan.menus.menu.remove();
|
window.siyuan.menus.menu.remove();
|
||||||
if (response.data.length === 0) {
|
if (response.data.length === 0) {
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
|
iconHTML: Constants.ZWSP,
|
||||||
label: window.siyuan.languages.emptyContent,
|
label: window.siyuan.languages.emptyContent,
|
||||||
type: "readonly",
|
type: "readonly",
|
||||||
}).element);
|
}).element);
|
||||||
|
|
@ -458,6 +459,7 @@ export const openAttr = (nodeElement: Element, protyle: IProtyle, focusName = "b
|
||||||
window.siyuan.menus.menu.remove();
|
window.siyuan.menus.menu.remove();
|
||||||
if (response.data.length === 0) {
|
if (response.data.length === 0) {
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
|
iconHTML: Constants.ZWSP,
|
||||||
label: window.siyuan.languages.emptyContent,
|
label: window.siyuan.languages.emptyContent,
|
||||||
type: "readonly",
|
type: "readonly",
|
||||||
}).element);
|
}).element);
|
||||||
|
|
|
||||||
|
|
@ -373,6 +373,7 @@ export class Breadcrumb {
|
||||||
window.siyuan.menus.menu.append(exportMd(protyle.block.parentID));
|
window.siyuan.menus.menu.append(exportMd(protyle.block.parentID));
|
||||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
|
iconHTML: Constants.ZWSP,
|
||||||
type: "readonly",
|
type: "readonly",
|
||||||
label: `<div class="fn__flex">${window.siyuan.languages.runeCount}<span class="fn__space fn__flex-1"></span>${response.data.runeCount}</div>
|
label: `<div class="fn__flex">${window.siyuan.languages.runeCount}<span class="fn__space fn__flex-1"></span>${response.data.runeCount}</div>
|
||||||
<div class="fn__flex">${window.siyuan.languages.wordCount}<span class="fn__space fn__flex-1"></span>${response.data.wordCount}</div>
|
<div class="fn__flex">${window.siyuan.languages.wordCount}<span class="fn__space fn__flex-1"></span>${response.data.wordCount}</div>
|
||||||
|
|
|
||||||
|
|
@ -1452,8 +1452,9 @@ export class Gutter {
|
||||||
updateHTML = `${window.siyuan.languages.modifiedAt} ${dayjs(updateHTML).format("YYYY-MM-DD HH:mm:ss")}<br>`;
|
updateHTML = `${window.siyuan.languages.modifiedAt} ${dayjs(updateHTML).format("YYYY-MM-DD HH:mm:ss")}<br>`;
|
||||||
}
|
}
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
|
iconHTML:Constants.ZWSP,
|
||||||
type: "readonly",
|
type: "readonly",
|
||||||
label: `<div style="margin-left: -18px;white-space: nowrap;">${updateHTML}${window.siyuan.languages.createdAt} ${dayjs(id.substr(0, 14)).format("YYYY-MM-DD HH:mm:ss")}</div>`,
|
label: `${updateHTML}${window.siyuan.languages.createdAt} ${dayjs(id.substr(0, 14)).format("YYYY-MM-DD HH:mm:ss")}`,
|
||||||
}).element);
|
}).element);
|
||||||
return window.siyuan.menus.menu;
|
return window.siyuan.menus.menu;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -350,6 +350,7 @@ export class Title {
|
||||||
}).element);
|
}).element);
|
||||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
|
iconHTML: Constants.ZWSP,
|
||||||
type: "readonly",
|
type: "readonly",
|
||||||
label: `${window.siyuan.languages.modifiedAt} ${dayjs(response.data.ial.updated).format("YYYY-MM-DD HH:mm:ss")}<br>
|
label: `${window.siyuan.languages.modifiedAt} ${dayjs(response.data.ial.updated).format("YYYY-MM-DD HH:mm:ss")}<br>
|
||||||
${window.siyuan.languages.createdAt} ${dayjs(response.data.ial.id.substr(0, 14)).format("YYYY-MM-DD HH:mm:ss")}`
|
${window.siyuan.languages.createdAt} ${dayjs(response.data.ial.id.substr(0, 14)).format("YYYY-MM-DD HH:mm:ss")}`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue