base6-ui 2.0.16 → 2.0.18
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/hooks/index.d.ts +1 -0
- package/dist/hooks/useBodenHttpMessage.d.ts +4 -0
- package/dist/index.umd.js +1 -1
- package/dist/locale/http/en-us.d.ts +13 -0
- package/dist/locale/lang/en-us.d.ts +4 -0
- package/es/components/dialog/index.vue.mjs +35 -34
- package/es/components/dialog/options.mjs +0 -2
- package/es/components/global-header/index.vue.mjs +1 -1
- package/es/components/layout/components/{WrapHeader.vue2.mjs → WrapHeader.vue.mjs} +1 -1
- package/es/components/layout/index.vue2.mjs +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/useBodenHttpMessage.d.ts +4 -0
- package/es/hooks/useBodenHttpMessage.mjs +73 -0
- package/es/index.mjs +38 -36
- package/es/locale/http/en-us.d.ts +13 -0
- package/es/locale/http/en-us.mjs +31 -1
- package/es/locale/http/zh-cn.mjs +29 -1
- package/es/locale/lang/en-us.d.ts +4 -0
- package/es/locale/lang/en-us.mjs +5 -1
- package/es/locale/lang/zh-cn.mjs +6 -2
- package/lib/components/dialog/index.vue.js +1 -1
- package/lib/components/dialog/options.js +1 -1
- package/lib/components/global-header/index.vue.js +1 -1
- package/lib/components/layout/components/WrapHeader.vue.js +1 -0
- package/lib/components/layout/index.vue2.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useBodenHttpMessage.d.ts +4 -0
- package/lib/hooks/useBodenHttpMessage.js +1 -0
- package/lib/index.js +1 -1
- package/lib/locale/http/en-us.d.ts +13 -0
- 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 +4 -0
- package/lib/locale/lang/en-us.js +1 -1
- package/lib/locale/lang/zh-cn.js +1 -1
- package/package.json +1 -1
- package/lib/components/layout/components/WrapHeader.vue2.js +0 -1
|
@@ -14,6 +14,10 @@ declare const enUS: {
|
|
|
14
14
|
userBeenDisabled: string;
|
|
15
15
|
userPhoneBeenRegistered: string;
|
|
16
16
|
userBeenRegistered: string;
|
|
17
|
+
userNotExists: string;
|
|
18
|
+
TeamNameRepeat: string;
|
|
19
|
+
TeamNotExists: string;
|
|
20
|
+
TeamUsersNotBeenAdmin: string;
|
|
17
21
|
resourceExists: string;
|
|
18
22
|
resourceBeenBound: string;
|
|
19
23
|
resourceCannotModified: string;
|
|
@@ -29,6 +33,15 @@ declare const enUS: {
|
|
|
29
33
|
resourceBeingOccupied: string;
|
|
30
34
|
resourceNotSupport: string;
|
|
31
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;
|
|
32
45
|
};
|
|
33
46
|
};
|
|
34
47
|
export type BodenHttpLocale = typeof enUS;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { NModal as
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import { NModal as S, NCard as I } from "naive-ui";
|
|
2
|
+
import { defineComponent as P, mergeDefaults as E, computed as l, resolveComponent as O, createBlock as y, openBlock as c, mergeProps as h, withCtx as t, createVNode as d, createSlots as H, renderSlot as a, createElementBlock as C, toDisplayString as L, normalizeClass as p, unref as i } from "vue";
|
|
3
3
|
import { defaultProps as N } from "./options.mjs";
|
|
4
|
-
import
|
|
4
|
+
import b from "../button/button.mjs";
|
|
5
5
|
import "../button/interface.mjs";
|
|
6
|
-
|
|
6
|
+
import { useLocale as R } from "../../hooks/useLocale.mjs";
|
|
7
|
+
const D = {
|
|
7
8
|
key: 1,
|
|
8
9
|
style: { margin: "0 auto" }
|
|
9
|
-
},
|
|
10
|
+
}, X = /* @__PURE__ */ P({
|
|
10
11
|
__name: "index",
|
|
11
|
-
props: /* @__PURE__ */
|
|
12
|
+
props: /* @__PURE__ */ E({
|
|
12
13
|
visible: { type: Boolean },
|
|
13
14
|
width: {},
|
|
14
15
|
top: {},
|
|
@@ -39,42 +40,42 @@ const R = {
|
|
|
39
40
|
btnSize: {}
|
|
40
41
|
}, N),
|
|
41
42
|
emits: ["update:visible", "cancel", "confirm"],
|
|
42
|
-
setup(e, { emit:
|
|
43
|
-
const
|
|
43
|
+
setup(e, { emit: g }) {
|
|
44
|
+
const { t: m } = R(), r = g, n = e, k = l(() => ({
|
|
44
45
|
width: `${n.width}`,
|
|
45
46
|
position: "fixed",
|
|
46
47
|
left: "50%",
|
|
47
48
|
top: `${n.top}`,
|
|
48
49
|
transform: "translateX(-50%)"
|
|
49
|
-
})),
|
|
50
|
+
})), v = l(() => ({
|
|
50
51
|
lineHeight: "28px",
|
|
51
52
|
textAlign: `${n.center ? "center" : "left"}`
|
|
52
|
-
})),
|
|
53
|
+
})), x = l(() => n.btnPlacement === "center" ? "flex-c" : "flex justify-end"), s = l({
|
|
53
54
|
get: () => n.visible,
|
|
54
55
|
set: (o) => {
|
|
55
|
-
|
|
56
|
+
r("update:visible", o);
|
|
56
57
|
}
|
|
57
|
-
}),
|
|
58
|
-
n.closeOnCancel && (s.value = !1),
|
|
59
|
-
},
|
|
60
|
-
|
|
58
|
+
}), f = () => {
|
|
59
|
+
n.closeOnCancel && (s.value = !1), r("cancel");
|
|
60
|
+
}, B = () => {
|
|
61
|
+
r("confirm");
|
|
61
62
|
};
|
|
62
|
-
return (o,
|
|
63
|
-
const
|
|
64
|
-
return c(),
|
|
63
|
+
return (o, u) => {
|
|
64
|
+
const $ = O("svg-icon"), w = I, z = S;
|
|
65
|
+
return c(), y(z, h({
|
|
65
66
|
show: s.value,
|
|
66
|
-
"onUpdate:show":
|
|
67
|
+
"onUpdate:show": u[0] || (u[0] = (T) => s.value = T),
|
|
67
68
|
maskClosable: e.maskClosable,
|
|
68
69
|
closeOnEsc: e.closeOnEsc
|
|
69
70
|
}, o.$attrs), {
|
|
70
71
|
default: t(() => [
|
|
71
|
-
|
|
72
|
-
"header-style":
|
|
72
|
+
d(w, h({
|
|
73
|
+
"header-style": v.value,
|
|
73
74
|
style: k.value,
|
|
74
75
|
size: e.cardSize,
|
|
75
76
|
closable: e.closable,
|
|
76
77
|
segmented: { content: !0 }
|
|
77
|
-
}, o.$attrs),
|
|
78
|
+
}, o.$attrs), H({
|
|
78
79
|
default: t(() => [
|
|
79
80
|
a(o.$slots, "default")
|
|
80
81
|
]),
|
|
@@ -83,18 +84,18 @@ const R = {
|
|
|
83
84
|
o.$slots.header || e.title ? {
|
|
84
85
|
name: "header",
|
|
85
86
|
fn: t(() => [
|
|
86
|
-
o.$slots.header ? a(o.$slots, "header", { key: 0 }) : (c(),
|
|
87
|
+
o.$slots.header ? a(o.$slots, "header", { key: 0 }) : (c(), C("span", D, L(e.title), 1))
|
|
87
88
|
]),
|
|
88
89
|
key: "0"
|
|
89
90
|
} : void 0,
|
|
90
91
|
o.$slots["header-extra"] || e.showHeaderExtra ? {
|
|
91
92
|
name: "header-extra",
|
|
92
93
|
fn: t(() => [
|
|
93
|
-
o.$slots["header-extra"] ? a(o.$slots, "header-extra", { key: 0 }) : (c(),
|
|
94
|
+
o.$slots["header-extra"] ? a(o.$slots, "header-extra", { key: 0 }) : (c(), y($, {
|
|
94
95
|
key: 1,
|
|
95
96
|
icon: "operate-close",
|
|
96
97
|
class: "cursor-pointer active:scale-[0.95] text-[18px]",
|
|
97
|
-
onClick:
|
|
98
|
+
onClick: f
|
|
98
99
|
}))
|
|
99
100
|
]),
|
|
100
101
|
key: "1"
|
|
@@ -102,33 +103,33 @@ const R = {
|
|
|
102
103
|
o.$slots.footer || e.showFooter ? {
|
|
103
104
|
name: "footer",
|
|
104
105
|
fn: t(() => [
|
|
105
|
-
o.$slots.footer ? a(o.$slots, "footer", { key: 0 }) : (c(),
|
|
106
|
+
o.$slots.footer ? a(o.$slots, "footer", { key: 0 }) : (c(), C("div", {
|
|
106
107
|
key: 1,
|
|
107
|
-
class:
|
|
108
|
+
class: p(["gap-[8px]", x.value])
|
|
108
109
|
}, [
|
|
109
|
-
|
|
110
|
+
d(i(b), {
|
|
110
111
|
icon: e.cancelIcon,
|
|
111
112
|
"icon-placement": e.cancelIconPlacement,
|
|
112
113
|
color: e.cancelColor,
|
|
113
114
|
"text-color": e.cancelTextColor,
|
|
114
|
-
content: e.cancelBtnText,
|
|
115
|
+
content: e.cancelBtnText || i(m)("boden.dialog.cancel"),
|
|
115
116
|
loading: e.isLoading,
|
|
116
117
|
round: e.btnRound,
|
|
117
118
|
size: e.btnSize,
|
|
118
119
|
type: e.cancelType,
|
|
119
|
-
onClick:
|
|
120
|
+
onClick: f
|
|
120
121
|
}, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "loading", "round", "size", "type"]),
|
|
121
|
-
|
|
122
|
+
d(i(b), {
|
|
122
123
|
icon: e.confirmIcon,
|
|
123
124
|
"icon-placement": e.confirmIconPlacement,
|
|
124
125
|
color: e.confirmColor,
|
|
125
126
|
"text-color": e.confirmTextColor,
|
|
126
|
-
content: e.confirmBtnText,
|
|
127
|
+
content: e.confirmBtnText || i(m)("boden.dialog.confirm"),
|
|
127
128
|
loading: e.isLoading,
|
|
128
129
|
round: e.btnRound,
|
|
129
130
|
size: e.btnSize,
|
|
130
131
|
type: e.confirmType,
|
|
131
|
-
onClick:
|
|
132
|
+
onClick: B
|
|
132
133
|
}, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "loading", "round", "size", "type"])
|
|
133
134
|
], 2))
|
|
134
135
|
]),
|
|
@@ -142,5 +143,5 @@ const R = {
|
|
|
142
143
|
}
|
|
143
144
|
});
|
|
144
145
|
export {
|
|
145
|
-
|
|
146
|
+
X as default
|
|
146
147
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as S, ref as c, computed as I, createBlock as p, openBlock as s, unref as m, withCtx as i, createVNode as u, renderSlot as g, createCommentVNode as T, createSlots as w } from "vue";
|
|
2
2
|
import B from "./title.vue.mjs";
|
|
3
3
|
import L from "../system-actions/index.vue.mjs";
|
|
4
|
-
/* empty css
|
|
4
|
+
/* empty css */
|
|
5
5
|
import "../layout/options.mjs";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import P from "../layout/header/index.vue.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as I, mergeDefaults as _, useSlots as E, computed as o, createElementBlock as T, openBlock as u, normalizeStyle as j, createElementVNode as z, normalizeClass as G, unref as M, createBlock as p, createCommentVNode as l, createVNode as P, withCtx as d, renderSlot as c } from "vue";
|
|
2
|
-
import A from "./components/WrapHeader.
|
|
2
|
+
import A from "./components/WrapHeader.vue.mjs";
|
|
3
3
|
import N from "./components/WrapTab.vue.mjs";
|
|
4
4
|
import D from "./components/WrapContent.vue.mjs";
|
|
5
5
|
import O from "./components/WrapSlider.vue.mjs";
|
package/es/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
g as useBodenHttpMessage
|
|
73
|
+
};
|
package/es/index.mjs
CHANGED
|
@@ -14,8 +14,8 @@ import { default as A } from "./components/input-number/index.vue.mjs";
|
|
|
14
14
|
import { default as S } from "./components/global-header/index.vue.mjs";
|
|
15
15
|
import { default as v } from "./components/global-header/title.vue.mjs";
|
|
16
16
|
import { default as N } from "./components/layout/index.vue.mjs";
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
17
|
+
import { default as M } from "./components/layout/header/index.vue.mjs";
|
|
18
|
+
import { default as G } from "./components/layout/aside/index.vue.mjs";
|
|
19
19
|
import { default as O } from "./components/layout/aside-menu/aside-menu.mjs";
|
|
20
20
|
import { bodenAsideMenuProps as U } from "./components/layout/aside-menu/props.mjs";
|
|
21
21
|
import { default as w } from "./components/logo/index.vue.mjs";
|
|
@@ -32,22 +32,23 @@ import { default as fe, bodenTabsProps as de } from "./components/tabs/tabs.mjs"
|
|
|
32
32
|
import { configProviderInjectionKey as pe } from "./config/themes/index.mjs";
|
|
33
33
|
import { LOCALE_LANG as ne } from "./enum/locale.mjs";
|
|
34
34
|
import { useAnimationHook as ue } from "./hooks/useAnimationHook.mjs";
|
|
35
|
-
import {
|
|
36
|
-
import { default as he } from "./locale/lang/
|
|
37
|
-
import { default as ge } from "./locale/
|
|
38
|
-
import { default as Pe } from "./locale/http/
|
|
39
|
-
import { default as Ce } from "./
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { default as He } from "./config/themes/token/
|
|
43
|
-
import { default as ye } from "./config/themes/
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as Ee } from "./globalMethods/modules/
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
35
|
+
import { useBodenHttpMessage as ie } from "./hooks/useBodenHttpMessage.mjs";
|
|
36
|
+
import { default as he } from "./locale/lang/en-us.mjs";
|
|
37
|
+
import { default as ge } from "./locale/lang/zh-cn.mjs";
|
|
38
|
+
import { default as Pe } from "./locale/http/en-us.mjs";
|
|
39
|
+
import { default as Ce } from "./locale/http/zh-cn.mjs";
|
|
40
|
+
import { default as Le } from "./globalMethods/index.mjs";
|
|
41
|
+
import { renderStepsFinishIcon as ke } from "./utils/render.mjs";
|
|
42
|
+
import { default as He } from "./config/themes/token/dark.mjs";
|
|
43
|
+
import { default as ye } from "./config/themes/token/light.mjs";
|
|
44
|
+
import { default as De } from "./config/themes/color/dark.mjs";
|
|
45
|
+
import { default as Ie } from "./config/themes/color/light.mjs";
|
|
46
|
+
import { default as Ee } from "./globalMethods/modules/message.mjs";
|
|
47
|
+
import { default as je } from "./globalMethods/modules/confirmTip.mjs";
|
|
48
|
+
import { lightThemeOverrides as ze } from "./config/themes/light.mjs";
|
|
49
|
+
import { darkThemeOverrides as Ke } from "./config/themes/dark.mjs";
|
|
50
|
+
import { ChartsThemeDark as Ze } from "./config/themes/components/charts/dark.mjs";
|
|
51
|
+
import { ChartsThemeLight as qe } from "./config/themes/components/charts/light.mjs";
|
|
51
52
|
export {
|
|
52
53
|
f as BodenAppProvider,
|
|
53
54
|
O as BodenAsideMenu,
|
|
@@ -60,8 +61,8 @@ export {
|
|
|
60
61
|
v as BodenGlobalHeaderTitle,
|
|
61
62
|
A as BodenInputNumber,
|
|
62
63
|
N as BodenLayout,
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
G as BodenLayoutAside,
|
|
65
|
+
M as BodenLayoutHeader,
|
|
65
66
|
w as BodenLogo,
|
|
66
67
|
F as BodenNavIcon,
|
|
67
68
|
_ as BodenPlatformNavigation,
|
|
@@ -73,10 +74,10 @@ export {
|
|
|
73
74
|
oe as BodenSwitch,
|
|
74
75
|
te as BodenSystemActions,
|
|
75
76
|
fe as BodenTabs,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
Ze as ChartsThemeDark,
|
|
78
|
+
qe as ChartsThemeLight,
|
|
79
|
+
Pe as HttpEnUS,
|
|
80
|
+
Ce as HttpZhCN,
|
|
80
81
|
ne as LOCALE_LANG,
|
|
81
82
|
U as bodenAsideMenuProps,
|
|
82
83
|
m as bodenButtonProps,
|
|
@@ -84,17 +85,18 @@ export {
|
|
|
84
85
|
T as bodenDataTableProps,
|
|
85
86
|
de as bodenTabsProps,
|
|
86
87
|
pe as configProviderInjectionKey,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
De as darkBase,
|
|
89
|
+
Ke as darkThemeOverrides,
|
|
90
|
+
He as darkToken,
|
|
91
|
+
he as enUS,
|
|
92
|
+
Ie as lightBase,
|
|
93
|
+
ze as lightThemeOverrides,
|
|
94
|
+
ye as lightToken,
|
|
95
|
+
Le as registerBodenGlobalMethods,
|
|
96
|
+
ke as renderStepsFinishIcon,
|
|
96
97
|
ue as useAnimationHook,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
ie as useBodenHttpMessage,
|
|
99
|
+
je as useConfirmTip,
|
|
100
|
+
Ee as useMessage,
|
|
101
|
+
ge as zhCN
|
|
100
102
|
};
|
|
@@ -14,6 +14,10 @@ declare const enUS: {
|
|
|
14
14
|
userBeenDisabled: string;
|
|
15
15
|
userPhoneBeenRegistered: string;
|
|
16
16
|
userBeenRegistered: string;
|
|
17
|
+
userNotExists: string;
|
|
18
|
+
TeamNameRepeat: string;
|
|
19
|
+
TeamNotExists: string;
|
|
20
|
+
TeamUsersNotBeenAdmin: string;
|
|
17
21
|
resourceExists: string;
|
|
18
22
|
resourceBeenBound: string;
|
|
19
23
|
resourceCannotModified: string;
|
|
@@ -29,6 +33,15 @@ declare const enUS: {
|
|
|
29
33
|
resourceBeingOccupied: string;
|
|
30
34
|
resourceNotSupport: string;
|
|
31
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;
|
|
32
45
|
};
|
|
33
46
|
};
|
|
34
47
|
export type BodenHttpLocale = typeof enUS;
|
package/es/locale/http/en-us.mjs
CHANGED
|
@@ -11,6 +11,7 @@ const e = {
|
|
|
11
11
|
// 200
|
|
12
12
|
parameterProblem: "Invalid Parameter Input",
|
|
13
13
|
// 10000
|
|
14
|
+
// 账号管理相关问题
|
|
14
15
|
userExists: "Username Already Exists",
|
|
15
16
|
// 20000
|
|
16
17
|
userIncorrectCode: "Incorrect verification code",
|
|
@@ -25,6 +26,15 @@ const e = {
|
|
|
25
26
|
// 20005
|
|
26
27
|
userBeenRegistered: "This account is already registered. Please log in directly or [retrieve password].",
|
|
27
28
|
// 20006
|
|
29
|
+
userNotExists: "User does not exist",
|
|
30
|
+
// 20007
|
|
31
|
+
TeamNameRepeat: "Duplicate team name",
|
|
32
|
+
// 21000
|
|
33
|
+
TeamNotExists: "Team does not exist",
|
|
34
|
+
// 21001
|
|
35
|
+
TeamUsersNotBeenAdmin: "Team users are not allowed to be changed to team administrators.",
|
|
36
|
+
// 21002
|
|
37
|
+
// 访问资源(项目/数据集/任务等)使用相关问题
|
|
28
38
|
resourceExists: "Resource Name Already Exists",
|
|
29
39
|
// 30000
|
|
30
40
|
resourceBeenBound: "Resource Has Been Reused/Bound",
|
|
@@ -53,8 +63,28 @@ const e = {
|
|
|
53
63
|
// 30012
|
|
54
64
|
resourceNotSupport: "Resource Status Does Not Support This Operation",
|
|
55
65
|
// 30013
|
|
56
|
-
resourceUnauthorized: "No Permission to Use This Resource"
|
|
66
|
+
resourceUnauthorized: "No Permission to Use This Resource",
|
|
57
67
|
// 30014
|
|
68
|
+
// 内部接口调用相关问题
|
|
69
|
+
InternalInterfaceConnectionFailed: "Internal interface call connection failed",
|
|
70
|
+
// 40000
|
|
71
|
+
InternalInterfaceTimeout: "Internal interface call timed out",
|
|
72
|
+
// 40001
|
|
73
|
+
InternalInterfaceCallError: "Internal interface call error",
|
|
74
|
+
// 40002
|
|
75
|
+
InternalInterfaceReturnedNoValue: "Internal interface call returned no value",
|
|
76
|
+
// 40003
|
|
77
|
+
// 文件处理相关问题
|
|
78
|
+
FileUploadFailed: "File upload failed",
|
|
79
|
+
// 50000
|
|
80
|
+
FileDownloadFailed: "File download failed",
|
|
81
|
+
// 50001
|
|
82
|
+
FileNotExist: "File does not exist",
|
|
83
|
+
// 50002
|
|
84
|
+
FileGenerationFailed: "File generation failed",
|
|
85
|
+
// 50003
|
|
86
|
+
FileImportedErrorByParameter: "Parameter error in imported file"
|
|
87
|
+
// 51000
|
|
58
88
|
}
|
|
59
89
|
};
|
|
60
90
|
export {
|
package/es/locale/http/zh-cn.mjs
CHANGED
|
@@ -25,6 +25,14 @@ const e = {
|
|
|
25
25
|
// 20005
|
|
26
26
|
userBeenRegistered: "该账号已注册,请直接登录或【找回密码】",
|
|
27
27
|
// 20006
|
|
28
|
+
userNotExists: "用户不存在",
|
|
29
|
+
// 20007
|
|
30
|
+
TeamNameRepeat: "团队名称重复",
|
|
31
|
+
// 21000
|
|
32
|
+
TeamNotExists: "团队不存在",
|
|
33
|
+
// 21001
|
|
34
|
+
TeamUsersNotBeenAdmin: "Team users are not allowed to be changed to team administrators.",
|
|
35
|
+
// 21002
|
|
28
36
|
resourceExists: "资源名称已存在",
|
|
29
37
|
// 30000
|
|
30
38
|
resourceBeenBound: "资源已被重复使用 / 绑定",
|
|
@@ -53,8 +61,28 @@ const e = {
|
|
|
53
61
|
// 30012
|
|
54
62
|
resourceNotSupport: "资源状态不支持该操作",
|
|
55
63
|
// 30013
|
|
56
|
-
resourceUnauthorized: "无权限使用该资源"
|
|
64
|
+
resourceUnauthorized: "无权限使用该资源",
|
|
57
65
|
// 30014
|
|
66
|
+
// 内部接口调用相关问题
|
|
67
|
+
InternalInterfaceConnectionFailed: "内部接口调用连接失败",
|
|
68
|
+
// 40000
|
|
69
|
+
InternalInterfaceTimeout: "内部接口调用超时",
|
|
70
|
+
// 40001
|
|
71
|
+
InternalInterfaceCallError: "内部接口调用报错",
|
|
72
|
+
// 40002
|
|
73
|
+
InternalInterfaceReturnedNoValue: "内部接口调用无返回值",
|
|
74
|
+
// 40003
|
|
75
|
+
// 文件处理相关问题
|
|
76
|
+
FileUploadFailed: "文件上传失败",
|
|
77
|
+
// 50000
|
|
78
|
+
FileDownloadFailed: "文件下载失败",
|
|
79
|
+
// 50001
|
|
80
|
+
FileNotExist: "文件不存在",
|
|
81
|
+
// 50002
|
|
82
|
+
FileGenerationFailed: "文件生成失败",
|
|
83
|
+
// 50003
|
|
84
|
+
FileImportedErrorByParameter: "导入文件内存在参数错误"
|
|
85
|
+
// 51000
|
|
58
86
|
}
|
|
59
87
|
};
|
|
60
88
|
export {
|
package/es/locale/lang/en-us.mjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
const o = {
|
|
2
2
|
name: "en-us",
|
|
3
3
|
boden: {
|
|
4
|
+
dialog: {
|
|
5
|
+
cancel: "Cancel",
|
|
6
|
+
confirm: "Confirm"
|
|
7
|
+
},
|
|
4
8
|
systemActions: {
|
|
5
9
|
userCenter: "user center",
|
|
6
10
|
logout: "logout"
|
|
@@ -15,7 +19,7 @@ const o = {
|
|
|
15
19
|
StudioPlatformDescription: "通用标注平台,支持图像、音频、文本、视频等多类型数据的标注与质检。具备灵活的可编排工作流能力,提供丰富的标注工具模板和算法辅助能力,适用于计算机视觉、语音识别、NLP。",
|
|
16
20
|
OmniPlatform: "多模态标注平台 - BASE Omni",
|
|
17
21
|
OmniPlatformDescription: "多模态标注平台是一套支持多源异构数据协同标注的智能系统,覆盖图像、视频、音频、文本、点云等多种模态数据类型,支持模态间时间同步与语义关联标注。帮助团队高效构建多模态融合训练数据集。",
|
|
18
|
-
BlinkPlatform: "
|
|
22
|
+
BlinkPlatform: "BLINK 数据管理平台",
|
|
19
23
|
BlinkPlatformDescription: "集成数据资产的管理、交付、检索等全链路管理",
|
|
20
24
|
BricPlatform: "BRIC 数据采集平台",
|
|
21
25
|
BricPlatformDescription: "专业数据采集,汇聚海量基石,奠定智能根基",
|
package/es/locale/lang/zh-cn.mjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
const o = {
|
|
2
2
|
name: "zh-cn",
|
|
3
3
|
boden: {
|
|
4
|
+
dialog: {
|
|
5
|
+
cancel: "取消",
|
|
6
|
+
confirm: "确定"
|
|
7
|
+
},
|
|
4
8
|
systemActions: {
|
|
5
9
|
userCenter: "个人中心",
|
|
6
10
|
logout: "退出账号"
|
|
@@ -15,9 +19,9 @@ const o = {
|
|
|
15
19
|
StudioPlatformDescription: "通用标注平台,支持图像、音频、文本、视频等多类型数据的标注与质检。具备灵活的可编排工作流能力,提供丰富的标注工具模板和算法辅助能力,适用于计算机视觉、语音识别、NLP。",
|
|
16
20
|
OmniPlatform: "多模态标注平台 - BASE Omni",
|
|
17
21
|
OmniPlatformDescription: "多模态标注平台是一套支持多源异构数据协同标注的智能系统,覆盖图像、视频、音频、文本、点云等多种模态数据类型,支持模态间时间同步与语义关联标注。帮助团队高效构建多模态融合训练数据集。",
|
|
18
|
-
BlinkPlatform: "
|
|
22
|
+
BlinkPlatform: "BLINK 数据管理平台",
|
|
19
23
|
BlinkPlatformDescription: "集成数据资产的管理、交付、检索等全链路管理",
|
|
20
|
-
BricPlatform: "
|
|
24
|
+
BricPlatform: "BRIC 数据采集平台",
|
|
21
25
|
BricPlatformDescription: "专业数据采集,汇聚海量基石,奠定智能根基",
|
|
22
26
|
RobotPlatform: "具身智能采集 - BRIC Robot",
|
|
23
27
|
RobotPlatformDescription: "专为具身智能研发打造,支持道场场景管理与多类型机器人组网(机器臂/人形)。提供从任务下发、现场采集到数据包审核的全链路工作流,内置遥操作与示教工具,高效沉淀高价值训练数据。"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("naive-ui"),e=require("vue"),v=require("./options.js"),d=require("../button/button.js");require("../button/interface.js");const x=require("../../hooks/useLocale.js"),B={key:1,style:{margin:"0 auto"}},w=e.defineComponent({__name:"index",props:e.mergeDefaults({visible:{type:Boolean},width:{},top:{},title:{},cardSize:{},center:{type:Boolean},closable:{},showHeaderExtra:{type:Boolean},showFooter:{type:Boolean},isLoading:{type:Boolean},maskClosable:{},closeOnEsc:{},closeOnCancel:{type:Boolean},cancelBtnText:{},confirmBtnText:{},cancelColor:{},confirmColor:{},cancelTextColor:{},confirmTextColor:{},cancelIcon:{},confirmIcon:{},cancelIconPlacement:{},confirmIconPlacement:{},cancelType:{},confirmType:{},btnPlacement:{},btnRound:{type:Boolean},btnSize:{}},v.defaultProps),emits:["update:visible","cancel","confirm"],setup(o,{emit:u}){const{t:a}=x.useLocale(),l=u,n=o,m=e.computed(()=>({width:`${n.width}`,position:"fixed",left:"50%",top:`${n.top}`,transform:"translateX(-50%)"})),f=e.computed(()=>({lineHeight:"28px",textAlign:`${n.center?"center":"left"}`})),y=e.computed(()=>n.btnPlacement==="center"?"flex-c":"flex justify-end"),c=e.computed({get:()=>n.visible,set:t=>{l("update:visible",t)}}),r=()=>{n.closeOnCancel&&(c.value=!1),l("cancel")},h=()=>{l("confirm")};return(t,i)=>{const C=e.resolveComponent("svg-icon"),b=s.NCard,k=s.NModal;return e.openBlock(),e.createBlock(k,e.mergeProps({show:c.value,"onUpdate:show":i[0]||(i[0]=g=>c.value=g),maskClosable:o.maskClosable,closeOnEsc:o.closeOnEsc},t.$attrs),{default:e.withCtx(()=>[e.createVNode(b,e.mergeProps({"header-style":f.value,style:m.value,size:o.cardSize,closable:o.closable,segmented:{content:!0}},t.$attrs),e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:2},[t.$slots.header||o.title?{name:"header",fn:e.withCtx(()=>[t.$slots.header?e.renderSlot(t.$slots,"header",{key:0}):(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(o.title),1))]),key:"0"}:void 0,t.$slots["header-extra"]||o.showHeaderExtra?{name:"header-extra",fn:e.withCtx(()=>[t.$slots["header-extra"]?e.renderSlot(t.$slots,"header-extra",{key:0}):(e.openBlock(),e.createBlock(C,{key:1,icon:"operate-close",class:"cursor-pointer active:scale-[0.95] text-[18px]",onClick:r}))]),key:"1"}:void 0,t.$slots.footer||o.showFooter?{name:"footer",fn:e.withCtx(()=>[t.$slots.footer?e.renderSlot(t.$slots,"footer",{key:0}):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["gap-[8px]",y.value])},[e.createVNode(e.unref(d.default),{icon:o.cancelIcon,"icon-placement":o.cancelIconPlacement,color:o.cancelColor,"text-color":o.cancelTextColor,content:o.cancelBtnText||e.unref(a)("boden.dialog.cancel"),loading:o.isLoading,round:o.btnRound,size:o.btnSize,type:o.cancelType,onClick:r},null,8,["icon","icon-placement","color","text-color","content","loading","round","size","type"]),e.createVNode(e.unref(d.default),{icon:o.confirmIcon,"icon-placement":o.confirmIconPlacement,color:o.confirmColor,"text-color":o.confirmTextColor,content:o.confirmBtnText||e.unref(a)("boden.dialog.confirm"),loading:o.isLoading,round:o.btnRound,size:o.btnSize,type:o.confirmType,onClick:h},null,8,["icon","icon-placement","color","text-color","content","loading","round","size","type"])],2))]),key:"2"}:void 0]),1040,["header-style","style","size","closable"])]),_:3},16,["show","maskClosable","closeOnEsc"])}}});exports.default=w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={visible:!1,width:"1000px",title:void 0,top:"10vh",cardSize:"medium",isLoading:!1,center:!0,closable:!1,showHeaderExtra:!0,showFooter:!0,closeOnEsc:!1,closeOnCancel:!0,maskClosable:!1,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={visible:!1,width:"1000px",title:void 0,top:"10vh",cardSize:"medium",isLoading:!1,center:!0,closable:!1,showHeaderExtra:!0,showFooter:!0,closeOnEsc:!1,closeOnCancel:!0,maskClosable:!1,cancelIcon:"",confirmIcon:"",cancelIconPlacement:"left",confirmIconPlacement:"left",cancelType:"default",confirmType:"primary",btnPlacement:"center",btnRound:!0,btnSize:"medium"};exports.defaultProps=e;
|