@duxweb/dvha-pro 0.0.5
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/app.cjs +1 -0
- package/dist/cjs/component.cjs +1 -0
- package/dist/cjs/components/card/card.cjs +1 -0
- package/dist/cjs/components/carousel/carousel.cjs +1 -0
- package/dist/cjs/components/dashboard/hello.cjs +1 -0
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -0
- package/dist/cjs/components/dashboard/quick.cjs +1 -0
- package/dist/cjs/components/dialog/dialog.cjs +1 -0
- package/dist/cjs/components/draw/drawApps.cjs +1 -0
- package/dist/cjs/components/draw/drawAuth.cjs +1 -0
- package/dist/cjs/components/draw/drawEmpty.cjs +1 -0
- package/dist/cjs/components/draw/drawEmptyForm.cjs +1 -0
- package/dist/cjs/components/draw/drawError.cjs +1 -0
- package/dist/cjs/components/drawer/drawer.cjs +1 -0
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -0
- package/dist/cjs/components/form/formItem.cjs +1 -0
- package/dist/cjs/components/form/formLayout.cjs +1 -0
- package/dist/cjs/components/form/modalForm.cjs +1 -0
- package/dist/cjs/components/form/pageForm.cjs +1 -0
- package/dist/cjs/components/form/settingForm.cjs +1 -0
- package/dist/cjs/components/layout/filter.cjs +1 -0
- package/dist/cjs/components/layout/list.cjs +1 -0
- package/dist/cjs/components/layout/table.cjs +1 -0
- package/dist/cjs/components/layout/tools.cjs +1 -0
- package/dist/cjs/components/list/card.cjs +1 -0
- package/dist/cjs/components/list/list.cjs +1 -0
- package/dist/cjs/components/media/media.cjs +1 -0
- package/dist/cjs/components/modal/modal.cjs +1 -0
- package/dist/cjs/components/modal/modalPage.cjs +1 -0
- package/dist/cjs/components/modal/modalTab.cjs +1 -0
- package/dist/cjs/components/panel/alert.cjs +1 -0
- package/dist/cjs/components/panel/setting.cjs +1 -0
- package/dist/cjs/components/status/blockEmpty.cjs +1 -0
- package/dist/cjs/components/table/tablePage.cjs +1 -0
- package/dist/cjs/components/widget/connect.cjs +1 -0
- package/dist/cjs/config/uno.cjs +1 -0
- package/dist/cjs/config/validate.cjs +1 -0
- package/dist/cjs/dvha-pro.css +1 -0
- package/dist/cjs/hooks/action.cjs +1 -0
- package/dist/cjs/hooks/dialog.cjs +1 -0
- package/dist/cjs/hooks/drawer.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -0
- package/dist/cjs/hooks/table/column.cjs +1 -0
- package/dist/cjs/hooks/table/copy.cjs +1 -0
- package/dist/cjs/hooks/table/hidden.cjs +1 -0
- package/dist/cjs/hooks/table/image.cjs +1 -0
- package/dist/cjs/hooks/table/input.cjs +1 -0
- package/dist/cjs/hooks/table/map.cjs +1 -0
- package/dist/cjs/hooks/table/media.cjs +1 -0
- package/dist/cjs/hooks/table/status.cjs +1 -0
- package/dist/cjs/hooks/table/switch.cjs +1 -0
- package/dist/cjs/hooks/table.cjs +1 -0
- package/dist/cjs/hooks/ui.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/langs/en-US.json.cjs +1 -0
- package/dist/cjs/langs/zh-CN.json.cjs +1 -0
- package/dist/cjs/main.cjs +1 -0
- package/dist/cjs/node_modules/@iconify-json/tabler/icons.json.cjs +1 -0
- package/dist/cjs/node_modules/@overlastic/core/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/@overlastic/vue/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/@vee-validate/i18n/dist/locale/en.json.cjs +1 -0
- package/dist/cjs/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.cjs +1 -0
- package/dist/cjs/node_modules/@vueuse/integrations/useFocusTrap.cjs +1 -0
- package/dist/cjs/node_modules/@vueuse/shared/index.cjs +1 -0
- package/dist/cjs/node_modules/colorizr/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/focus-trap/dist/focus-trap.esm.cjs +5 -0
- package/dist/cjs/node_modules/lower-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/no-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/pascal-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/tabbable/dist/index.esm.cjs +4 -0
- package/dist/cjs/node_modules/tslib/tslib.es6.cjs +1 -0
- package/dist/cjs/pages/authLayout.cjs +1 -0
- package/dist/cjs/pages/layout/global.cjs +1 -0
- package/dist/cjs/pages/layout/page.cjs +1 -0
- package/dist/cjs/pages/layout/tab.cjs +1 -0
- package/dist/cjs/pages/layout.cjs +1 -0
- package/dist/cjs/pages/loading.cjs +1 -0
- package/dist/cjs/pages/login.cjs +1 -0
- package/dist/cjs/pages/menu/avatar.cjs +1 -0
- package/dist/cjs/pages/menu/button.cjs +1 -0
- package/dist/cjs/pages/menu/cmd.cjs +1 -0
- package/dist/cjs/pages/menu/main.cjs +1 -0
- package/dist/cjs/pages/menu/mobile.cjs +1 -0
- package/dist/cjs/pages/page.cjs +1 -0
- package/dist/cjs/pages/page403.cjs +1 -0
- package/dist/cjs/pages/page404.cjs +1 -0
- package/dist/cjs/pages/page500.cjs +1 -0
- package/dist/cjs/pages/pageEmpty.cjs +1 -0
- package/dist/cjs/pages/pageLoading.cjs +1 -0
- package/dist/cjs/pages/pageStatus.cjs +1 -0
- package/dist/cjs/static/images/placeholder.png.cjs +1 -0
- package/dist/cjs/stores/ui.cjs +1 -0
- package/dist/cjs/theme/naiveTheme.cjs +1 -0
- package/dist/cjs/theme/presetTheme.cjs +1 -0
- package/dist/cjs/theme/uno.css.cjs +1285 -0
- package/dist/esm/app.js +20 -0
- package/dist/esm/component.js +59 -0
- package/dist/esm/components/card/card.js +114 -0
- package/dist/esm/components/carousel/carousel.js +37 -0
- package/dist/esm/components/dashboard/hello.js +40 -0
- package/dist/esm/components/dashboard/helloBig.js +344 -0
- package/dist/esm/components/dashboard/quick.js +59 -0
- package/dist/esm/components/dialog/dialog.js +118 -0
- package/dist/esm/components/draw/drawApps.js +145 -0
- package/dist/esm/components/draw/drawAuth.js +50 -0
- package/dist/esm/components/draw/drawEmpty.js +92 -0
- package/dist/esm/components/draw/drawEmptyForm.js +128 -0
- package/dist/esm/components/draw/drawError.js +242 -0
- package/dist/esm/components/drawer/drawer.js +73 -0
- package/dist/esm/components/drawer/drawerPage.js +28 -0
- package/dist/esm/components/form/formItem.js +77 -0
- package/dist/esm/components/form/formLayout.js +38 -0
- package/dist/esm/components/form/modalForm.js +108 -0
- package/dist/esm/components/form/pageForm.js +94 -0
- package/dist/esm/components/form/settingForm.js +104 -0
- package/dist/esm/components/layout/filter.js +27 -0
- package/dist/esm/components/layout/list.js +333 -0
- package/dist/esm/components/layout/table.js +292 -0
- package/dist/esm/components/layout/tools.js +78 -0
- package/dist/esm/components/list/card.js +78 -0
- package/dist/esm/components/list/list.js +38 -0
- package/dist/esm/components/media/media.js +77 -0
- package/dist/esm/components/modal/modal.js +116 -0
- package/dist/esm/components/modal/modalPage.js +56 -0
- package/dist/esm/components/modal/modalTab.js +70 -0
- package/dist/esm/components/panel/alert.js +57 -0
- package/dist/esm/components/panel/setting.js +49 -0
- package/dist/esm/components/status/blockEmpty.js +78 -0
- package/dist/esm/components/table/tablePage.js +41 -0
- package/dist/esm/components/widget/connect.js +119 -0
- package/dist/esm/config/uno.js +32 -0
- package/dist/esm/config/validate.js +15 -0
- package/dist/esm/dvha-pro.css +1 -0
- package/dist/esm/hooks/action.js +213 -0
- package/dist/esm/hooks/dialog.js +32 -0
- package/dist/esm/hooks/drawer.js +25 -0
- package/dist/esm/hooks/modal.js +14 -0
- package/dist/esm/hooks/table/column.js +31 -0
- package/dist/esm/hooks/table/copy.js +27 -0
- package/dist/esm/hooks/table/hidden.js +48 -0
- package/dist/esm/hooks/table/image.js +24 -0
- package/dist/esm/hooks/table/input.js +81 -0
- package/dist/esm/hooks/table/map.js +21 -0
- package/dist/esm/hooks/table/media.js +34 -0
- package/dist/esm/hooks/table/status.js +32 -0
- package/dist/esm/hooks/table/switch.js +33 -0
- package/dist/esm/hooks/table.js +74 -0
- package/dist/esm/hooks/ui.js +16 -0
- package/dist/esm/index.js +139 -0
- package/dist/esm/langs/en-US.json.js +11 -0
- package/dist/esm/langs/zh-CN.json.js +11 -0
- package/dist/esm/main.js +18 -0
- package/dist/esm/node_modules/@iconify-json/tabler/icons.json.js +17 -0
- package/dist/esm/node_modules/@overlastic/core/dist/index.js +76 -0
- package/dist/esm/node_modules/@overlastic/vue/dist/index.js +122 -0
- package/dist/esm/node_modules/@vee-validate/i18n/dist/locale/en.json.js +9 -0
- package/dist/esm/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.js +9 -0
- package/dist/esm/node_modules/@vueuse/integrations/useFocusTrap.js +43 -0
- package/dist/esm/node_modules/@vueuse/shared/index.js +6 -0
- package/dist/esm/node_modules/colorizr/dist/index.js +318 -0
- package/dist/esm/node_modules/focus-trap/dist/focus-trap.esm.js +473 -0
- package/dist/esm/node_modules/lower-case/dist.es2015/index.js +6 -0
- package/dist/esm/node_modules/no-case/dist.es2015/index.js +18 -0
- package/dist/esm/node_modules/pascal-case/dist.es2015/index.js +13 -0
- package/dist/esm/node_modules/tabbable/dist/index.esm.js +202 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js +12 -0
- package/dist/esm/pages/authLayout.js +38 -0
- package/dist/esm/pages/layout/global.js +51 -0
- package/dist/esm/pages/layout/page.js +54 -0
- package/dist/esm/pages/layout/tab.js +110 -0
- package/dist/esm/pages/layout.js +14 -0
- package/dist/esm/pages/loading.js +14 -0
- package/dist/esm/pages/login.js +143 -0
- package/dist/esm/pages/menu/avatar.js +205 -0
- package/dist/esm/pages/menu/button.js +60 -0
- package/dist/esm/pages/menu/cmd.js +156 -0
- package/dist/esm/pages/menu/main.js +101 -0
- package/dist/esm/pages/menu/mobile.js +38 -0
- package/dist/esm/pages/page.js +47 -0
- package/dist/esm/pages/page403.js +46 -0
- package/dist/esm/pages/page404.js +57 -0
- package/dist/esm/pages/page500.js +45 -0
- package/dist/esm/pages/pageEmpty.js +25 -0
- package/dist/esm/pages/pageLoading.js +22 -0
- package/dist/esm/pages/pageStatus.js +50 -0
- package/dist/esm/static/images/placeholder.png.js +4 -0
- package/dist/esm/stores/ui.js +34 -0
- package/dist/esm/theme/naiveTheme.js +97 -0
- package/dist/esm/theme/presetTheme.js +12 -0
- package/dist/esm/theme/uno.css.js +1288 -0
- package/dist/types/app.d.ts +1 -0
- package/dist/types/component.d.ts +5 -0
- package/dist/types/components/card/card.d.ts +140 -0
- package/dist/types/components/card/index.d.ts +1 -0
- package/dist/types/components/carousel/carousel.d.ts +20 -0
- package/dist/types/components/carousel/index.d.ts +1 -0
- package/dist/types/components/dashboard/hello.d.ts +16 -0
- package/dist/types/components/dashboard/helloBig.d.ts +19 -0
- package/dist/types/components/dashboard/index.d.ts +3 -0
- package/dist/types/components/dashboard/quick.d.ts +33 -0
- package/dist/types/components/dialog/dialog.d.ts +35 -0
- package/dist/types/components/dialog/index.d.ts +1 -0
- package/dist/types/components/draw/drawApps.d.ts +1 -0
- package/dist/types/components/draw/drawAuth.d.ts +1 -0
- package/dist/types/components/draw/drawEmpty.d.ts +1 -0
- package/dist/types/components/draw/drawEmptyForm.d.ts +1 -0
- package/dist/types/components/draw/drawError.d.ts +1 -0
- package/dist/types/components/draw/index.d.ts +5 -0
- package/dist/types/components/drawer/drawer.d.ts +19 -0
- package/dist/types/components/drawer/drawerPage.d.ts +1 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/form/formItem.d.ts +27 -0
- package/dist/types/components/form/formLayout.d.ts +38 -0
- package/dist/types/components/form/index.d.ts +5 -0
- package/dist/types/components/form/modalForm.d.ts +89 -0
- package/dist/types/components/form/pageForm.d.ts +51 -0
- package/dist/types/components/form/settingForm.d.ts +69 -0
- package/dist/types/components/index.d.ts +14 -0
- package/dist/types/components/layout/filter.d.ts +13 -0
- package/dist/types/components/layout/index.d.ts +4 -0
- package/dist/types/components/layout/list.d.ts +85 -0
- package/dist/types/components/layout/table.d.ts +72 -0
- package/dist/types/components/layout/tools.d.ts +37 -0
- package/dist/types/components/list/card.d.ts +117 -0
- package/dist/types/components/list/index.d.ts +2 -0
- package/dist/types/components/list/list.d.ts +87 -0
- package/dist/types/components/media/index.d.ts +1 -0
- package/dist/types/components/media/media.d.ts +95 -0
- package/dist/types/components/modal/index.d.ts +3 -0
- package/dist/types/components/modal/modal.d.ts +66 -0
- package/dist/types/components/modal/modalPage.d.ts +42 -0
- package/dist/types/components/modal/modalTab.d.ts +42 -0
- package/dist/types/components/panel/alert.d.ts +32 -0
- package/dist/types/components/panel/index.d.ts +2 -0
- package/dist/types/components/panel/setting.d.ts +29 -0
- package/dist/types/components/status/blockEmpty.d.ts +25 -0
- package/dist/types/components/status/index.d.ts +1 -0
- package/dist/types/components/table/index.d.ts +1 -0
- package/dist/types/components/table/tablePage.d.ts +73 -0
- package/dist/types/components/widget/connect.d.ts +11 -0
- package/dist/types/components/widget/index.d.ts +1 -0
- package/dist/types/config/index.d.ts +2 -0
- package/dist/types/config/uno.d.ts +2 -0
- package/dist/types/config/validate.d.ts +1 -0
- package/dist/types/hooks/action.d.ts +17 -0
- package/dist/types/hooks/dialog.d.ts +17 -0
- package/dist/types/hooks/drawer.d.ts +11 -0
- package/dist/types/hooks/index.d.ts +6 -0
- package/dist/types/hooks/modal.d.ts +9 -0
- package/dist/types/hooks/table/column.d.ts +14 -0
- package/dist/types/hooks/table/copy.d.ts +6 -0
- package/dist/types/hooks/table/hidden.d.ts +7 -0
- package/dist/types/hooks/table/image.d.ts +8 -0
- package/dist/types/hooks/table/index.d.ts +7 -0
- package/dist/types/hooks/table/input.d.ts +9 -0
- package/dist/types/hooks/table/map.d.ts +13 -0
- package/dist/types/hooks/table/media.d.ts +12 -0
- package/dist/types/hooks/table/status.d.ts +12 -0
- package/dist/types/hooks/table/switch.d.ts +7 -0
- package/dist/types/hooks/table/types.d.ts +74 -0
- package/dist/types/hooks/table.d.ts +2 -0
- package/dist/types/hooks/ui.d.ts +8 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/langs/index.d.ts +3 -0
- package/dist/types/main.d.ts +5 -0
- package/dist/types/pages/authLayout.d.ts +1 -0
- package/dist/types/pages/index.d.ts +12 -0
- package/dist/types/pages/layout/global.d.ts +1 -0
- package/dist/types/pages/layout/index.d.ts +3 -0
- package/dist/types/pages/layout/page.d.ts +1 -0
- package/dist/types/pages/layout/tab.d.ts +1 -0
- package/dist/types/pages/layout.d.ts +1 -0
- package/dist/types/pages/loading.d.ts +1 -0
- package/dist/types/pages/login.d.ts +1 -0
- package/dist/types/pages/menu/avatar.d.ts +14 -0
- package/dist/types/pages/menu/button.d.ts +41 -0
- package/dist/types/pages/menu/cmd.d.ts +7 -0
- package/dist/types/pages/menu/index.d.ts +4 -0
- package/dist/types/pages/menu/main.d.ts +13 -0
- package/dist/types/pages/menu/mobile.d.ts +1 -0
- package/dist/types/pages/page.d.ts +42 -0
- package/dist/types/pages/page403.d.ts +1 -0
- package/dist/types/pages/page404.d.ts +1 -0
- package/dist/types/pages/page500.d.ts +1 -0
- package/dist/types/pages/pageEmpty.d.ts +7 -0
- package/dist/types/pages/pageLoading.d.ts +1 -0
- package/dist/types/pages/pageStatus.d.ts +7 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/ui.d.ts +28 -0
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/naiveTheme.d.ts +5 -0
- package/dist/types/theme/presetTheme.d.ts +7 -0
- package/package.json +73 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent as u, createVNode as t, isVNode as m } from "vue";
|
|
2
|
+
import { useI18n as s } from "@duxweb/dvha-core";
|
|
3
|
+
import { NButton as a } from "naive-ui";
|
|
4
|
+
import { useRoute as l, useRouter as c } from "vue-router";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "jinrishici";
|
|
7
|
+
import "lodash-es";
|
|
8
|
+
import { DuxDrawEmpty as f } from "../components/draw/drawEmpty.js";
|
|
9
|
+
import "../node_modules/@overlastic/vue/dist/index.js";
|
|
10
|
+
import "@vueuse/core";
|
|
11
|
+
import "vee-validate";
|
|
12
|
+
import "@duxweb/dvha-naiveui";
|
|
13
|
+
import "pinia";
|
|
14
|
+
import "@vee-validate/i18n";
|
|
15
|
+
import "vue-command-palette";
|
|
16
|
+
import { DuxPageStatus as d } from "./pageStatus.js";
|
|
17
|
+
function g(o) {
|
|
18
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !m(o);
|
|
19
|
+
}
|
|
20
|
+
const D = /* @__PURE__ */ u({
|
|
21
|
+
name: "DuxPage404",
|
|
22
|
+
setup(o) {
|
|
23
|
+
const n = l(), i = c(), {
|
|
24
|
+
t: e
|
|
25
|
+
} = s();
|
|
26
|
+
function p() {
|
|
27
|
+
i.push({
|
|
28
|
+
path: n.path,
|
|
29
|
+
query: {
|
|
30
|
+
...n.query,
|
|
31
|
+
t: Date.now()
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return () => t(d, {
|
|
36
|
+
title: e("pages.404.title"),
|
|
37
|
+
desc: e("pages.404.desc")
|
|
38
|
+
}, {
|
|
39
|
+
default: () => t("div", null, [t(f, null, null)]),
|
|
40
|
+
action: () => {
|
|
41
|
+
let r;
|
|
42
|
+
return t(a, {
|
|
43
|
+
onClick: p,
|
|
44
|
+
renderIcon: () => t("div", {
|
|
45
|
+
class: "n-icon i-tabler:refresh"
|
|
46
|
+
}, null)
|
|
47
|
+
}, g(r = e("components.button.refresh")) ? r : {
|
|
48
|
+
default: () => [r]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
D.displayName = "DuxPage404";
|
|
55
|
+
export {
|
|
56
|
+
D as DuxPage404
|
|
57
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as l, createVNode as t, resolveComponent as c, isVNode as i } from "vue";
|
|
2
|
+
import { useI18n as p } from "@duxweb/dvha-core";
|
|
3
|
+
import { NButton as a } from "naive-ui";
|
|
4
|
+
import { useRoute as f, useRouter as m } from "vue-router";
|
|
5
|
+
import { DuxPageStatus as d } from "./pageStatus.js";
|
|
6
|
+
function g(e) {
|
|
7
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
|
|
8
|
+
}
|
|
9
|
+
const j = /* @__PURE__ */ l({
|
|
10
|
+
name: "DuxPage500",
|
|
11
|
+
setup(e) {
|
|
12
|
+
const n = f(), u = m(), {
|
|
13
|
+
t: o
|
|
14
|
+
} = p();
|
|
15
|
+
function s() {
|
|
16
|
+
u.push({
|
|
17
|
+
path: n.path,
|
|
18
|
+
query: {
|
|
19
|
+
...n.query,
|
|
20
|
+
t: Date.now()
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return () => t(d, {
|
|
25
|
+
title: o("pages.500.title"),
|
|
26
|
+
desc: o("pages.500.desc")
|
|
27
|
+
}, {
|
|
28
|
+
default: () => t("div", null, [t(c("dux-draw-error"), null, null)]),
|
|
29
|
+
action: () => {
|
|
30
|
+
let r;
|
|
31
|
+
return t(a, {
|
|
32
|
+
onClick: s,
|
|
33
|
+
renderIcon: () => t("div", {
|
|
34
|
+
class: "n-icon i-tabler:refresh"
|
|
35
|
+
}, null)
|
|
36
|
+
}, g(r = o("components.button.refresh")) ? r : {
|
|
37
|
+
default: () => [r]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
j as DuxPage500
|
|
45
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as r, createVNode as m } from "vue";
|
|
2
|
+
import { useI18n as o } from "@duxweb/dvha-core";
|
|
3
|
+
import { DuxDrawEmptyForm as p } from "../components/draw/drawEmptyForm.js";
|
|
4
|
+
import { DuxPageStatus as n } from "./pageStatus.js";
|
|
5
|
+
const l = /* @__PURE__ */ r({
|
|
6
|
+
name: "DuxPageEmpty",
|
|
7
|
+
props: {
|
|
8
|
+
title: String,
|
|
9
|
+
desc: String
|
|
10
|
+
},
|
|
11
|
+
setup(t) {
|
|
12
|
+
const {
|
|
13
|
+
t: e
|
|
14
|
+
} = o();
|
|
15
|
+
return () => m(n, {
|
|
16
|
+
title: t.title || e("pages.empty.title"),
|
|
17
|
+
desc: t.desc || e("pages.empty.desc")
|
|
18
|
+
}, {
|
|
19
|
+
default: () => [m(p, null, null)]
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
l as DuxPageEmpty
|
|
25
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as t, createVNode as o } from "vue";
|
|
2
|
+
import { useI18n as r } from "@duxweb/dvha-core";
|
|
3
|
+
import { DuxDrawEmptyForm as a } from "../components/draw/drawEmptyForm.js";
|
|
4
|
+
import { DuxPageStatus as n } from "./pageStatus.js";
|
|
5
|
+
const s = /* @__PURE__ */ t({
|
|
6
|
+
name: "DuxPageLoading",
|
|
7
|
+
props: {},
|
|
8
|
+
setup() {
|
|
9
|
+
const {
|
|
10
|
+
t: e
|
|
11
|
+
} = r();
|
|
12
|
+
return () => o(n, {
|
|
13
|
+
title: e("pages.loading.title"),
|
|
14
|
+
desc: e("pages.loading.desc")
|
|
15
|
+
}, {
|
|
16
|
+
default: () => [o(a, null, null)]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
s as DuxPageLoading
|
|
22
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as c, createVNode as t } from "vue";
|
|
2
|
+
import { DuxCard as a } from "../components/card/card.js";
|
|
3
|
+
import "naive-ui";
|
|
4
|
+
import "clsx";
|
|
5
|
+
import "jinrishici";
|
|
6
|
+
import "lodash-es";
|
|
7
|
+
import "../node_modules/@overlastic/vue/dist/index.js";
|
|
8
|
+
import "@vueuse/core";
|
|
9
|
+
import "vee-validate";
|
|
10
|
+
import "@duxweb/dvha-core";
|
|
11
|
+
import "vue-router";
|
|
12
|
+
import "@duxweb/dvha-naiveui";
|
|
13
|
+
import "pinia";
|
|
14
|
+
import "@vee-validate/i18n";
|
|
15
|
+
import "vue-command-palette";
|
|
16
|
+
import "./page404.js";
|
|
17
|
+
const P = /* @__PURE__ */ c({
|
|
18
|
+
name: "DuxPageStatus",
|
|
19
|
+
props: {
|
|
20
|
+
title: String,
|
|
21
|
+
desc: String
|
|
22
|
+
},
|
|
23
|
+
setup(e, {
|
|
24
|
+
slots: i
|
|
25
|
+
}) {
|
|
26
|
+
return () => t(a, {
|
|
27
|
+
class: "size-full flex items-center justify-center"
|
|
28
|
+
}, {
|
|
29
|
+
default: () => {
|
|
30
|
+
var m, r;
|
|
31
|
+
return [t("div", {
|
|
32
|
+
class: "flex flex-col gap-6 justify-center items-center py-10"
|
|
33
|
+
}, [t("div", {
|
|
34
|
+
class: "w-40"
|
|
35
|
+
}, [(m = i.default) == null ? void 0 : m.call(i)]), t("div", {
|
|
36
|
+
class: "flex flex-col items-center justify-center gap-2"
|
|
37
|
+
}, [t("div", {
|
|
38
|
+
class: "text-lg text-default font-bold"
|
|
39
|
+
}, [e == null ? void 0 : e.title]), t("div", {
|
|
40
|
+
class: "text-muted"
|
|
41
|
+
}, [e == null ? void 0 : e.desc])]), t("div", {
|
|
42
|
+
class: "flex justify-center items-center gap-4"
|
|
43
|
+
}, [(r = i.action) == null ? void 0 : r.call(i)])])];
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
P as DuxPageStatus
|
|
50
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const A = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAZpJREFUeF7tm10OgyAQhNW7GI9ZPabxLloxpQG08rfgUsaXPhSF+RiGjaVtU/nVVq6/AQA4oHICWAKVGwAheFoCy7Js/+yKvu81zQBgzjYcgCWgZ4C5ZkrLB9PR3hkAAEZqwgGFEcASMEIdGeBbCCEEEYJ67XyXgfM8j+L7YRiOTw5XthAU4ruuewnR67pOXCBkAaCKl7POBUJyAFfiOUFICuBOfAoIn/62fWeaXPMlGQAX8ZQQjP5GVwhJAPiIp4AQkzHkAELEK3Z1njl5j6U/6/NIAUSKl5qsg3YUfzSz7TZkAIjEO0PYBy5qCqeC6g4CCQBi8VYIPuJtyysagKArKzzXrcej3Wk5BIr/CTUagIeY0KZfCJHiLyGUAEAMfNyd1hI6TYWq/dDj/UIkdFoZ3HdAKMUBqXiJXUTbSWpywCVUAPB9J5jKm089Fw6AA3A+AAck1PzBCREzjXFCBCdEcEoMx+SeqtJy9ItKEJUgKkFUgqgEFQIohVEK59h8GfeB/wwxnpwsQ4MDsmBm3AkcwHhysgytege8ARXlp1D+1VsHAAAAAElFTkSuQmCC";
|
|
2
|
+
export {
|
|
3
|
+
A as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineStore as u } from "pinia";
|
|
2
|
+
import { inject as c, ref as n } from "vue";
|
|
3
|
+
function a(e) {
|
|
4
|
+
const o = c("dux.manage");
|
|
5
|
+
if (e || (e = (o == null ? void 0 : o.value) || ""), !e)
|
|
6
|
+
throw new Error("manage not found");
|
|
7
|
+
return f(e)();
|
|
8
|
+
}
|
|
9
|
+
function f(e) {
|
|
10
|
+
return u(`ui-${e}`, () => {
|
|
11
|
+
const o = n(!1), s = n(!1), l = (t) => {
|
|
12
|
+
o.value = t;
|
|
13
|
+
}, i = (t) => {
|
|
14
|
+
s.value = t;
|
|
15
|
+
}, r = n(!1);
|
|
16
|
+
return {
|
|
17
|
+
menuCollapsed: o,
|
|
18
|
+
setMenuCollapsed: l,
|
|
19
|
+
cmdVisible: r,
|
|
20
|
+
setCmdVisible: (t) => {
|
|
21
|
+
r.value = t;
|
|
22
|
+
},
|
|
23
|
+
menuMobileCollapsed: s,
|
|
24
|
+
setMenuMobileCollapsed: i
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
persist: {
|
|
28
|
+
pick: ["menuCollapsed"]
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
a as useUIStore
|
|
34
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { useTheme as i } from "@duxweb/dvha-core";
|
|
2
|
+
import { hex2rgb as c } from "../node_modules/colorizr/dist/index.js";
|
|
3
|
+
import { merge as a } from "lodash-es";
|
|
4
|
+
import { computed as l } from "vue";
|
|
5
|
+
function g() {
|
|
6
|
+
const { getSceneColor: r, getSemanticColor: o } = i(), e = (m) => {
|
|
7
|
+
const t = c(m);
|
|
8
|
+
return `${t.r}, ${t.g},${t.b}`;
|
|
9
|
+
}, s = l(() => ({
|
|
10
|
+
common: {
|
|
11
|
+
primaryColor: r("primary"),
|
|
12
|
+
primaryColorHover: r("primary", "hover"),
|
|
13
|
+
primaryColorPressed: r("primary", "pressed"),
|
|
14
|
+
primaryColorSuppl: r("primary"),
|
|
15
|
+
infoColor: r("info"),
|
|
16
|
+
infoColorHover: r("info", "hover"),
|
|
17
|
+
infoColorPressed: r("info", "pressed"),
|
|
18
|
+
infoColorSuppl: r("info"),
|
|
19
|
+
successColor: r("success"),
|
|
20
|
+
successColorHover: r("success", "hover"),
|
|
21
|
+
successColorPressed: r("success", "pressed"),
|
|
22
|
+
successColorSuppl: r("success"),
|
|
23
|
+
warningColor: r("warning"),
|
|
24
|
+
warningColorHover: r("warning", "hover"),
|
|
25
|
+
warningColorPressed: r("warning", "pressed"),
|
|
26
|
+
warningColorSuppl: r("warning"),
|
|
27
|
+
errorColor: r("error"),
|
|
28
|
+
errorColorHover: r("error", "hover"),
|
|
29
|
+
errorColorPressed: r("error", "pressed"),
|
|
30
|
+
errorColorSuppl: r("error"),
|
|
31
|
+
// textColorBase: getSemanticColor('text', 'base'),
|
|
32
|
+
// textColor1: getSemanticColor('text', 'highlighted'),
|
|
33
|
+
// textColor2: getSemanticColor('text', 'toned'),
|
|
34
|
+
// textColor3: getSemanticColor('text', 'muted'),
|
|
35
|
+
// textColorDisabled: getSemanticColor('text', 'dimmed'),
|
|
36
|
+
cardColor: o("bg", "muted"),
|
|
37
|
+
modalColor: o("bg", "muted"),
|
|
38
|
+
// bodyColor: getSemanticColor('bg', 'base'),
|
|
39
|
+
// tableColor: getSemanticColor('bg', 'muted'),
|
|
40
|
+
// actionColor: getSemanticColor('bg', 'muted'),
|
|
41
|
+
// hoverColor: getSemanticColor('bg', 'muted'),
|
|
42
|
+
// dividerColor: getSemanticColor('border', 'muted'),
|
|
43
|
+
// borderColor: getSemanticColor('border', 'muted'),
|
|
44
|
+
placeholderColor: o("text", "muted"),
|
|
45
|
+
iconColor: o("text", "muted"),
|
|
46
|
+
borderRadius: "var(--radius-sm)",
|
|
47
|
+
borderRadiusSmall: "var(--radius-xs)"
|
|
48
|
+
},
|
|
49
|
+
Menu: {
|
|
50
|
+
itemIconColorCollapsed: o("text", "accented")
|
|
51
|
+
},
|
|
52
|
+
DataTable: {
|
|
53
|
+
borderColor: o("border", "muted"),
|
|
54
|
+
thColor: o("bg", "elevated"),
|
|
55
|
+
tdColorHover: o("bg", "elevated"),
|
|
56
|
+
thTextColor: o("text", "base")
|
|
57
|
+
},
|
|
58
|
+
Select: {
|
|
59
|
+
peers: {
|
|
60
|
+
InternalSelection: {
|
|
61
|
+
border: "1px solid rgb(var(--ui-border-accented))"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
Button: {},
|
|
66
|
+
Tabs: {
|
|
67
|
+
tabTextColorCard: o("text", "toned"),
|
|
68
|
+
colorSegment: `rgba(${e(o("bg", "elevated"))})`,
|
|
69
|
+
tabBorderColor: o("border", "muted"),
|
|
70
|
+
tabColorSegment: r("primary"),
|
|
71
|
+
tabTextColorSegment: o("text", "toned"),
|
|
72
|
+
tabTextColorActiveSegment: o("text", "inverted"),
|
|
73
|
+
tabTextColorHoverSegment: o("text", "muted")
|
|
74
|
+
}
|
|
75
|
+
})), n = l(() => a(s.value, {
|
|
76
|
+
common: {
|
|
77
|
+
popoverColor: `rgba(${e(o("bg", "muted"))}, 0.95)`
|
|
78
|
+
},
|
|
79
|
+
DataTable: {
|
|
80
|
+
tdColor: o("bg", "base")
|
|
81
|
+
}
|
|
82
|
+
})), d = l(() => a(s.value, {
|
|
83
|
+
common: {
|
|
84
|
+
popoverColor: `rgba(${e(o("bg", "elevated"))}, 0.95)`
|
|
85
|
+
},
|
|
86
|
+
DataTable: {
|
|
87
|
+
tdColor: o("bg", "muted")
|
|
88
|
+
}
|
|
89
|
+
}));
|
|
90
|
+
return {
|
|
91
|
+
lightTheme: n,
|
|
92
|
+
darkTheme: d
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export {
|
|
96
|
+
g as themeOverrides
|
|
97
|
+
};
|