base6-ui 2.0.27 → 2.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/dist/config/themes/token/dark.d.ts +1 -0
- package/dist/config/themes/token/light.d.ts +1 -0
- package/dist/hooks/useBodenHttpMessage.d.ts +7 -1
- package/dist/index.css +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/locale/http/en-us.d.ts +98 -42
- package/dist/locale/lang/en-us.d.ts +2 -2
- package/es/components/platform-navigation/index.vue.mjs +2 -2
- package/es/components/platform-navigation/index.vue2.mjs +5 -5
- package/es/config/themes/components/card/dark.mjs +1 -1
- package/es/config/themes/components/dialog/dark.mjs +1 -1
- package/es/config/themes/token/dark.d.ts +1 -0
- package/es/config/themes/token/dark.mjs +1 -0
- package/es/config/themes/token/light.d.ts +1 -0
- package/es/config/themes/token/light.mjs +3 -2
- package/es/hooks/useBodenHttpMessage.d.ts +7 -1
- package/es/hooks/useBodenHttpMessage.mjs +17 -71
- package/es/index.css +1 -1
- package/es/locale/http/en-us.d.ts +98 -42
- package/es/locale/http/en-us.mjs +98 -85
- package/es/locale/http/zh-cn.mjs +97 -83
- package/es/locale/lang/en-us.d.ts +2 -2
- package/es/locale/lang/en-us.mjs +2 -2
- package/es/locale/lang/zh-cn.mjs +2 -2
- package/lib/components/platform-navigation/index.vue.js +1 -1
- package/lib/components/platform-navigation/index.vue2.js +1 -1
- package/lib/config/themes/components/card/dark.js +1 -1
- package/lib/config/themes/components/dialog/dark.js +1 -1
- package/lib/config/themes/token/dark.d.ts +1 -0
- package/lib/config/themes/token/dark.js +1 -1
- package/lib/config/themes/token/light.d.ts +1 -0
- package/lib/config/themes/token/light.js +1 -1
- package/lib/hooks/useBodenHttpMessage.d.ts +7 -1
- package/lib/hooks/useBodenHttpMessage.js +1 -1
- package/lib/index.css +1 -1
- package/lib/locale/http/en-us.d.ts +98 -42
- package/lib/locale/http/en-us.js +1 -1
- package/lib/locale/http/zh-cn.js +1 -1
- package/lib/locale/lang/en-us.d.ts +2 -2
- package/lib/locale/lang/en-us.js +1 -1
- package/lib/locale/lang/zh-cn.js +1 -1
- package/package.json +1 -1
|
@@ -1,47 +1,103 @@
|
|
|
1
1
|
declare const enUS: {
|
|
2
2
|
name: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
3
|
+
401: string;
|
|
4
|
+
403: string;
|
|
5
|
+
200: {
|
|
6
|
+
1: string;
|
|
7
|
+
2: string;
|
|
8
|
+
200: string;
|
|
9
|
+
/** 10000~19999 输入参数相关问题 */
|
|
10
|
+
10000: string;
|
|
11
|
+
10001: string;
|
|
12
|
+
10002: string;
|
|
13
|
+
10003: string;
|
|
14
|
+
10004: string;
|
|
15
|
+
10005: string;
|
|
16
|
+
10006: string;
|
|
17
|
+
/** 20000~29999 账号管理相关问题 */
|
|
18
|
+
20000: string;
|
|
19
|
+
20001: string;
|
|
20
|
+
20002: string;
|
|
21
|
+
20003: string;
|
|
22
|
+
20004: string;
|
|
23
|
+
20005: string;
|
|
24
|
+
20006: string;
|
|
25
|
+
20007: string;
|
|
26
|
+
20008: string;
|
|
27
|
+
20009: string;
|
|
28
|
+
/** 21000~21099 团队管理相关问题 */
|
|
29
|
+
21000: string;
|
|
30
|
+
21001: string;
|
|
31
|
+
21002: string;
|
|
32
|
+
21003: string;
|
|
33
|
+
21004: string;
|
|
34
|
+
21005: string;
|
|
35
|
+
/** 30000~39999 访问资源(项目/数据集/任务等)使用相关问题 */
|
|
36
|
+
30000: string;
|
|
37
|
+
30001: string;
|
|
38
|
+
30002: string;
|
|
39
|
+
30003: string;
|
|
40
|
+
30004: string;
|
|
41
|
+
30005: string;
|
|
42
|
+
30006: string;
|
|
43
|
+
30007: string;
|
|
44
|
+
30008: string;
|
|
45
|
+
30009: string;
|
|
46
|
+
30010: string;
|
|
47
|
+
30011: string;
|
|
48
|
+
30012: string;
|
|
49
|
+
30013: string;
|
|
50
|
+
30014: string;
|
|
51
|
+
30015: string;
|
|
52
|
+
/** 30100~30199 argo工作流使用相关异常 */
|
|
53
|
+
30100: string;
|
|
54
|
+
30101: string;
|
|
55
|
+
30102: string;
|
|
56
|
+
30103: string;
|
|
57
|
+
30104: string;
|
|
58
|
+
/** 30200~30299 项目下配置信息使用相关异常 */
|
|
59
|
+
30200: string;
|
|
60
|
+
30201: string;
|
|
61
|
+
30202: string;
|
|
62
|
+
30203: string;
|
|
63
|
+
/** 30300~30399 工作流使用相关异常 */
|
|
64
|
+
30300: string;
|
|
65
|
+
30301: string;
|
|
66
|
+
30302: string;
|
|
67
|
+
30303: string;
|
|
68
|
+
30304: string;
|
|
69
|
+
30305: string;
|
|
70
|
+
30306: string;
|
|
71
|
+
/** 30400~30499 数据集使用相关异常 */
|
|
72
|
+
30400: string;
|
|
73
|
+
30401: string;
|
|
74
|
+
30402: string;
|
|
75
|
+
30403: string;
|
|
76
|
+
30404: string;
|
|
77
|
+
30405: string;
|
|
78
|
+
/** 30500~30599 任务使用相关异常 */
|
|
79
|
+
30500: string;
|
|
80
|
+
30501: string;
|
|
81
|
+
30502: string;
|
|
82
|
+
30503: string;
|
|
83
|
+
30504: string;
|
|
84
|
+
30505: string;
|
|
85
|
+
30506: string;
|
|
86
|
+
30507: string;
|
|
87
|
+
30508: string;
|
|
88
|
+
30509: string;
|
|
89
|
+
/** 40000~49999 内部接口调用相关问题 */
|
|
90
|
+
40000: string;
|
|
91
|
+
40001: string;
|
|
92
|
+
40002: string;
|
|
93
|
+
40003: string;
|
|
94
|
+
/** 50000~59999 文件处理相关问题 */
|
|
95
|
+
50000: string;
|
|
96
|
+
50001: string;
|
|
97
|
+
50002: string;
|
|
98
|
+
50003: string;
|
|
99
|
+
50004: string;
|
|
100
|
+
51000: string;
|
|
45
101
|
};
|
|
46
102
|
};
|
|
47
103
|
export type BodenHttpLocale = typeof enUS;
|
|
@@ -27,8 +27,8 @@ declare const enUS: {
|
|
|
27
27
|
BricPlatformDescription: string;
|
|
28
28
|
RoboPlatform: string;
|
|
29
29
|
RoboPlatformDescription: string;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
ForgePlatform: string;
|
|
31
|
+
ForgePlatformDescription: string;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -2,7 +2,7 @@ import o from "./index.vue2.mjs";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const
|
|
5
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-645a51c0"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
p as default
|
|
8
8
|
};
|
|
@@ -46,8 +46,8 @@ const ge = { class: "header" }, ue = { class: "content-wrapper" }, he = { class:
|
|
|
46
46
|
{
|
|
47
47
|
id: c.PS,
|
|
48
48
|
key: d.PS,
|
|
49
|
-
title: e("boden.platformNavigation.
|
|
50
|
-
description: e("boden.platformNavigation.
|
|
49
|
+
title: e("boden.platformNavigation.ForgePlatform"),
|
|
50
|
+
description: e("boden.platformNavigation.ForgePlatformDescription"),
|
|
51
51
|
imageSrc: ce
|
|
52
52
|
}
|
|
53
53
|
]
|
|
@@ -108,7 +108,7 @@ const ge = { class: "header" }, ue = { class: "content-wrapper" }, he = { class:
|
|
|
108
108
|
return S({
|
|
109
109
|
updateShow: b
|
|
110
110
|
}), (r, i) => {
|
|
111
|
-
const L = Q("svg-icon"), z = q,
|
|
111
|
+
const L = Q("svg-icon"), z = q, F = j, V = H, U = $, G = K;
|
|
112
112
|
return l(), u("div", null, [
|
|
113
113
|
p(ie, {
|
|
114
114
|
ref_key: "triggerInstRef",
|
|
@@ -161,11 +161,11 @@ const ge = { class: "header" }, ue = { class: "content-wrapper" }, he = { class:
|
|
|
161
161
|
style: { "margin-top": "12px" }
|
|
162
162
|
}, {
|
|
163
163
|
default: s(() => [
|
|
164
|
-
(l(!0), u(y, null, P(t.children, (a) => (l(), _(
|
|
164
|
+
(l(!0), u(y, null, P(t.children, (a) => (l(), _(V, {
|
|
165
165
|
key: a.key
|
|
166
166
|
}, {
|
|
167
167
|
default: s(() => [
|
|
168
|
-
p(
|
|
168
|
+
p(F, {
|
|
169
169
|
class: Y(["platform-card", { "is-horizontal": t.children.length === 1 }]),
|
|
170
170
|
"theme-overrides": t.children.length === 1 ? A.value : R.value
|
|
171
171
|
}, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "../color/light.mjs";
|
|
2
|
-
const
|
|
2
|
+
const F = {
|
|
3
3
|
"color-text-1": "#FFFFFF",
|
|
4
4
|
"color-text-2": o["color-gray-8"],
|
|
5
5
|
"color-text-3": o["color-gray-6"],
|
|
@@ -10,6 +10,7 @@ const l = {
|
|
|
10
10
|
"bg-color-2": "#FFFFFF",
|
|
11
11
|
"bg-color-3": "#FFFFFF",
|
|
12
12
|
"bg-color-4": "#E1E9F4",
|
|
13
|
+
"bg-color-5": "#F4F8FE",
|
|
13
14
|
"fill-color-1": o["color-gray-2"],
|
|
14
15
|
"fill-color-5": "#FAFAFA",
|
|
15
16
|
"border-color-1": o["color-gray-3"],
|
|
@@ -18,5 +19,5 @@ const l = {
|
|
|
18
19
|
"border-color-4": o["color-gray-6"]
|
|
19
20
|
};
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
F as default
|
|
22
23
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { BodenLocaleLang } from '../components/config-provider/types';
|
|
2
|
+
import { TranslatorOption } from './useLocale';
|
|
2
3
|
export declare const useBodenHttpMessage: () => {
|
|
3
|
-
|
|
4
|
+
$t: (params: {
|
|
5
|
+
httpStatus: number;
|
|
6
|
+
httpCode?: number;
|
|
7
|
+
option?: TranslatorOption | number | string;
|
|
8
|
+
locale?: BodenLocaleLang;
|
|
9
|
+
}) => string;
|
|
4
10
|
};
|
|
@@ -1,73 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (s === 20003) return e.success.userPhoneNotRegistered;
|
|
18
|
-
if (s === 20004) return e.success.userBeenDisabled;
|
|
19
|
-
if (s === 20005) return e.success.userPhoneBeenRegistered;
|
|
20
|
-
if (s === 20006) return e.success.userBeenRegistered;
|
|
21
|
-
if (s === 20007) return e.success.userNotExists;
|
|
22
|
-
if (s === 21e3) return e.success.TeamNameRepeat;
|
|
23
|
-
if (s === 21001) return e.success.TeamNotExists;
|
|
24
|
-
if (s === 21002) return e.success.TeamUsersNotBeenAdmin;
|
|
25
|
-
if (s === 3e4) return e.success.resourceExists;
|
|
26
|
-
if (s === 30001) return e.success.resourceBeenBound;
|
|
27
|
-
if (s === 30002) return e.success.resourceCannotModified;
|
|
28
|
-
if (s === 30003) return e.success.resourceCannotDeleted;
|
|
29
|
-
if (s === 30004) return e.success.resourceBeenClaimed;
|
|
30
|
-
if (s === 30005) return e.success.resourceBeenSuspended;
|
|
31
|
-
if (s === 30006) return e.success.resourceNotExist;
|
|
32
|
-
if (s === 30007) return e.success.resourceBeingCreated;
|
|
33
|
-
if (s === 30008) return e.success.resourceBeingUpdated;
|
|
34
|
-
if (s === 30009) return e.success.resourceBeingDeleted;
|
|
35
|
-
if (s === 30010) return e.success.resourceBeingSubmitted;
|
|
36
|
-
if (s === 30011) return e.success.resourceBeingRejected;
|
|
37
|
-
if (s === 30012) return e.success.resourceBeingOccupied;
|
|
38
|
-
if (s === 30013) return e.success.resourceNotSupport;
|
|
39
|
-
if (s === 30014) return e.success.resourceUnauthorized;
|
|
40
|
-
if (s === 4e4) return e.success.InternalInterfaceConnectionFailed;
|
|
41
|
-
if (s === 40001) return e.success.InternalInterfaceTimeout;
|
|
42
|
-
if (s === 40002) return e.success.InternalInterfaceCallError;
|
|
43
|
-
if (s === 40003) return e.success.InternalInterfaceReturnedNoValue;
|
|
44
|
-
if (s === 5e4) return e.success.FileUploadFailed;
|
|
45
|
-
if (s === 50001) return e.success.FileDownloadFailed;
|
|
46
|
-
if (s === 50002) return e.success.FileNotExist;
|
|
47
|
-
if (s === 50003) return e.success.FileGenerationFailed;
|
|
48
|
-
if (s === 50010) return e.success.FileImportedErrorByParameter;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
return {
|
|
52
|
-
httpMessage: (s, u, e = "en-US") => {
|
|
53
|
-
const c = n[e];
|
|
54
|
-
let r = "";
|
|
55
|
-
if (!c) return r;
|
|
56
|
-
switch (s) {
|
|
57
|
-
case 401:
|
|
58
|
-
r = c.unauthorized;
|
|
59
|
-
break;
|
|
60
|
-
case 403:
|
|
61
|
-
r = c.forbidden;
|
|
62
|
-
break;
|
|
63
|
-
case 200:
|
|
64
|
-
r = i(u, e) || "";
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
return r;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
};
|
|
1
|
+
import m from "../locale/http/en-us.mjs";
|
|
2
|
+
import c from "../locale/http/zh-cn.mjs";
|
|
3
|
+
import { get as g } from "../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.mjs";
|
|
4
|
+
const f = {
|
|
5
|
+
"en-US": m,
|
|
6
|
+
"zh-CN": c
|
|
7
|
+
}, C = () => ({
|
|
8
|
+
$t: (r) => {
|
|
9
|
+
const { httpStatus: e, httpCode: s, option: t, locale: p = "en-US" } = r, a = f[p];
|
|
10
|
+
let o = `${e}`;
|
|
11
|
+
return e === 200 && (o += `.${s ?? 0}`), g(a, o).replace(
|
|
12
|
+
/\{(\w+)\}/g,
|
|
13
|
+
(u, n) => typeof t == "string" || typeof t == "number" ? `${t}` : `${t?.[n] ?? `{${n}}`}`
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
71
17
|
export {
|
|
72
|
-
|
|
18
|
+
C as useBodenHttpMessage
|
|
73
19
|
};
|