|
@@ -19,6 +19,7 @@ import {Menu} from "../plugin/Menu";
|
|
import {fetchPost} from "../util/fetch";
|
|
import {fetchPost} from "../util/fetch";
|
|
import {needSubscribe} from "../util/needSubscribe";
|
|
import {needSubscribe} from "../util/needSubscribe";
|
|
import * as dayjs from "dayjs";
|
|
import * as dayjs from "dayjs";
|
|
|
|
+import {commandPanel} from "../plugin/commandPanel";
|
|
|
|
|
|
export const updateEditModeElement = () => {
|
|
export const updateEditModeElement = () => {
|
|
const target = document.querySelector("#barReadonly");
|
|
const target = document.querySelector("#barReadonly");
|
|
@@ -377,6 +378,13 @@ const openPlugin = (app: App, target: Element) => {
|
|
dialogSetting.element.querySelector('.b3-tab-bar [data-name="bazaar"]').dispatchEvent(new CustomEvent("click"));
|
|
dialogSetting.element.querySelector('.b3-tab-bar [data-name="bazaar"]').dispatchEvent(new CustomEvent("click"));
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ menu.addItem({
|
|
|
|
+ icon: "iconLayoutBottom",
|
|
|
|
+ label: window.siyuan.languages.commandPanel,
|
|
|
|
+ click() {
|
|
|
|
+ commandPanel();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
let rect = target.getBoundingClientRect();
|
|
let rect = target.getBoundingClientRect();
|
|
if (rect.width === 0) {
|
|
if (rect.width === 0) {
|
|
rect = document.querySelector("#barMore").getBoundingClientRect();
|
|
rect = document.querySelector("#barMore").getBoundingClientRect();
|