@duxweb/dvha-core 1.0.48 → 1.0.49
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"),i=require("vue-router");require("pinia");require("lodash-es");const c=require("../../hooks/manage.cjs");require("@tanstack/vue-query");require("json-2-csv");require("@vee-validate/rules");require("vee-validate");require("@vueuse/core");require("../../hooks/json/index.cjs");require("../../utils/bus.cjs");require("@overlastic/vue");require("clsx");require("colorizr");require("axios");const a=e.defineComponent({name:"DuxException",setup(l,{slots:o}){const r=e.ref(null),u=i.useRoute(),{config:n}=c.useManage();return e.onErrorCaptured(t=>(console.error(t),u.name?r.value={title:"500",desc:t?.message||"Internal Server Error"}:r.value={title:"404",desc:"Page not found"},!1)),()=>r.value?n.components?.exception?e.h(n.components.exception,{data:r.value}):e.createVNode("div",null,[e.createVNode("h1",null,[r.value?.title||"Unknown"]),e.createVNode("p",null,[r.value?.desc||"Unknown Description"]),e.createVNode("p",null,[e.createTextVNode("Use config.components.exception to configure the exception layout")])]):o.default?.()}});exports.DuxException=a;
|
|
@@ -1,20 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as i, ref as m, onErrorCaptured as l, h as u, createVNode as o, createTextVNode as a } from "vue";
|
|
2
|
+
import { useRoute as c } from "vue-router";
|
|
3
|
+
import "pinia";
|
|
4
|
+
import "lodash-es";
|
|
5
|
+
import { useManage as s } from "../../hooks/manage.js";
|
|
6
|
+
import "@tanstack/vue-query";
|
|
7
|
+
import "json-2-csv";
|
|
8
|
+
import "@vee-validate/rules";
|
|
9
|
+
import "vee-validate";
|
|
10
|
+
import "@vueuse/core";
|
|
11
|
+
import "../../hooks/json/index.js";
|
|
12
|
+
import "../../utils/bus.js";
|
|
13
|
+
import "@overlastic/vue";
|
|
14
|
+
import "clsx";
|
|
15
|
+
import "colorizr";
|
|
16
|
+
import "axios";
|
|
17
|
+
const P = /* @__PURE__ */ i({
|
|
4
18
|
name: "DuxException",
|
|
5
|
-
setup(
|
|
6
|
-
slots:
|
|
19
|
+
setup(d, {
|
|
20
|
+
slots: r
|
|
7
21
|
}) {
|
|
8
|
-
const e =
|
|
9
|
-
|
|
22
|
+
const e = m(null), p = c(), {
|
|
23
|
+
config: t
|
|
24
|
+
} = s();
|
|
25
|
+
return l((n) => (console.error(n), p.name ? e.value = {
|
|
10
26
|
title: "500",
|
|
11
|
-
desc:
|
|
27
|
+
desc: n?.message || "Internal Server Error"
|
|
12
28
|
} : e.value = {
|
|
13
29
|
title: "404",
|
|
14
30
|
desc: "Page not found"
|
|
15
|
-
}, !1)), () => e.value ?
|
|
31
|
+
}, !1)), () => e.value ? t.components?.exception ? u(t.components.exception, {
|
|
32
|
+
data: e.value
|
|
33
|
+
}) : o("div", null, [o("h1", null, [e.value?.title || "Unknown"]), o("p", null, [e.value?.desc || "Unknown Description"]), o("p", null, [a("Use config.components.exception to configure the exception layout")])]) : r.default?.();
|
|
16
34
|
}
|
|
17
35
|
});
|
|
18
36
|
export {
|
|
19
|
-
|
|
37
|
+
P as DuxException
|
|
20
38
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export declare const DuxException: import("vue").DefineComponent<{}, () => import("vue
|
|
1
|
+
export declare const DuxException: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
4
|
[key: string]: any;
|
|
3
5
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|