vuesp-components 2.2.1 → 2.2.2
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/{app-CG8zhRFf.js → app-B45sALrX.js} +35 -30
- package/dist/components/index.es.js +74 -70
- package/dist/components/script/viewDocs/ScriptViewDocs.vue.d.ts.map +1 -1
- package/dist/helpers/app.d.ts.map +1 -1
- package/dist/helpers/index.es.js +1 -1
- package/dist/helpers/web-api.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,56 +4,61 @@ const c = (t) => {
|
|
|
4
4
|
} catch (e) {
|
|
5
5
|
return console.warn(e), t;
|
|
6
6
|
}
|
|
7
|
-
}, i = (t) => typeof t == "object" ? JSON.stringify(t) : t,
|
|
7
|
+
}, i = (t) => typeof t == "object" ? JSON.stringify(t) : t, g = (t) => c(i(t)), h = (t) => {
|
|
8
8
|
const e = ["B", "KB", "MB"];
|
|
9
9
|
if (t == 0) return "0 B";
|
|
10
10
|
let o = Math.floor(Math.log(t) / Math.log(1024));
|
|
11
11
|
return o > 1 && (o = 1), Math.round(t / Math.pow(1024, o)) + " " + e[o];
|
|
12
|
-
}, p = (t, e = { year: "numeric", month: "numeric", day: "numeric" }, o = []) => new Date(t).toLocaleDateString(o, e), S = (t, e = { minute: "2-digit", hour: "2-digit" }, o = []) => new Date(t).toLocaleTimeString(o, e),
|
|
12
|
+
}, p = (t, e = { year: "numeric", month: "numeric", day: "numeric" }, o = []) => new Date(t).toLocaleDateString(o, e), S = (t, e = { minute: "2-digit", hour: "2-digit" }, o = []) => new Date(t).toLocaleTimeString(o, e), s = (t) => t >= 10 ? t : `0${t}`, y = (t) => {
|
|
13
13
|
const e = Math.floor(t % 31536e3 % 2628e3 / 86400), o = Math.floor(t % (3600 * 24) / 3600), n = Math.floor(t % 3600 / 60), u = Math.floor(t % 60);
|
|
14
|
-
return `${e ? e + " days " : ""} ${
|
|
15
|
-
},
|
|
14
|
+
return `${e ? e + " days " : ""} ${s(o)}:${s(n)}:${s(u)}`;
|
|
15
|
+
}, w = (t) => t.join("."), M = (t) => t.split(".").map((e) => +e), T = (t = 6) => [...Array(t)].map(() => "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"[Math.random() * 62 | 0]).join(""), E = (t, e = "file") => {
|
|
16
|
+
if (typeof document > "u") return;
|
|
16
17
|
const o = document.createElement("a");
|
|
17
18
|
o.setAttribute("download", e), o.href = t, document.body.appendChild(o), o.click(), o.remove();
|
|
18
|
-
},
|
|
19
|
+
}, b = (t) => new Promise((e, o) => {
|
|
20
|
+
if (typeof document > "u") {
|
|
21
|
+
o(new Error("Script loading is available only in a browser"));
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
19
24
|
const n = document.createElement("script");
|
|
20
25
|
n.src = t, n.type = "text/javascript", n.async = !0, n.onload = () => e(n), n.onerror = () => o(new Error(`Ошибка загрузки скрипта: ${t}`)), document.head.appendChild(n);
|
|
21
|
-
}),
|
|
26
|
+
}), r = typeof window < "u", a = (t) => (e, o) => o ? c(t.getItem(e)) : t.getItem(e), l = (t) => (e, o) => {
|
|
22
27
|
t.setItem(e, typeof o == "string" ? o : i(o));
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
const e =
|
|
27
|
-
return e ||
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
},
|
|
28
|
+
}, m = r ? a(localStorage) : () => null, d = r ? l(localStorage) : () => {
|
|
29
|
+
}, j = r ? a(sessionStorage) : () => null, L = r ? l(sessionStorage) : () => {
|
|
30
|
+
}, k = (t = "isShow") => {
|
|
31
|
+
const e = m(t);
|
|
32
|
+
return e || d(t, "true"), !e;
|
|
33
|
+
}, B = (t) => {
|
|
34
|
+
d("theme", t), !(typeof document > "u") && (document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(t));
|
|
35
|
+
}, f = (t, e) => {
|
|
31
36
|
if (!t) return null;
|
|
32
37
|
for (const o of t)
|
|
33
38
|
if (!(e === "/" || o.path === "/") && (o.path === e || e.includes(o.path)))
|
|
34
39
|
return o;
|
|
35
40
|
return null;
|
|
36
|
-
},
|
|
41
|
+
}, $ = (t, e) => f(t, e);
|
|
37
42
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
s as a,
|
|
44
|
+
w as b,
|
|
45
|
+
B as c,
|
|
46
|
+
g as d,
|
|
47
|
+
E as e,
|
|
43
48
|
p as f,
|
|
44
|
-
g,
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
f as g,
|
|
50
|
+
$ as h,
|
|
51
|
+
k as i,
|
|
47
52
|
c as j,
|
|
48
53
|
i as k,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
b as l,
|
|
55
|
+
m,
|
|
56
|
+
d as n,
|
|
57
|
+
j as o,
|
|
58
|
+
L as p,
|
|
54
59
|
M as q,
|
|
55
60
|
T as r,
|
|
56
|
-
|
|
61
|
+
y as s,
|
|
57
62
|
S as t,
|
|
58
|
-
|
|
63
|
+
h as u
|
|
59
64
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as S, resolveComponent as
|
|
2
|
-
import { a as lt, V as Ie, i as
|
|
1
|
+
import { defineComponent as S, resolveComponent as Be, openBlock as f, createElementBlock as v, Fragment as I, createCommentVNode as T, createElementVNode as o, normalizeClass as V, createVNode as h, withCtx as y, createBlock as j, renderSlot as k, markRaw as N, computed as M, withModifiers as q, toDisplayString as $, unref as W, TransitionGroup as Le, renderList as R, mergeProps as H, ref as A, watch as re, resolveDynamicComponent as xe, Transition as _e, normalizeStyle as fe, createTextVNode as D, normalizeProps as F, guardReactiveProps as U, onMounted as le, onUnmounted as Me, reactive as Qe, useTemplateRef as Ae, withDirectives as De, vShow as et, vModelText as tt, createSlots as nt, isRef as st } from "vue";
|
|
2
|
+
import { a as lt, V as Ie, i as E, g as je, f as $e, j as ce, k as ot, c as at, h as it, d as se, _ as He, e as Z } from "../VDialog.vue_vue_type_script_setup_true_lang-BLLrcXdW.js";
|
|
3
3
|
import { b as ua, l as ma } from "../VDialog.vue_vue_type_script_setup_true_lang-BLLrcXdW.js";
|
|
4
|
-
import { f as rt, t as ct, g as dt, u as ue, s as ut, d as mt } from "../app-
|
|
4
|
+
import { f as rt, t as ct, g as dt, u as ue, s as ut, d as mt } from "../app-B45sALrX.js";
|
|
5
5
|
import { d as ke, e as ft, o as pt } from "../useDialog-ALG4kFE7.js";
|
|
6
6
|
import { getDataValue as vt } from "../dashboard/index.es.js";
|
|
7
7
|
import { useForm as gt } from "../composables/index.es.js";
|
|
@@ -17,7 +17,7 @@ const yt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
|
|
|
17
17
|
e.isSidebar && l("sidebar", !e.isSidebar);
|
|
18
18
|
};
|
|
19
19
|
return (t, a) => {
|
|
20
|
-
const c =
|
|
20
|
+
const c = Be("router-link");
|
|
21
21
|
return f(), v(I, null, [
|
|
22
22
|
e.isSidebar ? (f(), v("div", {
|
|
23
23
|
key: 0,
|
|
@@ -102,20 +102,20 @@ function Vt(e, n) {
|
|
|
102
102
|
}, null, -1)
|
|
103
103
|
])]);
|
|
104
104
|
}
|
|
105
|
-
const Tt = N({ name: "ri-moon-line", render: Vt }),
|
|
105
|
+
const Tt = N({ name: "ri-moon-line", render: Vt }), Et = {
|
|
106
106
|
viewBox: "0 0 24 24",
|
|
107
107
|
width: "1.2em",
|
|
108
108
|
height: "1.2em"
|
|
109
109
|
};
|
|
110
|
-
function
|
|
111
|
-
return f(), v("svg",
|
|
110
|
+
function Bt(e, n) {
|
|
111
|
+
return f(), v("svg", Et, [...n[0] || (n[0] = [
|
|
112
112
|
o("path", {
|
|
113
113
|
fill: "currentColor",
|
|
114
114
|
d: "M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z"
|
|
115
115
|
}, null, -1)
|
|
116
116
|
])]);
|
|
117
117
|
}
|
|
118
|
-
const Lt = N({ name: "ri-sun-line", render:
|
|
118
|
+
const Lt = N({ name: "ri-sun-line", render: Bt }), Mt = {
|
|
119
119
|
viewBox: "0 0 24 24",
|
|
120
120
|
width: "1.2em",
|
|
121
121
|
height: "1.2em"
|
|
@@ -146,11 +146,11 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
|
|
|
146
146
|
i == 1 && u(), i == 2 && c(m), i == 3 && r();
|
|
147
147
|
};
|
|
148
148
|
return (i, m) => {
|
|
149
|
-
const p = Dt, b =
|
|
149
|
+
const p = Dt, b = Be("router-link"), g = Lt, x = Tt, z = Ne, B = wt, w = Pe;
|
|
150
150
|
return f(), v("header", It, [
|
|
151
151
|
o("div", jt, [
|
|
152
152
|
o("div", Ht, [
|
|
153
|
-
h(
|
|
153
|
+
h(E, {
|
|
154
154
|
type: "icon",
|
|
155
155
|
onClick: a
|
|
156
156
|
}, {
|
|
@@ -170,7 +170,7 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
|
|
|
170
170
|
]),
|
|
171
171
|
m[2] || (m[2] = o("div", { class: "flex-auto" }, null, -1)),
|
|
172
172
|
o("div", Nt, [
|
|
173
|
-
h(
|
|
173
|
+
h(E, {
|
|
174
174
|
type: "icon",
|
|
175
175
|
onClick: u
|
|
176
176
|
}, {
|
|
@@ -180,7 +180,7 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
|
|
|
180
180
|
]),
|
|
181
181
|
_: 1
|
|
182
182
|
}),
|
|
183
|
-
h(
|
|
183
|
+
h(E, {
|
|
184
184
|
type: "icon",
|
|
185
185
|
onClick: c
|
|
186
186
|
}, {
|
|
@@ -194,12 +194,12 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
|
|
|
194
194
|
]),
|
|
195
195
|
_: 1
|
|
196
196
|
}),
|
|
197
|
-
h(
|
|
197
|
+
h(E, {
|
|
198
198
|
type: "icon",
|
|
199
199
|
onClick: q(r, ["prevent"])
|
|
200
200
|
}, {
|
|
201
201
|
default: y(() => [
|
|
202
|
-
h(
|
|
202
|
+
h(B, { class: "size-5" })
|
|
203
203
|
]),
|
|
204
204
|
_: 1
|
|
205
205
|
})
|
|
@@ -211,7 +211,7 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
|
|
|
211
211
|
top: "0"
|
|
212
212
|
}, {
|
|
213
213
|
activator: y(({ on: P }) => [
|
|
214
|
-
h(
|
|
214
|
+
h(E, {
|
|
215
215
|
type: "icon",
|
|
216
216
|
class: "flex",
|
|
217
217
|
onClick: P.click
|
|
@@ -261,7 +261,7 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
|
|
|
261
261
|
o("div", {
|
|
262
262
|
class: V(["absolute left-0 top-0 w-[3px] h-full", a(l.color)])
|
|
263
263
|
}, null, 2),
|
|
264
|
-
h(
|
|
264
|
+
h(E, {
|
|
265
265
|
class: "shrink-0",
|
|
266
266
|
type: "icon",
|
|
267
267
|
onClick: r
|
|
@@ -280,7 +280,7 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
|
|
|
280
280
|
o("div", null, $(l.text), 1),
|
|
281
281
|
o("div", Kt, $(W(rt)(l.date)) + " (" + $(W(ct)(l.date)) + ")", 1)
|
|
282
282
|
]),
|
|
283
|
-
h(
|
|
283
|
+
h(E, {
|
|
284
284
|
class: "shrink-0",
|
|
285
285
|
type: "icon",
|
|
286
286
|
size: "sm",
|
|
@@ -567,7 +567,7 @@ const tn = N({ name: "ri-arrow-right-s-line", render: en }), nn = { class: "mb-4
|
|
|
567
567
|
]);
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
|
-
}), zn = ["onClick"], Vn = { class: "mr-2" }, Tn = { class: "text-sm" },
|
|
570
|
+
}), zn = ["onClick"], Vn = { class: "mr-2" }, Tn = { class: "text-sm" }, En = { class: "text-gray-400 text-xs" }, Bn = {
|
|
571
571
|
key: 0,
|
|
572
572
|
class: "flex justify-center"
|
|
573
573
|
}, Ln = { class: "flex justify-end mt-4" }, Uo = /* @__PURE__ */ S({
|
|
@@ -579,7 +579,7 @@ const tn = N({ name: "ri-arrow-right-s-line", render: en }), nn = { class: "mb-4
|
|
|
579
579
|
setup(e, { emit: n }) {
|
|
580
580
|
const l = n, s = ["OPEN", "WEP", "WPA_PSK", "WPA2_PSK", "WPA_WPA2_PSK", "MAX", "", "NO", "AUTO"], t = (c) => l("select", c), a = (c) => l("scan", c);
|
|
581
581
|
return (c, r) => {
|
|
582
|
-
const u = at, d = $e, i = it, m =
|
|
582
|
+
const u = at, d = $e, i = it, m = E;
|
|
583
583
|
return f(), v("div", null, [
|
|
584
584
|
h(d, {
|
|
585
585
|
items: e.items,
|
|
@@ -595,13 +595,13 @@ const tn = N({ name: "ri-arrow-right-s-line", render: en }), nn = { class: "mb-4
|
|
|
595
595
|
]),
|
|
596
596
|
o("div", null, [
|
|
597
597
|
o("div", Tn, $(p.ssid), 1),
|
|
598
|
-
o("div",
|
|
598
|
+
o("div", En, $(c.$t("security")) + " : " + $(s[p.encryptionType] || "unknown"), 1)
|
|
599
599
|
])
|
|
600
600
|
], 8, zn)
|
|
601
601
|
]),
|
|
602
602
|
_: 1
|
|
603
603
|
}, 8, ["items"]),
|
|
604
|
-
e.items.length ? T("", !0) : (f(), v("div",
|
|
604
|
+
e.items.length ? T("", !0) : (f(), v("div", Bn, [
|
|
605
605
|
h(i, { class: "text-primary" })
|
|
606
606
|
])),
|
|
607
607
|
o("div", Ln, [
|
|
@@ -631,7 +631,7 @@ const tn = N({ name: "ri-arrow-right-s-line", render: en }), nn = { class: "mb-4
|
|
|
631
631
|
return (c = e.locales.find((r) => r.value === a)) == null ? void 0 : c.name;
|
|
632
632
|
};
|
|
633
633
|
return (a, c) => {
|
|
634
|
-
const r = se, u =
|
|
634
|
+
const r = se, u = E;
|
|
635
635
|
return f(), v(I, null, [
|
|
636
636
|
o("div", Mn, [
|
|
637
637
|
o("div", An, $(a.$t("selectLang")), 1),
|
|
@@ -791,7 +791,7 @@ const tn = N({ name: "ri-arrow-right-s-line", render: en }), nn = { class: "mb-4
|
|
|
791
791
|
d && l("update", r, d);
|
|
792
792
|
};
|
|
793
793
|
return (r, u) => {
|
|
794
|
-
const d =
|
|
794
|
+
const d = E;
|
|
795
795
|
return f(), v("div", null, [
|
|
796
796
|
(f(!0), v(I, null, R(s, (i, m) => (f(), v("div", {
|
|
797
797
|
key: m,
|
|
@@ -952,7 +952,7 @@ const os = N({ name: "ri-file-copy2-line", render: ls }), as = { class: "flex-au
|
|
|
952
952
|
onOpen: d
|
|
953
953
|
}, {
|
|
954
954
|
"header-btn": y(() => [
|
|
955
|
-
h(
|
|
955
|
+
h(E, {
|
|
956
956
|
color: "transparent",
|
|
957
957
|
onClick: c
|
|
958
958
|
}, {
|
|
@@ -961,7 +961,7 @@ const os = N({ name: "ri-file-copy2-line", render: ls }), as = { class: "flex-au
|
|
|
961
961
|
]),
|
|
962
962
|
_: 1
|
|
963
963
|
}),
|
|
964
|
-
h(
|
|
964
|
+
h(E, {
|
|
965
965
|
color: "transparent",
|
|
966
966
|
onClick: r
|
|
967
967
|
}, {
|
|
@@ -1040,7 +1040,7 @@ const gs = N({ name: "ri-shut-down-line", render: vs }), hs = { class: "flex jus
|
|
|
1040
1040
|
]),
|
|
1041
1041
|
header: y((d) => [
|
|
1042
1042
|
o("div", hs, [
|
|
1043
|
-
h(
|
|
1043
|
+
h(E, H(t(d), {
|
|
1044
1044
|
type: "icon",
|
|
1045
1045
|
class: l.value ? "text-amber-500" : "text-gray-500",
|
|
1046
1046
|
onClick: q(a, ["stop"])
|
|
@@ -1054,7 +1054,7 @@ const gs = N({ name: "ri-shut-down-line", render: vs }), hs = { class: "flex jus
|
|
|
1054
1054
|
]),
|
|
1055
1055
|
dialog: y((d) => [
|
|
1056
1056
|
o("div", bs, [
|
|
1057
|
-
h(
|
|
1057
|
+
h(E, H(t(d), {
|
|
1058
1058
|
type: "icon",
|
|
1059
1059
|
class: ["size-18", l.value ? "text-amber-500" : "text-gray-500"],
|
|
1060
1060
|
onClick: q(a, ["stop"])
|
|
@@ -1125,7 +1125,7 @@ const _s = N({ name: "ri-time-line", render: xs }), $s = { class: "flex justify-
|
|
|
1125
1125
|
]),
|
|
1126
1126
|
header: y((p) => [
|
|
1127
1127
|
o("div", null, [
|
|
1128
|
-
h(
|
|
1128
|
+
h(E, {
|
|
1129
1129
|
type: "icon",
|
|
1130
1130
|
class: "text-gray-500",
|
|
1131
1131
|
onClick: q(u, ["stop"])
|
|
@@ -1201,7 +1201,7 @@ const _s = N({ name: "ri-time-line", render: xs }), $s = { class: "flex justify-
|
|
|
1201
1201
|
header: y((p) => [
|
|
1202
1202
|
o("div", ks, [
|
|
1203
1203
|
o("div", ws, [
|
|
1204
|
-
h(
|
|
1204
|
+
h(E, H(r(p), {
|
|
1205
1205
|
type: "icon",
|
|
1206
1206
|
onClick: q((b) => d(p), ["stop"])
|
|
1207
1207
|
}), {
|
|
@@ -1344,20 +1344,20 @@ const _s = N({ name: "ri-time-line", render: xs }), $s = { class: "flex justify-
|
|
|
1344
1344
|
}, 16);
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
|
-
}),
|
|
1347
|
+
}), Es = {
|
|
1348
1348
|
viewBox: "0 0 24 24",
|
|
1349
1349
|
width: "1.2em",
|
|
1350
1350
|
height: "1.2em"
|
|
1351
1351
|
};
|
|
1352
|
-
function
|
|
1353
|
-
return f(), v("svg",
|
|
1352
|
+
function Bs(e, n) {
|
|
1353
|
+
return f(), v("svg", Es, [...n[0] || (n[0] = [
|
|
1354
1354
|
o("path", {
|
|
1355
1355
|
fill: "currentColor",
|
|
1356
1356
|
d: "M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"
|
|
1357
1357
|
}, null, -1)
|
|
1358
1358
|
])]);
|
|
1359
1359
|
}
|
|
1360
|
-
const Ls = N({ name: "ri-list-check", render:
|
|
1360
|
+
const Ls = N({ name: "ri-list-check", render: Bs }), Ms = { class: "flex justify-center py-4" }, Qo = /* @__PURE__ */ S({
|
|
1361
1361
|
__name: "CardList",
|
|
1362
1362
|
props: {
|
|
1363
1363
|
size: {},
|
|
@@ -1411,7 +1411,7 @@ const Ls = N({ name: "ri-list-check", render: Es }), Ms = { class: "flex justify
|
|
|
1411
1411
|
onChange: t
|
|
1412
1412
|
}), {
|
|
1413
1413
|
activator: y(({ on: m }) => [
|
|
1414
|
-
h(
|
|
1414
|
+
h(E, {
|
|
1415
1415
|
type: "icon",
|
|
1416
1416
|
class: "text-gray-500",
|
|
1417
1417
|
onClick: q(m.click, ["stop"])
|
|
@@ -1549,7 +1549,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
1549
1549
|
l("click", { key: b, path: m(b), isObject: g });
|
|
1550
1550
|
};
|
|
1551
1551
|
return (b, g) => {
|
|
1552
|
-
const x = qs, z = Rs,
|
|
1552
|
+
const x = qs, z = Rs, B = pe;
|
|
1553
1553
|
return f(), v("ul", null, [
|
|
1554
1554
|
(f(!0), v(I, null, R(e.items, (w, P) => (f(), v("li", {
|
|
1555
1555
|
key: P,
|
|
@@ -1563,7 +1563,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
1563
1563
|
h(x, { class: "size-5" })
|
|
1564
1564
|
])) : T("", !0),
|
|
1565
1565
|
o("div", Js, $(P), 1),
|
|
1566
|
-
W(u) ? (f(), j(
|
|
1566
|
+
W(u) ? (f(), j(E, {
|
|
1567
1567
|
key: 1,
|
|
1568
1568
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
1569
1569
|
color: "transparent",
|
|
@@ -1582,7 +1582,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
1582
1582
|
!e.onlyValue && i(w) ? (f(), v(I, { key: 3 }, [
|
|
1583
1583
|
g[1] || (g[1] = o("div", { class: "flex-auto" }, null, -1)),
|
|
1584
1584
|
o("div", Xs, [
|
|
1585
|
-
h(
|
|
1585
|
+
h(E, {
|
|
1586
1586
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
1587
1587
|
color: "transparent",
|
|
1588
1588
|
size: "sm",
|
|
@@ -1590,7 +1590,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
1590
1590
|
onClick: q((J) => p(P, i(w)), ["stop"])
|
|
1591
1591
|
}, {
|
|
1592
1592
|
default: y(() => [
|
|
1593
|
-
h(
|
|
1593
|
+
h(B, { class: "size-5" })
|
|
1594
1594
|
]),
|
|
1595
1595
|
_: 1
|
|
1596
1596
|
}, 8, ["title", "onClick"])
|
|
@@ -1610,7 +1610,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
1610
1610
|
])) : (f(), v(I, { key: 1 }, [
|
|
1611
1611
|
g[2] || (g[2] = o("div", { class: "flex-auto gap-3" }, null, -1)),
|
|
1612
1612
|
o("div", Qs, $(w), 1),
|
|
1613
|
-
h(
|
|
1613
|
+
h(E, {
|
|
1614
1614
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
1615
1615
|
color: "gray",
|
|
1616
1616
|
size: "sm",
|
|
@@ -1618,7 +1618,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
1618
1618
|
onClick: q((J) => p(P, i(w)), ["stop"])
|
|
1619
1619
|
}, {
|
|
1620
1620
|
default: y(() => [
|
|
1621
|
-
h(
|
|
1621
|
+
h(B, { class: "size-5" })
|
|
1622
1622
|
]),
|
|
1623
1623
|
_: 1
|
|
1624
1624
|
}, 8, ["title", "onClick"])
|
|
@@ -1842,7 +1842,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
1842
1842
|
u("items", d(x));
|
|
1843
1843
|
}, 300);
|
|
1844
1844
|
return (g, x) => {
|
|
1845
|
-
const z = ce,
|
|
1845
|
+
const z = ce, B = pe;
|
|
1846
1846
|
return f(), v("div", pl, [
|
|
1847
1847
|
o("div", vl, [
|
|
1848
1848
|
h(fl, {
|
|
@@ -1915,13 +1915,13 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
1915
1915
|
]),
|
|
1916
1916
|
_: 1
|
|
1917
1917
|
}, 8, ["model-value", "items"]),
|
|
1918
|
-
h(
|
|
1918
|
+
h(E, {
|
|
1919
1919
|
class: "px-4",
|
|
1920
1920
|
color: "blue",
|
|
1921
1921
|
onClick: m
|
|
1922
1922
|
}, {
|
|
1923
1923
|
default: y(() => [
|
|
1924
|
-
h(
|
|
1924
|
+
h(B)
|
|
1925
1925
|
]),
|
|
1926
1926
|
_: 1
|
|
1927
1927
|
})
|
|
@@ -1930,7 +1930,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
1930
1930
|
]);
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
|
-
}), kl = { class: "flex flex-col" }, wl = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, Cl = { class: "flex-auto order-1" }, Sl = { class: "flex-auto gap-x-2 order-1" }, zl = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, Vl = { class: "flex gap-2 items-center" }, Tl = { class: "flex flex-col gap-4" },
|
|
1933
|
+
}), kl = { class: "flex flex-col" }, wl = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, Cl = { class: "flex-auto order-1" }, Sl = { class: "flex-auto gap-x-2 order-1" }, zl = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, Vl = { class: "flex gap-2 items-center" }, Tl = { class: "flex flex-col gap-4" }, El = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Bl = { class: "relative group" }, Ll = { class: "select-none" }, Ml = ["onClick"], Al = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, Dl = { class: "flex-[0_0_130px] size-[130px]" }, Il = { class: "flex gap-4 justify-end" }, jl = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, ea = /* @__PURE__ */ S({
|
|
1934
1934
|
__name: "ItemEdit",
|
|
1935
1935
|
props: {
|
|
1936
1936
|
items: {},
|
|
@@ -1969,7 +1969,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
1969
1969
|
t.value.type = C, delete t.value.opts, ["button", "list", "dimmer"].includes(C) && (_ === "button" && (t.value.opts = {}), _ === "list" && (t.value.opts = { items: [] }), _ === "dimmer" && (t.value.opts = { min: 0, max: 255, step: 1 }));
|
|
1970
1970
|
}, g = (_) => {
|
|
1971
1971
|
_ === "get" && (t.value.get ? delete t.value.get : t.value.get = "v"), _ === "set" && (t.value.set ? delete t.value.set : t.value.set = "v"), _ === "getTo" && (t.value.getTo ? delete t.value.getTo : t.value.getTo = "v");
|
|
1972
|
-
}, x = (_) => l("button", _, t.value), z = (_) => t.value.args = t.value.args.filter((C) => C !== _),
|
|
1972
|
+
}, x = (_) => l("button", _, t.value), z = (_) => t.value.args = t.value.args.filter((C) => C !== _), B = ({ path: _ }) => {
|
|
1973
1973
|
!t.value.args.length && !t.value.id && (t.value.id = _), t.value.args.push(_), a.value = !1;
|
|
1974
1974
|
}, w = A(-1), P = (_) => w.value === _, J = (_, C) => {
|
|
1975
1975
|
_ === "enter" && (w.value = C), _ === "leave" && (w.value = -1);
|
|
@@ -2004,7 +2004,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
2004
2004
|
d.value ? void 0 : {
|
|
2005
2005
|
name: "icon",
|
|
2006
2006
|
fn: y(() => [
|
|
2007
|
-
h(
|
|
2007
|
+
h(E, {
|
|
2008
2008
|
color: "transparent",
|
|
2009
2009
|
onClick: Ze
|
|
2010
2010
|
}, {
|
|
@@ -2062,12 +2062,12 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
2062
2062
|
onIcon: C[2] || (C[2] = (L) => a.value = !0)
|
|
2063
2063
|
}, {
|
|
2064
2064
|
default: y(() => [
|
|
2065
|
-
o("div",
|
|
2065
|
+
o("div", El, [
|
|
2066
2066
|
(f(!0), v(I, null, R(t.value.args, (L, Se) => (f(), v("div", {
|
|
2067
2067
|
key: L,
|
|
2068
2068
|
class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
|
|
2069
2069
|
}, [
|
|
2070
|
-
o("div",
|
|
2070
|
+
o("div", Bl, [
|
|
2071
2071
|
o("span", Ll, $(L), 1),
|
|
2072
2072
|
o("div", {
|
|
2073
2073
|
class: V(["fixed left-1/2 top-1/2 p-4 text-white bg-gray-900 rounded-md group-hover:visible invisible opacity-0 group-hover:opacity-100 z-50 transition-all -translate-1/2", P(Se) ? "visible opacity-100" : ""])
|
|
@@ -2133,7 +2133,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
2133
2133
|
])
|
|
2134
2134
|
]),
|
|
2135
2135
|
o("div", Il, [
|
|
2136
|
-
h(
|
|
2136
|
+
h(E, {
|
|
2137
2137
|
class: "px-4",
|
|
2138
2138
|
color: "blue",
|
|
2139
2139
|
disabled: m.value,
|
|
@@ -2144,7 +2144,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
2144
2144
|
]),
|
|
2145
2145
|
_: 1
|
|
2146
2146
|
}, 8, ["disabled"]),
|
|
2147
|
-
h(
|
|
2147
|
+
h(E, {
|
|
2148
2148
|
class: "px-4",
|
|
2149
2149
|
color: "red",
|
|
2150
2150
|
outline: "",
|
|
@@ -2167,7 +2167,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
|
|
|
2167
2167
|
h(Ue, {
|
|
2168
2168
|
items: e.object,
|
|
2169
2169
|
onlyValue: !d.value,
|
|
2170
|
-
onClick:
|
|
2170
|
+
onClick: B
|
|
2171
2171
|
}, null, 8, ["items", "onlyValue"])
|
|
2172
2172
|
])
|
|
2173
2173
|
]),
|
|
@@ -2289,7 +2289,7 @@ const Kl = () => (e, n) => {
|
|
|
2289
2289
|
` + c[0];
|
|
2290
2290
|
return { value: l.substring(0, s) + r + l.substring(t), selectionStart: s + r.length, selectionEnd: s + r.length };
|
|
2291
2291
|
}, Wl = () => (e, n) => {
|
|
2292
|
-
if (!(n instanceof KeyboardEvent) || n.key !== "Enter")
|
|
2292
|
+
if (typeof KeyboardEvent > "u" || !(n instanceof KeyboardEvent) || n.key !== "Enter")
|
|
2293
2293
|
return;
|
|
2294
2294
|
const { value: l, selectionStart: s, selectionEnd: t } = e;
|
|
2295
2295
|
if (s !== t)
|
|
@@ -2315,13 +2315,13 @@ const ql = (e) => {
|
|
|
2315
2315
|
if (!r || !u)
|
|
2316
2316
|
throw new Error("renderMenu and renderTooltip are required");
|
|
2317
2317
|
return we = [...n].map((d) => c(d)), Ce = r, We = u, (d, i) => {
|
|
2318
|
-
if (!(i instanceof KeyboardEvent))
|
|
2318
|
+
if (typeof KeyboardEvent > "u" || !(i instanceof KeyboardEvent))
|
|
2319
2319
|
return;
|
|
2320
2320
|
const { value: m, selectionStart: p } = d, b = i.target;
|
|
2321
2321
|
if (ee = b, a.enabled !== !1 && !b.dataset.tooltipInitialized && (b.dataset.tooltipInitialized = "true", b.addEventListener("mouseup", () => {
|
|
2322
|
-
setTimeout(() =>
|
|
2322
|
+
setTimeout(() => Ee(b), 100);
|
|
2323
2323
|
}), b.addEventListener("keyup", () => {
|
|
2324
|
-
setTimeout(() =>
|
|
2324
|
+
setTimeout(() => Ee(b), 100);
|
|
2325
2325
|
})), K) {
|
|
2326
2326
|
switch (i.key) {
|
|
2327
2327
|
case "ArrowDown":
|
|
@@ -2345,11 +2345,11 @@ const ql = (e) => {
|
|
|
2345
2345
|
case "Backspace":
|
|
2346
2346
|
setTimeout(() => {
|
|
2347
2347
|
if (ee) {
|
|
2348
|
-
const g = ee.value, x = ee.selectionStart, z = me(g, x),
|
|
2349
|
-
if (
|
|
2348
|
+
const g = ee.value, x = ee.selectionStart, z = me(g, x), B = g.slice(z, x);
|
|
2349
|
+
if (B.length < l)
|
|
2350
2350
|
Y();
|
|
2351
2351
|
else {
|
|
2352
|
-
const w = he(
|
|
2352
|
+
const w = he(B).slice(0, s);
|
|
2353
2353
|
w.length === 0 ? Y() : (X = w, O = 0, te());
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
@@ -2367,9 +2367,9 @@ const ql = (e) => {
|
|
|
2367
2367
|
if (P.length > 0)
|
|
2368
2368
|
return be(d, P[0]);
|
|
2369
2369
|
}
|
|
2370
|
-
const z = " ".repeat(t),
|
|
2370
|
+
const z = " ".repeat(t), B = m.slice(0, p) + z + m.slice(p), w = p + t;
|
|
2371
2371
|
return {
|
|
2372
|
-
value:
|
|
2372
|
+
value: B,
|
|
2373
2373
|
selectionStart: w,
|
|
2374
2374
|
selectionEnd: w
|
|
2375
2375
|
};
|
|
@@ -2377,12 +2377,12 @@ const ql = (e) => {
|
|
|
2377
2377
|
if (!(i.key.length !== 1 || i.ctrlKey || i.metaKey || i.altKey))
|
|
2378
2378
|
return Q && clearTimeout(Q), Q = setTimeout(() => {
|
|
2379
2379
|
Q = null;
|
|
2380
|
-
const g = b.value, x = b.selectionStart, z = me(g, x),
|
|
2381
|
-
if (
|
|
2380
|
+
const g = b.value, x = b.selectionStart, z = me(g, x), B = g.slice(z, x);
|
|
2381
|
+
if (B.length < l) {
|
|
2382
2382
|
Y();
|
|
2383
2383
|
return;
|
|
2384
2384
|
}
|
|
2385
|
-
let w = he(
|
|
2385
|
+
let w = he(B);
|
|
2386
2386
|
if (w = w.slice(0, s), w.length === 0) {
|
|
2387
2387
|
Y();
|
|
2388
2388
|
return;
|
|
@@ -2449,8 +2449,8 @@ function be(e, n) {
|
|
|
2449
2449
|
if (i) {
|
|
2450
2450
|
let g = 0, x = 0, z = !1;
|
|
2451
2451
|
for (; x < a.length && !z; ) {
|
|
2452
|
-
const
|
|
2453
|
-
|
|
2452
|
+
const B = u.find((w) => w.index === x);
|
|
2453
|
+
B ? (g += B.text.length, x += B.length, B === i && (m = t + g - B.text.length, p = t + g, z = !0)) : (g++, x++);
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
2456
|
return {
|
|
@@ -2470,7 +2470,7 @@ function qe(e) {
|
|
|
2470
2470
|
top: n.top + (c - 1) * u
|
|
2471
2471
|
};
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function Ee(e) {
|
|
2474
2474
|
ne && clearTimeout(ne), ne = setTimeout(() => {
|
|
2475
2475
|
const n = e.selectionStart, l = e.selectionEnd;
|
|
2476
2476
|
if (n === l) {
|
|
@@ -2498,7 +2498,7 @@ function ae() {
|
|
|
2498
2498
|
G && (G.remove(), G = null);
|
|
2499
2499
|
}, 150));
|
|
2500
2500
|
}
|
|
2501
|
-
document.addEventListener("mousedown", (e) => {
|
|
2501
|
+
typeof document < "u" && document.addEventListener("mousedown", (e) => {
|
|
2502
2502
|
const n = e.target;
|
|
2503
2503
|
K && !K.contains(n) && Y(), G && !G.contains(n) && ae();
|
|
2504
2504
|
});
|
|
@@ -2664,6 +2664,10 @@ end;`, detail: "event(name: string)" },
|
|
|
2664
2664
|
const n = A(""), l = A(""), s = A(null), t = A(!1), a = A(null);
|
|
2665
2665
|
let c = null;
|
|
2666
2666
|
const r = () => new Promise((i, m) => {
|
|
2667
|
+
if (typeof window > "u" || typeof document > "u") {
|
|
2668
|
+
m(new Error("Markdown loading is available only in a browser"));
|
|
2669
|
+
return;
|
|
2670
|
+
}
|
|
2667
2671
|
if (window.marked) {
|
|
2668
2672
|
window.marked.setOptions({
|
|
2669
2673
|
gfm: !0,
|
|
@@ -2692,7 +2696,7 @@ end;`, detail: "event(name: string)" },
|
|
|
2692
2696
|
continue;
|
|
2693
2697
|
}
|
|
2694
2698
|
if (b && g.includes(":")) {
|
|
2695
|
-
const [x, z] = g.split(":").map((
|
|
2699
|
+
const [x, z] = g.split(":").map((B) => B.trim());
|
|
2696
2700
|
x && z && (x.toLowerCase().includes("version") && (p.version = z), (x.toLowerCase().includes("обновлено") || x.toLowerCase().includes("updated")) && (p.updated = z));
|
|
2697
2701
|
}
|
|
2698
2702
|
}
|
|
@@ -2755,7 +2759,7 @@ end;`, detail: "event(name: string)" },
|
|
|
2755
2759
|
return le(() => {
|
|
2756
2760
|
e.idScript || (c.value = "boot");
|
|
2757
2761
|
}), (i, m) => {
|
|
2758
|
-
const p = Z, b =
|
|
2762
|
+
const p = Z, b = E;
|
|
2759
2763
|
return f(), v("div", co, [
|
|
2760
2764
|
h(p, H({
|
|
2761
2765
|
modelValue: W(c),
|
|
@@ -3071,7 +3075,7 @@ export {
|
|
|
3071
3075
|
ta as ScriptEditor,
|
|
3072
3076
|
na as ScriptViewDocs,
|
|
3073
3077
|
la as VAutocomplete,
|
|
3074
|
-
|
|
3078
|
+
E as VButton,
|
|
3075
3079
|
fl as VCheckbox,
|
|
3076
3080
|
He as VDialog,
|
|
3077
3081
|
aa as VDragDrop,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScriptViewDocs.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/script/viewDocs/ScriptViewDocs.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScriptViewDocs.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/script/viewDocs/ScriptViewDocs.vue"],"names":[],"mappings":"AAyJA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAepD,UAAU,SAAS;IACjB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;CACpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,CAAC,EAAE,SAAS,CAAC;KACpB;CACF;;AAiLD,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/helpers/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,YAAY,GAAI,aAAe,YAI3C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/helpers/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,YAAY,GAAI,aAAe,YAI3C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,SAOxC,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,SAAS,EAAE,GAAG,IAAI,EAAE,MAAM,MAAM,KAAG,SAAS,GAAG,IAOlF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,MAAM,SAAS,EAAE,EAAE,MAAM,MAAM,KAAG,SAAS,GAAG,IAAgC,CAAC"}
|
package/dist/helpers/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as f, b as m, c as d, d as k, e as b, f as S, g, h as y, i as T, j as v, k as W, l as _, m as w, n as j, r as q, s as x, o as z, p as G, q as P, t as U, u as A } from "../app-
|
|
1
|
+
import { a as f, b as m, c as d, d as k, e as b, f as S, g, h as y, i as T, j as v, k as W, l as _, m as w, n as j, r as q, s as x, o as z, p as G, q as P, t as U, u as A } from "../app-B45sALrX.js";
|
|
2
2
|
const c = (o) => {
|
|
3
3
|
let s = "", n = !1, i = "";
|
|
4
4
|
for (let a = 0; a < o.length; a++) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-api.d.ts","sourceRoot":"","sources":["../../src/helpers/web-api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"web-api.d.ts","sourceRoot":"","sources":["../../src/helpers/web-api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,EAAE,aAAa,SAS7D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,qBAerC,CAAC;AAYF,eAAO,MAAM,QAAQ,SARyB,MAAM,WAAW,OAAO,QAQE,CAAC;AACzE,eAAO,MAAM,QAAQ,SALyB,MAAM,QAAQ,MAAM,GAAG,MAAM,SAKE,CAAC;AAC9E,eAAO,MAAM,UAAU,SAVuB,MAAM,WAAW,OAAO,QAUM,CAAC;AAC7E,eAAO,MAAM,UAAU,SAPuB,MAAM,QAAQ,MAAM,GAAG,MAAM,SAOM,CAAC"}
|
package/package.json
CHANGED