Ver código fonte

ref: move menu folder

Sven 1 ano atrás
pai
commit
ec28e2b447

+ 2 - 2
src/features/index.ts

@@ -3,8 +3,8 @@ import { scriptInfo } from "../constants";
 export * from "./input";
 export * from "./layout";
 export * from "./lyrics";
-export { initMenu } from "./menu/menu";
-export * from "./menu/menu_old";
+export { initMenu } from "../menu/menu";
+export * from "../menu/menu_old";
 
 /** Union of all feature keys */
 export type FeatInfoKey = keyof typeof featInfo;

+ 1 - 1
src/features/input.ts

@@ -1,7 +1,7 @@
 import { getUnsafeWindow } from "@sv443-network/userutils";
 import { error, getVideoTime, info, log, warn } from "../utils";
 import type { Domain } from "../types";
-import { isMenuOpen } from "./menu/menu_old";
+import { isMenuOpen } from "../menu/menu_old";
 
 //#MARKER arrow key skip
 

+ 1 - 1
src/features/layout.ts

@@ -3,7 +3,7 @@ import type { FeatureConfig } from "../types";
 import { scriptInfo } from "../constants";
 import { error, getResourceUrl, log, warn } from "../utils";
 import { SiteEventsMap, siteEvents } from "../events";
-import { openMenu } from "./menu/menu_old";
+import { openMenu } from "../menu/menu_old";
 import { getGeniusUrl, createLyricsBtn, sanitizeArtists, sanitizeSong, getLyricsCacheEntry, splitVideoTitle } from "./lyrics";
 import { featInfo } from "./index";
 import "./layout.css";

+ 0 - 0
src/features/menu/menu.css → src/menu/menu.css


+ 0 - 0
src/features/menu/menu.html → src/menu/menu.html


+ 1 - 1
src/features/menu/menu.ts → src/menu/menu.ts

@@ -1,4 +1,4 @@
-import changelogContent from "../../../changelog.md";
+import changelogContent from "../../changelog.md";
 import menuContent from "./menu.html";
 import "./menu.css";
 

+ 0 - 0
src/features/menu/menu_old.css → src/menu/menu_old.css


+ 5 - 5
src/features/menu/menu_old.ts → src/menu/menu_old.ts

@@ -1,9 +1,9 @@
 import { debounce, isScrollable } from "@sv443-network/userutils";
-import { defaultConfig, getFeatures, saveFeatures, setDefaultFeatures } from "../../config";
-import { scriptInfo } from "../../constants";
-import { FeatureCategory, FeatInfoKey, categoryNames, featInfo } from "../index";
-import { FeatureConfig } from "../../types";
-import { getResourceUrl, info, log } from "../../utils";
+import { defaultConfig, getFeatures, saveFeatures, setDefaultFeatures } from "../config";
+import { scriptInfo } from "../constants";
+import { FeatureCategory, FeatInfoKey, categoryNames, featInfo } from "../features/index";
+import { FeatureConfig } from "../types";
+import { getResourceUrl, info, log } from "../utils";
 import "./menu_old.css";
 
 //#MARKER create menu elements