vome-core 0.1.53 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/config/plugin-dev.js +1 -1
- package/dist/admin/crud/components/vm-date-calendar-panel.vue +96 -83
- package/dist/admin/crud/components/vm-date-picker.vue +21 -17
- package/dist/admin/crud/components/vm-date-range.vue +8 -11
- package/dist/admin/crud/components/vm-datetime-field.vue +20 -37
- package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
- package/dist/admin/crud/config.d.ts +0 -1
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/key.d.ts +0 -2
- package/dist/admin/crud/key.js +1 -1
- package/dist/admin/crud/plugins.js +1 -1
- package/dist/admin/crud/registry.d.ts +0 -2
- package/dist/admin/crud/registry.js +0 -2
- package/dist/admin/crud/span.js +1 -1
- package/dist/admin/crud/style.d.ts +2 -2
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/validate.d.ts +0 -10
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/crud/vm-crud.vue +1 -9
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/lib/browser.js +1 -1
- package/dist/admin/lib/cn.js +1 -1
- package/dist/admin/lib/dialog-float.js +1 -1
- package/dist/admin/lib/export-excel.d.ts +0 -2
- package/dist/admin/lib/export-excel.js +1 -1
- package/dist/admin/lib/file-preview.d.ts +2 -4
- package/dist/admin/lib/file-preview.js +11 -11
- package/dist/admin/lib/import-excel.d.ts +3 -2
- package/dist/admin/lib/import-excel.js +1 -1
- package/dist/admin/lib/json.js +1 -1
- package/dist/admin/lib/menu.js +1 -1
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.d.ts +0 -1
- package/dist/admin/lib/upload.js +1 -1
- package/dist/admin/lib/video-frame.d.ts +0 -3
- package/dist/admin/lib/video-frame.js +1 -1
- package/dist/agent/constants.d.ts +0 -7
- package/dist/agent/index.d.ts +0 -1
- package/dist/agent/index.js +2 -25
- package/dist/agent/protocol.d.ts +0 -2
- package/dist/ai/adapters/auth-headers.d.ts +2 -2
- package/dist/ai/adapters/openai-compatible.d.ts +1 -2
- package/dist/ai/index.js +0 -7
- package/dist/ai/transport.d.ts +0 -6
- package/dist/ai/types.d.ts +0 -2
- package/dist/client/vite-admin.d.ts +0 -5
- package/dist/client/vite-admin.js +0 -6
- package/dist/client/vite-plugin-eps.d.ts +0 -23
- package/dist/client/vite-plugin-eps.js +1 -1
- package/dist/comm/daily-log.d.ts +0 -2
- package/dist/comm/format-time.d.ts +0 -1
- package/dist/core/context/index.d.ts +0 -8
- package/dist/ext/load-plugin.d.ts +0 -4
- package/dist/index.js +1 -1
- package/dist/ioc/metadata.d.ts +0 -1
- package/dist/orm/column-comments.d.ts +2 -1
- package/dist/orm/field-ref.d.ts +2 -1
- package/dist/orm/import-excel.d.ts +2 -6
- package/dist/orm/join-tables.d.ts +0 -3
- package/dist/server/index.js +1 -1
- package/dist/shared/datetime-picker.d.ts +5 -22
- package/dist/shared/datetime-picker.js +1 -1
- package/dist/shared/excel.js +1 -1
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/locale-json.js +1 -1
- package/dist/shared/tree.js +1 -1
- package/dist/typings/routing/crud.d.ts +1 -1
- package/package.json +1 -1
- package/typings/admin/comm/crud.d.ts +1 -1
- package/typings/admin/comm/crud.ts +1 -3
- package/typings/routing/crud.ts +1 -3
- package/dist/admin/crud/mitt.d.ts +0 -10
- package/dist/admin/crud/mitt.js +0 -1
- package/dist/agent/types.d.ts +0 -14
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import type { Plugin } from 'vite';
|
|
2
2
|
export type EpsSide = 'admin' | 'app';
|
|
3
|
-
type EpsApi = {
|
|
4
|
-
method?: string;
|
|
5
|
-
path?: string;
|
|
6
|
-
summary?: string;
|
|
7
|
-
perms?: string[];
|
|
8
|
-
};
|
|
9
|
-
type EpsColumn = {
|
|
10
|
-
propertyName?: string;
|
|
11
|
-
type?: string;
|
|
12
|
-
comment?: string;
|
|
13
|
-
nullable?: boolean;
|
|
14
|
-
};
|
|
15
|
-
type EpsEntity = {
|
|
16
|
-
module?: string;
|
|
17
|
-
prefix?: string;
|
|
18
|
-
name?: string;
|
|
19
|
-
api?: EpsApi[];
|
|
20
|
-
columns?: EpsColumn[];
|
|
21
|
-
pageColumns?: EpsColumn[];
|
|
22
|
-
};
|
|
23
|
-
/** 生成 declare namespace Eps(按 side 剥前缀) */
|
|
24
|
-
export declare function buildEpsDts(map: Record<string, EpsEntity[]>, side: EpsSide): string;
|
|
25
3
|
export type EpsVitePluginOptions = {
|
|
26
4
|
/** 生成哪一侧的 d.ts;both 时 d.ts 仍以 dtsSide 为准,json 含双侧 */
|
|
27
5
|
side?: EpsSide | 'both';
|
|
@@ -40,4 +18,3 @@ export type EpsVitePluginOptions = {
|
|
|
40
18
|
* web / uniapp 用 side:'app';admin 可用 side:'both'
|
|
41
19
|
*/
|
|
42
20
|
export declare function createEpsVitePlugin(options: EpsVitePluginOptions): Plugin;
|
|
43
|
-
export {};
|
|
@@ -20,7 +20,7 @@ function tsType(col) {
|
|
|
20
20
|
return "any";
|
|
21
21
|
return "string";
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
function buildEpsDts(map, side) {
|
|
24
24
|
const list = Object.values(map).flat().filter((e) => e.prefix);
|
|
25
25
|
const entityBlocks = [];
|
|
26
26
|
const serviceBlocks = [];
|
package/dist/comm/daily-log.d.ts
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
import type { ContextData } from '../../../typings/context/data';
|
|
2
2
|
export type { ContextData };
|
|
3
|
-
/** 从请求头 / 连接解析客户端 IP(不丢弃本机与内网) */
|
|
4
|
-
export declare function resolveClientIp(request: Request, server?: {
|
|
5
|
-
requestIP?: (request: Request) => {
|
|
6
|
-
address?: string;
|
|
7
|
-
} | null;
|
|
8
|
-
} | null): string;
|
|
9
3
|
/** @internal ALS 插件:从 Request 初始化上下文 */
|
|
10
4
|
export declare function initContextFromRequest(request: Request, server?: {
|
|
11
5
|
requestIP?: (request: Request) => {
|
|
12
6
|
address?: string;
|
|
13
7
|
} | null;
|
|
14
8
|
} | null): ContextData;
|
|
15
|
-
/** @internal ALS 插件:在指定上下文中执行 */
|
|
16
|
-
export declare function enterContext<T>(ctx: ContextData, fn: () => T): T;
|
|
17
9
|
/** @internal 进入请求上下文(onRequest 用,覆盖后续异步链) */
|
|
18
10
|
export declare function enterContextWith(ctx: ContextData): void;
|
|
19
11
|
declare function getContext(): ContextData | undefined;
|
|
@@ -3,10 +3,6 @@ import type { ModuleHandler } from '../../typings/ext/module';
|
|
|
3
3
|
type PluginCtor = new () => {
|
|
4
4
|
init: (info: PluginInfo, ctx?: unknown, app?: unknown, services?: Record<string, unknown>) => Promise<void>;
|
|
5
5
|
};
|
|
6
|
-
/** 混淆后 `vome-plugin-runtime` 可能进字符串数组,字面量替换失效;运行时拦截 require */
|
|
7
|
-
export declare function pluginRequire(id: string): any;
|
|
8
|
-
/** 剥 ESM、替换 CJS external(仅字符串内容 / 遗留 JSON 插件需要) */
|
|
9
|
-
export declare function normalizePluginScript(content: string): string;
|
|
10
6
|
/**
|
|
11
7
|
* 从落盘 server/index.js 加载。
|
|
12
8
|
* 读入后走内存编译,禁止 createRequire 落盘路径:
|