mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-11 15:47:06 +08:00
refactor: KeyCode 移动至 @motajs/client-base
This commit is contained in:
parent
693e531639
commit
50292e2d8a
3
packages/client-base/package.json
Normal file
3
packages/client-base/package.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"name": "@motajs/client-base"
|
||||
}
|
1
packages/client-base/src/index.ts
Normal file
1
packages/client-base/src/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './keyCodes';
|
@ -1,6 +1,8 @@
|
||||
{
|
||||
"name": "@motajs/client",
|
||||
"dependencies": {
|
||||
"@motajs/render": "workspace:*"
|
||||
"@motajs/render": "workspace:*",
|
||||
"@motajs/client-base": "workspace:*",
|
||||
"@motajs/system": "workspace:*"
|
||||
}
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
export * from './keyCodes';
|
||||
|
||||
export * as Base from '@motajs/client-base';
|
||||
export * as Render from '@motajs/render';
|
||||
export * as System from '@motajs/system';
|
||||
|
@ -3,6 +3,7 @@
|
||||
"dependencies": {
|
||||
"@motajs/render": "workspace:*",
|
||||
"@motajs/common": "workspace:*",
|
||||
"@motajs/client": "workspace:*"
|
||||
"@motajs/client": "workspace:*",
|
||||
"@motajs/client-base": "workspace:*"
|
||||
}
|
||||
}
|
@ -41,7 +41,7 @@ import { GameUi } from '@/core/main/custom/ui';
|
||||
import Column from '../components/colomn.vue';
|
||||
import { mainUi } from '@/core/main/init/ui';
|
||||
import { computed, onMounted, onUnmounted, reactive, ref } from 'vue';
|
||||
import { KeyCode, KeyCodeUtils } from '@motajs/client';
|
||||
import { KeyCode, KeyCodeUtils } from '@motajs/client-base';
|
||||
import { generateBinary, keycode } from '../utils';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { gameKey } from '@/core/main/custom/hotkey';
|
||||
|
@ -3,7 +3,7 @@ import { MessageApi } from 'ant-design-vue/lib/message';
|
||||
import { isNil } from 'lodash-es';
|
||||
import { Animation, sleep, TimingFn } from 'mutate-animate';
|
||||
import { Ref, ref } from 'vue';
|
||||
import { EVENT_KEY_CODE_MAP, KeyCode } from '@motajs/client';
|
||||
import { EVENT_KEY_CODE_MAP, KeyCode } from '@motajs/client-base';
|
||||
import axios from 'axios';
|
||||
import { decompressFromBase64 } from 'lz-string';
|
||||
import { Keyboard, KeyboardEmits } from '@/core/main/custom/keyboard';
|
||||
|
@ -11,7 +11,7 @@ import {
|
||||
mainSetting,
|
||||
settingStorage
|
||||
} from './main/setting';
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import '@/plugin';
|
||||
import './package';
|
||||
import { CustomToolbar } from './main/custom/toolbar';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import { Hotkey, HotkeyData } from '../custom/hotkey';
|
||||
import type { HeroMover, IMoveController } from '@/game/state/move';
|
||||
import { Ticker } from 'mutate-animate';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import {
|
||||
deleteWith,
|
||||
generateBinary,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { EventEmitter, Listener } from '@motajs/legacy-common';
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import { gameKey } from './hotkey';
|
||||
import { unwarpBinary } from './hotkey';
|
||||
import { deleteWith, flipBinary } from '@motajs/legacy-ui';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import { gameKey, HotkeyJSON } from '../custom/hotkey';
|
||||
import {
|
||||
openDanmakuPoster,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import { Keyboard } from '../custom/keyboard';
|
||||
|
||||
const qweKey = new Keyboard('qwe'); // 字母键盘,A-Z
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { KeyCode, KeyCodeUtils } from '@motajs/client';
|
||||
import { KeyCode, KeyCodeUtils } from '@motajs/client-base';
|
||||
import { CustomToolbar } from '../custom/toolbar';
|
||||
import BoxAnimate from '@/components/boxAnimate.vue';
|
||||
import { checkAssist, unwarpBinary } from '../custom/hotkey';
|
||||
|
@ -13,7 +13,7 @@ import type { MotaSetting, SettingDisplayer } from '@/core/main/setting';
|
||||
import type { GameStorage } from '@/core/main/storage';
|
||||
import type { DamageEnemy, EnemyCollection } from './enemy/damage';
|
||||
import type { specials } from './enemy/special';
|
||||
import type { KeyCode } from '@motajs/client';
|
||||
import type { KeyCode } from '@motajs/client-base';
|
||||
import type { Ref } from 'vue';
|
||||
import type * as battle from './enemy/battle';
|
||||
import type * as hero from './state/hero';
|
||||
|
@ -22,7 +22,7 @@ import { gameKey } from '@/core/main/custom/hotkey';
|
||||
import { generateKeyboardEvent } from '@/core/main/custom/keyboard';
|
||||
import { transitioned } from '../use';
|
||||
import { linear } from 'mutate-animate';
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import { Progress } from '../components/misc';
|
||||
|
||||
interface ToolbarProps extends DefaultProps {
|
||||
|
@ -2,6 +2,7 @@
|
||||
"name": "@motajs/user",
|
||||
"dependencies": {
|
||||
"@motajs/client": "workspace:*",
|
||||
"@motajs/client-base": "workspace:*",
|
||||
"@motajs/common": "workspace:*",
|
||||
"@motajs/render": "workspace:*",
|
||||
"@motajs/system": "workspace:*",
|
||||
|
Loading…
Reference in New Issue
Block a user