@liujitcn/kratos-admin-system 0.0.27 → 0.0.29
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/README.md +1 -1
- package/dist/package/declarations/src/api/system/base_i18n.d.ts +5 -5
- package/dist/package/declarations/src/api/system/runtime_log.d.ts +13 -0
- package/dist/package/declarations/src/api/system/runtime_log_sse.d.ts +8 -0
- package/dist/package/declarations/src/components/DynamicI18nCell.vue.d.ts +16 -0
- package/dist/package/declarations/src/components/DynamicI18nEditor.vue.d.ts +20 -0
- package/dist/package/declarations/src/components/dynamicI18n.d.ts +38 -0
- package/dist/package/declarations/src/locales/generated.d.ts +168 -52
- package/dist/package/declarations/src/rpc/system/admin/v1/base_config.d.ts +3 -3
- package/dist/package/declarations/src/rpc/system/admin/v1/base_dict.d.ts +4 -4
- package/dist/package/declarations/src/rpc/system/admin/v1/base_i18n.d.ts +23 -23
- package/dist/package/declarations/src/rpc/system/admin/v1/base_menu.d.ts +2 -2
- package/dist/package/declarations/src/rpc/system/admin/v1/code_gen.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/ops_monitoring.d.ts +4 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/project_document.d.ts +4 -6
- package/dist/package/declarations/src/rpc/system/admin/v1/runtime_log.d.ts +96 -0
- package/dist/package/declarations/src/views/tool/runtime-log/index.vue.d.ts +3 -0
- package/dist/package/src/api/system/base_i18n.ts +12 -12
- package/dist/package/src/api/system/runtime_log.ts +80 -0
- package/dist/package/src/api/system/runtime_log_sse.ts +40 -0
- package/dist/package/src/components/{DynamicTranslationCell.vue → DynamicI18nCell.vue} +50 -50
- package/dist/package/src/components/{DynamicTranslationEditor.vue → DynamicI18nEditor.vue} +45 -45
- package/dist/package/src/components/{dynamicTranslation.ts → dynamicI18n.ts} +15 -15
- package/dist/package/src/locales/README.md +1 -1
- package/dist/package/src/locales/en-US.json +46 -17
- package/dist/package/src/locales/ja-JP.json +44 -15
- package/dist/package/src/locales/zh-CN.json +44 -15
- package/dist/package/src/locales/zh-TW.json +44 -15
- package/dist/package/src/rpc/system/admin/v1/base_config.ts +3 -3
- package/dist/package/src/rpc/system/admin/v1/base_dict.ts +4 -4
- package/dist/package/src/rpc/system/admin/v1/base_i18n.ts +23 -23
- package/dist/package/src/rpc/system/admin/v1/base_menu.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/code_gen.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/ops_monitoring.ts +4 -0
- package/dist/package/src/rpc/system/admin/v1/project_document.ts +4 -7
- package/dist/package/src/rpc/system/admin/v1/runtime_log.ts +113 -0
- package/dist/package/src/views/base/config/index.vue +38 -38
- package/dist/package/src/views/base/dict/index.vue +23 -23
- package/dist/package/src/views/base/dict/item.vue +25 -25
- package/dist/package/src/views/base/menu/index.vue +23 -23
- package/dist/package/src/views/tool/api-doc/index.vue +14 -6
- package/dist/package/src/views/tool/code-gen/code-preview/index.vue +23 -6
- package/dist/package/src/views/tool/code-gen/columns/index.vue +1 -1
- package/dist/package/src/views/tool/code-gen/components/CodeGenLocaleEditor.vue +96 -14
- package/dist/package/src/views/tool/code-gen/table/index.vue +33 -1
- package/dist/package/src/views/tool/ops-monitoring/index.vue +130 -24
- package/dist/package/src/views/tool/project-doc/index.vue +9 -4
- package/dist/package/src/views/tool/runtime-log/index.vue +883 -0
- package/package.json +2 -2
- package/dist/package/declarations/src/components/DynamicTranslationCell.vue.d.ts +0 -16
- package/dist/package/declarations/src/components/DynamicTranslationEditor.vue.d.ts +0 -20
- package/dist/package/declarations/src/components/dynamicTranslation.d.ts +0 -38
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liujitcn/kratos-admin-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.29",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "kratos-admin system management module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"sortablejs": "^1.15.2",
|
|
16
16
|
"swagger-ui-dist": "^5.32.9",
|
|
17
17
|
"vue-element-plus-x": "^2.0.3",
|
|
18
|
-
"@liujitcn/kratos-admin-core": "0.0.
|
|
18
|
+
"@liujitcn/kratos-admin-core": "0.0.29"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@element-plus/icons-vue": "^2.3.1",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { BaseI18n } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_i18n";
|
|
2
|
-
import { TranslationTargetType } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_i18n";
|
|
3
|
-
/** DynamicTranslationCellProps 动态翻译列表单元格属性。 */
|
|
4
|
-
interface DynamicTranslationCellProps {
|
|
5
|
-
/** 资源源文。 */
|
|
6
|
-
source: string;
|
|
7
|
-
/** 统一翻译表目标类型。 */
|
|
8
|
-
targetType?: TranslationTargetType;
|
|
9
|
-
/** 目标资源编号。 */
|
|
10
|
-
targetId?: number;
|
|
11
|
-
/** 资源列表返回的非主语言翻译。 */
|
|
12
|
-
translations?: BaseI18n[];
|
|
13
|
-
}
|
|
14
|
-
declare const __VLS_export: import("vue").DefineComponent<DynamicTranslationCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DynamicTranslationCellProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
declare const _default: typeof __VLS_export;
|
|
16
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type DynamicTranslationValue } from "./dynamicTranslation";
|
|
2
|
-
/** DynamicTranslationEditorProps 动态翻译编辑器属性。 */
|
|
3
|
-
interface DynamicTranslationEditorProps {
|
|
4
|
-
modelValue: DynamicTranslationValue[];
|
|
5
|
-
/** 当前语言源文本。 */
|
|
6
|
-
source?: string;
|
|
7
|
-
maxlength?: number;
|
|
8
|
-
multiline?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const __VLS_export: import("vue").DefineComponent<DynamicTranslationEditorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (value: DynamicTranslationValue[]) => any;
|
|
12
|
-
}, string, import("vue").PublicProps, Readonly<DynamicTranslationEditorProps> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: ((value: DynamicTranslationValue[]) => any) | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
source: string;
|
|
16
|
-
maxlength: number;
|
|
17
|
-
multiline: boolean;
|
|
18
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
declare const _default: typeof __VLS_export;
|
|
20
|
-
export default _default;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { TranslationTargetType } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_i18n";
|
|
2
|
-
/** DynamicTranslationValue 动态资源单语言翻译编辑状态。 */
|
|
3
|
-
export interface DynamicTranslationValue {
|
|
4
|
-
/** 语言代码。 */
|
|
5
|
-
locale: string;
|
|
6
|
-
text: string;
|
|
7
|
-
id: number;
|
|
8
|
-
}
|
|
9
|
-
/** DynamicTranslationRecord 描述三类动态资源翻译共有字段。 */
|
|
10
|
-
export interface DynamicTranslationRecord extends Omit<DynamicTranslationValue, "text"> {
|
|
11
|
-
target_type?: TranslationTargetType;
|
|
12
|
-
target_id?: number;
|
|
13
|
-
name?: string;
|
|
14
|
-
/** 兼容旧接口缓存中的字段名。 */
|
|
15
|
-
title?: string;
|
|
16
|
-
label?: string;
|
|
17
|
-
}
|
|
18
|
-
/** DynamicLanguageOption 动态翻译编辑器显示的语言选项。 */
|
|
19
|
-
export interface DynamicLanguageOption {
|
|
20
|
-
/** 语言代码。 */
|
|
21
|
-
value: string;
|
|
22
|
-
/** 语言显示名称。 */
|
|
23
|
-
label: string;
|
|
24
|
-
}
|
|
25
|
-
/** 返回语言管理中启用且非主语言的翻译语言选项。 */
|
|
26
|
-
export declare function getEditableLanguageOptions(): DynamicLanguageOption[];
|
|
27
|
-
/** 返回语言管理中的语言显示名称。 */
|
|
28
|
-
export declare function getLanguageLabel(locale: string): string;
|
|
29
|
-
/** normalizeDynamicTranslations 将后端翻译记录补齐为全部非主语言编辑状态。 */
|
|
30
|
-
export declare function normalizeDynamicTranslations(records: DynamicTranslationRecord[] | undefined, _textField: "title" | "name" | "label", locales?: string[]): DynamicTranslationValue[];
|
|
31
|
-
/** serializeDynamicTranslations 将编辑状态转换回后端资源翻译结构。 */
|
|
32
|
-
export declare function serializeDynamicTranslations(values: DynamicTranslationValue[], targetType: TranslationTargetType, targetId: number): Array<{
|
|
33
|
-
id: number;
|
|
34
|
-
target_type: TranslationTargetType;
|
|
35
|
-
target_id: number;
|
|
36
|
-
locale: string;
|
|
37
|
-
name: string;
|
|
38
|
-
}>;
|