@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/README.md
CHANGED
|
@@ -35,7 +35,7 @@ packages/modules/system
|
|
|
35
35
|
| `src/module.ts` | 注册 System 页面、AI 顶部入口、个人中心菜单和路由行为。 |
|
|
36
36
|
| `src/ai.ts` | 定义 AI 流程卡片扩展名称、类型和读取入口。 |
|
|
37
37
|
| `src/components/Ai.vue` | System 提供的 AI 顶部工具入口。 |
|
|
38
|
-
| `src/components/
|
|
38
|
+
| `src/components/DynamicI18nCell.vue` | 翻译资源列表单元格,悬停预览当前语言之外的内容。 |
|
|
39
39
|
| `src/rpc/**/*.ts` | System 页面与 API 自包含的 RPC 类型。 |
|
|
40
40
|
| `src/typings/*.d.ts` | 声明 System 页面使用的 Markdown 和 Swagger 模块。 |
|
|
41
41
|
| `package.json` | 声明依赖以及公开的模块入口、API 和 RPC 子路径。 |
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Empty } from "@liujitcn/kratos-admin-system/rpc/google/protobuf/empty";
|
|
2
|
-
import type { BaseI18nService,
|
|
2
|
+
import type { BaseI18nService, DraftBaseI18nRequest, DraftBaseI18nResponse, UpdateBaseI18nRequest } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_i18n";
|
|
3
3
|
/** BaseI18nServiceImpl Admin 单条动态翻译服务。 */
|
|
4
4
|
export declare class BaseI18nServiceImpl implements BaseI18nService {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
|
|
5
|
+
/** DraftBaseI18n 翻译请求中的单个文本。 */
|
|
6
|
+
DraftBaseI18n(request: DraftBaseI18nRequest): Promise<DraftBaseI18nResponse>;
|
|
7
|
+
/** UpdateBaseI18n 修改或新增单条翻译信息。 */
|
|
8
|
+
UpdateBaseI18n(request: UpdateBaseI18nRequest): Promise<Empty>;
|
|
9
9
|
}
|
|
10
10
|
export declare const defBaseI18nService: BaseI18nServiceImpl;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DownloadRuntimeLogFileRequest, ListRuntimeLogFilesRequest, ListRuntimeLogFilesResponse, OpenRuntimeConsoleRequest, OpenRuntimeConsoleResponse, ReadRuntimeLogFileRequest, ReadRuntimeLogFileResponse } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/runtime_log";
|
|
2
|
+
/** Admin运行日志服务。 */
|
|
3
|
+
export declare class RuntimeLogServiceImpl {
|
|
4
|
+
/** 查询历史日志文件列表。 */
|
|
5
|
+
ListRuntimeLogFiles(request: ListRuntimeLogFilesRequest): Promise<ListRuntimeLogFilesResponse>;
|
|
6
|
+
/** 分页读取历史日志文件内容。 */
|
|
7
|
+
ReadRuntimeLogFile(request: ReadRuntimeLogFileRequest): Promise<ReadRuntimeLogFileResponse>;
|
|
8
|
+
/** 创建当前用户的实时控制台频道。 */
|
|
9
|
+
OpenRuntimeConsole(request: OpenRuntimeConsoleRequest): Promise<OpenRuntimeConsoleResponse>;
|
|
10
|
+
/** 下载历史日志原文件。 */
|
|
11
|
+
DownloadRuntimeLogFile(request: DownloadRuntimeLogFileRequest, fallbackName: string): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export declare const defRuntimeLogService: RuntimeLogServiceImpl;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type SseStop } from "../base/sse";
|
|
2
|
+
import type { RuntimeLogEntry, RuntimeLogGap } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/runtime_log";
|
|
3
|
+
/** 实时日志事件处理函数。 */
|
|
4
|
+
export type RuntimeLogEntryHandler = (entry: RuntimeLogEntry) => void;
|
|
5
|
+
/** 实时日志丢失事件处理函数。 */
|
|
6
|
+
export type RuntimeLogGapHandler = (gap: RuntimeLogGap) => void;
|
|
7
|
+
/** 订阅指定用户频道的实时日志和丢失提示事件。 */
|
|
8
|
+
export declare function subscribeRuntimeLog(channelId: string, entryHandler: RuntimeLogEntryHandler, gapHandler: RuntimeLogGapHandler): SseStop;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BaseI18n } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_i18n";
|
|
2
|
+
import { I18nTargetType } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_i18n";
|
|
3
|
+
/** DynamicI18nCellProps 动态翻译列表单元格属性。 */
|
|
4
|
+
interface DynamicI18nCellProps {
|
|
5
|
+
/** 资源源文。 */
|
|
6
|
+
source: string;
|
|
7
|
+
/** 统一翻译表目标类型。 */
|
|
8
|
+
targetType?: I18nTargetType;
|
|
9
|
+
/** 目标资源编号。 */
|
|
10
|
+
targetId?: number;
|
|
11
|
+
/** 资源列表返回的非主语言翻译。 */
|
|
12
|
+
i18ns?: BaseI18n[];
|
|
13
|
+
}
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<DynamicI18nCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DynamicI18nCellProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type DynamicI18nValue } from "./dynamicI18n";
|
|
2
|
+
/** DynamicI18nEditorProps 动态翻译编辑器属性。 */
|
|
3
|
+
interface DynamicI18nEditorProps {
|
|
4
|
+
modelValue: DynamicI18nValue[];
|
|
5
|
+
/** 当前语言源文本。 */
|
|
6
|
+
source?: string;
|
|
7
|
+
maxlength?: number;
|
|
8
|
+
multiline?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<DynamicI18nEditorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: DynamicI18nValue[]) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<DynamicI18nEditorProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: DynamicI18nValue[]) => 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;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { I18nTargetType } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_i18n";
|
|
2
|
+
/** DynamicI18nValue 动态资源单语言翻译编辑状态。 */
|
|
3
|
+
export interface DynamicI18nValue {
|
|
4
|
+
/** 语言代码。 */
|
|
5
|
+
locale: string;
|
|
6
|
+
text: string;
|
|
7
|
+
id: number;
|
|
8
|
+
}
|
|
9
|
+
/** DynamicI18nRecord 描述三类动态资源翻译共有字段。 */
|
|
10
|
+
export interface DynamicI18nRecord extends Omit<DynamicI18nValue, "text"> {
|
|
11
|
+
target_type?: I18nTargetType;
|
|
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
|
+
/** normalizeDynamicI18ns 将后端翻译记录补齐为全部非主语言编辑状态。 */
|
|
30
|
+
export declare function normalizeDynamicI18ns(records: DynamicI18nRecord[] | undefined, _textField: "title" | "name" | "label", locales?: string[]): DynamicI18nValue[];
|
|
31
|
+
/** serializeDynamicI18ns 将编辑状态转换回后端资源翻译结构。 */
|
|
32
|
+
export declare function serializeDynamicI18ns(values: DynamicI18nValue[], targetType: I18nTargetType, targetId: number): Array<{
|
|
33
|
+
id: number;
|
|
34
|
+
target_type: I18nTargetType;
|
|
35
|
+
target_id: number;
|
|
36
|
+
locale: string;
|
|
37
|
+
name: string;
|
|
38
|
+
}>;
|
|
@@ -249,17 +249,17 @@ export declare const LOCALE_MESSAGES: {
|
|
|
249
249
|
"system.base.user.message.confirm_delete_selected": string;
|
|
250
250
|
"system.base.user.message.delete_success": string;
|
|
251
251
|
"system.base.user.message.delete_canceled": string;
|
|
252
|
-
"system.base.
|
|
253
|
-
"system.base.
|
|
254
|
-
"system.base.
|
|
255
|
-
"system.base.
|
|
256
|
-
"system.base.
|
|
257
|
-
"system.base.
|
|
258
|
-
"system.base.
|
|
259
|
-
"system.base.
|
|
260
|
-
"system.base.
|
|
261
|
-
"system.base.
|
|
262
|
-
"system.base.
|
|
252
|
+
"system.base.i18n.field.i18ns": string;
|
|
253
|
+
"system.base.i18n.field.name_i18ns": string;
|
|
254
|
+
"system.base.i18n.field.value_i18ns": string;
|
|
255
|
+
"system.base.i18n.placeholder.text": string;
|
|
256
|
+
"system.base.i18n.action.translate": string;
|
|
257
|
+
"system.base.i18n.action.batch_translate": string;
|
|
258
|
+
"system.base.i18n.message.translate_success": string;
|
|
259
|
+
"system.base.i18n.message.translate_failed": string;
|
|
260
|
+
"system.base.i18n.message.batch_translate_success": string;
|
|
261
|
+
"system.base.i18n.message.batch_translate_partial": string;
|
|
262
|
+
"system.base.i18n.message.batch_translate_failed": string;
|
|
263
263
|
"system.base.menu.title.list": string;
|
|
264
264
|
"system.base.menu.action.create": string;
|
|
265
265
|
"system.base.menu.action.edit": string;
|
|
@@ -627,7 +627,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
627
627
|
"system.code.gen.validation.left_tree_parent_required": string;
|
|
628
628
|
"system.code.gen.validation.left_tree_label_required": string;
|
|
629
629
|
"system.code.gen.validation.left_tree_value_required": string;
|
|
630
|
-
"system.code.gen.i18n.field.
|
|
630
|
+
"system.code.gen.i18n.field.i18ns": string;
|
|
631
631
|
"system.code.gen.i18n.action.edit_column": string;
|
|
632
632
|
"system.code.gen.i18n.status.complete": string;
|
|
633
633
|
"system.code.gen.i18n.status.missing": string;
|
|
@@ -882,7 +882,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
882
882
|
"system.code.gen.preview.message.create_success": string;
|
|
883
883
|
"system.code.gen.preview.message.update_success": string;
|
|
884
884
|
"system.code.gen.preview.message.delete_success": string;
|
|
885
|
-
"system.code.gen.preview.message.
|
|
885
|
+
"system.code.gen.preview.message.missing_i18ns": string;
|
|
886
886
|
"system.code.gen.preview.value.list_separator": string;
|
|
887
887
|
"system.project.document.title.navigation": string;
|
|
888
888
|
"system.project.document.placeholder.search": string;
|
|
@@ -914,6 +914,11 @@ export declare const LOCALE_MESSAGES: {
|
|
|
914
914
|
"system.ops_monitoring.status.label": string;
|
|
915
915
|
"system.ops_monitoring.instance_resources": string;
|
|
916
916
|
"system.ops_monitoring.current_recent_sample": string;
|
|
917
|
+
"system.ops_monitoring.node_metric.heap_memory": string;
|
|
918
|
+
"system.ops_monitoring.node_metric.memory": string;
|
|
919
|
+
"system.ops_monitoring.node_metric.disk": string;
|
|
920
|
+
"system.ops_monitoring.node_metric.current": string;
|
|
921
|
+
"system.ops_monitoring.node_metric.total": string;
|
|
917
922
|
"system.ops_monitoring.instance_count": string;
|
|
918
923
|
"system.ops_monitoring.alert_events": string;
|
|
919
924
|
"system.ops_monitoring.alert_attention": string;
|
|
@@ -933,6 +938,30 @@ export declare const LOCALE_MESSAGES: {
|
|
|
933
938
|
"system.ops_monitoring.kpi.error_rate": string;
|
|
934
939
|
"system.ops_monitoring.kpi.availability": string;
|
|
935
940
|
"system.ops_monitoring.kpi.current_window": string;
|
|
941
|
+
"system.runtime.log.section.sources": string;
|
|
942
|
+
"system.runtime.log.section.history_files": string;
|
|
943
|
+
"system.runtime.log.section.viewer": string;
|
|
944
|
+
"system.runtime.log.value.live_console": string;
|
|
945
|
+
"system.runtime.log.value.instance": string;
|
|
946
|
+
"system.runtime.log.value.entry_count": string;
|
|
947
|
+
"system.runtime.log.placeholder.search_file": string;
|
|
948
|
+
"system.runtime.log.placeholder.search_content": string;
|
|
949
|
+
"system.runtime.log.placeholder.level": string;
|
|
950
|
+
"system.runtime.log.action.resume": string;
|
|
951
|
+
"system.runtime.log.action.pause": string;
|
|
952
|
+
"system.runtime.log.action.auto_scroll": string;
|
|
953
|
+
"system.runtime.log.action.download": string;
|
|
954
|
+
"system.runtime.log.action.load_older": string;
|
|
955
|
+
"system.runtime.log.empty.files": string;
|
|
956
|
+
"system.runtime.log.empty.entries": string;
|
|
957
|
+
"system.runtime.log.status.connecting": string;
|
|
958
|
+
"system.runtime.log.status.live": string;
|
|
959
|
+
"system.runtime.log.status.paused": string;
|
|
960
|
+
"system.runtime.log.status.disconnected": string;
|
|
961
|
+
"system.runtime.log.status.loading": string;
|
|
962
|
+
"system.runtime.log.message.gap": string;
|
|
963
|
+
"system.runtime.log.message.file_changed": string;
|
|
964
|
+
"system.runtime.log.message.download_started": string;
|
|
936
965
|
};
|
|
937
966
|
readonly 'en-US': {
|
|
938
967
|
"system.ai.request_failed_with_status": string;
|
|
@@ -1184,17 +1213,17 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1184
1213
|
"system.base.user.message.confirm_delete_selected": string;
|
|
1185
1214
|
"system.base.user.message.delete_success": string;
|
|
1186
1215
|
"system.base.user.message.delete_canceled": string;
|
|
1187
|
-
"system.base.
|
|
1188
|
-
"system.base.
|
|
1189
|
-
"system.base.
|
|
1190
|
-
"system.base.
|
|
1191
|
-
"system.base.
|
|
1192
|
-
"system.base.
|
|
1193
|
-
"system.base.
|
|
1194
|
-
"system.base.
|
|
1195
|
-
"system.base.
|
|
1196
|
-
"system.base.
|
|
1197
|
-
"system.base.
|
|
1216
|
+
"system.base.i18n.field.i18ns": string;
|
|
1217
|
+
"system.base.i18n.field.name_i18ns": string;
|
|
1218
|
+
"system.base.i18n.field.value_i18ns": string;
|
|
1219
|
+
"system.base.i18n.placeholder.text": string;
|
|
1220
|
+
"system.base.i18n.action.translate": string;
|
|
1221
|
+
"system.base.i18n.action.batch_translate": string;
|
|
1222
|
+
"system.base.i18n.message.translate_success": string;
|
|
1223
|
+
"system.base.i18n.message.translate_failed": string;
|
|
1224
|
+
"system.base.i18n.message.batch_translate_success": string;
|
|
1225
|
+
"system.base.i18n.message.batch_translate_partial": string;
|
|
1226
|
+
"system.base.i18n.message.batch_translate_failed": string;
|
|
1198
1227
|
"system.base.menu.title.list": string;
|
|
1199
1228
|
"system.base.menu.action.create": string;
|
|
1200
1229
|
"system.base.menu.action.edit": string;
|
|
@@ -1562,7 +1591,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1562
1591
|
"system.code.gen.validation.left_tree_parent_required": string;
|
|
1563
1592
|
"system.code.gen.validation.left_tree_label_required": string;
|
|
1564
1593
|
"system.code.gen.validation.left_tree_value_required": string;
|
|
1565
|
-
"system.code.gen.i18n.field.
|
|
1594
|
+
"system.code.gen.i18n.field.i18ns": string;
|
|
1566
1595
|
"system.code.gen.i18n.action.edit_column": string;
|
|
1567
1596
|
"system.code.gen.i18n.status.complete": string;
|
|
1568
1597
|
"system.code.gen.i18n.status.missing": string;
|
|
@@ -1817,7 +1846,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1817
1846
|
"system.code.gen.preview.message.create_success": string;
|
|
1818
1847
|
"system.code.gen.preview.message.update_success": string;
|
|
1819
1848
|
"system.code.gen.preview.message.delete_success": string;
|
|
1820
|
-
"system.code.gen.preview.message.
|
|
1849
|
+
"system.code.gen.preview.message.missing_i18ns": string;
|
|
1821
1850
|
"system.code.gen.preview.value.list_separator": string;
|
|
1822
1851
|
"system.project.document.title.navigation": string;
|
|
1823
1852
|
"system.project.document.placeholder.search": string;
|
|
@@ -1849,6 +1878,11 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1849
1878
|
"system.ops_monitoring.status.label": string;
|
|
1850
1879
|
"system.ops_monitoring.instance_resources": string;
|
|
1851
1880
|
"system.ops_monitoring.current_recent_sample": string;
|
|
1881
|
+
"system.ops_monitoring.node_metric.heap_memory": string;
|
|
1882
|
+
"system.ops_monitoring.node_metric.memory": string;
|
|
1883
|
+
"system.ops_monitoring.node_metric.disk": string;
|
|
1884
|
+
"system.ops_monitoring.node_metric.current": string;
|
|
1885
|
+
"system.ops_monitoring.node_metric.total": string;
|
|
1852
1886
|
"system.ops_monitoring.instance_count": string;
|
|
1853
1887
|
"system.ops_monitoring.alert_events": string;
|
|
1854
1888
|
"system.ops_monitoring.alert_attention": string;
|
|
@@ -1868,6 +1902,30 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1868
1902
|
"system.ops_monitoring.kpi.error_rate": string;
|
|
1869
1903
|
"system.ops_monitoring.kpi.availability": string;
|
|
1870
1904
|
"system.ops_monitoring.kpi.current_window": string;
|
|
1905
|
+
"system.runtime.log.section.sources": string;
|
|
1906
|
+
"system.runtime.log.section.history_files": string;
|
|
1907
|
+
"system.runtime.log.section.viewer": string;
|
|
1908
|
+
"system.runtime.log.value.live_console": string;
|
|
1909
|
+
"system.runtime.log.value.instance": string;
|
|
1910
|
+
"system.runtime.log.value.entry_count": string;
|
|
1911
|
+
"system.runtime.log.placeholder.search_file": string;
|
|
1912
|
+
"system.runtime.log.placeholder.search_content": string;
|
|
1913
|
+
"system.runtime.log.placeholder.level": string;
|
|
1914
|
+
"system.runtime.log.action.resume": string;
|
|
1915
|
+
"system.runtime.log.action.pause": string;
|
|
1916
|
+
"system.runtime.log.action.auto_scroll": string;
|
|
1917
|
+
"system.runtime.log.action.download": string;
|
|
1918
|
+
"system.runtime.log.action.load_older": string;
|
|
1919
|
+
"system.runtime.log.empty.files": string;
|
|
1920
|
+
"system.runtime.log.empty.entries": string;
|
|
1921
|
+
"system.runtime.log.status.connecting": string;
|
|
1922
|
+
"system.runtime.log.status.live": string;
|
|
1923
|
+
"system.runtime.log.status.paused": string;
|
|
1924
|
+
"system.runtime.log.status.disconnected": string;
|
|
1925
|
+
"system.runtime.log.status.loading": string;
|
|
1926
|
+
"system.runtime.log.message.gap": string;
|
|
1927
|
+
"system.runtime.log.message.file_changed": string;
|
|
1928
|
+
"system.runtime.log.message.download_started": string;
|
|
1871
1929
|
};
|
|
1872
1930
|
readonly 'ja-JP': {
|
|
1873
1931
|
"system.ai.request_failed_with_status": string;
|
|
@@ -2119,17 +2177,17 @@ export declare const LOCALE_MESSAGES: {
|
|
|
2119
2177
|
"system.base.user.message.confirm_delete_selected": string;
|
|
2120
2178
|
"system.base.user.message.delete_success": string;
|
|
2121
2179
|
"system.base.user.message.delete_canceled": string;
|
|
2122
|
-
"system.base.
|
|
2123
|
-
"system.base.
|
|
2124
|
-
"system.base.
|
|
2125
|
-
"system.base.
|
|
2126
|
-
"system.base.
|
|
2127
|
-
"system.base.
|
|
2128
|
-
"system.base.
|
|
2129
|
-
"system.base.
|
|
2130
|
-
"system.base.
|
|
2131
|
-
"system.base.
|
|
2132
|
-
"system.base.
|
|
2180
|
+
"system.base.i18n.field.i18ns": string;
|
|
2181
|
+
"system.base.i18n.field.name_i18ns": string;
|
|
2182
|
+
"system.base.i18n.field.value_i18ns": string;
|
|
2183
|
+
"system.base.i18n.placeholder.text": string;
|
|
2184
|
+
"system.base.i18n.action.translate": string;
|
|
2185
|
+
"system.base.i18n.action.batch_translate": string;
|
|
2186
|
+
"system.base.i18n.message.translate_success": string;
|
|
2187
|
+
"system.base.i18n.message.translate_failed": string;
|
|
2188
|
+
"system.base.i18n.message.batch_translate_success": string;
|
|
2189
|
+
"system.base.i18n.message.batch_translate_partial": string;
|
|
2190
|
+
"system.base.i18n.message.batch_translate_failed": string;
|
|
2133
2191
|
"system.base.menu.title.list": string;
|
|
2134
2192
|
"system.base.menu.action.create": string;
|
|
2135
2193
|
"system.base.menu.action.edit": string;
|
|
@@ -2497,7 +2555,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
2497
2555
|
"system.code.gen.validation.left_tree_parent_required": string;
|
|
2498
2556
|
"system.code.gen.validation.left_tree_label_required": string;
|
|
2499
2557
|
"system.code.gen.validation.left_tree_value_required": string;
|
|
2500
|
-
"system.code.gen.i18n.field.
|
|
2558
|
+
"system.code.gen.i18n.field.i18ns": string;
|
|
2501
2559
|
"system.code.gen.i18n.action.edit_column": string;
|
|
2502
2560
|
"system.code.gen.i18n.status.complete": string;
|
|
2503
2561
|
"system.code.gen.i18n.status.missing": string;
|
|
@@ -2752,7 +2810,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
2752
2810
|
"system.code.gen.preview.message.create_success": string;
|
|
2753
2811
|
"system.code.gen.preview.message.update_success": string;
|
|
2754
2812
|
"system.code.gen.preview.message.delete_success": string;
|
|
2755
|
-
"system.code.gen.preview.message.
|
|
2813
|
+
"system.code.gen.preview.message.missing_i18ns": string;
|
|
2756
2814
|
"system.code.gen.preview.value.list_separator": string;
|
|
2757
2815
|
"system.project.document.title.navigation": string;
|
|
2758
2816
|
"system.project.document.placeholder.search": string;
|
|
@@ -2784,6 +2842,11 @@ export declare const LOCALE_MESSAGES: {
|
|
|
2784
2842
|
"system.ops_monitoring.status.label": string;
|
|
2785
2843
|
"system.ops_monitoring.instance_resources": string;
|
|
2786
2844
|
"system.ops_monitoring.current_recent_sample": string;
|
|
2845
|
+
"system.ops_monitoring.node_metric.heap_memory": string;
|
|
2846
|
+
"system.ops_monitoring.node_metric.memory": string;
|
|
2847
|
+
"system.ops_monitoring.node_metric.disk": string;
|
|
2848
|
+
"system.ops_monitoring.node_metric.current": string;
|
|
2849
|
+
"system.ops_monitoring.node_metric.total": string;
|
|
2787
2850
|
"system.ops_monitoring.instance_count": string;
|
|
2788
2851
|
"system.ops_monitoring.alert_events": string;
|
|
2789
2852
|
"system.ops_monitoring.alert_attention": string;
|
|
@@ -2803,6 +2866,30 @@ export declare const LOCALE_MESSAGES: {
|
|
|
2803
2866
|
"system.ops_monitoring.kpi.error_rate": string;
|
|
2804
2867
|
"system.ops_monitoring.kpi.availability": string;
|
|
2805
2868
|
"system.ops_monitoring.kpi.current_window": string;
|
|
2869
|
+
"system.runtime.log.section.sources": string;
|
|
2870
|
+
"system.runtime.log.section.history_files": string;
|
|
2871
|
+
"system.runtime.log.section.viewer": string;
|
|
2872
|
+
"system.runtime.log.value.live_console": string;
|
|
2873
|
+
"system.runtime.log.value.instance": string;
|
|
2874
|
+
"system.runtime.log.value.entry_count": string;
|
|
2875
|
+
"system.runtime.log.placeholder.search_file": string;
|
|
2876
|
+
"system.runtime.log.placeholder.search_content": string;
|
|
2877
|
+
"system.runtime.log.placeholder.level": string;
|
|
2878
|
+
"system.runtime.log.action.resume": string;
|
|
2879
|
+
"system.runtime.log.action.pause": string;
|
|
2880
|
+
"system.runtime.log.action.auto_scroll": string;
|
|
2881
|
+
"system.runtime.log.action.download": string;
|
|
2882
|
+
"system.runtime.log.action.load_older": string;
|
|
2883
|
+
"system.runtime.log.empty.files": string;
|
|
2884
|
+
"system.runtime.log.empty.entries": string;
|
|
2885
|
+
"system.runtime.log.status.connecting": string;
|
|
2886
|
+
"system.runtime.log.status.live": string;
|
|
2887
|
+
"system.runtime.log.status.paused": string;
|
|
2888
|
+
"system.runtime.log.status.disconnected": string;
|
|
2889
|
+
"system.runtime.log.status.loading": string;
|
|
2890
|
+
"system.runtime.log.message.gap": string;
|
|
2891
|
+
"system.runtime.log.message.file_changed": string;
|
|
2892
|
+
"system.runtime.log.message.download_started": string;
|
|
2806
2893
|
};
|
|
2807
2894
|
readonly 'zh-TW': {
|
|
2808
2895
|
"system.ai.request_failed_with_status": string;
|
|
@@ -3054,17 +3141,17 @@ export declare const LOCALE_MESSAGES: {
|
|
|
3054
3141
|
"system.base.user.message.confirm_delete_selected": string;
|
|
3055
3142
|
"system.base.user.message.delete_success": string;
|
|
3056
3143
|
"system.base.user.message.delete_canceled": string;
|
|
3057
|
-
"system.base.
|
|
3058
|
-
"system.base.
|
|
3059
|
-
"system.base.
|
|
3060
|
-
"system.base.
|
|
3061
|
-
"system.base.
|
|
3062
|
-
"system.base.
|
|
3063
|
-
"system.base.
|
|
3064
|
-
"system.base.
|
|
3065
|
-
"system.base.
|
|
3066
|
-
"system.base.
|
|
3067
|
-
"system.base.
|
|
3144
|
+
"system.base.i18n.field.i18ns": string;
|
|
3145
|
+
"system.base.i18n.field.name_i18ns": string;
|
|
3146
|
+
"system.base.i18n.field.value_i18ns": string;
|
|
3147
|
+
"system.base.i18n.placeholder.text": string;
|
|
3148
|
+
"system.base.i18n.action.translate": string;
|
|
3149
|
+
"system.base.i18n.action.batch_translate": string;
|
|
3150
|
+
"system.base.i18n.message.translate_success": string;
|
|
3151
|
+
"system.base.i18n.message.translate_failed": string;
|
|
3152
|
+
"system.base.i18n.message.batch_translate_success": string;
|
|
3153
|
+
"system.base.i18n.message.batch_translate_partial": string;
|
|
3154
|
+
"system.base.i18n.message.batch_translate_failed": string;
|
|
3068
3155
|
"system.base.menu.title.list": string;
|
|
3069
3156
|
"system.base.menu.action.create": string;
|
|
3070
3157
|
"system.base.menu.action.edit": string;
|
|
@@ -3432,7 +3519,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
3432
3519
|
"system.code.gen.validation.left_tree_parent_required": string;
|
|
3433
3520
|
"system.code.gen.validation.left_tree_label_required": string;
|
|
3434
3521
|
"system.code.gen.validation.left_tree_value_required": string;
|
|
3435
|
-
"system.code.gen.i18n.field.
|
|
3522
|
+
"system.code.gen.i18n.field.i18ns": string;
|
|
3436
3523
|
"system.code.gen.i18n.action.edit_column": string;
|
|
3437
3524
|
"system.code.gen.i18n.status.complete": string;
|
|
3438
3525
|
"system.code.gen.i18n.status.missing": string;
|
|
@@ -3687,7 +3774,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
3687
3774
|
"system.code.gen.preview.message.create_success": string;
|
|
3688
3775
|
"system.code.gen.preview.message.update_success": string;
|
|
3689
3776
|
"system.code.gen.preview.message.delete_success": string;
|
|
3690
|
-
"system.code.gen.preview.message.
|
|
3777
|
+
"system.code.gen.preview.message.missing_i18ns": string;
|
|
3691
3778
|
"system.code.gen.preview.value.list_separator": string;
|
|
3692
3779
|
"system.project.document.title.navigation": string;
|
|
3693
3780
|
"system.project.document.placeholder.search": string;
|
|
@@ -3719,6 +3806,11 @@ export declare const LOCALE_MESSAGES: {
|
|
|
3719
3806
|
"system.ops_monitoring.status.label": string;
|
|
3720
3807
|
"system.ops_monitoring.instance_resources": string;
|
|
3721
3808
|
"system.ops_monitoring.current_recent_sample": string;
|
|
3809
|
+
"system.ops_monitoring.node_metric.heap_memory": string;
|
|
3810
|
+
"system.ops_monitoring.node_metric.memory": string;
|
|
3811
|
+
"system.ops_monitoring.node_metric.disk": string;
|
|
3812
|
+
"system.ops_monitoring.node_metric.current": string;
|
|
3813
|
+
"system.ops_monitoring.node_metric.total": string;
|
|
3722
3814
|
"system.ops_monitoring.instance_count": string;
|
|
3723
3815
|
"system.ops_monitoring.alert_events": string;
|
|
3724
3816
|
"system.ops_monitoring.alert_attention": string;
|
|
@@ -3738,6 +3830,30 @@ export declare const LOCALE_MESSAGES: {
|
|
|
3738
3830
|
"system.ops_monitoring.kpi.error_rate": string;
|
|
3739
3831
|
"system.ops_monitoring.kpi.availability": string;
|
|
3740
3832
|
"system.ops_monitoring.kpi.current_window": string;
|
|
3833
|
+
"system.runtime.log.section.sources": string;
|
|
3834
|
+
"system.runtime.log.section.history_files": string;
|
|
3835
|
+
"system.runtime.log.section.viewer": string;
|
|
3836
|
+
"system.runtime.log.value.live_console": string;
|
|
3837
|
+
"system.runtime.log.value.instance": string;
|
|
3838
|
+
"system.runtime.log.value.entry_count": string;
|
|
3839
|
+
"system.runtime.log.placeholder.search_file": string;
|
|
3840
|
+
"system.runtime.log.placeholder.search_content": string;
|
|
3841
|
+
"system.runtime.log.placeholder.level": string;
|
|
3842
|
+
"system.runtime.log.action.resume": string;
|
|
3843
|
+
"system.runtime.log.action.pause": string;
|
|
3844
|
+
"system.runtime.log.action.auto_scroll": string;
|
|
3845
|
+
"system.runtime.log.action.download": string;
|
|
3846
|
+
"system.runtime.log.action.load_older": string;
|
|
3847
|
+
"system.runtime.log.empty.files": string;
|
|
3848
|
+
"system.runtime.log.empty.entries": string;
|
|
3849
|
+
"system.runtime.log.status.connecting": string;
|
|
3850
|
+
"system.runtime.log.status.live": string;
|
|
3851
|
+
"system.runtime.log.status.paused": string;
|
|
3852
|
+
"system.runtime.log.status.disconnected": string;
|
|
3853
|
+
"system.runtime.log.status.loading": string;
|
|
3854
|
+
"system.runtime.log.message.gap": string;
|
|
3855
|
+
"system.runtime.log.message.file_changed": string;
|
|
3856
|
+
"system.runtime.log.message.download_started": string;
|
|
3741
3857
|
};
|
|
3742
3858
|
};
|
|
3743
3859
|
export type GeneratedLocale = keyof typeof LOCALE_MESSAGES;
|
|
@@ -61,9 +61,9 @@ export interface BaseConfigForm {
|
|
|
61
61
|
/** 配置value */
|
|
62
62
|
value: string;
|
|
63
63
|
/** 配置名称多语言翻 */
|
|
64
|
-
|
|
64
|
+
name_i18ns: BaseI18n[];
|
|
65
65
|
/** 配置value文本/富文本配置值的多语言翻译 */
|
|
66
|
-
|
|
66
|
+
value_i18ns: BaseI18n[];
|
|
67
67
|
/** 状态 */
|
|
68
68
|
status: Status;
|
|
69
69
|
}
|
|
@@ -113,7 +113,7 @@ export interface BaseConfig {
|
|
|
113
113
|
/** 更新时间 */
|
|
114
114
|
updated_at: string;
|
|
115
115
|
/** 配置名称及文本/富文本配置值的多语言翻译 */
|
|
116
|
-
|
|
116
|
+
i18ns: BaseI18n[];
|
|
117
117
|
}
|
|
118
118
|
/** Admin系统配置服务 */
|
|
119
119
|
export interface BaseConfigService {
|
|
@@ -81,7 +81,7 @@ export interface BaseDictForm {
|
|
|
81
81
|
/** 字典名称 */
|
|
82
82
|
name: string;
|
|
83
83
|
/** 非主语言翻译 */
|
|
84
|
-
|
|
84
|
+
i18ns: BaseI18n[];
|
|
85
85
|
/** 状态 */
|
|
86
86
|
status: Status;
|
|
87
87
|
}
|
|
@@ -105,7 +105,7 @@ export interface BaseDictItemForm {
|
|
|
105
105
|
/** 排序 */
|
|
106
106
|
sort: number;
|
|
107
107
|
/** 非主语言翻译 */
|
|
108
|
-
|
|
108
|
+
i18ns: BaseI18n[];
|
|
109
109
|
/** 状态 */
|
|
110
110
|
status: Status;
|
|
111
111
|
}
|
|
@@ -168,7 +168,7 @@ export interface BaseDict {
|
|
|
168
168
|
/** 更新时间 */
|
|
169
169
|
updated_at: string;
|
|
170
170
|
/** 非主语言翻译 */
|
|
171
|
-
|
|
171
|
+
i18ns: BaseI18n[];
|
|
172
172
|
}
|
|
173
173
|
/** 字典项 */
|
|
174
174
|
export interface BaseDictItem {
|
|
@@ -191,7 +191,7 @@ export interface BaseDictItem {
|
|
|
191
191
|
/** 更新时间 */
|
|
192
192
|
updated_at: string;
|
|
193
193
|
/** 非主语言翻译 */
|
|
194
|
-
|
|
194
|
+
i18ns: BaseI18n[];
|
|
195
195
|
}
|
|
196
196
|
/** Admin字典服务 */
|
|
197
197
|
export interface BaseDictService {
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
2
2
|
/** 统一翻译表目标类型,和 base_i18n.target_type 的值一一对应。 */
|
|
3
|
-
export declare enum
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
|
|
3
|
+
export declare enum I18nTargetType {
|
|
4
|
+
/** I18N_TARGET_TYPE_UNSPECIFIED - 未指定统一翻译表目标类型。 */
|
|
5
|
+
I18N_TARGET_TYPE_UNSPECIFIED = 0,
|
|
6
|
+
/** I18N_TARGET_TYPE_BASE_CONFIG_VALUE - 系统配置值。 */
|
|
7
|
+
I18N_TARGET_TYPE_BASE_CONFIG_VALUE = 1,
|
|
8
|
+
/** I18N_TARGET_TYPE_BASE_CONFIG_NAME - 系统配置名称。 */
|
|
9
|
+
I18N_TARGET_TYPE_BASE_CONFIG_NAME = 2,
|
|
10
|
+
/** I18N_TARGET_TYPE_BASE_DICT - 字典名称。 */
|
|
11
|
+
I18N_TARGET_TYPE_BASE_DICT = 3,
|
|
12
|
+
/** I18N_TARGET_TYPE_BASE_DICT_ITEM - 字典项标签。 */
|
|
13
|
+
I18N_TARGET_TYPE_BASE_DICT_ITEM = 4,
|
|
14
|
+
/** I18N_TARGET_TYPE_BASE_MENU - 菜单标题。 */
|
|
15
|
+
I18N_TARGET_TYPE_BASE_MENU = 5
|
|
16
16
|
}
|
|
17
17
|
/** 翻译单个文本请求。 */
|
|
18
|
-
export interface
|
|
18
|
+
export interface DraftBaseI18nRequest {
|
|
19
19
|
/** 待翻译文本 */
|
|
20
20
|
source: string;
|
|
21
21
|
/** 目标语言区域,不传时翻译所有启用的非主语言 */
|
|
22
22
|
locale?: string | undefined;
|
|
23
23
|
}
|
|
24
24
|
/** 翻译单个文本响应。 */
|
|
25
|
-
export interface
|
|
25
|
+
export interface DraftBaseI18nResponse {
|
|
26
26
|
/** 翻译结果 */
|
|
27
|
-
|
|
27
|
+
i18ns: DraftBaseI18nItem[];
|
|
28
28
|
}
|
|
29
29
|
/** 翻译单个文本响应。 */
|
|
30
|
-
export interface
|
|
30
|
+
export interface DraftBaseI18nItem {
|
|
31
31
|
/** 目标语言区域 */
|
|
32
32
|
locale: string;
|
|
33
33
|
/** 翻译文本 */
|
|
34
|
-
|
|
34
|
+
i18n: string;
|
|
35
35
|
}
|
|
36
36
|
/** 修改单个翻译信息请求。 */
|
|
37
|
-
export interface
|
|
37
|
+
export interface UpdateBaseI18nRequest {
|
|
38
38
|
/** 翻译记录ID,大于零时优先按ID更新;ID不存在时根据目标信息更新或新增 */
|
|
39
39
|
id: number;
|
|
40
40
|
/** 翻译目标类型,ID为零时用于查询或新增 */
|
|
41
|
-
target_type:
|
|
41
|
+
target_type: I18nTargetType;
|
|
42
42
|
/** 目标资源ID,ID为零时用于查询或新增 */
|
|
43
43
|
target_id: number;
|
|
44
44
|
/** 目标语言区域,ID为零时用于查询或新增 */
|
|
@@ -51,7 +51,7 @@ export interface BaseI18n {
|
|
|
51
51
|
/** 翻译记录ID */
|
|
52
52
|
id: number;
|
|
53
53
|
/** 翻译目标类型 */
|
|
54
|
-
target_type:
|
|
54
|
+
target_type: I18nTargetType;
|
|
55
55
|
/** 目标资源ID */
|
|
56
56
|
target_id: number;
|
|
57
57
|
/** 语言区域 */
|
|
@@ -69,7 +69,7 @@ export interface CodeGenLocaleConfig {
|
|
|
69
69
|
/** 国际化翻译信息服务。 */
|
|
70
70
|
export interface BaseI18nService {
|
|
71
71
|
/** 翻译单个文本。 */
|
|
72
|
-
|
|
72
|
+
DraftBaseI18n(request: DraftBaseI18nRequest): Promise<DraftBaseI18nResponse>;
|
|
73
73
|
/** 修改国际化翻译信息 */
|
|
74
|
-
|
|
74
|
+
UpdateBaseI18n(request: UpdateBaseI18nRequest): Promise<Empty>;
|
|
75
75
|
}
|