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,4 +1,4 @@
import type { GamepadKeyNameType } from "../../types/mkb";
import type { GamepadKeyNameType } from "@/types/mkb";
export enum GamepadKey {
A = 0,

View File

@@ -1,17 +1,17 @@
import { MkbPreset } from "./mkb-preset";
import { GamepadKey, MkbPresetKey, GamepadStick, MouseMapTo } from "./definitions";
import { createButton, Icon, ButtonStyle, CE } from "../../utils/html";
import { BxEvent } from "../../utils/bx-event";
import { PrefKey, getPref } from "../../utils/preferences";
import { Toast } from "../../utils/toast";
import { t } from "../../utils/translation";
import { LocalDb } from "../../utils/local-db";
import { createButton, Icon, ButtonStyle, CE } from "@/utils/html";
import { BxEvent } from "@/utils/bx-event";
import { PrefKey, getPref } from "@/utils/preferences";
import { Toast } from "@/utils/toast";
import { t } from "@/utils/translation";
import { LocalDb } from "@/utils/local-db";
import { KeyHelper } from "./key-helper";
import type { MkbStoredPreset } from "../../types/mkb";
import { showStreamSettings } from "../stream/stream-ui";
import { STATES } from "../../utils/global";
import { UserAgent } from "../../utils/user-agent";
import { BxLogger } from "../../utils/bx-logger";
import type { MkbStoredPreset } from "@/types/mkb";
import { showStreamSettings } from "@/modules/stream/stream-ui";
import { STATES } from "@/utils/global";
import { UserAgent } from "@/utils/user-agent";
import { BxLogger } from "@/utils/bx-logger";
const LOG_TAG = 'MkbHandler';

View File

@@ -1,9 +1,9 @@
import { t } from "../../utils/translation";
import { SettingElementType } from "../../utils/settings";
import { t } from "@/utils/translation";
import { SettingElementType } from "@/utils/settings";
import { GamepadKey, MouseButtonCode, MouseMapTo, MkbPresetKey } from "./definitions";
import { MkbHandler } from "./mkb-handler";
import type { MkbPresetData, MkbConvertedPresetData } from "../../types/mkb";
import type { PreferenceSettings } from "../../types/preferences";
import type { MkbPresetData, MkbConvertedPresetData } from "@/types/mkb";
import type { PreferenceSettings } from "@/types/preferences";
export class MkbPreset {

View File

@@ -1,16 +1,16 @@
import { GamepadKey } from "./definitions";
import { CE, createButton, ButtonStyle } from "../../utils/html";
import { t } from "../../utils/translation";
import { Dialog } from "../dialog";
import { getPref, setPref, PrefKey } from "../../utils/preferences";
import { CE, createButton, ButtonStyle } from "@/utils/html";
import { t } from "@/utils/translation";
import { Dialog } from "@/modules/dialog";
import { getPref, setPref, PrefKey } from "@/utils/preferences";
import { MkbPresetKey, GamepadKeyName } from "./definitions";
import { KeyHelper } from "./key-helper";
import { MkbPreset } from "./mkb-preset";
import { MkbHandler } from "./mkb-handler";
import { LocalDb } from "../../utils/local-db";
import { Icon } from "../../utils/html";
import { SettingElement } from "../../utils/settings";
import type { MkbPresetData, MkbStoredPresets } from "../../types/mkb";
import { LocalDb } from "@/utils/local-db";
import { Icon } from "@/utils/html";
import { SettingElement } from "@/utils/settings";
import type { MkbPresetData, MkbStoredPresets } from "@/types/mkb";
type MkbRemapperElements = {