@liujitcn/kratos-admin-system 0.0.26 → 0.0.28
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/package/declarations/src/api/system/base_i18n.d.ts +10 -0
- package/dist/package/declarations/src/api/system/code_gen_i18n.d.ts +1 -1
- 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/DynamicTranslationCell.vue.d.ts +3 -3
- package/dist/package/declarations/src/components/dynamicTranslation.d.ts +1 -1
- package/dist/package/declarations/src/locales/generated.d.ts +1057 -0
- package/dist/package/declarations/src/rpc/common/v1/enum.d.ts +15 -6
- package/dist/package/declarations/src/rpc/system/admin/v1/base_api.d.ts +10 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_config.d.ts +4 -4
- package/dist/package/declarations/src/rpc/system/admin/v1/base_dict.d.ts +5 -5
- package/dist/package/declarations/src/rpc/system/admin/v1/{base_translation.d.ts → base_i18n.d.ts} +3 -3
- package/dist/package/declarations/src/rpc/system/admin/v1/base_menu.d.ts +3 -3
- package/dist/package/declarations/src/rpc/system/admin/v1/code_gen_column.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/code_gen_table.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 +6 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/runtime_log.d.ts +96 -0
- package/dist/package/declarations/src/views/tool/code-gen/components/CodeGenLocaleEditor.vue.d.ts +1 -1
- package/dist/package/declarations/src/views/tool/runtime-log/index.vue.d.ts +3 -0
- package/dist/package/src/api/base/sse.ts +3 -2
- package/dist/package/src/api/system/{base_translation.ts → base_i18n.ts} +5 -5
- package/dist/package/src/api/system/code_gen_i18n.ts +1 -1
- 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/Ai.vue +9 -2
- package/dist/package/src/components/DynamicTranslationCell.vue +9 -9
- package/dist/package/src/components/DynamicTranslationEditor.vue +3 -3
- package/dist/package/src/components/dynamicTranslation.ts +1 -1
- package/dist/package/src/locales/en-US.json +33 -2
- package/dist/package/src/locales/generated.ts +2 -0
- package/dist/package/src/locales/ja-JP.json +964 -0
- package/dist/package/src/locales/zh-CN.json +33 -2
- package/dist/package/src/locales/zh-TW.json +33 -2
- package/dist/package/src/rpc/common/v1/enum.ts +16 -6
- package/dist/package/src/rpc/system/admin/v1/base_api.ts +11 -1
- package/dist/package/src/rpc/system/admin/v1/base_config.ts +4 -4
- package/dist/package/src/rpc/system/admin/v1/base_dict.ts +5 -5
- package/dist/package/src/rpc/system/admin/v1/{base_translation.ts → base_i18n.ts} +4 -4
- package/dist/package/src/rpc/system/admin/v1/base_menu.ts +3 -3
- package/dist/package/src/rpc/system/admin/v1/code_gen_column.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/code_gen_table.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 +6 -0
- package/dist/package/src/rpc/system/admin/v1/runtime_log.ts +113 -0
- package/dist/package/src/views/ai/chat/message.ts +12 -2
- package/dist/package/src/views/base/api/index.vue +20 -20
- package/dist/package/src/views/base/config/index.vue +11 -11
- package/dist/package/src/views/base/dept/index.vue +8 -8
- package/dist/package/src/views/base/dict/index.vue +9 -9
- package/dist/package/src/views/base/dict/item.vue +9 -9
- package/dist/package/src/views/base/job/index.vue +11 -11
- package/dist/package/src/views/base/language/index.vue +9 -9
- package/dist/package/src/views/base/menu/index.vue +14 -9
- package/dist/package/src/views/base/post/index.vue +8 -8
- package/dist/package/src/views/base/role/index.vue +8 -8
- package/dist/package/src/views/base/tenant/index.vue +8 -8
- package/dist/package/src/views/base/user/index.vue +8 -8
- package/dist/package/src/views/tool/api-doc/index.vue +14 -6
- package/dist/package/src/views/tool/code-gen/code-preview/index.vue +17 -0
- package/dist/package/src/views/tool/code-gen/columns/index.vue +8 -53
- package/dist/package/src/views/tool/code-gen/components/CodeGenLocaleEditor.vue +97 -15
- package/dist/package/src/views/tool/code-gen/components/CodeGenProgressDialog.vue +3 -12
- package/dist/package/src/views/tool/code-gen/preview/index.vue +3 -6
- package/dist/package/src/views/tool/code-gen/proto/index.vue +7 -8
- package/dist/package/src/views/tool/code-gen/table/index.vue +34 -2
- package/dist/package/src/views/tool/ops-monitoring/index.vue +153 -49
- 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/api/system/base_translation.d.ts +0 -10
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Empty } from "@liujitcn/kratos-admin-system/rpc/google/protobuf/empty";
|
|
2
|
+
import type { BaseI18nService, DraftBaseTranslationRequest, DraftBaseTranslationResponse, UpdateBaseTranslationRequest } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_i18n";
|
|
3
|
+
/** BaseI18nServiceImpl Admin 单条动态翻译服务。 */
|
|
4
|
+
export declare class BaseI18nServiceImpl implements BaseI18nService {
|
|
5
|
+
/** DraftBaseTranslation 翻译请求中的单个文本。 */
|
|
6
|
+
DraftBaseTranslation(request: DraftBaseTranslationRequest): Promise<DraftBaseTranslationResponse>;
|
|
7
|
+
/** UpdateBaseTranslation 修改或新增单条翻译信息。 */
|
|
8
|
+
UpdateBaseTranslation(request: UpdateBaseTranslationRequest): Promise<Empty>;
|
|
9
|
+
}
|
|
10
|
+
export declare const defBaseI18nService: BaseI18nServiceImpl;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CodeGenLocaleConfig } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/
|
|
1
|
+
import type { CodeGenLocaleConfig } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_i18n";
|
|
2
2
|
/** 代码生成国际化配置的 JSON 兼容形态。 */
|
|
3
3
|
type CodeGenLocaleConfigRecord = Record<string, CodeGenLocaleConfig>;
|
|
4
4
|
/** 将 REST 响应中的 JSON 对象规范为生成 RPC 声明使用的 Map。 */
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { TranslationTargetType } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/
|
|
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
3
|
/** DynamicTranslationCellProps 动态翻译列表单元格属性。 */
|
|
4
4
|
interface DynamicTranslationCellProps {
|
|
5
5
|
/** 资源源文。 */
|
|
@@ -9,7 +9,7 @@ interface DynamicTranslationCellProps {
|
|
|
9
9
|
/** 目标资源编号。 */
|
|
10
10
|
targetId?: number;
|
|
11
11
|
/** 资源列表返回的非主语言翻译。 */
|
|
12
|
-
translations?:
|
|
12
|
+
translations?: BaseI18n[];
|
|
13
13
|
}
|
|
14
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
15
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TranslationTargetType } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/
|
|
1
|
+
import type { TranslationTargetType } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_i18n";
|
|
2
2
|
/** DynamicTranslationValue 动态资源单语言翻译编辑状态。 */
|
|
3
3
|
export interface DynamicTranslationValue {
|
|
4
4
|
/** 语言代码。 */
|