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.
Files changed (42) hide show
  1. package/dist/config/themes/token/dark.d.ts +1 -0
  2. package/dist/config/themes/token/light.d.ts +1 -0
  3. package/dist/hooks/useBodenHttpMessage.d.ts +7 -1
  4. package/dist/index.css +1 -1
  5. package/dist/index.umd.js +3 -3
  6. package/dist/locale/http/en-us.d.ts +98 -42
  7. package/dist/locale/lang/en-us.d.ts +2 -2
  8. package/es/components/platform-navigation/index.vue.mjs +2 -2
  9. package/es/components/platform-navigation/index.vue2.mjs +5 -5
  10. package/es/config/themes/components/card/dark.mjs +1 -1
  11. package/es/config/themes/components/dialog/dark.mjs +1 -1
  12. package/es/config/themes/token/dark.d.ts +1 -0
  13. package/es/config/themes/token/dark.mjs +1 -0
  14. package/es/config/themes/token/light.d.ts +1 -0
  15. package/es/config/themes/token/light.mjs +3 -2
  16. package/es/hooks/useBodenHttpMessage.d.ts +7 -1
  17. package/es/hooks/useBodenHttpMessage.mjs +17 -71
  18. package/es/index.css +1 -1
  19. package/es/locale/http/en-us.d.ts +98 -42
  20. package/es/locale/http/en-us.mjs +98 -85
  21. package/es/locale/http/zh-cn.mjs +97 -83
  22. package/es/locale/lang/en-us.d.ts +2 -2
  23. package/es/locale/lang/en-us.mjs +2 -2
  24. package/es/locale/lang/zh-cn.mjs +2 -2
  25. package/lib/components/platform-navigation/index.vue.js +1 -1
  26. package/lib/components/platform-navigation/index.vue2.js +1 -1
  27. package/lib/config/themes/components/card/dark.js +1 -1
  28. package/lib/config/themes/components/dialog/dark.js +1 -1
  29. package/lib/config/themes/token/dark.d.ts +1 -0
  30. package/lib/config/themes/token/dark.js +1 -1
  31. package/lib/config/themes/token/light.d.ts +1 -0
  32. package/lib/config/themes/token/light.js +1 -1
  33. package/lib/hooks/useBodenHttpMessage.d.ts +7 -1
  34. package/lib/hooks/useBodenHttpMessage.js +1 -1
  35. package/lib/index.css +1 -1
  36. package/lib/locale/http/en-us.d.ts +98 -42
  37. package/lib/locale/http/en-us.js +1 -1
  38. package/lib/locale/http/zh-cn.js +1 -1
  39. package/lib/locale/lang/en-us.d.ts +2 -2
  40. package/lib/locale/lang/en-us.js +1 -1
  41. package/lib/locale/lang/zh-cn.js +1 -1
  42. package/package.json +1 -1
@@ -1,47 +1,103 @@
1
1
  declare const enUS: {
2
2
  name: string;
3
- unauthorized: string;
4
- forbidden: string;
5
- success: {
6
- unknown: string;
7
- warning: string;
8
- success: string;
9
- parameterProblem: string;
10
- userExists: string;
11
- userIncorrectCode: string;
12
- userInvalidPassword: string;
13
- userPhoneNotRegistered: string;
14
- userBeenDisabled: string;
15
- userPhoneBeenRegistered: string;
16
- userBeenRegistered: string;
17
- userNotExists: string;
18
- TeamNameRepeat: string;
19
- TeamNotExists: string;
20
- TeamUsersNotBeenAdmin: string;
21
- resourceExists: string;
22
- resourceBeenBound: string;
23
- resourceCannotModified: string;
24
- resourceCannotDeleted: string;
25
- resourceBeenClaimed: string;
26
- resourceBeenSuspended: string;
27
- resourceNotExist: string;
28
- resourceBeingCreated: string;
29
- resourceBeingUpdated: string;
30
- resourceBeingDeleted: string;
31
- resourceBeingSubmitted: string;
32
- resourceBeingRejected: string;
33
- resourceBeingOccupied: string;
34
- resourceNotSupport: string;
35
- resourceUnauthorized: string;
36
- InternalInterfaceConnectionFailed: string;
37
- InternalInterfaceTimeout: string;
38
- InternalInterfaceCallError: string;
39
- InternalInterfaceReturnedNoValue: string;
40
- FileUploadFailed: string;
41
- FileDownloadFailed: string;
42
- FileNotExist: string;
43
- FileGenerationFailed: string;
44
- FileImportedErrorByParameter: string;
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
- PsPlatform: string;
31
- PsPlatformDescription: string;
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 i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d7f37bb4"]]);
5
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-645a51c0"]]);
6
6
  export {
7
- i as default
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.PsPlatform"),
50
- description: e("boden.platformNavigation.PsPlatformDescription"),
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, V = j, F = H, U = $, G = K;
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(), _(F, {
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(V, {
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
  }, {
@@ -10,7 +10,7 @@ const c = {
10
10
  closeIconColor: o["color-text-1"],
11
11
  titleFontSizeMedium: "20px",
12
12
  borderRadius: "10px",
13
- colorModal: o["bg-color-3"]
13
+ colorModal: o["bg-color-5"]
14
14
  };
15
15
  export {
16
16
  c as CardThemeDark
@@ -11,7 +11,7 @@ const n = {
11
11
  iconColorInfo: o["color-primary-6"],
12
12
  iconColorSuccess: o["color-green-6"],
13
13
  iconColorWarning: o["color-origin-6"],
14
- color: r["bg-color-3"]
14
+ color: r["bg-color-5"]
15
15
  };
16
16
  export {
17
17
  n as DialogThemeDark
@@ -14,6 +14,7 @@ declare const darkToken: {
14
14
  'bg-color-2': string;
15
15
  'bg-color-3': string;
16
16
  'bg-color-4': string;
17
+ 'bg-color-5': string;
17
18
  'bg-color-9': string;
18
19
  'bg-color-white': string;
19
20
  'color-white-disabled-opacity': string;
@@ -16,6 +16,7 @@ const l = {
16
16
  "bg-color-2": "#111113",
17
17
  "bg-color-3": "#31343C",
18
18
  "bg-color-4": "#2E3034",
19
+ "bg-color-5": "#222327",
19
20
  "bg-color-9": "#1C1C20",
20
21
  "bg-color-white": "#FFFFFF",
21
22
  "color-white-disabled-opacity": "rgba(255, 255, 255, 0.3)",
@@ -9,6 +9,7 @@ declare const lightToken: {
9
9
  'bg-color-2': string;
10
10
  'bg-color-3': string;
11
11
  'bg-color-4': string;
12
+ 'bg-color-5': string;
12
13
  'fill-color-1': string;
13
14
  'fill-color-5': string;
14
15
  'border-color-1': string;
@@ -1,5 +1,5 @@
1
1
  import o from "../color/light.mjs";
2
- const l = {
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
- l as default
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
- httpMessage: (httpStatus: number, httpCode: number, lang?: BodenLocaleLang) => string;
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 a from "../locale/http/en-us.mjs";
2
- import f from "../locale/http/zh-cn.mjs";
3
- const n = {
4
- "en-US": a,
5
- "zh-CN": f
6
- }, g = () => {
7
- const i = (s, u) => {
8
- const e = n[u];
9
- if (e) {
10
- if (s === 1) return e.success.unknown;
11
- if (s === 2) return e.success.warning;
12
- if (s === 200) return e.success.success;
13
- if (s >= 1e4 && s <= 19999) return e.success.parameterProblem;
14
- if (s === 2e4) return e.success.userExists;
15
- if (s === 20001) return e.success.userIncorrectCode;
16
- if (s === 20002) return e.success.userInvalidPassword;
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
- g as useBodenHttpMessage
18
+ C as useBodenHttpMessage
73
19
  };