Преглед на файлове

:recycle: https://github.com/siyuan-note/siyuan/issues/11133

Vanessa преди 1 година
родител
ревизия
40d80e0294
променени са 4 файла, в които са добавени 10 реда и са изтрити 10 реда
  1. 7 7
      app/src/boot/globalEvent/commandPanel.ts
  2. 1 1
      app/src/boot/globalEvent/keydown.ts
  3. 1 1
      app/src/layout/topBar.ts
  4. 1 1
      app/src/mobile/menu/index.ts

+ 7 - 7
app/src/plugin/commandPanel.ts → app/src/boot/globalEvent/commandPanel.ts

@@ -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({

+ 1 - 1
app/src/boot/globalEvent/keydown.ts

@@ -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();

+ 1 - 1
app/src/layout/topBar.ts

@@ -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");

+ 1 - 1
app/src/mobile/menu/index.ts

@@ -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();