asai-vue-host 0.2.52 → 0.2.53
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/AsPageBusy-B_7qKMBg.mjs +49 -0
- package/dist/AsPageBusyGif-BeO4ftmK.mjs +64 -0
- package/dist/AsReset-BwIfbGYA.mjs +49 -0
- package/dist/AsSvg-CJmt5E9y.mjs +78 -0
- package/dist/{Asai404-ZPZLSOhw.mjs → Asai404-Bdx9YM-5.mjs} +1 -1
- package/dist/AsaiComponent-kBTWtDn_.mjs +14 -0
- package/dist/AsaiInitPage-DgXqvFU2.mjs +123 -0
- package/dist/AsaiWebItemDefault-DmogFxYv.mjs +38 -0
- package/dist/AsaiWebItemIndex-BJu3WSmh.mjs +20 -0
- package/dist/AsaiWebModule-CpUCjy9U.mjs +30 -0
- package/dist/AsaiWebModuleDefault-GaNtfrAV.mjs +43 -0
- package/dist/AsaiWebModuleIndex-DAM6AsNG.mjs +28 -0
- package/dist/AsaiWebServer-DiONV5Ko.mjs +23 -0
- package/dist/AsaiWebServerNode-DGw4XSsC.mjs +34 -0
- package/dist/AsaiWebServerUser-D5LFY5_v.mjs +34 -0
- package/dist/AsaiWebServerUserOnline-HH2IjFtz.mjs +34 -0
- package/dist/MenuShowFix-BVvpPnyn.mjs +59 -0
- package/dist/PageErr-yoa4-vee.mjs +38 -0
- package/dist/PageLoadClient-p3m-9ZT6.mjs +44 -0
- package/dist/PageLoadErr-B9gRqsS7.mjs +35 -0
- package/dist/PageLoadServer-CUq5nJdZ.mjs +33 -0
- package/dist/PageLoadUserToken-B-M2qIWA.mjs +33 -0
- package/dist/PageLoadUserTokenOnline-BXkSpE6U.mjs +33 -0
- package/dist/PageLoadWs-lrg51L6x.mjs +35 -0
- package/dist/RouterMap-MZx9UGoA.mjs +21 -0
- package/dist/RouterView-C6zR7Mtu.mjs +49 -0
- package/dist/VirtualList-BZLMdQuR.mjs +111 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/asai-vue-host.es.js +808 -2
- package/dist/asai-vue-host.umd.js +3 -7
- package/dist/components/asengine/common/As.d.ts +1 -1
- package/dist/components/asengine/common/AsRouter.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-DJ7AFE2S.mjs +0 -1919
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as g, useCssVars as m, computed as v, resolveComponent as f, resolveDirective as b, withDirectives as x, createCommentVNode as i, unref as s, createElementBlock as u, openBlock as r, createElementVNode as p, withModifiers as B, createVNode as k, toDisplayString as C } from "vue";
|
|
2
|
+
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const j = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "as-pagebusy-area touch-none"
|
|
6
|
+
}, A = { class: "as-pagebusy" }, w = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "as-pagebusy-v"
|
|
9
|
+
}, P = /* @__PURE__ */ g({
|
|
10
|
+
__name: "AsPageBusy",
|
|
11
|
+
props: {
|
|
12
|
+
ujt: {}
|
|
13
|
+
},
|
|
14
|
+
setup(t) {
|
|
15
|
+
m((d) => ({
|
|
16
|
+
v2189716e: n.value
|
|
17
|
+
}));
|
|
18
|
+
const l = t, { $global: e, $fn: o } = l.ujt, n = v(() => e.pagebusy?.zindex || 9999);
|
|
19
|
+
function a() {
|
|
20
|
+
o.popConfirm({
|
|
21
|
+
con: e.lang.asai.resetconfirm,
|
|
22
|
+
zindex: n.value + 1,
|
|
23
|
+
fn: () => {
|
|
24
|
+
e.pagebusy = null, o.As.localInit();
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return (d, c) => {
|
|
29
|
+
const y = f("AsPageBusyGif"), _ = b("dbpointerdown");
|
|
30
|
+
return s(e).pagebusy ? x((r(), u("div", j, [
|
|
31
|
+
p("div", {
|
|
32
|
+
class: "as-pagebusy-close",
|
|
33
|
+
onClick: c[0] || (c[0] = B((V) => a(), ["stop"]))
|
|
34
|
+
}),
|
|
35
|
+
p("div", A, [
|
|
36
|
+
k(y, { ujt: t.ujt }, null, 8, ["ujt"]),
|
|
37
|
+
s(e).pagebusy?.v ? (r(), u("div", w, C(s(e).pagebusy?.v), 1)) : i("", !0)
|
|
38
|
+
])
|
|
39
|
+
])), [
|
|
40
|
+
[_, () => {
|
|
41
|
+
s(e).pagebusy?.keep || a();
|
|
42
|
+
}]
|
|
43
|
+
]) : i("", !0);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}), $ = /* @__PURE__ */ h(P, [["__scopeId", "data-v-3b86e9a1"]]);
|
|
47
|
+
export {
|
|
48
|
+
$ as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as c, createElementBlock as l, openBlock as t, normalizeStyle as o, createStaticVNode as n, createBlock as i, unref as s } from "vue";
|
|
2
|
+
import { _ as u } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const f = /* @__PURE__ */ c({
|
|
4
|
+
__name: "AsLoadingCircle",
|
|
5
|
+
props: {
|
|
6
|
+
ujt: {
|
|
7
|
+
type: Object,
|
|
8
|
+
default: () => ({})
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
type: Number,
|
|
12
|
+
default: 68,
|
|
13
|
+
validator: (e) => e > 0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(e) {
|
|
17
|
+
return (d, a) => (t(), l("div", {
|
|
18
|
+
class: "as-load-gif",
|
|
19
|
+
style: o({ width: e.size + "px", height: e.size + "px" })
|
|
20
|
+
}, null, 4));
|
|
21
|
+
}
|
|
22
|
+
}), r = /* @__PURE__ */ u(f, [["__scopeId", "data-v-c5bf2081"]]), v = /* @__PURE__ */ c({
|
|
23
|
+
__name: "AsLoadingA3d",
|
|
24
|
+
props: {
|
|
25
|
+
ujt: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: () => ({})
|
|
28
|
+
},
|
|
29
|
+
size: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: 68,
|
|
32
|
+
validator: (e) => e > 0
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
setup(e) {
|
|
36
|
+
return (d, a) => (t(), l("div", {
|
|
37
|
+
class: "a3d-wrapper",
|
|
38
|
+
style: o({ "--cube-size": `${e.size}px`, "--half-size": `${e.size / 2}px` })
|
|
39
|
+
}, [...a[0] || (a[0] = [
|
|
40
|
+
n('<div class="a3d" data-v-4d1d2b0e><div class="a3d-face a3d-face-front" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-back" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-left" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-right" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-top" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-bottom" data-v-4d1d2b0e></div></div>', 1)
|
|
41
|
+
])], 4));
|
|
42
|
+
}
|
|
43
|
+
}), p = /* @__PURE__ */ u(v, [["__scopeId", "data-v-4d1d2b0e"]]), g = /* @__PURE__ */ c({
|
|
44
|
+
__name: "AsPageBusyGif",
|
|
45
|
+
props: {
|
|
46
|
+
ujt: {},
|
|
47
|
+
opt: {}
|
|
48
|
+
},
|
|
49
|
+
setup(e) {
|
|
50
|
+
const d = e, { $global: a } = d.ujt;
|
|
51
|
+
return (b, z) => e.opt?.ty || s(a).pagebusy?.ty ? (t(), i(p, {
|
|
52
|
+
key: 0,
|
|
53
|
+
size: e.opt?.size || s(a).pagebusy?.size,
|
|
54
|
+
ujt: e.ujt
|
|
55
|
+
}, null, 8, ["size", "ujt"])) : (t(), i(r, {
|
|
56
|
+
key: 1,
|
|
57
|
+
size: e.opt?.size || s(a).pagebusy?.size,
|
|
58
|
+
ujt: e.ujt
|
|
59
|
+
}, null, 8, ["size", "ujt"]));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
g as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as g, resolveComponent as v, renderSlot as f, createElementBlock as _, createCommentVNode as k, unref as e, openBlock as x, createElementVNode as n, createVNode as a, createTextVNode as c, toDisplayString as i } from "vue";
|
|
2
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const C = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "as-usercard"
|
|
6
|
+
}, $ = /* @__PURE__ */ g({
|
|
7
|
+
__name: "AsReset",
|
|
8
|
+
props: {
|
|
9
|
+
ujt: {},
|
|
10
|
+
type: {}
|
|
11
|
+
},
|
|
12
|
+
setup(l) {
|
|
13
|
+
const p = l, { $fn: s, $global: o } = p.ujt, d = {};
|
|
14
|
+
return (u, t) => {
|
|
15
|
+
const r = v("AsSvg");
|
|
16
|
+
return f(u.$slots, "default", {
|
|
17
|
+
item: {},
|
|
18
|
+
option: d
|
|
19
|
+
}, () => [
|
|
20
|
+
e(o).lang?.asai?.usercard ? (x(), _("div", C, [
|
|
21
|
+
n("div", {
|
|
22
|
+
onClick: t[0] || (t[0] = (m) => e(s).login())
|
|
23
|
+
}, [
|
|
24
|
+
a(r, {
|
|
25
|
+
color: "var(--cu6)",
|
|
26
|
+
height: "26px",
|
|
27
|
+
src: "asai/login"
|
|
28
|
+
}),
|
|
29
|
+
c(" " + i(e(o).lang.asai.usercard?.login), 1)
|
|
30
|
+
]),
|
|
31
|
+
n("div", {
|
|
32
|
+
onClick: t[1] || (t[1] = (m) => e(s).As.localInit()),
|
|
33
|
+
title: "ctrl+shift+r"
|
|
34
|
+
}, [
|
|
35
|
+
a(r, {
|
|
36
|
+
color: "var(--cu6)",
|
|
37
|
+
height: "26px",
|
|
38
|
+
src: "asai/reset"
|
|
39
|
+
}),
|
|
40
|
+
c(" " + i(e(o).lang.asai.usercard?.reset), 1)
|
|
41
|
+
])
|
|
42
|
+
])) : k("", !0)
|
|
43
|
+
], !0);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}), V = /* @__PURE__ */ A($, [["__scopeId", "data-v-a12ce8ac"]]);
|
|
47
|
+
export {
|
|
48
|
+
V as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as u, ref as f, computed as g, createElementBlock as s, openBlock as o, createElementVNode as p, normalizeStyle as a } from "vue";
|
|
2
|
+
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const m = { class: "as-icon" }, y = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "as-icon-filter"
|
|
6
|
+
}, v = ["src"], S = /* @__PURE__ */ u({
|
|
7
|
+
__name: "AsSvg",
|
|
8
|
+
props: {
|
|
9
|
+
src: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
height: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "24px"
|
|
16
|
+
},
|
|
17
|
+
width: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
color: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "var(--cv8)"
|
|
24
|
+
},
|
|
25
|
+
showtype: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "mask"
|
|
28
|
+
},
|
|
29
|
+
webty: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
setup(i) {
|
|
35
|
+
const t = i, n = window?.$CFG?.webpath || "./";
|
|
36
|
+
let e = f("");
|
|
37
|
+
const r = g(() => e.value ? n + "webmodel/files/" + (t.webty ?? +t.webty + "/") + "svg/" + e.value + ".svg" : t.src.startsWith("http") || t.src.endsWith(".svg") || t.src.endsWith(".png") ? t.src : n + "webmodel/files/" + (t.webty ?? +t.webty + "/") + "svg/" + t.src + ".svg");
|
|
38
|
+
function c() {
|
|
39
|
+
e.value = "default";
|
|
40
|
+
}
|
|
41
|
+
function h() {
|
|
42
|
+
return {
|
|
43
|
+
width: `${t.width ? t.width : t.height}`,
|
|
44
|
+
height: `${t.height ? t.height : t.width}`,
|
|
45
|
+
"background-color": `${t.color}`,
|
|
46
|
+
"mask-image": `url('${r.value}')`,
|
|
47
|
+
"-webkit-mask-image": `url('${r.value}')`
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function d() {
|
|
51
|
+
return t.width ? {
|
|
52
|
+
transform: "translateX(-100%)",
|
|
53
|
+
filter: `drop-shadow(${t.width} 0 ${t.color})`,
|
|
54
|
+
width: `${t.width}`
|
|
55
|
+
} : {
|
|
56
|
+
transform: "translateY(-100%)",
|
|
57
|
+
filter: `drop-shadow(0 ${t.height} ${t.color})`,
|
|
58
|
+
height: `${t.height}`
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
return (_, l) => (o(), s("i", m, [
|
|
62
|
+
i.showtype === "filter" ? (o(), s("i", y, [
|
|
63
|
+
p("img", {
|
|
64
|
+
style: a(d()),
|
|
65
|
+
src: r.value,
|
|
66
|
+
onError: l[0] || (l[0] = ($) => c())
|
|
67
|
+
}, null, 44, v)
|
|
68
|
+
])) : (o(), s("i", {
|
|
69
|
+
key: 1,
|
|
70
|
+
class: "as-icon-mask",
|
|
71
|
+
style: a(h())
|
|
72
|
+
}, null, 4))
|
|
73
|
+
]));
|
|
74
|
+
}
|
|
75
|
+
}), x = /* @__PURE__ */ w(S, [["__scopeId", "data-v-d9bafe22"]]);
|
|
76
|
+
export {
|
|
77
|
+
x as default
|
|
78
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as p, createElementBlock as n, openBlock as c, createElementVNode as e, createCommentVNode as _, unref as o, toDisplayString as r, createVNode as m } from "vue";
|
|
2
|
-
import { _ as u } from "./
|
|
2
|
+
import { _ as u } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
3
|
const g = { class: "page-404" }, f = { class: "content" }, v = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "title"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineComponent as c, computed as r, createBlock as s, openBlock as l, resolveDynamicComponent as u } from "vue";
|
|
2
|
+
const i = /* @__PURE__ */ c({
|
|
3
|
+
__name: "AsaiComponent",
|
|
4
|
+
props: {
|
|
5
|
+
ujt: {}
|
|
6
|
+
},
|
|
7
|
+
setup(e) {
|
|
8
|
+
const n = e, { $model: o, $global: t } = n.ujt, a = r(() => o.appmodules.indexRouters[(o?.webmodels?.includes(t.location?.hasharr?.[0]) ? t.location?.hasharr?.[0] : "") || o?.webmodels?.[0]]);
|
|
9
|
+
return (m, p) => (l(), s(u(a.value), { ujt: e.ujt }, null, 8, ["ujt"]));
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
i as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { defineComponent as E, inject as W, computed as S, reactive as k, onMounted as C, onBeforeUnmount as U, resolveComponent as f, createElementBlock as v, createBlock as u, unref as d, openBlock as c, Fragment as O, resolveDynamicComponent as $ } from "vue";
|
|
2
|
+
const L = /* @__PURE__ */ E({
|
|
3
|
+
__name: "AsaiInitPage",
|
|
4
|
+
props: {
|
|
5
|
+
appmodules: {},
|
|
6
|
+
ujt: {}
|
|
7
|
+
},
|
|
8
|
+
setup(i) {
|
|
9
|
+
const a = i, g = W("$vueProxy"), { $global: r, $fn: s, $model: b, $ws: y } = a.ujt;
|
|
10
|
+
b.appmodules = a.appmodules;
|
|
11
|
+
function m() {
|
|
12
|
+
let e = s.As?.localGet("as-user-code");
|
|
13
|
+
e && (e = s.As.toObj(e), r.code.pri = e[0], r.code.pub = e[1]), r.code.pri && s.As.localGet("as-user-info") && (r.user.info = s.As.toObj(
|
|
14
|
+
s.AsAES.dec(s.As.localGet("as-user-info"))
|
|
15
|
+
)), s.inittoken();
|
|
16
|
+
}
|
|
17
|
+
function w() {
|
|
18
|
+
r?.sys?.onwebws && s.ws.web.wsWatch(
|
|
19
|
+
{ ty: "publish/web" },
|
|
20
|
+
(e) => {
|
|
21
|
+
e?.db?.exit && s.exit(), e?.db?.lang && (e.db.langpm ? e.db.con = s.lg("asai.hostmsg." + e.db.lang, e.db.langpm) || e.db.con : e.db.con = s.lg("asai.hostmsg." + e.db.lang) || e.db.con), e?.db === "pong" ? s.ws.web.wsApi("ping").then((n) => {
|
|
22
|
+
}) : e?.db?.bs ? j(e.db.bs) : e?.db?.con && r.msg.fn(e.db);
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function j(e) {
|
|
27
|
+
if (Array.isArray(e) && e[0]?.[0])
|
|
28
|
+
try {
|
|
29
|
+
e.forEach((n) => {
|
|
30
|
+
s.As.setObjValByPath(y.wssys, n[0], n[1]);
|
|
31
|
+
});
|
|
32
|
+
} catch {
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
r.rlv = S(() => !r.location.hash || r.location.hash == "/" || r.sys?.router?.rights?.lv0?.find(
|
|
36
|
+
(e) => r.location.hash.includes(e)
|
|
37
|
+
) ? 0 : r.sys?.router?.rights?.lv1?.find(
|
|
38
|
+
(e) => r.location.hash.includes(e)
|
|
39
|
+
) ? 1 : r.sys?.router?.rights?.lv2?.find(
|
|
40
|
+
(e) => r.location.hash.includes(e)
|
|
41
|
+
) ? 2 : r.sys?.router?.rights?.lv3?.find(
|
|
42
|
+
(e) => r.location.hash.includes(e)
|
|
43
|
+
) ? 3 : r.sys?.router?.config?.lv);
|
|
44
|
+
function h(e, n) {
|
|
45
|
+
try {
|
|
46
|
+
console.error(n + " Error:", e);
|
|
47
|
+
let t = "";
|
|
48
|
+
e?.error?.stack && typeof e?.error?.stack == "string" ? t = e.error.stack : e?.error?.message && typeof e?.error?.message == "string" ? t = e.error.message : e?.message && typeof e?.message == "string" ? t = e.message : e?.reason?.message && typeof e?.reason?.message == "string" ? t = e.reason.message : e?.reason && typeof e?.reason == "string" ? t = e.reason : e && typeof e == "string" && (t = e), t && (t = "Web " + n + ` Error:
|
|
49
|
+
` + t, console.error(t), s.$log(t), r?.msg?.fn?.({
|
|
50
|
+
type: "err",
|
|
51
|
+
con: t
|
|
52
|
+
})), e.preventDefault();
|
|
53
|
+
} catch (t) {
|
|
54
|
+
console.error("Try Error:", t);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const o = k({
|
|
58
|
+
catchErrorUnhandledrejection: null,
|
|
59
|
+
catchErrorCatch: null
|
|
60
|
+
});
|
|
61
|
+
return C(() => {
|
|
62
|
+
s.initweb(g).then(() => {
|
|
63
|
+
let e = [];
|
|
64
|
+
if (s?.useApi?.(a.ujt, "web"), r?.sys?.tyrobot && (s.useApi(a.ujt, r.sys.tyrobot), s.useWs(a.ujt, r.sys.tyrobot)), m(), r?.sys?.onwebws && (s.useWs(a.ujt, "web"), e.push(
|
|
65
|
+
s.ws.web.init().then(() => {
|
|
66
|
+
w();
|
|
67
|
+
})
|
|
68
|
+
)), r?.sys?.local?.lang || e.push(
|
|
69
|
+
s.initmodel("/sys/setting/settinglang.json").then((n) => {
|
|
70
|
+
typeof n?.data == "string" ? r.config.langcur = JSON.parse(
|
|
71
|
+
n?.data || "{}"
|
|
72
|
+
)?.lang : r.config.langcur = (n?.data || {})?.lang;
|
|
73
|
+
})
|
|
74
|
+
), r?.sys?.aes?.lv && !r.sys.aesfns && s.AsaiVueAES?.useAES) {
|
|
75
|
+
const { toAES: n, fromAES: t } = s.AsaiVueAES.useAES(a.ujt);
|
|
76
|
+
r.sys.aesfns = { allaes: r.sys.aes.lv > 1, toAES: n, fromAES: t };
|
|
77
|
+
}
|
|
78
|
+
Promise.all(e).then(() => {
|
|
79
|
+
s.changelang(r.config.langcur).then((n) => {
|
|
80
|
+
!window?.$CFG?.title && r.lang.configweb?.webtit && (document.title = r.lang.configweb?.webtit), r.stat.webclient = 1, r.sys.catcherror && (o.catchErrorUnhandledrejection = (l) => {
|
|
81
|
+
h(l, "Unhandledrejection");
|
|
82
|
+
}, window?.addEventListener?.(
|
|
83
|
+
"unhandledrejection",
|
|
84
|
+
o.catchErrorUnhandledrejection
|
|
85
|
+
), o.catchErrorCatch = (l) => {
|
|
86
|
+
h(l, "Catch");
|
|
87
|
+
}, window?.addEventListener?.("error", o.catchErrorCatch));
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
}), U(() => {
|
|
92
|
+
s.offweb(), r.sys.catcherror && (o.catchErrorUnhandledrejection && (window.removeEventListener(
|
|
93
|
+
"unhandledrejection",
|
|
94
|
+
o.catchErrorUnhandledrejection
|
|
95
|
+
), o.catchErrorUnhandledrejection = null), o.catchErrorCatch && (window.removeEventListener("error", o.catchErrorCatch), o.catchErrorCatch = null)), r?.sys?.onwebws || s.ws.web.wsWatchOff({
|
|
96
|
+
ty: "publish/web"
|
|
97
|
+
});
|
|
98
|
+
}), (e, n) => {
|
|
99
|
+
const t = f("AsaiWebServer"), l = f("AsaiWebServerNode"), p = f("AsaiWebServerUser"), A = f("AsaiWebServerUserOnline");
|
|
100
|
+
return d(r).stat.webclient ? (c(), v(O, { key: 0 }, [
|
|
101
|
+
d(r).rlv === 0 ? (c(), u(t, {
|
|
102
|
+
key: 0,
|
|
103
|
+
ujt: i.ujt
|
|
104
|
+
}, null, 8, ["ujt"])) : d(r).rlv === 1 ? (c(), u(l, {
|
|
105
|
+
key: 1,
|
|
106
|
+
ujt: i.ujt
|
|
107
|
+
}, null, 8, ["ujt"])) : d(r).rlv === 2 ? (c(), u(p, {
|
|
108
|
+
key: 2,
|
|
109
|
+
ujt: i.ujt
|
|
110
|
+
}, null, 8, ["ujt"])) : (c(), u(A, {
|
|
111
|
+
key: 3,
|
|
112
|
+
ujt: i.ujt
|
|
113
|
+
}, null, 8, ["ujt"]))
|
|
114
|
+
], 64)) : (c(), u($("PageLoadClient"), {
|
|
115
|
+
key: 1,
|
|
116
|
+
ujt: i.ujt
|
|
117
|
+
}, null, 8, ["ujt"]));
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
export {
|
|
122
|
+
L as default
|
|
123
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as d, computed as _, resolveComponent as m, createElementBlock as n, openBlock as a, createElementVNode as t, unref as u, Fragment as h, renderList as v, normalizeClass as f, toDisplayString as g, createVNode as j } from "vue";
|
|
2
|
+
const $ = { class: "app-area" }, y = { class: "app-logo" }, b = ["src"], k = { class: "app-menu-area" }, x = ["onPointerup"], A = { class: "menu-text" }, C = { class: "app-login" }, E = /* @__PURE__ */ d({
|
|
3
|
+
__name: "AsaiWebItemDefault",
|
|
4
|
+
props: {
|
|
5
|
+
ujt: {}
|
|
6
|
+
},
|
|
7
|
+
setup(l) {
|
|
8
|
+
const c = l, { $global: s, $fn: r } = c.ujt, p = _(() => s.url?.[s.module.value]?.filter(
|
|
9
|
+
(o) => o.type === "module" || ("/" + o.value + "/").startsWith(s.location.hash)
|
|
10
|
+
) || []);
|
|
11
|
+
return (o, w) => {
|
|
12
|
+
const i = m("AsReset");
|
|
13
|
+
return a(), n("div", $, [
|
|
14
|
+
t("div", y, [
|
|
15
|
+
t("img", {
|
|
16
|
+
src: u(s).$cfg.logo,
|
|
17
|
+
width: "200"
|
|
18
|
+
}, null, 8, b)
|
|
19
|
+
]),
|
|
20
|
+
t("div", k, [
|
|
21
|
+
(a(!0), n(h, null, v(p.value, (e) => (a(), n("div", {
|
|
22
|
+
class: f(`app-menu${e.type === "module" ? " module" : ""}`),
|
|
23
|
+
key: e.value,
|
|
24
|
+
onPointerup: (B) => u(r).sethash(e.value === "views" ? "" : e.value)
|
|
25
|
+
}, [
|
|
26
|
+
t("span", A, g(e.label), 1)
|
|
27
|
+
], 42, x))), 128))
|
|
28
|
+
]),
|
|
29
|
+
t("div", C, [
|
|
30
|
+
j(i, { ujt: l.ujt }, null, 8, ["ujt"])
|
|
31
|
+
])
|
|
32
|
+
]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
E as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent as o, resolveComponent as n, createBlock as r, openBlock as u } from "vue";
|
|
2
|
+
const p = /* @__PURE__ */ o({
|
|
3
|
+
__name: "AsaiWebItemIndex",
|
|
4
|
+
props: {
|
|
5
|
+
ujt: {},
|
|
6
|
+
ty: {}
|
|
7
|
+
},
|
|
8
|
+
setup(e) {
|
|
9
|
+
return (c, m) => {
|
|
10
|
+
const t = n("RouterView");
|
|
11
|
+
return u(), r(t, {
|
|
12
|
+
ujt: e.ujt,
|
|
13
|
+
ty: e.ty || 2
|
|
14
|
+
}, null, 8, ["ujt", "ty"]);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
p as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as c, resolveComponent as d, createBlock as l, createCommentVNode as i, unref as n, openBlock as a, resolveDynamicComponent as j } from "vue";
|
|
2
|
+
const y = /* @__PURE__ */ c({
|
|
3
|
+
__name: "AsaiWebModule",
|
|
4
|
+
props: {
|
|
5
|
+
ujt: {},
|
|
6
|
+
module: {},
|
|
7
|
+
ty: {}
|
|
8
|
+
},
|
|
9
|
+
setup(u) {
|
|
10
|
+
const t = u, { $global: e, $fn: o } = t.ujt;
|
|
11
|
+
Object.assign(e.module, t.module), t.module?.ws && o.useWs(t.ujt, e.module.value);
|
|
12
|
+
const { initAppModel: m } = o.useInitApp(t.ujt);
|
|
13
|
+
return e.stat[e.module.value] = 0, m(e.module.value).then((s) => {
|
|
14
|
+
e.stat[e.module.value] = 1;
|
|
15
|
+
}), (s, p) => {
|
|
16
|
+
const r = d("RouterView");
|
|
17
|
+
return t.module?.value && n(e).stat[t.module.value] ? (a(), l(r, {
|
|
18
|
+
key: 0,
|
|
19
|
+
ujt: u.ujt,
|
|
20
|
+
ty: u.ty || 0
|
|
21
|
+
}, null, 8, ["ujt", "ty"])) : n(e).pagebusy ? i("", !0) : (a(), l(j("PageLoadErr"), {
|
|
22
|
+
key: 1,
|
|
23
|
+
ujt: u.ujt
|
|
24
|
+
}, null, 8, ["ujt"]));
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
y as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as m, resolveComponent as c, createElementBlock as l, openBlock as u, Fragment as r, createVNode as i, createElementVNode as e, unref as t, renderList as v, normalizeClass as h, toDisplayString as f } from "vue";
|
|
2
|
+
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const j = { class: "app-area" }, b = { class: "app-logo" }, x = ["src"], $ = { class: "app-menu-area" }, w = ["onPointerup"], A = { class: "menu-text" }, M = { class: "app-login" }, k = /* @__PURE__ */ m({
|
|
4
|
+
__name: "AsaiWebModuleDefault",
|
|
5
|
+
props: {
|
|
6
|
+
ujt: {}
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
const d = n, { $global: o, $fn: a } = d.ujt;
|
|
10
|
+
return a.initrouter(), (y, C) => {
|
|
11
|
+
const p = c("MenuShowFix"), _ = c("AsReset");
|
|
12
|
+
return u(), l(r, null, [
|
|
13
|
+
i(p, {
|
|
14
|
+
ujt: n.ujt,
|
|
15
|
+
menus: t(o).url[t(o).module.value]
|
|
16
|
+
}, null, 8, ["ujt", "menus"]),
|
|
17
|
+
e("div", j, [
|
|
18
|
+
e("div", b, [
|
|
19
|
+
e("img", {
|
|
20
|
+
src: t(o).$cfg.logo,
|
|
21
|
+
width: "200"
|
|
22
|
+
}, null, 8, x)
|
|
23
|
+
]),
|
|
24
|
+
e("div", $, [
|
|
25
|
+
(u(!0), l(r, null, v(t(o).url[t(o).module.value], (s) => (u(), l("div", {
|
|
26
|
+
class: h(`app-menu${s.type === "module" ? " module" : ""}`),
|
|
27
|
+
key: s.value,
|
|
28
|
+
onPointerup: (D) => t(a).sethash(s.value === "views" ? "" : s.value)
|
|
29
|
+
}, [
|
|
30
|
+
e("span", A, f(s.label), 1)
|
|
31
|
+
], 42, w))), 128))
|
|
32
|
+
]),
|
|
33
|
+
e("div", M, [
|
|
34
|
+
i(_, { ujt: n.ujt }, null, 8, ["ujt"])
|
|
35
|
+
])
|
|
36
|
+
])
|
|
37
|
+
], 64);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}), B = /* @__PURE__ */ g(k, [["__scopeId", "data-v-bba548d2"]]);
|
|
41
|
+
export {
|
|
42
|
+
B as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as a, resolveComponent as o, createElementBlock as s, openBlock as u, Fragment as i, createVNode as d, createBlock as j, createCommentVNode as f, unref as n } from "vue";
|
|
2
|
+
const k = /* @__PURE__ */ a({
|
|
3
|
+
__name: "AsaiWebModuleIndex",
|
|
4
|
+
props: {
|
|
5
|
+
ujt: {},
|
|
6
|
+
ty: {}
|
|
7
|
+
},
|
|
8
|
+
setup(e) {
|
|
9
|
+
const l = e, { $global: t, $fn: r } = l.ujt;
|
|
10
|
+
return r.initrouter(), (p, x) => {
|
|
11
|
+
const c = o("MenuShowFix"), m = o("RouterView");
|
|
12
|
+
return u(), s(i, null, [
|
|
13
|
+
d(c, {
|
|
14
|
+
ujt: e.ujt,
|
|
15
|
+
menus: n(t).url[n(t).module.value]
|
|
16
|
+
}, null, 8, ["ujt", "menus"]),
|
|
17
|
+
n(t).stat[n(t).module.value] ? (u(), j(m, {
|
|
18
|
+
key: 0,
|
|
19
|
+
ujt: e.ujt,
|
|
20
|
+
ty: e.ty || 1
|
|
21
|
+
}, null, 8, ["ujt", "ty"])) : f("", !0)
|
|
22
|
+
], 64);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
k as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as n, resolveComponent as s, createElementBlock as r, openBlock as c, normalizeClass as i, unref as l, createVNode as p } from "vue";
|
|
2
|
+
import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const u = /* @__PURE__ */ n({
|
|
4
|
+
__name: "AsaiWebServer",
|
|
5
|
+
props: {
|
|
6
|
+
ujt: {}
|
|
7
|
+
},
|
|
8
|
+
setup(e) {
|
|
9
|
+
const o = e, { $global: t } = o.ujt;
|
|
10
|
+
return (_, d) => {
|
|
11
|
+
const a = s("AsaiComponent");
|
|
12
|
+
return c(), r("div", {
|
|
13
|
+
id: "asaiwebserver",
|
|
14
|
+
class: i("asaiweb asaiweb" + (l(t).location?.hasharr?.[0] || "default"))
|
|
15
|
+
}, [
|
|
16
|
+
p(a, { ujt: e.ujt }, null, 8, ["ujt"])
|
|
17
|
+
], 2);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}), v = /* @__PURE__ */ m(u, [["__scopeId", "data-v-7d8d7f46"]]);
|
|
21
|
+
export {
|
|
22
|
+
v as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as u, resolveComponent as i, createElementBlock as m, openBlock as o, normalizeClass as p, unref as t, createBlock as r, createCommentVNode as d, resolveDynamicComponent as j } from "vue";
|
|
2
|
+
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const f = /* @__PURE__ */ u({
|
|
4
|
+
__name: "AsaiWebServerNode",
|
|
5
|
+
props: {
|
|
6
|
+
ujt: {}
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
const a = n, { $fn: s, $global: e } = a.ujt, { initChannelUserToken: c } = s.useChannelUser({
|
|
10
|
+
ujt: a.ujt,
|
|
11
|
+
opt: { channel: e?.sys?.sysdb?.user?.channel || "channeluser" }
|
|
12
|
+
});
|
|
13
|
+
return c().catch(() => {
|
|
14
|
+
s.login();
|
|
15
|
+
}), (h, C) => {
|
|
16
|
+
const l = i("AsaiComponent");
|
|
17
|
+
return o(), m("div", {
|
|
18
|
+
id: "asaiwebservernode",
|
|
19
|
+
class: p("asaiweb asaiweb" + t(e).location?.hasharr?.[0])
|
|
20
|
+
}, [
|
|
21
|
+
t(e).code.pub ? (o(), r(l, {
|
|
22
|
+
key: 0,
|
|
23
|
+
ujt: n.ujt
|
|
24
|
+
}, null, 8, ["ujt"])) : t(e).pagebusy ? d("", !0) : (o(), r(j("PageLoadServer"), {
|
|
25
|
+
key: 1,
|
|
26
|
+
ujt: n.ujt
|
|
27
|
+
}, null, 8, ["ujt"]))
|
|
28
|
+
], 2);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}), k = /* @__PURE__ */ b(f, [["__scopeId", "data-v-316455f4"]]);
|
|
32
|
+
export {
|
|
33
|
+
k as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as u, resolveComponent as i, createElementBlock as m, openBlock as o, normalizeClass as p, unref as t, createBlock as r, createCommentVNode as d, resolveDynamicComponent as j } from "vue";
|
|
2
|
+
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const f = /* @__PURE__ */ u({
|
|
4
|
+
__name: "AsaiWebServerUser",
|
|
5
|
+
props: {
|
|
6
|
+
ujt: {}
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
const s = n, { $fn: a, $global: e } = s.ujt, { initChannelUserToken: c } = a.useChannelUser({
|
|
10
|
+
ujt: s.ujt,
|
|
11
|
+
opt: { channel: e?.sys?.sysdb?.user?.channel || "channeluser" }
|
|
12
|
+
});
|
|
13
|
+
return c().catch(() => {
|
|
14
|
+
a.login();
|
|
15
|
+
}), (h, C) => {
|
|
16
|
+
const l = i("AsaiComponent");
|
|
17
|
+
return o(), m("div", {
|
|
18
|
+
id: "asaiwebserveruser",
|
|
19
|
+
class: p("asaiweb asaiweb" + t(e).location?.hasharr?.[0])
|
|
20
|
+
}, [
|
|
21
|
+
t(e).code.token ? (o(), r(l, {
|
|
22
|
+
key: 0,
|
|
23
|
+
ujt: n.ujt
|
|
24
|
+
}, null, 8, ["ujt"])) : t(e).pagebusy ? d("", !0) : (o(), r(j("PageLoadUserToken"), {
|
|
25
|
+
key: 1,
|
|
26
|
+
ujt: n.ujt
|
|
27
|
+
}, null, 8, ["ujt"]))
|
|
28
|
+
], 2);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}), v = /* @__PURE__ */ b(f, [["__scopeId", "data-v-a4bd06af"]]);
|
|
32
|
+
export {
|
|
33
|
+
v as default
|
|
34
|
+
};
|