mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
4759578709
commit
e49f03e5a9
2 changed files with 22 additions and 0 deletions
|
|
@ -283,6 +283,17 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#historyContainer {
|
||||||
|
& > div {
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
& > ul {
|
||||||
|
width: auto !important;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 620px) {
|
@media (max-width: 620px) {
|
||||||
.protyle-wysiwyg [data-node-id].sb[data-sb-layout="col"] {
|
.protyle-wysiwyg [data-node-id].sb[data-sb-layout="col"] {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ import * as md5 from "blueimp-md5";
|
||||||
import {showMessage} from "../../dialog/message";
|
import {showMessage} from "../../dialog/message";
|
||||||
import {exitSiYuan} from "../../dialog/processSystem";
|
import {exitSiYuan} from "../../dialog/processSystem";
|
||||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||||
|
import {openHistory} from "../../util/history";
|
||||||
|
|
||||||
const showAccountInfo = (modelElement: HTMLElement, modelMainElement: Element) => {
|
const showAccountInfo = (modelElement: HTMLElement, modelMainElement: Element) => {
|
||||||
closePanel();
|
closePanel();
|
||||||
|
|
@ -124,6 +125,9 @@ export const popMenu = () => {
|
||||||
<div class="b3-list-item b3-list-item--big" id="menuSyncNow">
|
<div class="b3-list-item b3-list-item--big" id="menuSyncNow">
|
||||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconRefresh"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.syncNow}</span>
|
<svg class="b3-list-item__graphic"><use xlink:href="#iconRefresh"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.syncNow}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="b3-list-item b3-list-item--big${window.siyuan.config.readonly ? " fn__none" : ""}" id="menuHistory">
|
||||||
|
<svg class="b3-list-item__graphic"><use xlink:href="#iconVideo"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.dataHistory}</span>
|
||||||
|
</div>
|
||||||
<div slot="border-bottom: 1px solid var(--b3-border-color);"></div>
|
<div slot="border-bottom: 1px solid var(--b3-border-color);"></div>
|
||||||
<div class="b3-list-item b3-list-item--big" id="menuAppearance">
|
<div class="b3-list-item b3-list-item--big" id="menuAppearance">
|
||||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconTheme"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.appearance}</span>
|
<svg class="b3-list-item__graphic"><use xlink:href="#iconTheme"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.appearance}</span>
|
||||||
|
|
@ -312,6 +316,13 @@ ${accountHTML}
|
||||||
}
|
}
|
||||||
fetchPost("/api/sync/performSync", {});
|
fetchPost("/api/sync/performSync", {});
|
||||||
});
|
});
|
||||||
|
if (!window.siyuan.config.readonly) {
|
||||||
|
document.getElementById("menuHistory").addEventListener(getEventName(), (event) => {
|
||||||
|
event.stopPropagation();
|
||||||
|
event.preventDefault();
|
||||||
|
openHistory();
|
||||||
|
});
|
||||||
|
}
|
||||||
document.getElementById("menuAccount").addEventListener(getEventName(), (event) => {
|
document.getElementById("menuAccount").addEventListener(getEventName(), (event) => {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue