@vue/devtools-electron 7.7.7 → 8.0.0
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/client/{IconTitle.vue_vue_type_script_setup_true_lang-CzNAudTz.js → IconTitle.vue_vue_type_script_setup_true_lang-BUuVJmL3.js} +1 -1
- package/client/{SectionBlock-Dp0NIF_b.js → SectionBlock-CVoN8mOT.js} +15 -14
- package/client/assets-BPNh8kJj.js +1052 -0
- package/client/{components-BgyXz8w_.js → components-DXEkYjql.js} +1 -1
- package/client/css-CECN5uSL.js +6 -0
- package/client/custom-inspector-tab-view-DJHDSM_Q.js +50 -0
- package/client/{custom-tab-view-DnTFKhiI.js → custom-tab-view-CZSDs4VF.js} +3 -3
- package/client/devtools-panel.css +1 -1
- package/client/devtools-panel.js +1 -1
- package/client/diff-BxzP2J8R.js +6 -0
- package/client/graph-nbr14wai.js +49115 -0
- package/client/html-7XVNRwN7.js +10 -0
- package/client/{index-C7XPmmLS.js → index-1gPbFyyc.js} +32271 -33396
- package/client/javascript-Dp1Jmi5H.js +6 -0
- package/client/json-DxJze_jm.js +6 -0
- package/client/{overview-NOHiLwdq.js → overview-C9jQTCuB.js} +122 -112
- package/client/pages-DzlmtyA2.js +360 -0
- package/client/pinia-D_f90X-a.js +11 -0
- package/client/router-Co--FDag.js +12 -0
- package/client/{settings-DTrnopyF.js → settings-WVpvn2wJ.js} +66 -64
- package/client/shellscript-InADTalH.js +6 -0
- package/client/{timeline-CVQgEdyi.js → timeline-CUtNI62c.js} +51 -52
- package/client/typescript-mg6ATTE8.js +6 -0
- package/client/vue-BEZF_Tsk.js +33 -0
- package/client/vue-html-CBbEFYtW.js +10 -0
- package/client/yaml-DaO7k5B1.js +6 -0
- package/dist/app.js +1 -1
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.mts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/devtools.js +850 -889
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/user-app.cjs +1 -1
- package/dist/user-app.iife.js +62 -107
- package/dist/user-app.js +1 -1
- package/package.json +11 -11
- package/client/assets-Cenvjhy6.js +0 -1081
- package/client/css-BnL1064W.js +0 -6
- package/client/custom-inspector-tab-view-dZSnsHNr.js +0 -53
- package/client/diff-DOdUfPSR.js +0 -6
- package/client/graph-CHZkohji.js +0 -49959
- package/client/html-Iy9EJBkL.js +0 -10
- package/client/javascript-CXHlxgtu.js +0 -6
- package/client/json-D4cXEhM0.js +0 -6
- package/client/pages-Bqu7i9_W.js +0 -377
- package/client/pinia-VeJqP-Jl.js +0 -11
- package/client/router-BW0WfY9R.js +0 -18
- package/client/shellscript-DmhSIIKI.js +0 -6
- package/client/typescript-DKfvlBCw.js +0 -6
- package/client/vue-ChaKAHzo.js +0 -33
- package/client/vue-html-Hg1VsDox.js +0 -10
- package/client/yaml-DcQhbMrL.js +0 -6
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { d as M, c as l, o as a, b as n, w as v, u as e, a6 as U, s as k, i as b, a7 as B, e as w, t as E, y, F as $, x as N, n as V, E as F, a as _, a8 as O, M as j, H as T, a9 as A, aa as z, Y as J, ab as I, f as K, Z as Y, ac as H, a0 as L, g as D, $ as P, ad as W, A as X, ae as Z, af as S } from "./index-1gPbFyyc.js";
|
|
2
|
+
import { _ as q } from "./SectionBlock-CVoN8mOT.js";
|
|
3
|
+
const G = { "p-2": "" }, Q = { class: "flex items-center justify-between" }, ee = /* @__PURE__ */ M({
|
|
4
|
+
__name: "RouteMetaDetail",
|
|
5
|
+
props: {
|
|
6
|
+
meta: {}
|
|
7
|
+
},
|
|
8
|
+
emits: ["close"],
|
|
9
|
+
setup(R) {
|
|
10
|
+
return (r, i) => (a(), l("div", G, [
|
|
11
|
+
n("div", Q, [
|
|
12
|
+
i[1] || (i[1] = n("span", { class: "font-500" }, "Route meta detail", -1)),
|
|
13
|
+
n("div", {
|
|
14
|
+
class: "i-carbon-close cursor-pointer p1 $ui-text",
|
|
15
|
+
onClick: i[0] || (i[0] = (h) => r.$emit("close"))
|
|
16
|
+
})
|
|
17
|
+
]),
|
|
18
|
+
v(e(U), {
|
|
19
|
+
code: JSON.stringify(r.meta, null, 2),
|
|
20
|
+
lang: "json",
|
|
21
|
+
lines: ""
|
|
22
|
+
}, null, 8, ["code"])
|
|
23
|
+
]));
|
|
24
|
+
}
|
|
25
|
+
}), te = {
|
|
26
|
+
block: "",
|
|
27
|
+
"cursor-pointer": ""
|
|
28
|
+
}, ne = { p2: "" }, oe = ["onSubmit"], ae = {
|
|
29
|
+
flex: "~",
|
|
30
|
+
"items-center": "",
|
|
31
|
+
p2: "",
|
|
32
|
+
"text-sm": "",
|
|
33
|
+
"font-mono": ""
|
|
34
|
+
}, se = { key: 1 }, le = /* @__PURE__ */ M({
|
|
35
|
+
__name: "RoutePathItem",
|
|
36
|
+
props: {
|
|
37
|
+
route: {}
|
|
38
|
+
},
|
|
39
|
+
emits: ["navigate"],
|
|
40
|
+
setup(R, { emit: r }) {
|
|
41
|
+
const i = R, h = r;
|
|
42
|
+
function m(t) {
|
|
43
|
+
return t.split(/(:\w+[?*+]?(?:\([^)]*\))?[?*+]?)/).filter(Boolean);
|
|
44
|
+
}
|
|
45
|
+
const d = k([]), c = b(() => m(i.route.path));
|
|
46
|
+
B(() => {
|
|
47
|
+
d.value = Array.from({ length: c.value.length }, () => "");
|
|
48
|
+
});
|
|
49
|
+
const u = b(() => c.value.map((t, o) => t[0] === ":" ? d.value[o] : t).join("").replace(/\/+/g, "/")), s = b(() => i.route.path.includes(":"));
|
|
50
|
+
function p() {
|
|
51
|
+
h("navigate", u.value);
|
|
52
|
+
}
|
|
53
|
+
return (t, o) => e(s) ? (a(), w(e(A), { key: 1 }, {
|
|
54
|
+
popper: y(({ hide: f }) => [
|
|
55
|
+
n("div", ne, [
|
|
56
|
+
n("form", {
|
|
57
|
+
flex: "~ col",
|
|
58
|
+
onSubmit: F(() => {
|
|
59
|
+
p(), f();
|
|
60
|
+
}, ["prevent"])
|
|
61
|
+
}, [
|
|
62
|
+
e(s) ? (a(), l($, { key: 0 }, [
|
|
63
|
+
o[0] || (o[0] = n("div", {
|
|
64
|
+
px2: "",
|
|
65
|
+
"text-sm": "",
|
|
66
|
+
op50: ""
|
|
67
|
+
}, " Fill params and navigate: ", -1)),
|
|
68
|
+
n("div", ae, [
|
|
69
|
+
(a(!0), l($, null, N(e(c), (g, C) => (a(), l($, { key: C }, [
|
|
70
|
+
g[0] === ":" ? (a(), w(e(O), {
|
|
71
|
+
key: 0,
|
|
72
|
+
modelValue: e(d)[C],
|
|
73
|
+
"onUpdate:modelValue": (x) => e(d)[C] = x,
|
|
74
|
+
"n-sm": "",
|
|
75
|
+
"w-20": "",
|
|
76
|
+
placeholder: g.slice(1)
|
|
77
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (a(), l("span", se, E(g), 1))
|
|
78
|
+
], 64))), 128))
|
|
79
|
+
])
|
|
80
|
+
], 64)) : _("", !0),
|
|
81
|
+
v(e(j), {
|
|
82
|
+
block: "",
|
|
83
|
+
type: "primary"
|
|
84
|
+
}, {
|
|
85
|
+
default: y(() => o[1] || (o[1] = [
|
|
86
|
+
T(" Navigate ", -1)
|
|
87
|
+
])),
|
|
88
|
+
_: 1,
|
|
89
|
+
__: [1]
|
|
90
|
+
})
|
|
91
|
+
], 40, oe)
|
|
92
|
+
])
|
|
93
|
+
]),
|
|
94
|
+
default: y(() => [
|
|
95
|
+
n("code", te, [
|
|
96
|
+
(a(!0), l($, null, N(e(c), (f, g) => (a(), l("span", {
|
|
97
|
+
key: g,
|
|
98
|
+
class: V(f[0] === ":" ? "text-gray border border-dashed rounded border-gray:50 px1" : "")
|
|
99
|
+
}, E(f[0] === ":" ? f.slice(1) : f), 3))), 128))
|
|
100
|
+
])
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
})) : (a(), l("button", {
|
|
104
|
+
key: 0,
|
|
105
|
+
onClick: p
|
|
106
|
+
}, [
|
|
107
|
+
n("code", null, E(t.route.path), 1)
|
|
108
|
+
]));
|
|
109
|
+
}
|
|
110
|
+
}), re = { "w-full": "" }, ie = {
|
|
111
|
+
border: "b base",
|
|
112
|
+
"px-3": ""
|
|
113
|
+
}, ue = {
|
|
114
|
+
key: 0,
|
|
115
|
+
"text-left": ""
|
|
116
|
+
}, de = {
|
|
117
|
+
"w-20": "",
|
|
118
|
+
"pr-1": ""
|
|
119
|
+
}, ce = {
|
|
120
|
+
flex: "",
|
|
121
|
+
"items-center": "",
|
|
122
|
+
"justify-end": ""
|
|
123
|
+
}, pe = { "text-sm": "" }, me = {
|
|
124
|
+
flex: "inline gap3",
|
|
125
|
+
"items-center": ""
|
|
126
|
+
}, fe = {
|
|
127
|
+
op0: "",
|
|
128
|
+
"group-hover:op100": "",
|
|
129
|
+
flex: "~ gap1"
|
|
130
|
+
}, ve = ["onClick"], _e = {
|
|
131
|
+
"w-0": "",
|
|
132
|
+
"ws-nowrap": "",
|
|
133
|
+
"pr-1": "",
|
|
134
|
+
"text-left": "",
|
|
135
|
+
"text-sm": "",
|
|
136
|
+
"font-mono": "",
|
|
137
|
+
op50: ""
|
|
138
|
+
}, he = {
|
|
139
|
+
key: 0,
|
|
140
|
+
"w-50": "",
|
|
141
|
+
"ws-nowrap": "",
|
|
142
|
+
"pr-1": "",
|
|
143
|
+
"text-left": "",
|
|
144
|
+
"text-sm": "",
|
|
145
|
+
"font-mono": "",
|
|
146
|
+
op50: "",
|
|
147
|
+
hover: "text-primary op100"
|
|
148
|
+
}, ge = ["title", "onClick"], ye = /* @__PURE__ */ M({
|
|
149
|
+
__name: "RoutesTable",
|
|
150
|
+
props: {
|
|
151
|
+
pages: {},
|
|
152
|
+
matched: {},
|
|
153
|
+
matchedPending: {}
|
|
154
|
+
},
|
|
155
|
+
emits: ["navigate", "selectMeta"],
|
|
156
|
+
setup(R) {
|
|
157
|
+
const r = R, i = b(() => [...r.pages].sort((u, s) => u.path.localeCompare(s.path))), h = b(() => z.value), m = J();
|
|
158
|
+
function d(u, s = 0) {
|
|
159
|
+
const p = JSON.stringify(u, null, s);
|
|
160
|
+
return p === "{}" ? "-" : p;
|
|
161
|
+
}
|
|
162
|
+
const c = b(() => i.value.some((u) => Object.keys(u.meta)?.length));
|
|
163
|
+
return (u, s) => {
|
|
164
|
+
const p = le;
|
|
165
|
+
return a(), l("div", null, [
|
|
166
|
+
n("table", re, [
|
|
167
|
+
n("thead", ie, [
|
|
168
|
+
n("tr", null, [
|
|
169
|
+
s[1] || (s[1] = n("th", { "text-left": "" }, null, -1)),
|
|
170
|
+
s[2] || (s[2] = n("th", { "text-left": "" }, " Route Path ", -1)),
|
|
171
|
+
s[3] || (s[3] = n("th", { "text-left": "" }, " Name ", -1)),
|
|
172
|
+
e(c) ? (a(), l("th", ue, " Route Meta ")) : _("", !0)
|
|
173
|
+
])
|
|
174
|
+
]),
|
|
175
|
+
n("tbody", null, [
|
|
176
|
+
(a(!0), l($, null, N(e(i), (t) => (a(), l("tr", {
|
|
177
|
+
key: t.name,
|
|
178
|
+
class: "group",
|
|
179
|
+
"h-7": "",
|
|
180
|
+
border: "b dashed transparent hover:base"
|
|
181
|
+
}, [
|
|
182
|
+
n("td", de, [
|
|
183
|
+
n("div", ce, [
|
|
184
|
+
u.matched.find((o) => o.name === t.name) ? (a(), w(e(I), {
|
|
185
|
+
key: 0,
|
|
186
|
+
"bg-green-400:10": "",
|
|
187
|
+
"text-green-400": "",
|
|
188
|
+
title: "active",
|
|
189
|
+
textContent: "active"
|
|
190
|
+
})) : u.matchedPending.find((o) => o.name === t.name) ? (a(), w(e(I), {
|
|
191
|
+
key: 1,
|
|
192
|
+
"bg-teal-400:10": "",
|
|
193
|
+
"text-teal-400": "",
|
|
194
|
+
title: "next",
|
|
195
|
+
textContent: "next"
|
|
196
|
+
})) : _("", !0)
|
|
197
|
+
])
|
|
198
|
+
]),
|
|
199
|
+
n("td", pe, [
|
|
200
|
+
n("div", me, [
|
|
201
|
+
v(p, {
|
|
202
|
+
route: t,
|
|
203
|
+
class: V(u.matched.find((o) => o.name === t.name) ? "text-primary-400" : u.matchedPending.find((o) => o.name === t.name) ? "text-teal" : ""),
|
|
204
|
+
onNavigate: s[0] || (s[0] = (o) => u.$emit("navigate", o))
|
|
205
|
+
}, null, 8, ["route", "class"]),
|
|
206
|
+
n("div", fe, [
|
|
207
|
+
t.meta?.file && e(m).vitePluginDetected.value && e(h) ? (a(), l("button", {
|
|
208
|
+
key: 0,
|
|
209
|
+
"text-sm": "",
|
|
210
|
+
op40: "",
|
|
211
|
+
hover: "op100 text-primary-400",
|
|
212
|
+
title: "Open in editor",
|
|
213
|
+
onClick: (o) => e(K)(t.meta?.file)
|
|
214
|
+
}, s[4] || (s[4] = [
|
|
215
|
+
n("div", { "i-carbon-script-reference": "" }, null, -1)
|
|
216
|
+
]), 8, ve)) : _("", !0)
|
|
217
|
+
])
|
|
218
|
+
])
|
|
219
|
+
]),
|
|
220
|
+
n("td", _e, E(t.name), 1),
|
|
221
|
+
e(c) ? (a(), l("td", he, [
|
|
222
|
+
n("span", {
|
|
223
|
+
"inline-block": "",
|
|
224
|
+
"w-50": "",
|
|
225
|
+
"cursor-pointer": "",
|
|
226
|
+
"overflow-hidden": "",
|
|
227
|
+
"text-ellipsis": "",
|
|
228
|
+
title: d(t.meta, 2),
|
|
229
|
+
onClick: () => u.$emit("selectMeta", t.meta)
|
|
230
|
+
}, E(d(t.meta)), 9, ge)
|
|
231
|
+
])) : _("", !0)
|
|
232
|
+
]))), 128))
|
|
233
|
+
])
|
|
234
|
+
])
|
|
235
|
+
]);
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
}), be = {
|
|
239
|
+
block: "",
|
|
240
|
+
"h-screen": "",
|
|
241
|
+
"of-auto": ""
|
|
242
|
+
}, xe = {
|
|
243
|
+
"h-full": "",
|
|
244
|
+
class: "grid grid-rows-[auto_1fr]"
|
|
245
|
+
}, ke = {
|
|
246
|
+
border: "b base",
|
|
247
|
+
flex: "~ col gap1",
|
|
248
|
+
px4: "",
|
|
249
|
+
py3: ""
|
|
250
|
+
}, $e = {
|
|
251
|
+
key: 1,
|
|
252
|
+
op50: ""
|
|
253
|
+
}, we = {
|
|
254
|
+
key: 0,
|
|
255
|
+
"text-orange": "",
|
|
256
|
+
op75: ""
|
|
257
|
+
}, Re = {
|
|
258
|
+
key: 1,
|
|
259
|
+
op50: ""
|
|
260
|
+
}, Ee = /* @__PURE__ */ M({
|
|
261
|
+
__name: "pages",
|
|
262
|
+
setup(R) {
|
|
263
|
+
const r = k(""), i = k(null), h = k([]), m = b(() => r.value === i.value?.path ? [] : h.value), d = k([]), c = k();
|
|
264
|
+
function u(t) {
|
|
265
|
+
d.value = t.routes, i.value = t.currentRoute, r.value = i.value?.path ?? "/";
|
|
266
|
+
}
|
|
267
|
+
function s() {
|
|
268
|
+
m.value.length && p(r.value);
|
|
269
|
+
}
|
|
270
|
+
function p(t) {
|
|
271
|
+
D.value.navigate(t);
|
|
272
|
+
}
|
|
273
|
+
return Y(() => {
|
|
274
|
+
D.value.getRouterInfo().then((t) => {
|
|
275
|
+
u(t);
|
|
276
|
+
}), D.functions.on(P.ROUTER_INFO_UPDATED, u);
|
|
277
|
+
}), H(r, () => {
|
|
278
|
+
r.value !== i.value?.path && D.value.getMatchedRoutes(r.value).then((t) => {
|
|
279
|
+
h.value = t;
|
|
280
|
+
});
|
|
281
|
+
}), L(() => {
|
|
282
|
+
D.functions.off(P.ROUTER_INFO_UPDATED, u);
|
|
283
|
+
}), (t, o) => {
|
|
284
|
+
const f = ye, g = q, C = ee;
|
|
285
|
+
return a(), l("div", be, [
|
|
286
|
+
n("div", xe, [
|
|
287
|
+
n("div", ke, [
|
|
288
|
+
n("div", null, [
|
|
289
|
+
(a(), l("span", $e, "Current route"))
|
|
290
|
+
]),
|
|
291
|
+
v(e(O), {
|
|
292
|
+
modelValue: e(r),
|
|
293
|
+
"onUpdate:modelValue": o[0] || (o[0] = (x) => X(r) ? r.value = x : null),
|
|
294
|
+
"left-icon": "i-carbon-direction-right-01 scale-y--100",
|
|
295
|
+
class: V(e(i)?.path === e(r) ? "" : e(m).length ? "text-green!" : "text-orange!"),
|
|
296
|
+
onKeydown: W(s, ["enter"])
|
|
297
|
+
}, null, 8, ["modelValue", "class"]),
|
|
298
|
+
n("div", null, [
|
|
299
|
+
e(i)?.path !== e(r) ? (a(), l($, { key: 0 }, [
|
|
300
|
+
o[6] || (o[6] = n("span", null, [
|
|
301
|
+
T("Press "),
|
|
302
|
+
n("b", { "font-bold": "" }, "Enter"),
|
|
303
|
+
T(" to navigate")
|
|
304
|
+
], -1)),
|
|
305
|
+
e(m).length ? _("", !0) : (a(), l("span", we, " (no match)"))
|
|
306
|
+
], 64)) : (a(), l("span", Re, "Edit path above to navigate"))
|
|
307
|
+
])
|
|
308
|
+
]),
|
|
309
|
+
v(e(Z), { class: "of-hidden" }, {
|
|
310
|
+
default: y(() => [
|
|
311
|
+
v(e(S), {
|
|
312
|
+
size: "70",
|
|
313
|
+
class: "of-auto!"
|
|
314
|
+
}, {
|
|
315
|
+
default: y(() => [
|
|
316
|
+
v(g, {
|
|
317
|
+
icon: "i-carbon-tree-view-alt",
|
|
318
|
+
text: "All Routes",
|
|
319
|
+
description: `${e(d).length} routes registered in your application`,
|
|
320
|
+
padding: !1
|
|
321
|
+
}, {
|
|
322
|
+
default: y(() => [
|
|
323
|
+
e(d).length ? (a(), w(f, {
|
|
324
|
+
key: 0,
|
|
325
|
+
pages: e(d),
|
|
326
|
+
matched: e(i)?.matched ?? [],
|
|
327
|
+
"matched-pending": e(m),
|
|
328
|
+
onNavigate: p,
|
|
329
|
+
onSelectMeta: o[1] || (o[1] = (x) => c.value = x)
|
|
330
|
+
}, null, 8, ["pages", "matched", "matched-pending"])) : _("", !0)
|
|
331
|
+
]),
|
|
332
|
+
_: 1
|
|
333
|
+
}, 8, ["description"])
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
}),
|
|
337
|
+
e(c) ? (a(), w(e(S), {
|
|
338
|
+
key: 0,
|
|
339
|
+
size: "30",
|
|
340
|
+
class: "of-auto!"
|
|
341
|
+
}, {
|
|
342
|
+
default: y(() => [
|
|
343
|
+
v(C, {
|
|
344
|
+
meta: e(c),
|
|
345
|
+
onClose: o[2] || (o[2] = (x) => c.value = void 0)
|
|
346
|
+
}, null, 8, ["meta"])
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
})) : _("", !0)
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
})
|
|
353
|
+
])
|
|
354
|
+
]);
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
export {
|
|
359
|
+
Ee as default
|
|
360
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { d as n, h as c, i as o, e as u, u as t, m as p, o as d } from "./index-1gPbFyyc.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
const f = /* @__PURE__ */ n({
|
|
4
|
+
__name: "router",
|
|
5
|
+
setup(i) {
|
|
6
|
+
const { registeredInspector: r } = c(), s = o(() => r.value?.find((e) => e.packageName === "vue-router")), a = o(() => s.value?.id);
|
|
7
|
+
return (e, m) => (d(), u(t(p), { id: t(a) }, null, 8, ["id"]));
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
f as default
|
|
12
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as ee,
|
|
2
|
-
import { _ as re } from "./IconTitle.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { d as ee, j as le, k as P, l as te, q as B, s as oe, i as ne, c as m, w as a, b as l, F as x, x as E, u as t, a as _, y as d, z as U, M as $, A as p, B as se, C as ae, o as r, e as j, t as I, D as F, n as O, _ as ie, E as z, G as ue, H as R, I as h, J as V, K as de } from "./index-1gPbFyyc.js";
|
|
2
|
+
import { _ as re } from "./IconTitle.vue_vue_type_script_setup_true_lang-BUuVJmL3.js";
|
|
3
3
|
const pe = {
|
|
4
4
|
"h-full": "",
|
|
5
5
|
"w-full": "",
|
|
@@ -24,10 +24,10 @@ const pe = {
|
|
|
24
24
|
"justify-start": "",
|
|
25
25
|
"pr-4": "",
|
|
26
26
|
"text-sm": ""
|
|
27
|
-
}, ce = ["onClick"], be = ["onClick"], ye = ["onClick"], Ve = { flex: "~ col gap-2" }, ke = { flex: "~ gap2" }, Ce = { class: "flex items-center gap2 text-sm" }, we = { class: "flex items-center gap2 text-sm" }, Se = { class: "flex items-center gap2 text-sm" }, Te = { class: "flex items-center gap2 text-sm" },
|
|
27
|
+
}, ce = ["onClick"], be = ["onClick"], ye = ["onClick"], Ve = { flex: "~ col gap-2" }, ke = { flex: "~ gap2" }, Ce = { class: "flex items-center gap2 text-sm" }, we = { class: "flex items-center gap2 text-sm" }, Se = { class: "flex items-center gap2 text-sm" }, Te = { class: "flex items-center gap2 text-sm" }, _e = { flex: "~ gap-2" }, ze = /* @__PURE__ */ ee({
|
|
28
28
|
__name: "settings",
|
|
29
|
-
setup(
|
|
30
|
-
const { categorizedTabs:
|
|
29
|
+
setup(Ue) {
|
|
30
|
+
const { categorizedTabs: H } = le(), D = ae(), q = D === "iframe" || D === "separate-window", { scale: k, interactionCloseOnOutsideClick: C, showPanel: w, minimizePanelInteractive: g, expandSidebar: S, scrollableSidebar: T, reduceMotion: G } = P(te(B)), J = [
|
|
31
31
|
["Tiny", 12 / 15],
|
|
32
32
|
["Small", 14 / 15],
|
|
33
33
|
["Normal", 1],
|
|
@@ -40,35 +40,32 @@ const pe = {
|
|
|
40
40
|
["5s", 5e3],
|
|
41
41
|
["10s", 1e4],
|
|
42
42
|
["Never", -1]
|
|
43
|
-
], { hiddenTabCategories: c, hiddenTabs: b, pinnedTabs: i } = B
|
|
44
|
-
function Q(
|
|
45
|
-
e ? b.value = b.value.filter((u) => u !==
|
|
43
|
+
], { hiddenTabCategories: c, hiddenTabs: b, pinnedTabs: i } = P(B.value.tabSettings);
|
|
44
|
+
function Q(s, e) {
|
|
45
|
+
e ? b.value = b.value.filter((u) => u !== s) : b.value.push(s);
|
|
46
46
|
}
|
|
47
|
-
function W(
|
|
48
|
-
e ? c.value = c.value.filter((u) => u !==
|
|
47
|
+
function W(s, e) {
|
|
48
|
+
e ? c.value = c.value.filter((u) => u !== s) : c.value.push(s);
|
|
49
49
|
}
|
|
50
|
-
function X(
|
|
51
|
-
i.value.includes(
|
|
50
|
+
function X(s) {
|
|
51
|
+
i.value.includes(s) ? i.value = i.value.filter((e) => e !== s) : i.value.push(s);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const u = i.value.indexOf(
|
|
53
|
+
function A(s, e) {
|
|
54
|
+
const u = i.value.indexOf(s);
|
|
55
55
|
if (u === -1)
|
|
56
56
|
return;
|
|
57
57
|
const v = u + e;
|
|
58
58
|
if (v < 0 || v >= i.value.length)
|
|
59
59
|
return;
|
|
60
60
|
const o = [...i.value];
|
|
61
|
-
o.splice(u, 1), o.splice(v, 0,
|
|
61
|
+
o.splice(u, 1), o.splice(v, 0, s), i.value = o;
|
|
62
62
|
}
|
|
63
63
|
const y = oe(!1);
|
|
64
64
|
async function Y() {
|
|
65
65
|
de(), window.location.reload();
|
|
66
66
|
}
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
return `${(n == null ? void 0 : n.label) ?? "Select..."}`;
|
|
70
|
-
});
|
|
71
|
-
return (n, e) => {
|
|
67
|
+
const L = K.map(([s, e]) => ({ label: s, value: e })), Z = ne(() => `${L.find((e) => e.value === g.value)?.label ?? "Select..."}`);
|
|
68
|
+
return (s, e) => {
|
|
72
69
|
const u = re, v = ie;
|
|
73
70
|
return r(), m("div", pe, [
|
|
74
71
|
a(u, {
|
|
@@ -79,18 +76,18 @@ const pe = {
|
|
|
79
76
|
l("div", me, [
|
|
80
77
|
l("div", ve, [
|
|
81
78
|
e[12] || (e[12] = l("h3", { "text-lg": "" }, " Tabs ", -1)),
|
|
82
|
-
(r(!0), m(x, null,
|
|
83
|
-
|
|
79
|
+
(r(!0), m(x, null, E(t(H), ([{ name: o, hidden: f }, M]) => (r(), m(x, { key: o }, [
|
|
80
|
+
M.length ? (r(), j(t(U), {
|
|
84
81
|
key: 0,
|
|
85
82
|
p3: "",
|
|
86
83
|
flex: "~ col gap-1",
|
|
87
|
-
class:
|
|
84
|
+
class: O(f ? "op50 grayscale" : "")
|
|
88
85
|
}, {
|
|
89
86
|
default: d(() => [
|
|
90
|
-
a(t(
|
|
87
|
+
a(t(F), {
|
|
91
88
|
"model-value": !t(c).includes(o),
|
|
92
|
-
class: "row-reverse flex hover:bg-active
|
|
93
|
-
"onUpdate:modelValue": (
|
|
89
|
+
class: "row-reverse flex py1 pl2 pr1 hover:bg-active",
|
|
90
|
+
"onUpdate:modelValue": (n) => W(o, n)
|
|
94
91
|
}, {
|
|
95
92
|
default: d(() => [
|
|
96
93
|
l("div", fe, [
|
|
@@ -106,46 +103,46 @@ const pe = {
|
|
|
106
103
|
border: "b base",
|
|
107
104
|
op75: ""
|
|
108
105
|
}, null, -1)),
|
|
109
|
-
(r(!0), m(x, null,
|
|
110
|
-
key:
|
|
111
|
-
class:
|
|
112
|
-
"model-value": !t(b).includes(
|
|
113
|
-
"onUpdate:modelValue": (
|
|
106
|
+
(r(!0), m(x, null, E(M, (n) => (r(), j(t(F), {
|
|
107
|
+
key: n.name,
|
|
108
|
+
class: O(["row-reverse n-primary flex py1 pl2 pr1 hover:bg-active", n.hidden ? "op35" : ""]),
|
|
109
|
+
"model-value": !t(b).includes(n.name),
|
|
110
|
+
"onUpdate:modelValue": (N) => Q(n.name, N)
|
|
114
111
|
}, {
|
|
115
112
|
default: d(() => [
|
|
116
113
|
l("div", ge, [
|
|
117
114
|
a(v, {
|
|
118
115
|
"text-xl": "",
|
|
119
|
-
icon:
|
|
120
|
-
fallback:
|
|
121
|
-
title:
|
|
116
|
+
icon: n.icon,
|
|
117
|
+
fallback: n.fallbackIcon,
|
|
118
|
+
title: n.title
|
|
122
119
|
}, null, 8, ["icon", "fallback", "title"]),
|
|
123
|
-
l("span", null, I(
|
|
120
|
+
l("span", null, I(n.title), 1),
|
|
124
121
|
e[10] || (e[10] = l("div", { "flex-auto": "" }, null, -1)),
|
|
125
|
-
t(i).includes(
|
|
122
|
+
t(i).includes(n.name) ? (r(), m(x, { key: 0 }, [
|
|
126
123
|
l("button", {
|
|
127
|
-
class: "flex items-center hover:bg-active hover:op100
|
|
128
|
-
onClick:
|
|
129
|
-
t(i).indexOf(
|
|
124
|
+
class: "flex items-center px1 py1 text-sm op65 hover:bg-active hover:op100",
|
|
125
|
+
onClick: z(() => {
|
|
126
|
+
t(i).indexOf(n.name) !== 0 && A(n.name, -1);
|
|
130
127
|
}, ["stop"])
|
|
131
128
|
}, e[8] || (e[8] = [
|
|
132
129
|
l("div", { class: "i-carbon-caret-up" }, null, -1)
|
|
133
130
|
]), 8, ce),
|
|
134
131
|
l("button", {
|
|
135
|
-
class: "flex items-center hover:bg-active hover:op100
|
|
136
|
-
onClick:
|
|
137
|
-
t(i).indexOf(
|
|
132
|
+
class: "flex items-center px1 py1 text-sm op65 hover:bg-active hover:op100",
|
|
133
|
+
onClick: z(() => {
|
|
134
|
+
t(i).indexOf(n.name) !== t(i).length - 1 && A(n.name, 1);
|
|
138
135
|
}, ["stop"])
|
|
139
136
|
}, e[9] || (e[9] = [
|
|
140
137
|
l("div", { class: "i-carbon-caret-down" }, null, -1)
|
|
141
138
|
]), 8, be)
|
|
142
|
-
], 64)) :
|
|
139
|
+
], 64)) : _("", !0),
|
|
143
140
|
l("button", {
|
|
144
|
-
class: "flex items-center hover:bg-active hover:op100
|
|
145
|
-
onClick:
|
|
141
|
+
class: "flex items-center px1 py1 text-sm op65 hover:bg-active hover:op100",
|
|
142
|
+
onClick: z((N) => X(n.name), ["stop"])
|
|
146
143
|
}, [
|
|
147
144
|
l("div", {
|
|
148
|
-
class:
|
|
145
|
+
class: O(t(i).includes(n.name) ? " i-carbon-pin-filled rotate--45" : " i-carbon-pin op45")
|
|
149
146
|
}, null, 2)
|
|
150
147
|
], 8, ye)
|
|
151
148
|
])
|
|
@@ -153,13 +150,14 @@ const pe = {
|
|
|
153
150
|
_: 2
|
|
154
151
|
}, 1032, ["model-value", "class", "onUpdate:modelValue"]))), 128))
|
|
155
152
|
]),
|
|
156
|
-
_: 2
|
|
157
|
-
|
|
153
|
+
_: 2,
|
|
154
|
+
__: [11]
|
|
155
|
+
}, 1032, ["class"])) : _("", !0)
|
|
158
156
|
], 64))), 128))
|
|
159
157
|
]),
|
|
160
158
|
l("div", Ve, [
|
|
161
159
|
e[25] || (e[25] = l("h3", { "text-lg": "" }, " Appearance ", -1)),
|
|
162
|
-
a(t(
|
|
160
|
+
a(t(U), {
|
|
163
161
|
p4: "",
|
|
164
162
|
flex: "~ col gap-2"
|
|
165
163
|
}, {
|
|
@@ -169,7 +167,7 @@ const pe = {
|
|
|
169
167
|
animation: !t(G)
|
|
170
168
|
}, {
|
|
171
169
|
default: d(({ isDark: o, toggle: f }) => [
|
|
172
|
-
a(t(
|
|
170
|
+
a(t($), {
|
|
173
171
|
outlined: "",
|
|
174
172
|
type: "primary",
|
|
175
173
|
onClick: f
|
|
@@ -180,9 +178,10 @@ const pe = {
|
|
|
180
178
|
"dark:i-carbon-moon": "",
|
|
181
179
|
"translate-y--1px": ""
|
|
182
180
|
}, null, -1)),
|
|
183
|
-
|
|
181
|
+
R(" " + I(o ? "Dark" : "Light"), 1)
|
|
184
182
|
]),
|
|
185
|
-
_: 2
|
|
183
|
+
_: 2,
|
|
184
|
+
__: [13]
|
|
186
185
|
}, 1032, ["onClick"])
|
|
187
186
|
]),
|
|
188
187
|
_: 1
|
|
@@ -197,7 +196,7 @@ const pe = {
|
|
|
197
196
|
}, null, -1)),
|
|
198
197
|
e[17] || (e[17] = l("p", null, "UI Scale", -1)),
|
|
199
198
|
l("div", null, [
|
|
200
|
-
a(t(
|
|
199
|
+
a(t(h), {
|
|
201
200
|
modelValue: t(k),
|
|
202
201
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => p(k) ? k.value = o : null),
|
|
203
202
|
options: J.map(([o, f]) => ({ label: o, value: f })),
|
|
@@ -226,14 +225,15 @@ const pe = {
|
|
|
226
225
|
e[15] || (e[15] = l("span", { op75: "" }, "Scrollable Sidebar", -1))
|
|
227
226
|
])
|
|
228
227
|
]),
|
|
229
|
-
_: 1
|
|
228
|
+
_: 1,
|
|
229
|
+
__: [16, 17, 18]
|
|
230
230
|
}),
|
|
231
231
|
t(q) ? (r(), m(x, { key: 0 }, [
|
|
232
232
|
e[23] || (e[23] = l("h3", {
|
|
233
233
|
mt2: "",
|
|
234
234
|
"text-lg": ""
|
|
235
235
|
}, " Features ", -1)),
|
|
236
|
-
a(t(
|
|
236
|
+
a(t(U), {
|
|
237
237
|
p4: "",
|
|
238
238
|
flex: "~ col gap-2"
|
|
239
239
|
}, {
|
|
@@ -261,33 +261,35 @@ const pe = {
|
|
|
261
261
|
}, null, -1)),
|
|
262
262
|
e[22] || (e[22] = l("p", null, "Minimize floating panel on inactive", -1)),
|
|
263
263
|
l("div", null, [
|
|
264
|
-
a(t(
|
|
264
|
+
a(t(h), {
|
|
265
265
|
modelValue: t(g),
|
|
266
266
|
"onUpdate:modelValue": e[5] || (e[5] = (o) => p(g) ? g.value = o : null),
|
|
267
267
|
"button-props": { outlined: !0 },
|
|
268
|
-
options: t(
|
|
268
|
+
options: t(L),
|
|
269
269
|
placeholder: t(Z)
|
|
270
270
|
}, null, 8, ["modelValue", "options", "placeholder"])
|
|
271
271
|
])
|
|
272
272
|
]),
|
|
273
|
-
_: 1
|
|
273
|
+
_: 1,
|
|
274
|
+
__: [21, 22]
|
|
274
275
|
})
|
|
275
|
-
], 64)) :
|
|
276
|
+
], 64)) : _("", !0),
|
|
276
277
|
e[26] || (e[26] = l("h3", {
|
|
277
278
|
mt2: "",
|
|
278
279
|
"text-lg": ""
|
|
279
280
|
}, " Debug ", -1)),
|
|
280
|
-
l("div",
|
|
281
|
-
a(t(
|
|
281
|
+
l("div", _e, [
|
|
282
|
+
a(t($), {
|
|
282
283
|
outlined: "",
|
|
283
284
|
type: "warning",
|
|
284
285
|
onClick: e[6] || (e[6] = (o) => y.value = !0)
|
|
285
286
|
}, {
|
|
286
287
|
default: d(() => e[24] || (e[24] = [
|
|
287
288
|
l("div", { "i-carbon-breaking-change": "" }, null, -1),
|
|
288
|
-
|
|
289
|
+
R(" Reset Local Settings & State ", -1)
|
|
289
290
|
])),
|
|
290
|
-
_: 1
|
|
291
|
+
_: 1,
|
|
292
|
+
__: [24]
|
|
291
293
|
}),
|
|
292
294
|
a(t(se), {
|
|
293
295
|
modelValue: t(y),
|
|
@@ -306,5 +308,5 @@ const pe = {
|
|
|
306
308
|
}
|
|
307
309
|
});
|
|
308
310
|
export {
|
|
309
|
-
|
|
311
|
+
ze as default
|
|
310
312
|
};
|