Simplify import paths again

This commit is contained in:
redphx
2024-05-01 22:14:28 +07:00
parent 0114108bdf
commit 06c6b8c5af
36 changed files with 190 additions and 186 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 "@/modules/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 "@/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";
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) {