@duxweb/dvha-pro 1.0.50 → 1.0.51
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.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@duxweb/dvha-core"),u=require("naive-ui"),b=require("vue-router"),k=require("../../components/card/card.cjs");require("clsx");require("vue-echarts");require("@overlastic/vue");require("dayjs");require("mime");require("lodash-es");require("@tanstack/vue-query");require("@duxweb/dvha-naiveui");require("@vueuse/core");require("pinia");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("vue-draggable-plus");const w=require("../../components/status/blockEmpty.cjs");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");require("vue-command-palette");require("../page404.cjs");require("short-unique-id");require("aieditor");require("@vue-flow/core");require("@vue-flow/background");;/* empty css */require("@iconify-json/tabler/icons.json");require("../../components/posterEditor/elements/index.cjs");require("fabric");function C(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!e.isVNode(i)}const S=e.defineComponent({name:"DuxMenuNotice",props:{collapsed:{type:Boolean,default:!1}},setup(){const{t:i}=a.useI18n(),{config:t,getRoutePath:n}=a.useManage(),c=b.useRouter(),{data:v,isLoading:m,refetch:N}=a.useList({path:t.notice?.path||"notice",pagination:{page:1,pageSize:10}}),{mutate:d}=a.useCustomMutation({path:`${t.notice?.path||"notice"}`,method:"POST",onSuccess:()=>{N()}}),l=e.computed(()=>v.value?.data||[]),s=e.computed(()=>l.value.some(r=>!r[t.notice?.readField||"read"])),o=e.ref(!1),h=r=>{d({payload:{type:"
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@duxweb/dvha-core"),u=require("naive-ui"),b=require("vue-router"),k=require("../../components/card/card.cjs");require("clsx");require("vue-echarts");require("@overlastic/vue");require("dayjs");require("mime");require("lodash-es");require("@tanstack/vue-query");require("@duxweb/dvha-naiveui");require("@vueuse/core");require("pinia");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("vue-draggable-plus");const w=require("../../components/status/blockEmpty.cjs");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");require("vue-command-palette");require("../page404.cjs");require("short-unique-id");require("aieditor");require("@vue-flow/core");require("@vue-flow/background");;/* empty css */require("@iconify-json/tabler/icons.json");require("../../components/posterEditor/elements/index.cjs");require("fabric");function C(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!e.isVNode(i)}const S=e.defineComponent({name:"DuxMenuNotice",props:{collapsed:{type:Boolean,default:!1}},setup(){const{t:i}=a.useI18n(),{config:t,getRoutePath:n}=a.useManage(),c=b.useRouter(),{data:v,isLoading:m,refetch:N}=a.useList({path:t.notice?.path||"notice",pagination:{page:1,pageSize:10}}),{mutate:d}=a.useCustomMutation({path:`${t.notice?.path||"notice"}`,method:"POST",onSuccess:()=>{N()}}),l=e.computed(()=>v.value?.data||[]),s=e.computed(()=>l.value.some(r=>!r[t.notice?.readField||"read"])),o=e.ref(!1),h=r=>{d({payload:{type:"read",id:r.id}}),o.value=!1},f=()=>{d({payload:{type:"all_read"}}),o.value=!1};return()=>e.createVNode(u.NPopover,{trigger:"click",arrowClass:"ml-2.5",placement:"bottom-start",style:"padding: 0",width:300,show:o.value,onClickoutside:()=>o.value=!1},{trigger:()=>e.createVNode(u.NTooltip,{trigger:"hover",placement:"right"},{default:()=>i("components.menu.notice","Notice"),trigger:()=>e.createVNode(u.NButton,{onClick:()=>o.value=!0,quaternary:!0},{icon:()=>e.createVNode(u.NBadge,{dot:s.value,offset:[-8,8]},{default:()=>[e.createVNode("div",{class:"transition-all text-muted p-2 hover:text-white"},[e.createVNode("div",{class:"i-tabler:bell size-5"},null)])]})})}),default:()=>e.createVNode(k.DuxCard,{headerBordered:!0,headerClass:"text-sm",headerSize:"small",contentSize:"none",title:i("components.menu.notice","Notice")},{default:()=>e.createVNode(e.Fragment,null,[e.createVNode(u.NSpin,{show:m.value},{default:()=>[l.value.length>0?e.createVNode("div",{class:"p-2"},[l.value?.map((r,g)=>{const V=r[t.notice?.urlField||"url"],q=t.notice?.readField||"read",x=t.notice?.descField||"desc",y=t.notice?.titleField||"title";return e.createVNode("div",{class:"hover:bg-elevated rounded cursor-pointer p-2 flex gap-2 items-center",onClick:()=>{const p=r[t.notice?.urlField||"url"];p?.startsWith("http")?window.open(p,"_blank"):c.push(n(t.notice?.path||"notice")),r[q]=!0,h(r)}},[e.createVNode("div",{key:g,class:"flex-1 min-w-0 flex flex-col"},[e.createVNode("div",{class:"flex items-center gap-2"},[r[q]?e.createVNode("div",{class:"w-2 h-2 bg-elevated rounded-full"},null):e.createVNode("div",{class:"w-2 h-2 bg-error rounded-full"},null),e.createVNode("div",{class:"flex-1 min-w-0 text-sm font-medium truncate"},[r[y]])]),e.createVNode("div",{class:"pl-4 text-xs text-muted line-clamp-2"},[r[x]])]),V?.startsWith("http")&&e.createVNode("div",null,[e.createVNode("div",{class:"i-tabler:external-link size-5 text-muted"},null)])])})]):e.createVNode("div",{class:"p-4"},[e.createVNode(w.DuxBlockEmpty,{text:i("components.menu.noNotice","No notices"),simple:!0},null)])]}),e.createVNode("div",{class:"border-t border-muted p-2"},[e.createVNode("div",{class:"text-center text-sm text-primary hover:text-primary-hover cursor-pointer py-1",onClick:()=>{c.push(n(t.notice?.path||"notice")),o.value=!1}},[i("components.menu.viewAllNotices","View all notices")])])]),headerExtra:()=>{let r;return e.createVNode(u.NButton,{size:"tiny",quaternary:!0,disabled:!s.value,onClick:f},C(r=i("components.menu.markAllRead","Mark all read"))?r:{default:()=>[r]})}})})}});exports.default=S;
|
|
@@ -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-x-reverse:initial;--un-border-style:solid;--un-divide-opacity:100%;--un-divide-y-reverse:initial;--un-shadow-opacity:100%;--un-border-opacity:100%;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-to-opacity:100%;--un-ease:initial;--un-fill-opacity:100%;--un-outline-style:solid;--un-space-y-reverse:initial;}}
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as k, computed as d, ref as C, createVNode as t, Fragment as F, isVNode as S } from "vue";
|
|
2
2
|
import { useI18n as z, useManage as B, useList as M, useCustomMutation as R } from "@duxweb/dvha-core";
|
|
3
|
-
import { NPopover as
|
|
3
|
+
import { NPopover as D, NButton as u, NSpin as _, NTooltip as j, NBadge as A } from "naive-ui";
|
|
4
4
|
import { useRouter as L } from "vue-router";
|
|
5
5
|
import { DuxCard as O } from "../../components/card/card.js";
|
|
6
6
|
import "clsx";
|
|
@@ -100,7 +100,7 @@ const Kt = /* @__PURE__ */ k({
|
|
|
100
100
|
}), l = d(() => f.value?.data || []), s = d(() => l.value.some((e) => !e[o.notice?.readField || "read"])), r = C(!1), g = (e) => {
|
|
101
101
|
p({
|
|
102
102
|
payload: {
|
|
103
|
-
type: "
|
|
103
|
+
type: "read",
|
|
104
104
|
id: e.id
|
|
105
105
|
}
|
|
106
106
|
}), r.value = !1;
|
|
@@ -111,7 +111,7 @@ const Kt = /* @__PURE__ */ k({
|
|
|
111
111
|
}
|
|
112
112
|
}), r.value = !1;
|
|
113
113
|
};
|
|
114
|
-
return () => t(
|
|
114
|
+
return () => t(D, {
|
|
115
115
|
trigger: "click",
|
|
116
116
|
arrowClass: "ml-2.5",
|
|
117
117
|
placement: "bottom-start",
|
|
@@ -148,7 +148,7 @@ const Kt = /* @__PURE__ */ k({
|
|
|
148
148
|
contentSize: "none",
|
|
149
149
|
title: i("components.menu.notice", "Notice")
|
|
150
150
|
}, {
|
|
151
|
-
default: () => t(F, null, [t(
|
|
151
|
+
default: () => t(F, null, [t(_, {
|
|
152
152
|
show: v.value
|
|
153
153
|
}, {
|
|
154
154
|
default: () => [l.value.length > 0 ? t("div", {
|
|
@@ -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-x-reverse:initial;--un-border-style:solid;--un-divide-opacity:100%;--un-divide-y-reverse:initial;--un-shadow-opacity:100%;--un-border-opacity:100%;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-to-opacity:100%;--un-ease:initial;--un-fill-opacity:100%;--un-outline-style:solid;--un-space-y-reverse:initial;}}
|
|
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.51",
|
|
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.51",
|
|
37
|
+
"@duxweb/dvha-naiveui": "^1.0.51",
|
|
38
38
|
"@iconify-json/tabler": "^1.2.18",
|
|
39
39
|
"@overlastic/vue": "^0.8.1",
|
|
40
40
|
"@tanstack/vue-query": "^5.80.7",
|