Simplify import paths

This commit is contained in:
redphx
2024-05-01 22:01:39 +07:00
parent 006e21f477
commit 0114108bdf
29 changed files with 167 additions and 163 deletions

View File

@@ -1,9 +1,9 @@
import { STATES, AppInterface, SCRIPT_HOME, SCRIPT_VERSION } from "../../utils/global";
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 "../../utils/preferences";
import { t, refreshCurrentLocale } from "../../utils/translation";
import { STATES, AppInterface, SCRIPT_HOME, SCRIPT_VERSION } from "@/utils/global";
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 "@/utils/preferences";
import { t, refreshCurrentLocale } from "@/utils/translation";
const SETTINGS_UI = {
'Better xCloud': {

View File

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

View File

@@ -1,14 +1,14 @@
import { STATES } from "../../utils/global";
import { Icon, CE, createButton, ButtonStyle, createSvgIcon } 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 "../../utils/preferences";
import { setupScreenshotButton } from "../screenshot";
import { StreamStats } from "../stream/stream-stats";
import { TouchController } from "../touch-controller";
import { t } from "../../utils/translation";
import { VibrationManager } from "../vibration-manager";
import { STATES } from "@/utils/global";
import { Icon, CE, createButton, ButtonStyle, createSvgIcon } from "@/utils/html";
import { UserAgent } from "@/utils/user-agent";
import { BxEvent } from "@/utils/bx-event";
import { MkbRemapper } from "@/modules/mkb/mkb-remapper";
import { getPref, PrefKey, toPrefElement } from "@/utils/preferences";
import { setupScreenshotButton } from "@/modules/screenshot";
import { StreamStats } from "@/modules/stream/stream-stats";
import { TouchController } from "@/modules/touch-controller";
import { t } from "@/utils/translation";
import { VibrationManager } from "@/modules/vibration-manager";
export function localRedirect(path: string) {