Jelajahi Sumber

ref: refactor imports

Sv443 6 bulan lalu
induk
melakukan
55e68235f3
4 mengubah file dengan 4 tambahan dan 5 penghapusan
  1. 0 1
      assets/translations/en-US.json
  2. 1 1
      src/dialogs/prompt.ts
  3. 1 1
      src/features/layout.ts
  4. 2 2
      src/utils/dom.ts

+ 0 - 1
assets/translations/en-US.json

@@ -320,7 +320,6 @@
     "feature_helptext_clearLyricsCache": "If the lyrics that are in the local cache are outdated or you just want to free up some space, you can clear the cache manually by pressing this button.",
     "feature_btn_clearLyricsCache": "Clear cache",
     "feature_btn_clearLyricsCache_running": "Clearing...",
-    "feature_desc_showToastOnLyricsError": "Show a toast notification when an error occurs while looking up the lyrics URL",
     "feature_desc_advancedLyricsFilter": "Experimental: Enable advanced filtering for the lyrics search",
     "feature_helptext_advancedLyricsFilter": "Advanced filtering includes multiple layers of filters that aim to make the lyrics lookups more reliable.\nThese filters may not work well for songs in your language, and songs and artists with less unique titles in general.\nWarning: This feature is still experimental and might not actually perform any better than the default lyrics lookup. Make sure to confirm the prompt that appears if you changed this setting.",
 

+ 1 - 1
src/dialogs/prompt.ts

@@ -2,8 +2,8 @@ import type { Emitter } from "nanoevents";
 import type { Stringifiable } from "@sv443-network/userutils";
 import { getOS, resourceAsString, setInnerHtml, t } from "../utils/index.js";
 import { BytmDialog, type BytmDialogEvents } from "../components/index.js";
+import { addSelectorListener } from "../observers.js";
 import "./prompt.css";
-import { addSelectorListener } from "src/observers.js";
 
 //#region types
 

+ 1 - 1
src/features/layout.ts

@@ -7,8 +7,8 @@ import { mode, scriptInfo } from "../constants.js";
 import { openCfgMenu } from "../menu/menu_old.js";
 import { createCircularBtn, createRipple } from "../components/index.js";
 import type { ResourceKey, VideoVotesObj } from "../types.js";
+import { showPrompt } from "../dialogs/prompt.js";
 import "./layout.css";
-import { showPrompt } from "src/dialogs/prompt.js";
 
 //#region cfg menu btns
 

+ 2 - 2
src/utils/dom.ts

@@ -1,10 +1,10 @@
 import { addGlobalStyle, getUnsafeWindow, randomId, type Stringifiable } from "@sv443-network/userutils";
+import DOMPurify from "dompurify";
 import { error, fetchCss, getDomain, t } from "./index.js";
 import { addSelectorListener } from "../observers.js";
 import type { ResourceKey, TTPolicy } from "../types.js";
 import { siteEvents } from "../siteEvents.js";
-import DOMPurify from "dompurify";
-import { showPrompt } from "src/dialogs/prompt.js";
+import { showPrompt } from "../dialogs/prompt.js";
 
 /** Whether the DOM has finished loading and elements can be added or modified */
 export let domLoaded = false;