@duxweb/dvha-pro 1.1.14 → 1.1.16
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/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/data/selectModal.cjs +1 -1
- package/dist/cjs/components/designEditor/components/grid.cjs +1 -1
- package/dist/cjs/components/designEditor/editor/setting.cjs +1 -1
- package/dist/cjs/components/editor/aiEditor.cjs +3 -1
- package/dist/cjs/components/flowEditor/components/setting.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/endNode.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/index.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/processNode.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/startNode.cjs +1 -1
- package/dist/cjs/components/form/drawerForm.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/pageTabForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/formEditor/base/base.cjs +1 -1
- package/dist/cjs/components/formEditor/base/setting.cjs +1 -1
- package/dist/cjs/components/formEditor/components/cascader.cjs +1 -1
- package/dist/cjs/components/formEditor/components/cascaderAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/checkbox.cjs +1 -1
- package/dist/cjs/components/formEditor/components/color.cjs +1 -1
- package/dist/cjs/components/formEditor/components/date.cjs +1 -1
- package/dist/cjs/components/formEditor/components/dynamicInput.cjs +1 -1
- package/dist/cjs/components/formEditor/components/dynamicTags.cjs +1 -1
- package/dist/cjs/components/formEditor/components/editor.cjs +1 -1
- package/dist/cjs/components/formEditor/components/fileUpload.cjs +1 -1
- package/dist/cjs/components/formEditor/components/imageUpload.cjs +1 -1
- package/dist/cjs/components/formEditor/components/input.cjs +1 -1
- package/dist/cjs/components/formEditor/components/inputNumber.cjs +1 -1
- package/dist/cjs/components/formEditor/components/mentionAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/radio.cjs +1 -1
- package/dist/cjs/components/formEditor/components/region.cjs +1 -1
- package/dist/cjs/components/formEditor/components/select.cjs +1 -1
- package/dist/cjs/components/formEditor/components/selectAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/sider.cjs +1 -1
- package/dist/cjs/components/formEditor/components/switch.cjs +1 -1
- package/dist/cjs/components/formEditor/components/time.cjs +1 -1
- package/dist/cjs/components/formEditor/components/transferAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/treeSelect.cjs +1 -1
- package/dist/cjs/components/formEditor/components/treeSelectAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/editor.cjs +1 -1
- package/dist/cjs/components/formEditor/renderer.cjs +1 -1
- package/dist/cjs/components/icon/icon.cjs +1 -1
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/layout/tools.cjs +1 -1
- package/dist/cjs/components/level/level.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/RightPanel.cjs +1 -1
- package/dist/cjs/components/posterEditor/posterEditor.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -1
- package/dist/cjs/components/upload/image.cjs +1 -1
- package/dist/cjs/components/upload/manage/item.cjs +1 -1
- package/dist/cjs/components/upload/manager.cjs +1 -1
- package/dist/cjs/config/uno.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/download.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/pages/layout/global.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/menuApp.cjs +1 -1
- package/dist/cjs/pages/menu/menuMain.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/menu/notice.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +58 -112
- package/dist/esm/components/card/card.js +0 -1
- package/dist/esm/components/chart/echart.js +3 -5
- package/dist/esm/components/crop/imageCrop.js +3 -5
- package/dist/esm/components/data/dynamicSelect.js +3 -5
- package/dist/esm/components/data/selectModal.js +3 -5
- package/dist/esm/components/designEditor/components/grid.js +3 -5
- package/dist/esm/components/designEditor/editor/setting.js +5 -7
- package/dist/esm/components/editor/aiEditor.js +142 -125
- package/dist/esm/components/flowEditor/components/setting.js +13 -15
- package/dist/esm/components/flowEditor/nodes/endNode.js +3 -5
- package/dist/esm/components/flowEditor/nodes/index.js +3 -5
- package/dist/esm/components/flowEditor/nodes/processNode.js +3 -5
- package/dist/esm/components/flowEditor/nodes/startNode.js +3 -5
- package/dist/esm/components/form/drawerForm.js +3 -5
- package/dist/esm/components/form/modalForm.js +3 -5
- package/dist/esm/components/form/pageForm.js +3 -5
- package/dist/esm/components/form/pageTabForm.js +3 -5
- package/dist/esm/components/form/settingForm.js +3 -6
- package/dist/esm/components/formEditor/base/base.js +5 -7
- package/dist/esm/components/formEditor/base/setting.js +3 -5
- package/dist/esm/components/formEditor/components/cascader.js +3 -5
- package/dist/esm/components/formEditor/components/cascaderAsync.js +3 -5
- package/dist/esm/components/formEditor/components/checkbox.js +3 -5
- package/dist/esm/components/formEditor/components/color.js +3 -5
- package/dist/esm/components/formEditor/components/date.js +3 -5
- package/dist/esm/components/formEditor/components/dynamicInput.js +3 -5
- package/dist/esm/components/formEditor/components/dynamicTags.js +10 -12
- package/dist/esm/components/formEditor/components/editor.js +3 -5
- package/dist/esm/components/formEditor/components/fileUpload.js +3 -5
- package/dist/esm/components/formEditor/components/imageUpload.js +3 -5
- package/dist/esm/components/formEditor/components/input.js +3 -5
- package/dist/esm/components/formEditor/components/inputNumber.js +3 -5
- package/dist/esm/components/formEditor/components/mentionAsync.js +14 -16
- package/dist/esm/components/formEditor/components/radio.js +14 -16
- package/dist/esm/components/formEditor/components/region.js +16 -18
- package/dist/esm/components/formEditor/components/select.js +3 -5
- package/dist/esm/components/formEditor/components/selectAsync.js +3 -5
- package/dist/esm/components/formEditor/components/sider.js +3 -5
- package/dist/esm/components/formEditor/components/switch.js +19 -21
- package/dist/esm/components/formEditor/components/time.js +3 -5
- package/dist/esm/components/formEditor/components/transferAsync.js +23 -25
- package/dist/esm/components/formEditor/components/treeSelect.js +3 -5
- package/dist/esm/components/formEditor/components/treeSelectAsync.js +3 -5
- package/dist/esm/components/formEditor/editor.js +3 -5
- package/dist/esm/components/formEditor/renderer.js +3 -5
- package/dist/esm/components/icon/icon.js +3 -5
- package/dist/esm/components/layout/list.js +3 -5
- package/dist/esm/components/layout/table.js +23 -25
- package/dist/esm/components/layout/tools.js +3 -5
- package/dist/esm/components/level/level.js +3 -5
- package/dist/esm/components/posterEditor/pages/RightPanel.js +3 -5
- package/dist/esm/components/posterEditor/posterEditor.js +3 -5
- package/dist/esm/components/table/table.js +8 -10
- package/dist/esm/components/upload/file.js +3 -5
- package/dist/esm/components/upload/image.js +33 -35
- package/dist/esm/components/upload/manage/item.js +3 -5
- package/dist/esm/components/upload/manager.js +3 -5
- package/dist/esm/config/uno.js +6 -8
- package/dist/esm/hooks/dialog.js +3 -5
- package/dist/esm/hooks/download.js +57 -50
- package/dist/esm/hooks/drawer.js +3 -5
- package/dist/esm/hooks/modal.js +3 -5
- package/dist/esm/hooks/table/image.js +3 -5
- package/dist/esm/hooks/table/media.js +3 -5
- package/dist/esm/pages/layout/global.js +3 -5
- package/dist/esm/pages/layout/page.js +7 -9
- package/dist/esm/pages/login.js +8 -10
- package/dist/esm/pages/menu/avatar.js +19 -21
- package/dist/esm/pages/menu/button.js +3 -5
- package/dist/esm/pages/menu/cmd.js +11 -13
- package/dist/esm/pages/menu/menuApp.js +15 -17
- package/dist/esm/pages/menu/menuMain.js +3 -5
- package/dist/esm/pages/menu/mobile.js +3 -5
- package/dist/esm/pages/menu/notice.js +3 -5
- package/dist/esm/pages/page404.js +1 -3
- package/dist/esm/pages/pageStatus.js +3 -5
- package/dist/esm/theme/uno.css.js +58 -112
- package/dist/types/components/table/table.d.ts +5 -5
- package/dist/types/components/widget/avatar.d.ts +2 -2
- package/dist/types/components/widget/image.d.ts +1 -1
- package/dist/types/config/uno.d.ts +2 -2
- package/dist/types/hooks/action.d.ts +1 -1
- package/package.json +7 -8
|
@@ -40,9 +40,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
40
40
|
import "highlight.js/lib/languages/typescript";
|
|
41
41
|
import "highlight.js/lib/languages/xml";
|
|
42
42
|
import "@ant-design/colors";
|
|
43
|
-
import "
|
|
44
|
-
import "@unocss/preset-typography";
|
|
45
|
-
import "unocss/preset-wind4";
|
|
43
|
+
import "unocss";
|
|
46
44
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
47
45
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
48
46
|
import "vee-validate";
|
|
@@ -69,7 +67,7 @@ import "fabric";
|
|
|
69
67
|
import "dayjs";
|
|
70
68
|
import "@tanstack/vue-query";
|
|
71
69
|
import "pinia";
|
|
72
|
-
const
|
|
70
|
+
const Te = /* @__PURE__ */ c({
|
|
73
71
|
name: "DuxFileManageItem",
|
|
74
72
|
props: {
|
|
75
73
|
name: String,
|
|
@@ -204,5 +202,5 @@ const qe = /* @__PURE__ */ c({
|
|
|
204
202
|
}
|
|
205
203
|
});
|
|
206
204
|
export {
|
|
207
|
-
|
|
205
|
+
Te as DuxFileManageItem
|
|
208
206
|
};
|
|
@@ -41,9 +41,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
41
41
|
import "highlight.js/lib/languages/typescript";
|
|
42
42
|
import "highlight.js/lib/languages/xml";
|
|
43
43
|
import "@ant-design/colors";
|
|
44
|
-
import "
|
|
45
|
-
import "@unocss/preset-typography";
|
|
46
|
-
import "unocss/preset-wind4";
|
|
44
|
+
import "unocss";
|
|
47
45
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
48
46
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
49
47
|
import "vee-validate";
|
|
@@ -67,7 +65,7 @@ import { DuxFileManageItem as T } from "./manage/item.js";
|
|
|
67
65
|
function M(t) {
|
|
68
66
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !q(t);
|
|
69
67
|
}
|
|
70
|
-
const
|
|
68
|
+
const ca = /* @__PURE__ */ z({
|
|
71
69
|
name: "DuxFileManage",
|
|
72
70
|
props: {
|
|
73
71
|
path: String,
|
|
@@ -423,5 +421,5 @@ const va = /* @__PURE__ */ z({
|
|
|
423
421
|
}
|
|
424
422
|
});
|
|
425
423
|
export {
|
|
426
|
-
|
|
424
|
+
ca as default
|
|
427
425
|
};
|
package/dist/esm/config/uno.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
import p from "@unocss/preset-typography";
|
|
3
|
-
import { presetWind4 as i } from "unocss/preset-wind4";
|
|
1
|
+
import { presetWind4 as o, presetIcons as p, presetTypography as i } from "unocss";
|
|
4
2
|
import "@duxweb/dvha-core";
|
|
5
3
|
import "colorizr";
|
|
6
4
|
import "lodash-es";
|
|
7
5
|
import "vue";
|
|
8
6
|
import { presetTheme as m } from "../theme/presetTheme.js";
|
|
9
|
-
function
|
|
7
|
+
function l(t) {
|
|
10
8
|
const r = {
|
|
11
9
|
presets: [
|
|
12
|
-
|
|
10
|
+
o({
|
|
13
11
|
preflights: {
|
|
14
12
|
reset: t,
|
|
15
13
|
theme: t
|
|
16
14
|
}
|
|
17
15
|
}),
|
|
18
|
-
|
|
16
|
+
p({
|
|
19
17
|
collections: {
|
|
20
18
|
tabler: () => import("@iconify-json/tabler/icons.json").then((e) => e.default)
|
|
21
19
|
}
|
|
22
20
|
}),
|
|
23
|
-
|
|
21
|
+
i(),
|
|
24
22
|
m()
|
|
25
23
|
]
|
|
26
24
|
};
|
|
@@ -31,5 +29,5 @@ function u(t) {
|
|
|
31
29
|
]), r;
|
|
32
30
|
}
|
|
33
31
|
export {
|
|
34
|
-
|
|
32
|
+
l as config
|
|
35
33
|
};
|
package/dist/esm/hooks/dialog.js
CHANGED
|
@@ -44,9 +44,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
44
44
|
import "highlight.js/lib/languages/typescript";
|
|
45
45
|
import "highlight.js/lib/languages/xml";
|
|
46
46
|
import "@ant-design/colors";
|
|
47
|
-
import "
|
|
48
|
-
import "@unocss/preset-typography";
|
|
49
|
-
import "unocss/preset-wind4";
|
|
47
|
+
import "unocss";
|
|
50
48
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
52
50
|
import "vee-validate";
|
|
@@ -61,7 +59,7 @@ import "@vue-flow/background";
|
|
|
61
59
|
import "@iconify-json/tabler/icons.json";
|
|
62
60
|
import "../components/posterEditor/elements/index.js";
|
|
63
61
|
import "fabric";
|
|
64
|
-
function
|
|
62
|
+
function hr() {
|
|
65
63
|
const t = p(m), o = (r) => t(r);
|
|
66
64
|
return {
|
|
67
65
|
confirm: (r) => o({
|
|
@@ -87,5 +85,5 @@ function wr() {
|
|
|
87
85
|
};
|
|
88
86
|
}
|
|
89
87
|
export {
|
|
90
|
-
|
|
88
|
+
hr as useDialog
|
|
91
89
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { useI18n as B, useClient as M } from "@duxweb/dvha-core";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import C from "dayjs";
|
|
3
|
+
import x from "mime";
|
|
4
4
|
import { useMessage as k } from "naive-ui";
|
|
5
|
-
import { ref as
|
|
5
|
+
import { ref as w } from "vue";
|
|
6
6
|
function I() {
|
|
7
|
-
const { t:
|
|
7
|
+
const { t: y } = B(), v = M(), f = w(!1), r = w({
|
|
8
8
|
loaded: 0,
|
|
9
9
|
total: 0,
|
|
10
10
|
percent: 0,
|
|
11
11
|
speed: 0,
|
|
12
12
|
speedText: "0 B/s",
|
|
13
13
|
remainingTime: 0
|
|
14
|
-
}),
|
|
14
|
+
}), T = k(), g = (o) => {
|
|
15
15
|
if (o === 0)
|
|
16
16
|
return "0 B/s";
|
|
17
|
-
const n = ["B/s", "KB/s", "MB/s", "GB/s"],
|
|
18
|
-
return `${(o / 1024 **
|
|
19
|
-
},
|
|
20
|
-
const
|
|
21
|
-
|
|
17
|
+
const n = ["B/s", "KB/s", "MB/s", "GB/s"], t = Math.floor(Math.log(o) / Math.log(1024));
|
|
18
|
+
return `${(o / 1024 ** t).toFixed(1)} ${n[t]}`;
|
|
19
|
+
}, p = (o, n) => {
|
|
20
|
+
const t = window.URL || window.webkitURL, s = t.createObjectURL(o), a = document.createElement("a");
|
|
21
|
+
a.href = s, a.download = n || "", document.body.appendChild(a), a.click(), document.body.removeChild(a), t.revokeObjectURL(s);
|
|
22
22
|
};
|
|
23
23
|
return {
|
|
24
|
-
file: (o, n,
|
|
25
|
-
|
|
24
|
+
file: (o, n, t, s, a) => {
|
|
25
|
+
f.value = !0, r.value = {
|
|
26
26
|
loaded: 0,
|
|
27
27
|
total: 0,
|
|
28
28
|
percent: 0,
|
|
@@ -30,66 +30,73 @@ function I() {
|
|
|
30
30
|
speedText: "0 B/s",
|
|
31
31
|
remainingTime: 0
|
|
32
32
|
};
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const b = Date.now();
|
|
34
|
+
v.request({
|
|
35
35
|
path: o,
|
|
36
36
|
method: "GET",
|
|
37
37
|
query: n,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
meta: {
|
|
39
|
+
responseType: "blob"
|
|
40
|
+
},
|
|
41
|
+
onDownloadProgress: (e) => {
|
|
42
|
+
const l = (Date.now() - b) / 1e3, d = l > 0 ? e.loaded / l : 0, h = (e.total || 0) - e.loaded, c = d > 0 ? h / d : 0, m = {
|
|
43
|
+
loaded: e.loaded,
|
|
44
|
+
total: e.total,
|
|
45
|
+
percent: e.percent || 0,
|
|
46
|
+
speed: Math.round(d),
|
|
47
|
+
speedText: g(d),
|
|
48
|
+
remainingTime: Math.round(c)
|
|
46
49
|
};
|
|
47
|
-
|
|
50
|
+
r.value = m, a?.(m);
|
|
48
51
|
}
|
|
49
|
-
}).then((
|
|
50
|
-
const i = e ||
|
|
51
|
-
if (
|
|
52
|
-
const c =
|
|
53
|
-
|
|
52
|
+
}).then((e) => {
|
|
53
|
+
const i = e.headers || e.raw?.headers || {}, u = t || i["content-type"] || i["Content-Type"], l = i["content-disposition"] || i["Content-Disposition"];
|
|
54
|
+
if (!s && (s = C().format("YYYY-MM-DD-HH:mm:ss"), u)) {
|
|
55
|
+
const c = u.split(";")[0]?.trim(), m = c ? x.getExtension(c) : void 0;
|
|
56
|
+
m && (s = `${s}.${m}`);
|
|
54
57
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
if (l) {
|
|
59
|
+
const c = /filename=["']?([^"']+)/.exec(l);
|
|
60
|
+
c && c?.length > 1 && (s = decodeURIComponent(c[1]));
|
|
61
|
+
}
|
|
62
|
+
const d = e.data instanceof Blob ? e.data : new Blob([e.data], { type: u || "application/octet-stream" });
|
|
63
|
+
p(d, s);
|
|
64
|
+
const h = {
|
|
65
|
+
loaded: r.value.total || r.value.loaded,
|
|
66
|
+
total: r.value.total || r.value.loaded,
|
|
60
67
|
percent: 100,
|
|
61
68
|
speed: 0,
|
|
62
69
|
speedText: g(0),
|
|
63
70
|
remainingTime: 0
|
|
64
71
|
};
|
|
65
|
-
|
|
66
|
-
}).catch((
|
|
67
|
-
|
|
72
|
+
r.value = h, a?.(h);
|
|
73
|
+
}).catch((e) => {
|
|
74
|
+
T.error(e.error || e.message || y("hooks.download.failed"));
|
|
68
75
|
}).finally(() => {
|
|
69
|
-
|
|
76
|
+
f.value = !1;
|
|
70
77
|
});
|
|
71
78
|
},
|
|
72
79
|
url: (o, n) => {
|
|
73
|
-
const
|
|
74
|
-
|
|
80
|
+
const t = document.createElement("a");
|
|
81
|
+
t.href = o, t.download = n || "", document.body.appendChild(t), t.click(), document.body.removeChild(t);
|
|
75
82
|
},
|
|
76
|
-
blob:
|
|
83
|
+
blob: p,
|
|
77
84
|
base64: (o, n) => {
|
|
78
|
-
const
|
|
79
|
-
for (let
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
85
|
+
const t = atob(o.split(",")[1]), s = Array.from({ length: t.length });
|
|
86
|
+
for (let e = 0; e < t.length; e++)
|
|
87
|
+
s[e] = t.charCodeAt(e);
|
|
88
|
+
const a = new Uint8Array(s), b = new Blob([a], { type: "application/octet-stream" });
|
|
89
|
+
p(b, n);
|
|
83
90
|
},
|
|
84
|
-
loading:
|
|
85
|
-
progress:
|
|
91
|
+
loading: f,
|
|
92
|
+
progress: r,
|
|
86
93
|
image: (o) => {
|
|
87
94
|
fetch(o).then((n) => {
|
|
88
|
-
n.blob().then((
|
|
89
|
-
|
|
95
|
+
n.blob().then((t) => {
|
|
96
|
+
p(t);
|
|
90
97
|
});
|
|
91
98
|
}).catch((n) => {
|
|
92
|
-
|
|
99
|
+
T.error(n.error || y("hooks.download.failed"));
|
|
93
100
|
});
|
|
94
101
|
}
|
|
95
102
|
};
|
package/dist/esm/hooks/drawer.js
CHANGED
|
@@ -44,9 +44,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
44
44
|
import "highlight.js/lib/languages/typescript";
|
|
45
45
|
import "highlight.js/lib/languages/xml";
|
|
46
46
|
import "@ant-design/colors";
|
|
47
|
-
import "
|
|
48
|
-
import "@unocss/preset-typography";
|
|
49
|
-
import "unocss/preset-wind4";
|
|
47
|
+
import "unocss";
|
|
50
48
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
52
50
|
import "vee-validate";
|
|
@@ -61,12 +59,12 @@ import "@vue-flow/background";
|
|
|
61
59
|
import "@iconify-json/tabler/icons.json";
|
|
62
60
|
import "../components/posterEditor/elements/index.js";
|
|
63
61
|
import "fabric";
|
|
64
|
-
function
|
|
62
|
+
function wr() {
|
|
65
63
|
const r = t(m);
|
|
66
64
|
return {
|
|
67
65
|
show: (o) => r(o)
|
|
68
66
|
};
|
|
69
67
|
}
|
|
70
68
|
export {
|
|
71
|
-
|
|
69
|
+
wr as useDrawer
|
|
72
70
|
};
|
package/dist/esm/hooks/modal.js
CHANGED
|
@@ -45,9 +45,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
45
45
|
import "highlight.js/lib/languages/typescript";
|
|
46
46
|
import "highlight.js/lib/languages/xml";
|
|
47
47
|
import "@ant-design/colors";
|
|
48
|
-
import "
|
|
49
|
-
import "@unocss/preset-typography";
|
|
50
|
-
import "unocss/preset-wind4";
|
|
48
|
+
import "unocss";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
52
50
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
53
51
|
import "vee-validate";
|
|
@@ -61,12 +59,12 @@ import "@vue-flow/background";
|
|
|
61
59
|
import "@iconify-json/tabler/icons.json";
|
|
62
60
|
import "../components/posterEditor/elements/index.js";
|
|
63
61
|
import "fabric";
|
|
64
|
-
function
|
|
62
|
+
function fo() {
|
|
65
63
|
const o = t(m);
|
|
66
64
|
return {
|
|
67
65
|
show: (r) => o(r)
|
|
68
66
|
};
|
|
69
67
|
}
|
|
70
68
|
export {
|
|
71
|
-
|
|
69
|
+
fo as useModal
|
|
72
70
|
};
|
|
@@ -45,9 +45,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
45
45
|
import "highlight.js/lib/languages/typescript";
|
|
46
46
|
import "highlight.js/lib/languages/xml";
|
|
47
47
|
import "@ant-design/colors";
|
|
48
|
-
import "
|
|
49
|
-
import "@unocss/preset-typography";
|
|
50
|
-
import "unocss/preset-wind4";
|
|
48
|
+
import "unocss";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
52
50
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
53
51
|
import "vee-validate";
|
|
@@ -61,7 +59,7 @@ import "@vue-flow/background";
|
|
|
61
59
|
import "@iconify-json/tabler/icons.json";
|
|
62
60
|
import "../../components/posterEditor/elements/index.js";
|
|
63
61
|
import "fabric";
|
|
64
|
-
function
|
|
62
|
+
function vt() {
|
|
65
63
|
return {
|
|
66
64
|
render: (t) => (p, d) => {
|
|
67
65
|
let i = h(p, t.key || "") || [];
|
|
@@ -90,5 +88,5 @@ function kt() {
|
|
|
90
88
|
};
|
|
91
89
|
}
|
|
92
90
|
export {
|
|
93
|
-
|
|
91
|
+
vt as useTableColumnImage
|
|
94
92
|
};
|
|
@@ -45,9 +45,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
45
45
|
import "highlight.js/lib/languages/typescript";
|
|
46
46
|
import "highlight.js/lib/languages/xml";
|
|
47
47
|
import "@ant-design/colors";
|
|
48
|
-
import "
|
|
49
|
-
import "@unocss/preset-typography";
|
|
50
|
-
import "unocss/preset-wind4";
|
|
48
|
+
import "unocss";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
52
50
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
53
51
|
import "vee-validate";
|
|
@@ -61,7 +59,7 @@ import "@vue-flow/background";
|
|
|
61
59
|
import "@iconify-json/tabler/icons.json";
|
|
62
60
|
import "../../components/posterEditor/elements/index.js";
|
|
63
61
|
import "fabric";
|
|
64
|
-
function
|
|
62
|
+
function yt() {
|
|
65
63
|
return {
|
|
66
64
|
render: (t) => (i, d) => {
|
|
67
65
|
const o = typeof t.title == "function" ? t.title(i) : m(i, t.title || ""), r = typeof t.desc == "function" ? t.desc(i) : m(i, t.desc || ""), p = typeof t.image == "function" ? t.image(i) : m(i, t.image || "");
|
|
@@ -77,5 +75,5 @@ function Ht() {
|
|
|
77
75
|
};
|
|
78
76
|
}
|
|
79
77
|
export {
|
|
80
|
-
|
|
78
|
+
yt as useTableColumnMedia
|
|
81
79
|
};
|
|
@@ -19,14 +19,12 @@ import F from "highlight.js/lib/languages/typescript";
|
|
|
19
19
|
import R from "highlight.js/lib/languages/xml";
|
|
20
20
|
import { useLoadingBar as V, zhCN as Z, enUS as _, dateZhCN as A, dateEnUS as H, NConfigProvider as J, darkTheme as K, lightTheme as Q, NModalProvider as W, NDialogProvider as X, NNotificationProvider as Y, NMessageProvider as $ } from "naive-ui";
|
|
21
21
|
import { generateRainbowFromColor as ee, getTheme as re } from "../../config/echart.js";
|
|
22
|
-
import "
|
|
23
|
-
import "@unocss/preset-typography";
|
|
24
|
-
import "unocss/preset-wind4";
|
|
22
|
+
import "unocss";
|
|
25
23
|
import { themeOverrides as oe } from "../../theme/naiveTheme.js";
|
|
26
24
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
27
25
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
28
26
|
import "vee-validate";
|
|
29
|
-
const
|
|
27
|
+
const Me = /* @__PURE__ */ C({
|
|
30
28
|
name: "DuxGlobalLayout",
|
|
31
29
|
setup(te, {
|
|
32
30
|
slots: n
|
|
@@ -78,5 +76,5 @@ const ze = /* @__PURE__ */ C({
|
|
|
78
76
|
}
|
|
79
77
|
});
|
|
80
78
|
export {
|
|
81
|
-
|
|
79
|
+
Me as DuxGlobalLayout
|
|
82
80
|
};
|
|
@@ -39,9 +39,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
39
39
|
import "highlight.js/lib/languages/typescript";
|
|
40
40
|
import "highlight.js/lib/languages/xml";
|
|
41
41
|
import "@ant-design/colors";
|
|
42
|
-
import "
|
|
43
|
-
import "@unocss/preset-typography";
|
|
44
|
-
import "unocss/preset-wind4";
|
|
42
|
+
import "unocss";
|
|
45
43
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
46
44
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
47
45
|
import "vee-validate";
|
|
@@ -62,7 +60,7 @@ import "fabric";
|
|
|
62
60
|
import "dayjs";
|
|
63
61
|
import "@tanstack/vue-query";
|
|
64
62
|
import { useUI as b } from "../../hooks/ui.js";
|
|
65
|
-
const
|
|
63
|
+
const jt = /* @__PURE__ */ l({
|
|
66
64
|
name: "DuxLayoutPage",
|
|
67
65
|
props: {},
|
|
68
66
|
setup() {
|
|
@@ -70,11 +68,11 @@ const It = /* @__PURE__ */ l({
|
|
|
70
68
|
menuMobileCollapsed: i,
|
|
71
69
|
setMenuMobileCollapsed: r
|
|
72
70
|
} = b(), {
|
|
73
|
-
config:
|
|
71
|
+
config: e
|
|
74
72
|
} = u(), {
|
|
75
73
|
mutate: o
|
|
76
74
|
} = a(), {
|
|
77
|
-
pause:
|
|
75
|
+
pause: m,
|
|
78
76
|
resume: p
|
|
79
77
|
} = f(() => {
|
|
80
78
|
o();
|
|
@@ -82,7 +80,7 @@ const It = /* @__PURE__ */ l({
|
|
|
82
80
|
return n(() => {
|
|
83
81
|
o(), p();
|
|
84
82
|
}), s(() => {
|
|
85
|
-
|
|
83
|
+
m();
|
|
86
84
|
}), () => t("div", {
|
|
87
85
|
class: "flex-1 min-w-0 flex flex-col"
|
|
88
86
|
}, [t("div", {
|
|
@@ -98,7 +96,7 @@ const It = /* @__PURE__ */ l({
|
|
|
98
96
|
}, null)]
|
|
99
97
|
}), t("div", {
|
|
100
98
|
class: "w-full absolute inset-0 flex items-center justify-center text-base pointer-events-none"
|
|
101
|
-
}, [
|
|
99
|
+
}, [e.title]), t("div", null, [t(x, {
|
|
102
100
|
collapsed: !0
|
|
103
101
|
}, null)])]), t("div", {
|
|
104
102
|
class: "flex-1 min-w-0"
|
|
@@ -108,5 +106,5 @@ const It = /* @__PURE__ */ l({
|
|
|
108
106
|
}
|
|
109
107
|
});
|
|
110
108
|
export {
|
|
111
|
-
|
|
109
|
+
jt as DuxLayoutPage
|
|
112
110
|
};
|
package/dist/esm/pages/login.js
CHANGED
|
@@ -45,9 +45,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
45
45
|
import "highlight.js/lib/languages/typescript";
|
|
46
46
|
import "highlight.js/lib/languages/xml";
|
|
47
47
|
import "@ant-design/colors";
|
|
48
|
-
import "
|
|
49
|
-
import "@unocss/preset-typography";
|
|
50
|
-
import "unocss/preset-wind4";
|
|
48
|
+
import "unocss";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
52
50
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
53
51
|
import "vee-validate";
|
|
@@ -64,14 +62,14 @@ import "fabric";
|
|
|
64
62
|
function V(l) {
|
|
65
63
|
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !x(l);
|
|
66
64
|
}
|
|
67
|
-
const
|
|
65
|
+
const Ue = /* @__PURE__ */ h({
|
|
68
66
|
name: "DuxLoginPage",
|
|
69
67
|
setup(l, {
|
|
70
68
|
slots: u
|
|
71
69
|
}) {
|
|
72
70
|
const r = b(), o = y(), {
|
|
73
71
|
t: i
|
|
74
|
-
} = k(), c = v(),
|
|
72
|
+
} = k(), c = v(), m = N(), t = w({
|
|
75
73
|
username: "",
|
|
76
74
|
password: ""
|
|
77
75
|
}), {
|
|
@@ -79,10 +77,10 @@ const Ee = /* @__PURE__ */ h({
|
|
|
79
77
|
isLoading: g
|
|
80
78
|
} = j({
|
|
81
79
|
onSuccess: () => {
|
|
82
|
-
|
|
80
|
+
m.success(i("pages.login.success"));
|
|
83
81
|
},
|
|
84
82
|
onError: (s) => {
|
|
85
|
-
|
|
83
|
+
m.error(s?.message || i("pages.login.error"));
|
|
86
84
|
}
|
|
87
85
|
}), f = () => {
|
|
88
86
|
d(t);
|
|
@@ -134,7 +132,7 @@ const Ee = /* @__PURE__ */ h({
|
|
|
134
132
|
}, {
|
|
135
133
|
default: () => [e(n, {
|
|
136
134
|
value: t.username,
|
|
137
|
-
onUpdateValue: (
|
|
135
|
+
onUpdateValue: (a) => t.username = a,
|
|
138
136
|
type: "text",
|
|
139
137
|
placeholder: i("pages.login.placeholder.username"),
|
|
140
138
|
size: "large"
|
|
@@ -150,7 +148,7 @@ const Ee = /* @__PURE__ */ h({
|
|
|
150
148
|
}, {
|
|
151
149
|
default: () => [e(n, {
|
|
152
150
|
value: t.password,
|
|
153
|
-
onUpdateValue: (
|
|
151
|
+
onUpdateValue: (a) => t.password = a,
|
|
154
152
|
type: "password",
|
|
155
153
|
showPasswordOn: "mousedown",
|
|
156
154
|
placeholder: i("pages.login.placeholder.password"),
|
|
@@ -181,5 +179,5 @@ const Ee = /* @__PURE__ */ h({
|
|
|
181
179
|
}
|
|
182
180
|
});
|
|
183
181
|
export {
|
|
184
|
-
|
|
182
|
+
Ue as DuxLoginPage
|
|
185
183
|
};
|
|
@@ -45,9 +45,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
45
45
|
import "highlight.js/lib/languages/typescript";
|
|
46
46
|
import "highlight.js/lib/languages/xml";
|
|
47
47
|
import "@ant-design/colors";
|
|
48
|
-
import "
|
|
49
|
-
import "@unocss/preset-typography";
|
|
50
|
-
import "unocss/preset-wind4";
|
|
48
|
+
import "unocss";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
52
50
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
53
51
|
import "vee-validate";
|
|
@@ -62,7 +60,7 @@ import "@vue-flow/background";
|
|
|
62
60
|
import "@iconify-json/tabler/icons.json";
|
|
63
61
|
import "../../components/posterEditor/elements/index.js";
|
|
64
62
|
import "fabric";
|
|
65
|
-
const
|
|
63
|
+
const He = /* @__PURE__ */ L({
|
|
66
64
|
name: "DuxMenuAvatar",
|
|
67
65
|
props: {
|
|
68
66
|
collapsed: {
|
|
@@ -93,20 +91,20 @@ const Ke = /* @__PURE__ */ L({
|
|
|
93
91
|
colorMapping: c,
|
|
94
92
|
setColor: d,
|
|
95
93
|
setMode: w
|
|
96
|
-
} = R(),
|
|
94
|
+
} = R(), r = (t, l) => e("div", {
|
|
97
95
|
class: "flex gap-2 items-center w-30"
|
|
98
96
|
}, [e("div", {
|
|
99
97
|
class: "flex-1 min-w-0"
|
|
100
|
-
}, [t]), e("div", null, [
|
|
98
|
+
}, [t]), e("div", null, [l && e("div", {
|
|
101
99
|
class: "i-tabler:check"
|
|
102
100
|
}, null)])]), i = (t) => e("div", {
|
|
103
101
|
class: `${t} size-4`
|
|
104
102
|
}, null), M = b(() => {
|
|
105
|
-
const t = y.userMenus?.map((
|
|
106
|
-
label: o(
|
|
107
|
-
key:
|
|
108
|
-
icon: () => i(
|
|
109
|
-
path:
|
|
103
|
+
const t = y.userMenus?.map((l) => ({
|
|
104
|
+
label: o(l.label || "", {}, l.label),
|
|
105
|
+
key: l.key,
|
|
106
|
+
icon: () => i(l.icon),
|
|
107
|
+
path: l.path
|
|
110
108
|
}));
|
|
111
109
|
return t?.length > 0 ? [...t, {
|
|
112
110
|
type: "divider"
|
|
@@ -134,7 +132,7 @@ const Ke = /* @__PURE__ */ L({
|
|
|
134
132
|
key: "locale",
|
|
135
133
|
icon: () => i("i-tabler:language"),
|
|
136
134
|
children: [...(m.getLocales() || []).map((t) => ({
|
|
137
|
-
label: () =>
|
|
135
|
+
label: () => r(o(`locale.${t}`), m.getLocale() === t),
|
|
138
136
|
key: `locale.${t}`
|
|
139
137
|
}))]
|
|
140
138
|
}, {
|
|
@@ -152,7 +150,7 @@ const Ke = /* @__PURE__ */ L({
|
|
|
152
150
|
}, null), e("div", null, [o("components.menu.primaryColor")])]),
|
|
153
151
|
key: "color.primary",
|
|
154
152
|
children: k.value?.map((t) => ({
|
|
155
|
-
label: () =>
|
|
153
|
+
label: () => r(e("div", {
|
|
156
154
|
class: "flex gap-2 items-center"
|
|
157
155
|
}, [e("div", {
|
|
158
156
|
class: "size-2 rounded-full",
|
|
@@ -173,7 +171,7 @@ const Ke = /* @__PURE__ */ L({
|
|
|
173
171
|
}, null), e("div", null, [o("components.menu.neutralColor")])]),
|
|
174
172
|
key: "color.neutral",
|
|
175
173
|
children: C.value?.map((t) => ({
|
|
176
|
-
label: () =>
|
|
174
|
+
label: () => r(e("div", {
|
|
177
175
|
class: "flex gap-2 items-center"
|
|
178
176
|
}, [e("div", {
|
|
179
177
|
class: "size-2 rounded-full",
|
|
@@ -189,13 +187,13 @@ const Ke = /* @__PURE__ */ L({
|
|
|
189
187
|
key: "theme",
|
|
190
188
|
icon: () => i("i-tabler:brightness-half"),
|
|
191
189
|
children: [{
|
|
192
|
-
label: () =>
|
|
190
|
+
label: () => r(o("components.menu.followSystem"), p.value === "auto"),
|
|
193
191
|
key: "theme.auto"
|
|
194
192
|
}, {
|
|
195
|
-
label: () =>
|
|
193
|
+
label: () => r(o("components.menu.lightMode"), p.value === "light"),
|
|
196
194
|
key: "theme.light"
|
|
197
195
|
}, {
|
|
198
|
-
label: () =>
|
|
196
|
+
label: () => r(o("components.menu.darkMode"), p.value === "dark"),
|
|
199
197
|
key: "theme.dark"
|
|
200
198
|
}]
|
|
201
199
|
}, {
|
|
@@ -205,7 +203,7 @@ const Ke = /* @__PURE__ */ L({
|
|
|
205
203
|
key: "logout",
|
|
206
204
|
icon: () => i("i-tabler:logout")
|
|
207
205
|
}]);
|
|
208
|
-
function $(t,
|
|
206
|
+
function $(t, l) {
|
|
209
207
|
const u = t.lastIndexOf("."), [D, n] = u === -1 ? [t, ""] : [t.substring(0, u), t.substring(u + 1)];
|
|
210
208
|
switch (D) {
|
|
211
209
|
case "locale":
|
|
@@ -224,9 +222,9 @@ const Ke = /* @__PURE__ */ L({
|
|
|
224
222
|
x();
|
|
225
223
|
break;
|
|
226
224
|
default:
|
|
227
|
-
if (!
|
|
225
|
+
if (!l?.path)
|
|
228
226
|
return;
|
|
229
|
-
v.push(h(
|
|
227
|
+
v.push(h(l.path));
|
|
230
228
|
}
|
|
231
229
|
}
|
|
232
230
|
return () => e(B, {
|
|
@@ -261,5 +259,5 @@ const Ke = /* @__PURE__ */ L({
|
|
|
261
259
|
}
|
|
262
260
|
});
|
|
263
261
|
export {
|
|
264
|
-
|
|
262
|
+
He as default
|
|
265
263
|
};
|