Ver código fonte

ref: move hotkeyInput and BytmDialog

Sv443 1 ano atrás
pai
commit
b00447c13e

+ 0 - 0
src/utils/BytmDialog.css → src/components/BytmDialog.css


+ 3 - 3
src/utils/BytmDialog.ts → src/components/BytmDialog.ts

@@ -1,7 +1,7 @@
 // hoist the class declaration because either rollup or babel is being a hoe
-import { NanoEmitter } from "./NanoEmitter";
-import { clearInner, getResourceUrl, warn } from ".";
-import { t } from "./translations";
+import { NanoEmitter } from "../utils/NanoEmitter";
+import { clearInner, getResourceUrl, warn } from "../utils";
+import { t } from "../utils/translations";
 import "./BytmDialog.css";
 import { addGlobalStyle } from "@sv443-network/userutils";
 

+ 0 - 0
src/utils/hotkeyInput.css → src/components/hotkeyInput.css


+ 1 - 1
src/utils/hotkeyInput.ts → src/components/hotkeyInput.ts

@@ -1,6 +1,6 @@
 import { getFeatures } from "../config";
 import { siteEvents } from "../siteEvents";
-import { t } from ".";
+import { t } from "../utils";
 import type { HotkeyObj } from "../types";
 import "./hotkeyInput.css";
 

+ 2 - 0
src/components/index.ts

@@ -0,0 +1,2 @@
+export * from "./BytmDialog";
+export * from "./hotkeyInput";

+ 2 - 1
src/dialogs/versionNotif.ts

@@ -1,5 +1,6 @@
 import { host, scriptInfo } from "../constants";
-import { BytmDialog, getChangelogMd, parseMarkdown, t } from "../utils";
+import { getChangelogMd, parseMarkdown, t } from "../utils";
+import { BytmDialog } from "../components";
 import { getFeatures, saveFeatures } from "../config";
 import pkg from "../../package.json" assert { type: "json" };
 

+ 1 - 1
src/menu/menu_old.ts

@@ -7,7 +7,7 @@ import { formatVersion } from "../config";
 import { emitSiteEvent, siteEvents } from "../siteEvents";
 import type { FeatureCategory, FeatureKey, FeatureConfig, HotkeyObj, FeatureInfo } from "../types";
 import "./menu_old.css";
-import { createHotkeyInput } from "../utils/hotkeyInput";
+import { createHotkeyInput } from "../components";
 import pkg from "../../package.json" assert { type: "json" };
 
 //#MARKER create menu elements

+ 0 - 1
src/utils/index.ts

@@ -1,4 +1,3 @@
-export * from "./BytmDialog";
 export * from "./dom";
 export * from "./logging";
 export * from "./misc";