mirror of
https://github.com/motajs/template.git
synced 2026-04-12 15:11:10 +08:00
refactor: 将 system-action 与 system-ui 合并至 system
This commit is contained in:
parent
744a21e042
commit
03cf6a8917
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@user/client-base",
|
"name": "@user/client-base",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@motajs/render-assets": "workspace:*",
|
"@motajs/render": "workspace:*",
|
||||||
"@motajs/client-base": "workspace:*"
|
"@motajs/client-base": "workspace:*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,8 +8,7 @@
|
|||||||
"@motajs/legacy-common": "workspace:*",
|
"@motajs/legacy-common": "workspace:*",
|
||||||
"@motajs/legacy-ui": "workspace:*",
|
"@motajs/legacy-ui": "workspace:*",
|
||||||
"@motajs/types": "workspace:*",
|
"@motajs/types": "workspace:*",
|
||||||
"@motajs/system-action": "workspace:*",
|
"@motajs/system": "workspace:*",
|
||||||
"@motajs/system-ui": "workspace:*",
|
|
||||||
"@user/data-base": "workspace:*",
|
"@user/data-base": "workspace:*",
|
||||||
"@user/data-state": "workspace:*",
|
"@user/data-state": "workspace:*",
|
||||||
"@user/legacy-plugin-data": "workspace:*"
|
"@user/legacy-plugin-data": "workspace:*"
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { KeyCode } from '@motajs/client-base';
|
import { KeyCode } from '@motajs/client-base';
|
||||||
import { gameKey, HotkeyJSON } from '@motajs/system-action';
|
import { gameKey, HotkeyJSON } from '@motajs/system';
|
||||||
import { GameStorage } from '@motajs/legacy-system';
|
import { GameStorage } from '@motajs/legacy-system';
|
||||||
|
|
||||||
export const mainScope = Symbol.for('@key_main');
|
export const mainScope = Symbol.for('@key_main');
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { KeyCode } from '@motajs/client-base';
|
import { KeyCode } from '@motajs/client-base';
|
||||||
import { Hotkey, HotkeyData } from '@motajs/system-action';
|
import { Hotkey, HotkeyData } from '@motajs/system';
|
||||||
import { HeroMover, IMoveController } from '@user/data-state';
|
import { HeroMover, IMoveController } from '@user/data-state';
|
||||||
import { Ticker } from 'mutate-animate';
|
import { Ticker } from 'mutate-animate';
|
||||||
import { mainScope } from './hotkey';
|
import { mainScope } from './hotkey';
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey } from '@motajs/system';
|
||||||
import { POP_BOX_WIDTH, CENTER_LOC, FULL_LOC } from './shared';
|
import { POP_BOX_WIDTH, CENTER_LOC, FULL_LOC } from './shared';
|
||||||
import {
|
import {
|
||||||
saveSave,
|
saveSave,
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { Background, Selection } from './misc';
|
|||||||
import { TextContent, TextContentProps } from './textbox';
|
import { TextContent, TextContentProps } from './textbox';
|
||||||
import { TextAlign } from './textboxTyper';
|
import { TextAlign } from './textboxTyper';
|
||||||
import { Page, PageExpose } from './page';
|
import { Page, PageExpose } from './page';
|
||||||
import { GameUI, IUIMountable, SetupComponentOptions } from '@motajs/system-ui';
|
import { GameUI, IUIMountable, SetupComponentOptions } from '@motajs/system';
|
||||||
import { useKey } from '../use';
|
import { useKey } from '../use';
|
||||||
import { sleep } from 'mutate-animate';
|
import { sleep } from 'mutate-animate';
|
||||||
import { DefaultProps } from '@motajs/render-vue';
|
import { DefaultProps } from '@motajs/render-vue';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { DefaultProps } from '@motajs/render-vue';
|
import { DefaultProps } from '@motajs/render-vue';
|
||||||
import { SetupComponentOptions } from '@motajs/system-ui';
|
import { SetupComponentOptions } from '@motajs/system';
|
||||||
import { clamp, isNil } from 'lodash-es';
|
import { clamp, isNil } from 'lodash-es';
|
||||||
import { computed, defineComponent, onMounted, ref, watch } from 'vue';
|
import { computed, defineComponent, onMounted, ref, watch } from 'vue';
|
||||||
import { Scroll, ScrollExpose } from './scroll';
|
import { Scroll, ScrollExpose } from './scroll';
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { ElementLocator } from '@motajs/render';
|
import { ElementLocator } from '@motajs/render';
|
||||||
import { DefaultProps, GraphicPropsBase } from '@motajs/render-vue';
|
import { DefaultProps, GraphicPropsBase } from '@motajs/render-vue';
|
||||||
import { SetupComponentOptions } from '@motajs/system-ui';
|
import { SetupComponentOptions } from '@motajs/system';
|
||||||
import {
|
import {
|
||||||
computed,
|
computed,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import {
|
|||||||
import { transitionedColor, useKey } from '../use';
|
import { transitionedColor, useKey } from '../use';
|
||||||
import { linear } from 'mutate-animate';
|
import { linear } from 'mutate-animate';
|
||||||
import { Background, Selection } from './misc';
|
import { Background, Selection } from './misc';
|
||||||
import { GameUI, IUIMountable, SetupComponentOptions } from '@motajs/system-ui';
|
import { GameUI, IUIMountable, SetupComponentOptions } from '@motajs/system';
|
||||||
import { KeyCode } from '@motajs/client-base';
|
import { KeyCode } from '@motajs/client-base';
|
||||||
|
|
||||||
export interface InputProps extends DefaultProps, Partial<TextContentProps> {
|
export interface InputProps extends DefaultProps, Partial<TextContentProps> {
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { DefaultProps } from '@motajs/render-vue';
|
|||||||
import { computed, defineComponent, ref, SlotsType, VNode } from 'vue';
|
import { computed, defineComponent, ref, SlotsType, VNode } from 'vue';
|
||||||
import { Selection } from './misc';
|
import { Selection } from './misc';
|
||||||
import { ElementLocator, Font } from '@motajs/render';
|
import { ElementLocator, Font } from '@motajs/render';
|
||||||
import { SetupComponentOptions } from '@motajs/system-ui';
|
import { SetupComponentOptions } from '@motajs/system';
|
||||||
import { Scroll } from './scroll';
|
import { Scroll } from './scroll';
|
||||||
|
|
||||||
export interface ListProps extends DefaultProps {
|
export interface ListProps extends DefaultProps {
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import { Scroll, ScrollExpose, ScrollProps } from './scroll';
|
|||||||
import { transitioned } from '../use';
|
import { transitioned } from '../use';
|
||||||
import { hyper } from 'mutate-animate';
|
import { hyper } from 'mutate-animate';
|
||||||
import { logger } from '@motajs/common';
|
import { logger } from '@motajs/common';
|
||||||
import { GameUI, IUIMountable, SetupComponentOptions } from '@motajs/system-ui';
|
import { GameUI, IUIMountable, SetupComponentOptions } from '@motajs/system';
|
||||||
import { clamp } from 'lodash-es';
|
import { clamp } from 'lodash-es';
|
||||||
|
|
||||||
interface ProgressProps extends DefaultProps {
|
interface ProgressProps extends DefaultProps {
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import {
|
|||||||
} from 'vue';
|
} from 'vue';
|
||||||
import { clamp, isNil } from 'lodash-es';
|
import { clamp, isNil } from 'lodash-es';
|
||||||
import { ElementLocator, Font } from '@motajs/render';
|
import { ElementLocator, Font } from '@motajs/render';
|
||||||
import { SetupComponentOptions } from '@motajs/system-ui';
|
import { SetupComponentOptions } from '@motajs/system';
|
||||||
import { DefaultProps } from '@motajs/render-vue';
|
import { DefaultProps } from '@motajs/render-vue';
|
||||||
|
|
||||||
/** 圆角矩形页码距离容器的边框大小,与 pageSize 相乘 */
|
/** 圆角矩形页码距离容器的边框大小,与 pageSize 相乘 */
|
||||||
|
|||||||
@ -29,7 +29,7 @@ import {
|
|||||||
import { hyper, linear, Transition } from 'mutate-animate';
|
import { hyper, linear, Transition } from 'mutate-animate';
|
||||||
import { clamp } from 'lodash-es';
|
import { clamp } from 'lodash-es';
|
||||||
import { transitioned } from '../use';
|
import { transitioned } from '../use';
|
||||||
import { SetupComponentOptions } from '@motajs/system-ui';
|
import { SetupComponentOptions } from '@motajs/system';
|
||||||
import { DefaultProps } from '@motajs/render-vue';
|
import { DefaultProps } from '@motajs/render-vue';
|
||||||
|
|
||||||
export const enum ScrollDirection {
|
export const enum ScrollDirection {
|
||||||
|
|||||||
@ -29,7 +29,7 @@ import {
|
|||||||
WordBreak,
|
WordBreak,
|
||||||
TextAlign
|
TextAlign
|
||||||
} from './textboxTyper';
|
} from './textboxTyper';
|
||||||
import { SetupComponentOptions } from '@motajs/system-ui';
|
import { SetupComponentOptions } from '@motajs/system';
|
||||||
import { texture } from '../elements';
|
import { texture } from '../elements';
|
||||||
import { DefaultProps } from '@motajs/render-vue';
|
import { DefaultProps } from '@motajs/render-vue';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { ElementLocator, MotaOffscreenCanvas2D, Sprite } from '@motajs/render';
|
import { ElementLocator, MotaOffscreenCanvas2D, Sprite } from '@motajs/render';
|
||||||
import { SpriteProps } from '@motajs/render-vue';
|
import { SpriteProps } from '@motajs/render-vue';
|
||||||
import { defineComponent, ref, watch } from 'vue';
|
import { defineComponent, ref, watch } from 'vue';
|
||||||
import { SetupComponentOptions } from '@motajs/system-ui';
|
import { SetupComponentOptions } from '@motajs/system';
|
||||||
|
|
||||||
export interface ThumbnailProps extends SpriteProps {
|
export interface ThumbnailProps extends SpriteProps {
|
||||||
/** 缩略图的位置 */
|
/** 缩略图的位置 */
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { transitioned } from '../use';
|
|||||||
import { hyper } from 'mutate-animate';
|
import { hyper } from 'mutate-animate';
|
||||||
import { debounce } from 'lodash-es';
|
import { debounce } from 'lodash-es';
|
||||||
import { texture } from '../elements';
|
import { texture } from '../elements';
|
||||||
import { SetupComponentOptions } from '@motajs/system-ui';
|
import { SetupComponentOptions } from '@motajs/system';
|
||||||
import { DefaultProps } from '@motajs/render-vue';
|
import { DefaultProps } from '@motajs/render-vue';
|
||||||
|
|
||||||
export interface TipProps extends DefaultProps {
|
export interface TipProps extends DefaultProps {
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
import { UIController } from '@motajs/system-ui';
|
import { UIController } from '@motajs/system';
|
||||||
|
|
||||||
export const sceneController = new UIController('main-scene');
|
export const sceneController = new UIController('main-scene');
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import {
|
|||||||
SetupComponentOptions,
|
SetupComponentOptions,
|
||||||
UIComponentProps,
|
UIComponentProps,
|
||||||
UIController
|
UIController
|
||||||
} from '@motajs/system-ui';
|
} from '@motajs/system';
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { MAIN_HEIGHT, MAIN_WIDTH } from '../shared';
|
import { MAIN_HEIGHT, MAIN_WIDTH } from '../shared';
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import {
|
|||||||
// import { WeatherController } from '../weather';
|
// import { WeatherController } from '../weather';
|
||||||
import { defineComponent, onUnmounted, reactive, ref } from 'vue';
|
import { defineComponent, onUnmounted, reactive, ref } from 'vue';
|
||||||
import { Textbox, Tip } from '../components';
|
import { Textbox, Tip } from '../components';
|
||||||
import { GameUI } from '@motajs/system-ui';
|
import { GameUI } from '@motajs/system';
|
||||||
import {
|
import {
|
||||||
ENABLE_RIGHT_STATUS_BAR,
|
ENABLE_RIGHT_STATUS_BAR,
|
||||||
MAIN_HEIGHT,
|
MAIN_HEIGHT,
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
IUIMountable,
|
IUIMountable,
|
||||||
SetupComponentOptions,
|
SetupComponentOptions,
|
||||||
UIComponentProps
|
UIComponentProps
|
||||||
} from '@motajs/system-ui';
|
} from '@motajs/system';
|
||||||
import {
|
import {
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ref,
|
ref,
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import {
|
|||||||
IUIMountable,
|
IUIMountable,
|
||||||
SetupComponentOptions,
|
SetupComponentOptions,
|
||||||
UIComponentProps
|
UIComponentProps
|
||||||
} from '@motajs/system-ui';
|
} from '@motajs/system';
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import {
|
import {
|
||||||
ChoiceItem,
|
ChoiceItem,
|
||||||
@ -15,8 +15,7 @@ import {
|
|||||||
waitbox
|
waitbox
|
||||||
} from '../components';
|
} from '../components';
|
||||||
import { mainUi } from '@motajs/legacy-ui';
|
import { mainUi } from '@motajs/legacy-ui';
|
||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey, generateKeyboardEvent } from '@motajs/system';
|
||||||
import { generateKeyboardEvent } from '@motajs/system-action';
|
|
||||||
import { getVitualKeyOnce } from '@motajs/legacy-ui';
|
import { getVitualKeyOnce } from '@motajs/legacy-ui';
|
||||||
import { getAllSavesData, getSaveData, syncFromServer } from '../utils';
|
import { getAllSavesData, getSaveData, syncFromServer } from '../utils';
|
||||||
import { getInput } from '../components';
|
import { getInput } from '../components';
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import {
|
|||||||
IUIMountable,
|
IUIMountable,
|
||||||
SetupComponentOptions,
|
SetupComponentOptions,
|
||||||
UIComponentProps
|
UIComponentProps
|
||||||
} from '@motajs/system-ui';
|
} from '@motajs/system';
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { waitbox, ListPage, TextContent } from '../components';
|
import { waitbox, ListPage, TextContent } from '../components';
|
||||||
import { DefaultProps } from '@motajs/render-vue';
|
import { DefaultProps } from '@motajs/render-vue';
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { GameUI, SetupComponentOptions } from '@motajs/system-ui';
|
import { GameUI, SetupComponentOptions } from '@motajs/system';
|
||||||
import { computed, ComputedRef, defineComponent, shallowReactive } from 'vue';
|
import { computed, ComputedRef, defineComponent, shallowReactive } from 'vue';
|
||||||
import { TextContent } from '../components';
|
import { TextContent } from '../components';
|
||||||
import { ElementLocator, Font, SizedCanvasImageSource } from '@motajs/render';
|
import { ElementLocator, Font, SizedCanvasImageSource } from '@motajs/render';
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import {
|
|||||||
GameUI,
|
GameUI,
|
||||||
SetupComponentOptions,
|
SetupComponentOptions,
|
||||||
UIComponentProps
|
UIComponentProps
|
||||||
} from '@motajs/system-ui';
|
} from '@motajs/system';
|
||||||
import { defineComponent, nextTick, onMounted, ref } from 'vue';
|
import { defineComponent, nextTick, onMounted, ref } from 'vue';
|
||||||
import {
|
import {
|
||||||
BUTTONS_HEIGHT,
|
BUTTONS_HEIGHT,
|
||||||
|
|||||||
@ -12,14 +12,13 @@ import {
|
|||||||
ViewMapIcon
|
ViewMapIcon
|
||||||
} from '../components/icons';
|
} from '../components/icons';
|
||||||
import { getVitualKeyOnce } from '@motajs/legacy-ui';
|
import { getVitualKeyOnce } from '@motajs/legacy-ui';
|
||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey, generateKeyboardEvent } from '@motajs/system';
|
||||||
import { generateKeyboardEvent } from '@motajs/system-action';
|
|
||||||
import { transitioned } from '../use';
|
import { transitioned } from '../use';
|
||||||
import { linear } from 'mutate-animate';
|
import { linear } from 'mutate-animate';
|
||||||
import { KeyCode } from '@motajs/client-base';
|
import { KeyCode } from '@motajs/client-base';
|
||||||
import { Progress } from '../components/misc';
|
import { Progress } from '../components/misc';
|
||||||
import { generateBinary } from '@motajs/legacy-common';
|
import { generateBinary } from '@motajs/legacy-common';
|
||||||
import { SetupComponentOptions } from '@motajs/system-ui';
|
import { SetupComponentOptions } from '@motajs/system';
|
||||||
import { saveSave, saveLoad } from './save';
|
import { saveSave, saveLoad } from './save';
|
||||||
import { mainUIController } from './controller';
|
import { mainUIController } from './controller';
|
||||||
import { MAIN_HEIGHT, FULL_LOC, POP_BOX_WIDTH, CENTER_LOC } from '../shared';
|
import { MAIN_HEIGHT, FULL_LOC, POP_BOX_WIDTH, CENTER_LOC } from '../shared';
|
||||||
|
|||||||
@ -12,7 +12,7 @@ import {
|
|||||||
IUIMountable,
|
IUIMountable,
|
||||||
SetupComponentOptions,
|
SetupComponentOptions,
|
||||||
UIComponentProps
|
UIComponentProps
|
||||||
} from '@motajs/system-ui';
|
} from '@motajs/system';
|
||||||
import {
|
import {
|
||||||
computed,
|
computed,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { Hotkey, gameKey } from '@motajs/system-action';
|
import { Hotkey, gameKey } from '@motajs/system';
|
||||||
import { loading } from '@user/data-base';
|
import { loading } from '@user/data-base';
|
||||||
import { TimingFn, Transition } from 'mutate-animate';
|
import { TimingFn, Transition } from 'mutate-animate';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { compressToBase64, decompressFromBase64 } from 'lz-string';
|
import { compressToBase64, decompressFromBase64 } from 'lz-string';
|
||||||
import { getConfirm, waitbox } from '../components';
|
import { getConfirm, waitbox } from '../components';
|
||||||
import { IUIMountable } from '@motajs/system-ui';
|
import { IUIMountable } from '@motajs/system';
|
||||||
import { SyncSaveFromServerResponse } from '@motajs/client-base';
|
import { SyncSaveFromServerResponse } from '@motajs/client-base';
|
||||||
import { CENTER_LOC, POP_BOX_WIDTH } from '../shared';
|
import { CENTER_LOC, POP_BOX_WIDTH } from '../shared';
|
||||||
|
|
||||||
|
|||||||
@ -701,7 +701,7 @@ loading.once('coreInit', () => {
|
|||||||
// 注册按键操作
|
// 注册按键操作
|
||||||
Mota.r(() => {
|
Mota.r(() => {
|
||||||
const { HeroKeyMover } = Mota.require('@user/client-modules');
|
const { HeroKeyMover } = Mota.require('@user/client-modules');
|
||||||
const { gameKey } = Mota.require('@motajs/system-action');
|
const { gameKey } = Mota.require('@motajs/system');
|
||||||
const keyMover = new HeroKeyMover(gameKey, heroMover);
|
const keyMover = new HeroKeyMover(gameKey, heroMover);
|
||||||
heroMoveCollection.keyMover = keyMover;
|
heroMoveCollection.keyMover = keyMover;
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,14 +5,8 @@
|
|||||||
"@motajs/client-base": "workspace:*",
|
"@motajs/client-base": "workspace:*",
|
||||||
"@motajs/common": "workspace:*",
|
"@motajs/common": "workspace:*",
|
||||||
"@motajs/render": "workspace:*",
|
"@motajs/render": "workspace:*",
|
||||||
"@motajs/render-assets": "workspace:*",
|
|
||||||
"@motajs/render-core": "workspace:*",
|
|
||||||
"@motajs/render-elements": "workspace:*",
|
|
||||||
"@motajs/render-style": "workspace:*",
|
|
||||||
"@motajs/render-vue": "workspace:*",
|
"@motajs/render-vue": "workspace:*",
|
||||||
"@motajs/system": "workspace:*",
|
"@motajs/system": "workspace:*",
|
||||||
"@motajs/system-ui": "workspace:*",
|
|
||||||
"@motajs/system-action": "workspace:*",
|
|
||||||
"@motajs/legacy-common": "workspace:*",
|
"@motajs/legacy-common": "workspace:*",
|
||||||
"@motajs/legacy-client": "workspace:*",
|
"@motajs/legacy-client": "workspace:*",
|
||||||
"@motajs/legacy-data": "workspace:*",
|
"@motajs/legacy-data": "workspace:*",
|
||||||
|
|||||||
@ -7,8 +7,6 @@ import * as LegacyUI from '@motajs/legacy-ui';
|
|||||||
import * as Render from '@motajs/render';
|
import * as Render from '@motajs/render';
|
||||||
import * as RenderVue from '@motajs/render-vue';
|
import * as RenderVue from '@motajs/render-vue';
|
||||||
import * as System from '@motajs/system';
|
import * as System from '@motajs/system';
|
||||||
import * as SystemAction from '@motajs/system-action';
|
|
||||||
import * as SystemUI from '@motajs/system-ui';
|
|
||||||
import * as UserClientBase from '@user/client-base';
|
import * as UserClientBase from '@user/client-base';
|
||||||
import * as ClientModules from '@user/client-modules';
|
import * as ClientModules from '@user/client-modules';
|
||||||
import * as LegacyPluginClient from '@user/legacy-plugin-client';
|
import * as LegacyPluginClient from '@user/legacy-plugin-client';
|
||||||
@ -28,8 +26,6 @@ export function create() {
|
|||||||
Mota.register('@motajs/render', Render);
|
Mota.register('@motajs/render', Render);
|
||||||
Mota.register('@motajs/render-vue', RenderVue);
|
Mota.register('@motajs/render-vue', RenderVue);
|
||||||
Mota.register('@motajs/system', System);
|
Mota.register('@motajs/system', System);
|
||||||
Mota.register('@motajs/system-action', SystemAction);
|
|
||||||
Mota.register('@motajs/system-ui', SystemUI);
|
|
||||||
Mota.register('@user/client-base', UserClientBase);
|
Mota.register('@user/client-base', UserClientBase);
|
||||||
Mota.register('@user/client-modules', ClientModules);
|
Mota.register('@user/client-modules', ClientModules);
|
||||||
Mota.register('@user/legacy-plugin-client', LegacyPluginClient);
|
Mota.register('@user/legacy-plugin-client', LegacyPluginClient);
|
||||||
|
|||||||
@ -8,8 +8,6 @@ import type * as LegacyUI from '@motajs/legacy-ui';
|
|||||||
import type * as Render from '@motajs/render';
|
import type * as Render from '@motajs/render';
|
||||||
import type * as RenderVue from '@motajs/render-vue';
|
import type * as RenderVue from '@motajs/render-vue';
|
||||||
import type * as System from '@motajs/system';
|
import type * as System from '@motajs/system';
|
||||||
import type * as SystemAction from '@motajs/system-action';
|
|
||||||
import type * as SystemUI from '@motajs/system-ui';
|
|
||||||
import type * as ClientModules from '@user/client-modules';
|
import type * as ClientModules from '@user/client-modules';
|
||||||
import type * as DataBase from '@user/data-base';
|
import type * as DataBase from '@user/data-base';
|
||||||
import type * as DataFallback from '@user/data-fallback';
|
import type * as DataFallback from '@user/data-fallback';
|
||||||
@ -33,8 +31,6 @@ interface ModuleInterface {
|
|||||||
'@motajs/render': typeof Render;
|
'@motajs/render': typeof Render;
|
||||||
'@motajs/render-vue': typeof RenderVue;
|
'@motajs/render-vue': typeof RenderVue;
|
||||||
'@motajs/system': typeof System;
|
'@motajs/system': typeof System;
|
||||||
'@motajs/system-action': typeof SystemAction;
|
|
||||||
'@motajs/system-ui': typeof SystemUI;
|
|
||||||
'@user/client-modules': typeof ClientModules;
|
'@user/client-modules': typeof ClientModules;
|
||||||
'@user/data-base': typeof DataBase;
|
'@user/data-base': typeof DataBase;
|
||||||
'@user/data-fallback': typeof DataFallback;
|
'@user/data-fallback': typeof DataFallback;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@motajs/legacy-system",
|
"name": "@motajs/legacy-system",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@motajs/system-action": "workspace:*"
|
"@motajs/system": "workspace:*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -21,7 +21,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { checkAssist, Keyboard, KeyboardEmits } from '@motajs/system-action';
|
import { checkAssist, Keyboard, KeyboardEmits } from '@motajs/system';
|
||||||
import { KeyCodeUtils } from '@motajs/client-base';
|
import { KeyCodeUtils } from '@motajs/client-base';
|
||||||
import { nextTick, onUnmounted, ref } from 'vue';
|
import { nextTick, onUnmounted, ref } from 'vue';
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { Keyboard } from '@motajs/system-action';
|
import { Keyboard } from '@motajs/system';
|
||||||
import KeyboardUI from './keyboard.vue';
|
import KeyboardUI from './keyboard.vue';
|
||||||
|
|
||||||
interface VirtualKeyProps {
|
interface VirtualKeyProps {
|
||||||
|
|||||||
@ -6,6 +6,6 @@
|
|||||||
"@motajs/client": "workspace:*",
|
"@motajs/client": "workspace:*",
|
||||||
"@motajs/client-base": "workspace:*",
|
"@motajs/client-base": "workspace:*",
|
||||||
"@motajs/legacy-system": "workspace:*",
|
"@motajs/legacy-system": "workspace:*",
|
||||||
"@motajs/system-action": "workspace:*"
|
"@motajs/system": "workspace:*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
import { KeyCode } from '@motajs/client-base';
|
import { KeyCode } from '@motajs/client-base';
|
||||||
import { Keyboard } from '@motajs/system-action';
|
import { Keyboard } from '@motajs/system';
|
||||||
|
|
||||||
const qweKey = new Keyboard('qwe'); // 字母键盘,A-Z
|
const qweKey = new Keyboard('qwe'); // 字母键盘,A-Z
|
||||||
const numKey = new Keyboard('num'); // 数字键盘,1-0
|
const numKey = new Keyboard('num'); // 数字键盘,1-0
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import type { SettingComponent, SettingComponentProps } from '../setting';
|
import type { SettingComponent, SettingComponentProps } from '../setting';
|
||||||
import { Button, InputNumber, Radio } from 'ant-design-vue';
|
import { Button, InputNumber, Radio } from 'ant-design-vue';
|
||||||
import { mainUi } from './uiIns';
|
import { mainUi } from './uiIns';
|
||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey } from '@motajs/system';
|
||||||
|
|
||||||
interface Components {
|
interface Components {
|
||||||
Default: SettingComponent;
|
Default: SettingComponent;
|
||||||
|
|||||||
@ -45,7 +45,7 @@ import BookDetail from './bookDetail.vue';
|
|||||||
import { LeftOutlined } from '@ant-design/icons-vue';
|
import { LeftOutlined } from '@ant-design/icons-vue';
|
||||||
import { ToShowEnemy, detailInfo } from '../tools/book';
|
import { ToShowEnemy, detailInfo } from '../tools/book';
|
||||||
import { getDetailedEnemy } from '../tools/fixed';
|
import { getDetailedEnemy } from '../tools/fixed';
|
||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey } from '@motajs/system';
|
||||||
import { mainSetting } from '../preset/settingIns';
|
import { mainSetting } from '../preset/settingIns';
|
||||||
import { isMobile } from '../use';
|
import { isMobile } from '../use';
|
||||||
import { IMountedVBind } from '../interface';
|
import { IMountedVBind } from '../interface';
|
||||||
|
|||||||
@ -77,7 +77,7 @@ import EnemySpecial from '../panel/enemySpecial.vue';
|
|||||||
import { LeftOutlined, RightOutlined } from '@ant-design/icons-vue';
|
import { LeftOutlined, RightOutlined } from '@ant-design/icons-vue';
|
||||||
import EnemyCritical from '../panel/enemyCritical.vue';
|
import EnemyCritical from '../panel/enemyCritical.vue';
|
||||||
import { detailInfo } from '../tools/book';
|
import { detailInfo } from '../tools/book';
|
||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey } from '@motajs/system';
|
||||||
import { Divider } from 'ant-design-vue';
|
import { Divider } from 'ant-design-vue';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|||||||
@ -184,7 +184,7 @@ import BoxAnimate from '../components/boxAnimate.vue';
|
|||||||
import { type, getStatusLabel } from '../utils';
|
import { type, getStatusLabel } from '../utils';
|
||||||
import { cancelGlobalDrag, isMobile, tip, useDrag } from '../use';
|
import { cancelGlobalDrag, isMobile, tip, useDrag } from '../use';
|
||||||
import { hyper } from 'mutate-animate';
|
import { hyper } from 'mutate-animate';
|
||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey } from '@motajs/system';
|
||||||
import { IMountedVBind } from '../interface';
|
import { IMountedVBind } from '../interface';
|
||||||
import { isNil } from 'lodash-es';
|
import { isNil } from 'lodash-es';
|
||||||
import { Divider, Select, SelectOption } from 'ant-design-vue';
|
import { Divider, Select, SelectOption } from 'ant-design-vue';
|
||||||
|
|||||||
@ -99,7 +99,7 @@ import {
|
|||||||
} from '@ant-design/icons-vue';
|
} from '@ant-design/icons-vue';
|
||||||
import { debounce } from 'lodash-es';
|
import { debounce } from 'lodash-es';
|
||||||
import { tip } from '../use';
|
import { tip } from '../use';
|
||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey } from '@motajs/system';
|
||||||
import { createChangable } from '../tools/common';
|
import { createChangable } from '../tools/common';
|
||||||
import { mainSetting } from '../preset/settingIns';
|
import { mainSetting } from '../preset/settingIns';
|
||||||
import { GameStorage } from '@motajs/legacy-system';
|
import { GameStorage } from '@motajs/legacy-system';
|
||||||
|
|||||||
@ -36,12 +36,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Hotkey } from '@motajs/system-action';
|
import { Hotkey, gameKey } from '@motajs/system';
|
||||||
import Column from '../components/colomn.vue';
|
import Column from '../components/colomn.vue';
|
||||||
import { computed, onMounted, onUnmounted, reactive, ref } from 'vue';
|
import { computed, onMounted, onUnmounted, reactive, ref } from 'vue';
|
||||||
import { KeyCode, KeyCodeUtils } from '@motajs/client-base';
|
import { KeyCode, KeyCodeUtils } from '@motajs/client-base';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
import { gameKey } from '@motajs/system-action';
|
|
||||||
import { generateBinary, keycode } from '@motajs/legacy-common';
|
import { generateBinary, keycode } from '@motajs/legacy-common';
|
||||||
import { IMountedVBind } from '../interface';
|
import { IMountedVBind } from '../interface';
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,7 @@ import { RightOutlined, LeftOutlined } from '@ant-design/icons-vue';
|
|||||||
import { splitText } from '../utils';
|
import { splitText } from '../utils';
|
||||||
import Scroll from '../components/scroll.vue';
|
import Scroll from '../components/scroll.vue';
|
||||||
import { isMobile } from '../use';
|
import { isMobile } from '../use';
|
||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey } from '@motajs/system';
|
||||||
import { IMountedVBind } from '../interface';
|
import { IMountedVBind } from '../interface';
|
||||||
import { Divider } from 'ant-design-vue';
|
import { Divider } from 'ant-design-vue';
|
||||||
|
|
||||||
|
|||||||
@ -172,7 +172,7 @@ import {
|
|||||||
import { splitText } from '../utils';
|
import { splitText } from '../utils';
|
||||||
import Scroll from '../components/scroll.vue';
|
import Scroll from '../components/scroll.vue';
|
||||||
import BoxAnimate from '../components/boxAnimate.vue';
|
import BoxAnimate from '../components/boxAnimate.vue';
|
||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey } from '@motajs/system';
|
||||||
import { IMountedVBind } from '../interface';
|
import { IMountedVBind } from '../interface';
|
||||||
import { tip } from '../use';
|
import { tip } from '../use';
|
||||||
import { Divider } from 'ant-design-vue';
|
import { Divider } from 'ant-design-vue';
|
||||||
|
|||||||
@ -116,7 +116,7 @@ import { isMobile } from '../use';
|
|||||||
import { type } from '../utils';
|
import { type } from '../utils';
|
||||||
import { hyper } from 'mutate-animate';
|
import { hyper } from 'mutate-animate';
|
||||||
import { Divider, message } from 'ant-design-vue';
|
import { Divider, message } from 'ant-design-vue';
|
||||||
import { gameKey } from '@motajs/system-action';
|
import { gameKey } from '@motajs/system';
|
||||||
import { IMountedVBind } from '../interface';
|
import { IMountedVBind } from '../interface';
|
||||||
import { isNil } from 'lodash-es';
|
import { isNil } from 'lodash-es';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { KeyCode } from '@motajs/client-base';
|
import { KeyCode } from '@motajs/client-base';
|
||||||
import { KeyboardEmits, Keyboard, isAssist } from '@motajs/system-action';
|
import { KeyboardEmits, Keyboard, isAssist } from '@motajs/system';
|
||||||
import { mainUi } from './preset/uiIns';
|
import { mainUi } from './preset/uiIns';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -3,6 +3,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@motajs/common": "workspace:*",
|
"@motajs/common": "workspace:*",
|
||||||
"@motajs/render": "workspace:*",
|
"@motajs/render": "workspace:*",
|
||||||
"@motajs/system-action": "workspace:*"
|
"@motajs/system": "workspace:*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@motajs/system-action",
|
|
||||||
"dependencies": {
|
|
||||||
"@motajs/common": "workspace:*"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@motajs/system-ui",
|
|
||||||
"dependencies": {
|
|
||||||
"@motajs/common": "workspace:*",
|
|
||||||
"@motajs/render": "workspace:*"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@motajs/system",
|
"name": "@motajs/system",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@motajs/system-ui": "workspace:*",
|
"@motajs/common": "workspace:*"
|
||||||
"@motajs/system-action": "workspace:*"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,2 +1,2 @@
|
|||||||
export * from '@motajs/system-action';
|
export * from './action';
|
||||||
export * from '@motajs/system-ui';
|
export * from './ui';
|
||||||
|
|||||||
116
pnpm-lock.yaml
116
pnpm-lock.yaml
@ -223,6 +223,15 @@ importers:
|
|||||||
specifier: ^8.18.1
|
specifier: ^8.18.1
|
||||||
version: 8.18.3
|
version: 8.18.3
|
||||||
|
|
||||||
|
packages-user/client-base:
|
||||||
|
dependencies:
|
||||||
|
'@motajs/client-base':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../packages/client-base
|
||||||
|
'@motajs/render':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../packages/render
|
||||||
|
|
||||||
packages-user/client-modules:
|
packages-user/client-modules:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@motajs/client-base':
|
'@motajs/client-base':
|
||||||
@ -240,15 +249,12 @@ importers:
|
|||||||
'@motajs/render':
|
'@motajs/render':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/render
|
version: link:../../packages/render
|
||||||
'@motajs/render-core':
|
'@motajs/render-vue':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/render-core
|
version: link:../../packages/render-vue
|
||||||
'@motajs/system-action':
|
'@motajs/system':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/system-action
|
version: link:../../packages/system
|
||||||
'@motajs/system-ui':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../../packages/system-ui
|
|
||||||
'@motajs/types':
|
'@motajs/types':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/types
|
version: link:../../packages/types
|
||||||
@ -333,27 +339,15 @@ importers:
|
|||||||
'@motajs/render':
|
'@motajs/render':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/render
|
version: link:../../packages/render
|
||||||
'@motajs/render-core':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../../packages/render-core
|
|
||||||
'@motajs/render-elements':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../../packages/render-elements
|
|
||||||
'@motajs/render-style':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../../packages/render-style
|
|
||||||
'@motajs/render-vue':
|
'@motajs/render-vue':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/render-vue
|
version: link:../../packages/render-vue
|
||||||
'@motajs/system':
|
'@motajs/system':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/system
|
version: link:../../packages/system
|
||||||
'@motajs/system-action':
|
'@user/client-base':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/system-action
|
version: link:../client-base
|
||||||
'@motajs/system-ui':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../../packages/system-ui
|
|
||||||
'@user/client-modules':
|
'@user/client-modules':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../client-modules
|
version: link:../client-modules
|
||||||
@ -440,9 +434,9 @@ importers:
|
|||||||
|
|
||||||
packages/legacy-system:
|
packages/legacy-system:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@motajs/system-action':
|
'@motajs/system':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../system-action
|
version: link:../system
|
||||||
|
|
||||||
packages/legacy-ui:
|
packages/legacy-ui:
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -461,9 +455,9 @@ importers:
|
|||||||
'@motajs/render':
|
'@motajs/render':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../render
|
version: link:../render
|
||||||
'@motajs/system-action':
|
'@motajs/system':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../system-action
|
version: link:../system
|
||||||
|
|
||||||
packages/render:
|
packages/render:
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -483,70 +477,7 @@ importers:
|
|||||||
specifier: ^3.5.13
|
specifier: ^3.5.13
|
||||||
version: 3.5.20(typescript@5.9.2)
|
version: 3.5.20(typescript@5.9.2)
|
||||||
|
|
||||||
packages/render-assets:
|
|
||||||
dependencies:
|
|
||||||
'@motajs/client-base':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../client-base
|
|
||||||
|
|
||||||
packages/render-core:
|
|
||||||
dependencies:
|
|
||||||
'@motajs/common':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../common
|
|
||||||
|
|
||||||
packages/render-elements:
|
|
||||||
dependencies:
|
|
||||||
'@motajs/common':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../common
|
|
||||||
'@motajs/render-core':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../render-core
|
|
||||||
'@motajs/render-style':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../render-style
|
|
||||||
|
|
||||||
packages/render-style:
|
|
||||||
dependencies:
|
|
||||||
'@motajs/common':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../common
|
|
||||||
|
|
||||||
packages/render-vue:
|
packages/render-vue:
|
||||||
dependencies:
|
|
||||||
'@motajs/common':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../common
|
|
||||||
'@motajs/render-core':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../render-core
|
|
||||||
'@motajs/render-elements':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../render-elements
|
|
||||||
'@motajs/render-style':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../render-style
|
|
||||||
'@motajs/system-action':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../system-action
|
|
||||||
|
|
||||||
packages/system:
|
|
||||||
dependencies:
|
|
||||||
'@motajs/system-action':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../system-action
|
|
||||||
'@motajs/system-ui':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../system-ui
|
|
||||||
|
|
||||||
packages/system-action:
|
|
||||||
dependencies:
|
|
||||||
'@motajs/common':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../common
|
|
||||||
|
|
||||||
packages/system-ui:
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@motajs/common':
|
'@motajs/common':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
@ -554,6 +485,15 @@ importers:
|
|||||||
'@motajs/render':
|
'@motajs/render':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../render
|
version: link:../render
|
||||||
|
'@motajs/system':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../system
|
||||||
|
|
||||||
|
packages/system:
|
||||||
|
dependencies:
|
||||||
|
'@motajs/common':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../common
|
||||||
|
|
||||||
packages/types: {}
|
packages/types: {}
|
||||||
|
|
||||||
|
|||||||
@ -1657,7 +1657,7 @@ events.prototype._action_setText = function (data) {
|
|||||||
const { textbox = 'main-textbox' } = data;
|
const { textbox = 'main-textbox' } = data;
|
||||||
const Store = Mota.require('@user/client-modules').TextboxStore;
|
const Store = Mota.require('@user/client-modules').TextboxStore;
|
||||||
const { TextAlign, WordBreak } = Mota.require('@user/client-modules');
|
const { TextAlign, WordBreak } = Mota.require('@user/client-modules');
|
||||||
const Font = Mota.require('@motajs/render-style').Font;
|
const Font = Mota.require('@motajs/render').Font;
|
||||||
const store = Store.get(textbox);
|
const store = Store.get(textbox);
|
||||||
if (!store) {
|
if (!store) {
|
||||||
core.doAction();
|
core.doAction();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user