@duxweb/dvha-pro 1.0.39 → 1.0.41
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("@duxweb/dvha-core"),p=require("@duxweb/dvha-naiveui"),r=require("naive-ui");require("vue-router");require("@overlastic/vue");require("clsx");require("vue-echarts");require("@vueuse/core");require("vue3-ace-editor");require("ace-builds/src-noconflict/mode-vue");require("ace-builds/src-noconflict/mode-javascript");require("ace-builds/src-noconflict/mode-html");require("ace-builds/src-noconflict/mode-json");require("ace-builds/src-noconflict/mode-json5");require("ace-builds/src-noconflict/theme-tomorrow_night");require("ace-builds/src-noconflict/theme-tomorrow");require("ace-builds/src-noconflict/ext-searchbox");require("ace-builds/src-noconflict/ext-language_tools");require("ace-builds/src-noconflict/mode-snippets");require("vue-cropper");require("jinrishici");require("lodash-es");require("vue-draggable-plus");require("@vee-validate/i18n");require("colorizr");require("echarts");require("highlight.js/lib/core");require("highlight.js/lib/languages/bash");require("highlight.js/lib/languages/css");require("highlight.js/lib/languages/go");require("highlight.js/lib/languages/java");require("highlight.js/lib/languages/javascript");require("highlight.js/lib/languages/json");require("highlight.js/lib/languages/markdown");require("highlight.js/lib/languages/php");require("highlight.js/lib/languages/python");require("highlight.js/lib/languages/shell");require("highlight.js/lib/languages/sql");require("highlight.js/lib/languages/typescript");require("highlight.js/lib/languages/xml");require("@ant-design/colors");require("@unocss/preset-icons/browser");require("@unocss/preset-typography");require("unocss/preset-wind4");require("@vee-validate/i18n/dist/locale/en.json");require("@vee-validate/i18n/dist/locale/zh_CN.json");require("vee-validate");const v=require("./avatar.cjs"),o=require("./button.cjs");require("vue-command-palette");require("../page404.cjs");require("short-unique-id");require("aieditor");require("mime");require("@iconify-json/tabler/icons.json");require("../../components/posterEditor/elements/index.cjs");require("fabric");require("dayjs");require("@tanstack/vue-query");const N=require("../../hooks/ui.cjs"),f=e.defineComponent({name:"DuxMenuMain",props:{collapsed:{type:Boolean,default:!1}},setup(i){const{options:d,active:s}=p.useNaiveMenu({}),{menuCollapsed:u,setCmdVisible:c,menuMobileCollapsed:t,setMenuCollapsed:n}=N.useUI(),{config:l}=a.useManage(),{t:q}=a.useI18n();return()=>e.createVNode("div",{class:"flex flex-col h-screen px-1"},[e.createVNode("div",{class:"h-13 px-2 hidden lg:flex justify-center items-center"},[e.createVNode(o.default,{onClick:()=>n(!u.value),collapsed:i.collapsed},{icon:()=>e.createVNode("div",{class:"bg-white dark:bg-primary-950 rounded-full p-2 shadow group-hover:shadow-lg"},[l.theme?.appLogo?e.createVNode("img",{class:"size-4",src:l.theme?.appLogo},null):e.createVNode(a.DuxLogoIcon,{highlight:"fill-primary",class:"size-4"},null)]),default:()=>e.createVNode("div",null,[l.title])})]),e.createVNode("div",{class:"px-2 py-1 hidden lg:block"},[e.createVNode(o.default,{collapsed:i.collapsed,inverted:!0,class:"relative py-1.5 px-3",onClick:()=>c(!0)},{icon:()=>e.createVNode("div",{class:"i-tabler:search size-4 icon-gradient"},null),default:()=>e.createVNode("div",{class:"text-muted text-sm"},[q("common.search"),!u.value&&e.createVNode("div",{class:"flex items-center gap-1 absolute right-2.5 top-1.3"},[e.createVNode(r.NTag,{size:"small",bordered:!1,type:"primary"},{default:()=>[e.createTextVNode("⌘")]}),e.createVNode(r.NTag,{size:"small",bordered:!1,type:"primary"},{default:()=>[e.createTextVNode("K")]})])])})]),e.createVNode("div",{class:["flex-1 min-h-0",t.value?"border-t border-muted":""]},[e.createVNode(r.NScrollbar,null,{default:()=>[e.createVNode(r.NMenu,{options:d.value,value:s.value,collapsed:u.value&&!t.value,indent:20,collapsedWidth:60,collapsedIconSize:20},null)]})]),e.createVNode("div",{class:"flex-none hidden lg:flex flex-col items-center gap-2 p-2 border-t border-muted/50"},[e.createVNode(v.default,{collapsed:i.collapsed},null)])])}});exports.DuxMenuMain=f;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=`/* layer: properties */
|
|
2
|
-
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-
|
|
2
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-from-opacity:100%;--un-text-opacity:100%;--un-bg-opacity:100%;--un-divide-y-reverse:initial;--un-border-style:solid;--un-divide-x-reverse:initial;--un-divide-opacity:100%;--un-shadow-opacity:100%;--un-border-opacity:100%;--un-ease:initial;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-to-opacity:100%;--un-fill-opacity:100%;--un-outline-style:solid;}}
|
|
3
3
|
@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
4
4
|
@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
|
|
5
5
|
@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as c, createVNode as
|
|
1
|
+
import { defineComponent as c, createVNode as e, createTextVNode as l } from "vue";
|
|
2
2
|
import { useManage as f, useI18n as v, DuxLogoIcon as x } from "@duxweb/dvha-core";
|
|
3
3
|
import { useNaiveMenu as g } from "@duxweb/dvha-naiveui";
|
|
4
|
-
import { NTag as
|
|
4
|
+
import { NTag as p, NScrollbar as h, NMenu as b } from "naive-ui";
|
|
5
5
|
import "vue-router";
|
|
6
6
|
import "@overlastic/vue";
|
|
7
7
|
import "clsx";
|
|
@@ -47,7 +47,7 @@ import "@vee-validate/i18n/dist/locale/en.json";
|
|
|
47
47
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
48
48
|
import "vee-validate";
|
|
49
49
|
import M from "./avatar.js";
|
|
50
|
-
import
|
|
50
|
+
import m from "./button.js";
|
|
51
51
|
import "vue-command-palette";
|
|
52
52
|
import "../page404.js";
|
|
53
53
|
import "short-unique-id";
|
|
@@ -59,7 +59,7 @@ import "fabric";
|
|
|
59
59
|
import "dayjs";
|
|
60
60
|
import "@tanstack/vue-query";
|
|
61
61
|
import { useUI as y } from "../../hooks/ui.js";
|
|
62
|
-
const
|
|
62
|
+
const Le = /* @__PURE__ */ c({
|
|
63
63
|
name: "DuxMenuMain",
|
|
64
64
|
props: {
|
|
65
65
|
collapsed: {
|
|
@@ -67,81 +67,84 @@ const Bo = /* @__PURE__ */ c({
|
|
|
67
67
|
default: !1
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
setup(
|
|
70
|
+
setup(o) {
|
|
71
71
|
const {
|
|
72
|
-
options:
|
|
73
|
-
active:
|
|
72
|
+
options: a,
|
|
73
|
+
active: s
|
|
74
74
|
} = g({}), {
|
|
75
75
|
menuCollapsed: t,
|
|
76
|
-
setCmdVisible:
|
|
77
|
-
menuMobileCollapsed:
|
|
78
|
-
setMenuCollapsed:
|
|
76
|
+
setCmdVisible: d,
|
|
77
|
+
menuMobileCollapsed: r,
|
|
78
|
+
setMenuCollapsed: n
|
|
79
79
|
} = y(), {
|
|
80
|
-
config:
|
|
80
|
+
config: i
|
|
81
81
|
} = f(), {
|
|
82
82
|
t: u
|
|
83
83
|
} = v();
|
|
84
|
-
return () =>
|
|
84
|
+
return () => e("div", {
|
|
85
85
|
class: "flex flex-col h-screen px-1"
|
|
86
|
-
}, [
|
|
86
|
+
}, [e("div", {
|
|
87
87
|
class: "h-13 px-2 hidden lg:flex justify-center items-center"
|
|
88
|
-
}, [
|
|
89
|
-
onClick: () =>
|
|
90
|
-
collapsed:
|
|
88
|
+
}, [e(m, {
|
|
89
|
+
onClick: () => n(!t.value),
|
|
90
|
+
collapsed: o.collapsed
|
|
91
91
|
}, {
|
|
92
|
-
icon: () =>
|
|
92
|
+
icon: () => e("div", {
|
|
93
93
|
class: "bg-white dark:bg-primary-950 rounded-full p-2 shadow group-hover:shadow-lg"
|
|
94
|
-
}, [
|
|
94
|
+
}, [i.theme?.appLogo ? e("img", {
|
|
95
|
+
class: "size-4",
|
|
96
|
+
src: i.theme?.appLogo
|
|
97
|
+
}, null) : e(x, {
|
|
95
98
|
highlight: "fill-primary",
|
|
96
99
|
class: "size-4"
|
|
97
100
|
}, null)]),
|
|
98
|
-
default: () =>
|
|
99
|
-
})]),
|
|
101
|
+
default: () => e("div", null, [i.title])
|
|
102
|
+
})]), e("div", {
|
|
100
103
|
class: "px-2 py-1 hidden lg:block"
|
|
101
|
-
}, [
|
|
102
|
-
collapsed:
|
|
104
|
+
}, [e(m, {
|
|
105
|
+
collapsed: o.collapsed,
|
|
103
106
|
inverted: !0,
|
|
104
107
|
class: "relative py-1.5 px-3",
|
|
105
|
-
onClick: () =>
|
|
108
|
+
onClick: () => d(!0)
|
|
106
109
|
}, {
|
|
107
|
-
icon: () =>
|
|
110
|
+
icon: () => e("div", {
|
|
108
111
|
class: "i-tabler:search size-4 icon-gradient"
|
|
109
112
|
}, null),
|
|
110
|
-
default: () =>
|
|
113
|
+
default: () => e("div", {
|
|
111
114
|
class: "text-muted text-sm"
|
|
112
|
-
}, [u("common.search"), !t.value &&
|
|
115
|
+
}, [u("common.search"), !t.value && e("div", {
|
|
113
116
|
class: "flex items-center gap-1 absolute right-2.5 top-1.3"
|
|
114
|
-
}, [
|
|
117
|
+
}, [e(p, {
|
|
115
118
|
size: "small",
|
|
116
119
|
bordered: !1,
|
|
117
120
|
type: "primary"
|
|
118
121
|
}, {
|
|
119
|
-
default: () => [
|
|
120
|
-
}),
|
|
122
|
+
default: () => [l("⌘")]
|
|
123
|
+
}), e(p, {
|
|
121
124
|
size: "small",
|
|
122
125
|
bordered: !1,
|
|
123
126
|
type: "primary"
|
|
124
127
|
}, {
|
|
125
|
-
default: () => [
|
|
128
|
+
default: () => [l("K")]
|
|
126
129
|
})])])
|
|
127
|
-
})]),
|
|
128
|
-
class: ["flex-1 min-h-0",
|
|
129
|
-
}, [
|
|
130
|
-
default: () => [
|
|
131
|
-
options:
|
|
132
|
-
value:
|
|
133
|
-
collapsed: t.value && !
|
|
130
|
+
})]), e("div", {
|
|
131
|
+
class: ["flex-1 min-h-0", r.value ? "border-t border-muted" : ""]
|
|
132
|
+
}, [e(h, null, {
|
|
133
|
+
default: () => [e(b, {
|
|
134
|
+
options: a.value,
|
|
135
|
+
value: s.value,
|
|
136
|
+
collapsed: t.value && !r.value,
|
|
134
137
|
indent: 20,
|
|
135
138
|
collapsedWidth: 60,
|
|
136
139
|
collapsedIconSize: 20
|
|
137
140
|
}, null)]
|
|
138
|
-
})]),
|
|
141
|
+
})]), e("div", {
|
|
139
142
|
class: "flex-none hidden lg:flex flex-col items-center gap-2 p-2 border-t border-muted/50"
|
|
140
|
-
}, [
|
|
141
|
-
collapsed:
|
|
143
|
+
}, [e(M, {
|
|
144
|
+
collapsed: o.collapsed
|
|
142
145
|
}, null)])]);
|
|
143
146
|
}
|
|
144
147
|
});
|
|
145
148
|
export {
|
|
146
|
-
|
|
149
|
+
Le as DuxMenuMain
|
|
147
150
|
};
|
|
@@ -28,17 +28,6 @@ function g() {
|
|
|
28
28
|
errorColorHover: o("error", "hover"),
|
|
29
29
|
errorColorPressed: o("error", "pressed"),
|
|
30
30
|
errorColorSuppl: o("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
|
-
// tableColor: getSemanticColor('bg', 'muted'),
|
|
37
|
-
// actionColor: getSemanticColor('bg', 'muted'),
|
|
38
|
-
// hoverColor: getSemanticColor('bg', 'muted'),
|
|
39
|
-
// dividerColor: getSemanticColor('border', 'muted'),
|
|
40
|
-
// borderColor: getSemanticColor('border', 'muted'),
|
|
41
|
-
// placeholderColor: getSemanticColor('text', 'muted'),
|
|
42
31
|
iconColor: r("text", "muted"),
|
|
43
32
|
borderRadius: "var(--radius-sm)",
|
|
44
33
|
borderRadiusSmall: "var(--radius-xs)"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const r = `/* layer: properties */
|
|
2
|
-
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-
|
|
2
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-from-opacity:100%;--un-text-opacity:100%;--un-bg-opacity:100%;--un-divide-y-reverse:initial;--un-border-style:solid;--un-divide-x-reverse:initial;--un-divide-opacity:100%;--un-shadow-opacity:100%;--un-border-opacity:100%;--un-ease:initial;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-to-opacity:100%;--un-fill-opacity:100%;--un-outline-style:solid;}}
|
|
3
3
|
@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
4
4
|
@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
|
|
5
5
|
@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duxweb/dvha-pro",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.41",
|
|
5
5
|
"author": "DuxWeb",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@ant-design/colors": "^7.2.1",
|
|
36
|
-
"@duxweb/dvha-core": "^1.0.
|
|
37
|
-
"@duxweb/dvha-naiveui": "^1.0.
|
|
36
|
+
"@duxweb/dvha-core": "^1.0.41",
|
|
37
|
+
"@duxweb/dvha-naiveui": "^1.0.41",
|
|
38
38
|
"@iconify-json/tabler": "^1.2.18",
|
|
39
39
|
"@overlastic/vue": "^0.8.1",
|
|
40
40
|
"@tanstack/vue-query": "^5.80.7",
|