Vanessa 2023-06-24 17:50:43 +08:00
parent 616fef6650
commit 512d15425a
6 changed files with 13 additions and 0 deletions

View file

@ -1,4 +1,5 @@
{
"commandPanel": "Command Palette",
"cloudRegionNorthAmerica": "LiuYun (Data Center in North America)",
"cloudRegionChina": "LianDi (Data Center in Mainland China)",
"currentKernel": "Current kernel",

View file

@ -1,4 +1,5 @@
{
"commandPanel": "Paleta de comandos",
"cloudRegionNorthAmerica": "LiuYun (Centro de datos en América del Norte)",
"cloudRegionChina": "LianDi (Centro de datos en China continental)",
"currentKernel": "Núcleo actual",

View file

@ -1,4 +1,5 @@
{
"commandPanel": "Palette de commandes",
"cloudRegionNorthAmerica": "LiuYun (centre de données en Amérique du Nord)",
"cloudRegionChina": "LianDi (centre de données en Chine continentale)",
"currentKernel": "Noyau actuel",

View file

@ -1,4 +1,5 @@
{
"commandPanel": "命令面板",
"cloudRegionNorthAmerica": "流雲(北美數據中心)",
"cloudRegionChina": "鏈滴(中國大陸數據中心)",
"currentKernel": "當前內核",

View file

@ -1,4 +1,5 @@
{
"commandPanel": "命令面板",
"cloudRegionNorthAmerica": "流云(北美数据中心)",
"cloudRegionChina": "链滴(中国大陆数据中心)",
"currentKernel": "当前内核",

View file

@ -19,6 +19,7 @@ import {Menu} from "../plugin/Menu";
import {fetchPost} from "../util/fetch";
import {needSubscribe} from "../util/needSubscribe";
import * as dayjs from "dayjs";
import {commandPanel} from "../plugin/commandPanel";
export const updateEditModeElement = () => {
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"));
}
});
menu.addItem({
icon: "iconLayoutBottom",
label: window.siyuan.languages.commandPanel,
click() {
commandPanel();
}
});
let rect = target.getBoundingClientRect();
if (rect.width === 0) {
rect = document.querySelector("#barMore").getBoundingClientRect();