Vanessa 2024-04-29 11:51:35 +08:00
parent 9cebb574d0
commit 40d80e0294
4 changed files with 10 additions and 10 deletions

View file

@ -1,12 +1,12 @@
import {Dialog} from "../dialog";
import {App} from "../index";
import {upDownHint} from "../util/upDownHint";
import {Dialog} from "../../dialog";
import {App} from "../../index";
import {upDownHint} from "../../util/upDownHint";
/// #if !MOBILE
import {openSetting} from "../config";
import {openSetting} from "../../config";
/// #endif
import {updateHotkeyTip} from "../protyle/util/compatibility";
import {isMobile} from "../util/functions";
import {Constants} from "../constants";
import {updateHotkeyTip} from "../../protyle/util/compatibility";
import {isMobile} from "../../util/functions";
import {Constants} from "../../constants";
export const commandPanel = (app: App) => {
const dialog = new Dialog({

View file

@ -59,7 +59,6 @@ import {reloadProtyle} from "../../protyle/util/reload";
import {fullscreen, updateReadonly} from "../../protyle/breadcrumb/action";
import {openRecentDocs} from "../../business/openRecentDocs";
import {App} from "../../index";
import {commandPanel} from "../../plugin/commandPanel";
import {openBacklink, openGraph, openOutline, toggleDockBar} from "../../layout/dock/util";
import {workspaceMenu} from "../../menus/workspace";
import {resize} from "../../protyle/util/resize";
@ -76,6 +75,7 @@ import {zoomOut} from "../../menus/protyle";
import {openSearchAV} from "../../protyle/render/av/relation";
import * as dayjs from "dayjs";
import {getPlainText} from "../../protyle/util/paste";
import {commandPanel} from "./commandPanel";
const switchDialogEvent = (app: App, event: MouseEvent) => {
event.preventDefault();

View file

@ -18,8 +18,8 @@ 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";
import {exportLayout} from "./util";
import {commandPanel} from "../boot/globalEvent/commandPanel";
export const initBar = (app: App) => {
const toolbarElement = document.getElementById("toolbar");

View file

@ -20,7 +20,7 @@ import {isHuawei, isInAndroid, isInIOS} from "../../protyle/util/compatibility";
import {newFile} from "../../util/newFile";
import {afterLoadPlugin} from "../../plugin/loader";
import {Menu} from "../../plugin/Menu";
import {commandPanel} from "../../plugin/commandPanel";
import {commandPanel} from "../../boot/globalEvent/commandPanel";
export const popMenu = () => {
activeBlur();