Move preferences.ts & settings.ts to utils/

This commit is contained in:
redphx
2024-04-27 15:23:49 +07:00
parent dcb4f7471f
commit 18f50e6a20
26 changed files with 32 additions and 33 deletions

View File

@@ -2,7 +2,7 @@ import { STATES, AppInterface, SCRIPT_HOME, SCRIPT_VERSION } from "../../utils/g
import { CE, createButton, Icon, ButtonStyle } from "../../utils/html";
import { getPreferredServerRegion } from "../../utils/region";
import { UserAgent, UserAgentProfile } from "../../utils/user-agent";
import { getPref, Preferences, PrefKey, setPref, toPrefElement } from "../preferences";
import { getPref, Preferences, PrefKey, setPref, toPrefElement } from "../../utils/preferences";
import { t, refreshCurrentLocale } from "../../utils/translation";
const SETTINGS_UI = {

View File

@@ -1,7 +1,7 @@
import { SCRIPT_VERSION } from "../../utils/global";
import { createButton, Icon, ButtonStyle } from "../../utils/html";
import { getPreferredServerRegion } from "../../utils/region";
import { PrefKey, getPref } from "../preferences";
import { PrefKey, getPref } from "../../utils/preferences";
import { RemotePlay } from "../remote-play";
import { t } from "../../utils/translation";
import { setupSettingsUi } from "./global-settings";

View File

@@ -3,7 +3,7 @@ import { Icon, CE, createButton, ButtonStyle } from "../../utils/html";
import { UserAgent } from "../../utils/user-agent";
import { BxEvent } from "../../utils/bx-event";
import { MkbRemapper } from "../mkb/mkb-remapper";
import { getPref, PrefKey, toPrefElement } from "../preferences";
import { getPref, PrefKey, toPrefElement } from "../../utils/preferences";
import { setupScreenshotButton } from "../screenshot";
import { StreamStats } from "../stream/stream-stats";
import { TouchController } from "../touch-controller";