@liujitcn/kratos-admin-system 0.0.26 → 0.0.27
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/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 +941 -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/project_document.d.ts +8 -0
- package/dist/package/declarations/src/views/tool/code-gen/components/CodeGenLocaleEditor.vue.d.ts +1 -1
- 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/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 +2 -0
- package/dist/package/src/locales/generated.ts +2 -0
- package/dist/package/src/locales/ja-JP.json +935 -0
- package/dist/package/src/locales/zh-CN.json +2 -0
- package/dist/package/src/locales/zh-TW.json +2 -0
- 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/project_document.ts +9 -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/code-gen/columns/index.vue +8 -53
- package/dist/package/src/views/tool/code-gen/components/CodeGenLocaleEditor.vue +1 -1
- 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 +2 -2
- package/dist/package/src/views/tool/ops-monitoring/index.vue +23 -25
- 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。 */
|
|
@@ -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
|
/** 语言代码。 */
|