Move bx-events/exposed/flags files to utils/

This commit is contained in:
redphx 2024-04-25 17:57:34 +07:00
parent 51102a7687
commit 293e3c8d73
16 changed files with 19 additions and 19 deletions

View File

@ -1,8 +1,8 @@
import { getBuildConfig } from "./build-config" with { type: "macro" };
import "./utils/global";
import { BxEvent } from "./modules/bx-event";
import { BX_FLAGS } from "./modules/bx-flags";
import { BxExposed } from "./modules/bx-exposed";
import { BxEvent } from "./utils/bx-event";
import { BX_FLAGS } from "./utils/bx-flags";
import { BxExposed } from "./utils/bx-exposed";
import { t } from "./modules/translation";
import { CE } from "./utils/html";
import { showGamepadToast } from "./utils/gamepad";

View File

@ -1,7 +1,7 @@
import { MkbPreset } from "./mkb-preset";
import { GamepadKey, MkbPresetKey, GamepadStick, MouseMapTo } from "./definitions";
import { createButton, Icon, ButtonStyle, CE } from "../../utils/html";
import { BxEvent } from "../bx-event";
import { BxEvent } from "../../utils/bx-event";
import { PrefKey, getPref } from "../preferences";
import { Toast } from "../../utils/toast";
import { t } from "../translation";

View File

@ -1,5 +1,5 @@
import { STATES } from "../utils/global";
import { BX_FLAGS } from "./bx-flags";
import { BX_FLAGS } from "../utils/bx-flags";
import { getPref, PrefKey } from "./preferences";
import { VibrationManager } from "./vibration-manager";

View File

@ -1,7 +1,7 @@
import { STATES, AppInterface } from "../utils/global";
import { CE, createButton, ButtonStyle, Icon } from "../utils/html";
import { Toast } from "../utils/toast";
import { BxEvent } from "./bx-event";
import { BxEvent } from "../utils/bx-event";
import { getPref, PrefKey, setPref } from "./preferences";
import { t } from "./translation";
import { localRedirect } from "./ui/ui";

View File

@ -1,5 +1,5 @@
import { t } from "../translation";
import { BxEvent } from "../bx-event";
import { BxEvent } from "../../utils/bx-event";
import { CE } from "../../utils/html";
import { STATES } from "../../utils/global";

View File

@ -1,5 +1,5 @@
import { PrefKey } from "../preferences"
import { BxEvent } from "../bx-event"
import { BxEvent } from "../../utils/bx-event"
import { getPref } from "../preferences"
import { StreamBadges } from "./stream-badges"
import { CE } from "../../utils/html"

View File

@ -1,6 +1,6 @@
import { STATES } from "../../utils/global";
import { Icon } from "../../utils/html";
import { BxEvent } from "../bx-event";
import { BxEvent } from "../../utils/bx-event";
import { PrefKey, getPref } from "../preferences";
import { t } from "../translation";
import { StreamBadges } from "./stream-badges";

View File

@ -1,8 +1,8 @@
import { NATIVE_FETCH, STATES } from "../utils/global";
import { CE } from "../utils/html";
import { Toast } from "../utils/toast";
import { BxEvent } from "./bx-event";
import { BX_FLAGS } from "./bx-flags";
import { BxEvent } from "../utils/bx-event";
import { BX_FLAGS } from "../utils/bx-flags";
import { getPref, PrefKey } from "./preferences";
import { t } from "./translation";

View File

@ -1,7 +1,7 @@
import { STATES } from "../../utils/global";
import { Icon, CE, createButton, ButtonStyle } from "../../utils/html";
import { UserAgent } from "../../utils/user-agent";
import { BxEvent } from "../bx-event";
import { BxEvent } from "../../utils/bx-event";
import { MkbRemapper } from "../mkb/mkb-remapper";
import { getPref, PrefKey, toPrefElement } from "../preferences";
import { setupScreenshotButton } from "../screenshot";

View File

@ -1,5 +1,5 @@
import { AppInterface } from "../utils/global";
import { BxEvent } from "./bx-event";
import { BxEvent } from "../utils/bx-event";
import { PrefKey, getPref } from "./preferences";
const VIBRATION_DATA_MAP = {

View File

@ -1,4 +1,4 @@
import { AppInterface } from "../utils/global";
import { AppInterface } from "./global";
export enum BxEvent {
JUMP_BACK_IN_READY = 'bx-jump-back-in-ready',

View File

@ -1,4 +1,4 @@
import { STATES } from "../utils/global";
import { STATES } from "./global";
export const BxExposed = {
onPollingModeChanged: (mode: 'All' | 'None') => {

View File

@ -1,4 +1,4 @@
import { BxEvent } from "../modules/bx-event";
import { BxEvent } from "./bx-event";
import { LoadingScreen } from "../modules/loading-screen";
import { RemotePlay } from "../modules/remote-play";
import { checkHeader } from "../modules/ui/header";

View File

@ -1,4 +1,4 @@
import { BxEvent } from "../modules/bx-event";
import { BxEvent } from "./bx-event";
import { getPref, PrefKey } from "../modules/preferences";
import { STATES } from "./global";
import { UserAgent } from "./user-agent";

View File

@ -1,5 +1,5 @@
import { BxEvent } from "../modules/bx-event";
import { BX_FLAGS } from "../modules/bx-flags";
import { BxEvent } from "./bx-event";
import { BX_FLAGS } from "./bx-flags";
import { LoadingScreen } from "../modules/loading-screen";
import { PrefKey, getPref } from "../modules/preferences";
import { RemotePlay } from "../modules/remote-play";