@voltro/devtools 0.90.0 → 0.91.1
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/CHANGELOG.md +131 -0
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/dist/Devtools.js +170 -169
- package/dist/components/dockMenu.js +46 -46
- package/dist/console/Capsule.js +137 -68
- package/dist/console/Console.js +22 -22
- package/dist/console/InspectRefusals.js +12 -12
- package/dist/console/sources.js +13 -13
- package/dist/index.js +3 -3
- package/dist/inspectFetch.js +19 -19
- package/dist/inspectStream.js +9 -9
- package/dist/panels/desktop.js +18 -18
- package/dist/panels/indexes.js +71 -71
- package/dist/panels/pwa.js +22 -22
- package/dist/panels/routes.js +13 -13
- package/dist/panels/runtimes.js +15 -15
- package/dist/panels/stores.js +35 -35
- package/dist/panels/traces.js +42 -42
- package/dist/panels/webhooks.js +89 -89
- package/dist/panels/workflows.js +146 -146
- package/dist/styles.css +11 -3
- package/dist/useCapsuleClearance.js +6 -6
- package/package.json +4 -4
package/dist/panels/desktop.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Badge as e, Button as t, Card as n, Empty as r, KeyValue as i, SectionTitle as a } from "../components/primitives.js";
|
|
2
|
+
import { Monitor as o } from "../components/icons.js";
|
|
3
|
+
import { useDevtoolsStrings as s } from "../strings.js";
|
|
4
4
|
import { useCallback as c, useEffect as l, useState as u } from "react";
|
|
5
5
|
import { readPairing as d, usePlatform as f, useShellExtension as p } from "@voltro/client";
|
|
6
6
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
7
7
|
// src/panels/desktop.tsx
|
|
8
8
|
var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) => e).sort(), _ = (e) => [e.fullscreen ? "fullscreen" : e.maximized ? "maximized" : "windowed", e.focused ? "focused" : "unfocused"].join(", "), v = () => {
|
|
9
|
-
let v =
|
|
9
|
+
let v = s().desktop, y = f(), b = p("desktop"), [x, S] = u(0), [C, w] = u(null), [T, E] = u(null), D = c(() => S((e) => e + 1), []);
|
|
10
10
|
if (l(() => {
|
|
11
11
|
if (!b) return;
|
|
12
12
|
let e = b.window.subscribe(D), t = b.os.onThemeChange(D);
|
|
@@ -16,23 +16,23 @@ var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) =>
|
|
|
16
16
|
}, [b, D]), l(() => {
|
|
17
17
|
let e = y.storage("local");
|
|
18
18
|
e === null ? E(null) : d(e).then(E);
|
|
19
|
-
}, [y, x]), !b) return /* @__PURE__ */ m(
|
|
19
|
+
}, [y, x]), !b) return /* @__PURE__ */ m(r, { children: v.notDesktop });
|
|
20
20
|
let O = g(y.capabilities);
|
|
21
21
|
return /* @__PURE__ */ h("div", {
|
|
22
22
|
className: "vdt:flex vdt:flex-col vdt:gap-3 vdt:p-3",
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */ h(
|
|
25
|
-
Icon:
|
|
26
|
-
right: /* @__PURE__ */ m(
|
|
24
|
+
/* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(a, {
|
|
25
|
+
Icon: o,
|
|
26
|
+
right: /* @__PURE__ */ m(t, {
|
|
27
27
|
size: "sm",
|
|
28
28
|
onClick: D,
|
|
29
29
|
children: v.refresh
|
|
30
30
|
}),
|
|
31
31
|
children: v.shell
|
|
32
|
-
}), /* @__PURE__ */ m(
|
|
32
|
+
}), /* @__PURE__ */ m(i, { entries: [
|
|
33
33
|
{
|
|
34
34
|
key: v.kind,
|
|
35
|
-
value: /* @__PURE__ */ m(
|
|
35
|
+
value: /* @__PURE__ */ m(e, {
|
|
36
36
|
tone: "info",
|
|
37
37
|
children: b.kind
|
|
38
38
|
})
|
|
@@ -54,8 +54,8 @@ var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) =>
|
|
|
54
54
|
value: y.platform.appVersion ?? v.unknown
|
|
55
55
|
}
|
|
56
56
|
] })] }),
|
|
57
|
-
/* @__PURE__ */ h(
|
|
58
|
-
right: y.updates ? /* @__PURE__ */ m(
|
|
57
|
+
/* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(a, {
|
|
58
|
+
right: y.updates ? /* @__PURE__ */ m(t, {
|
|
59
59
|
size: "sm",
|
|
60
60
|
onClick: () => {
|
|
61
61
|
y.updates.check().then(w);
|
|
@@ -63,14 +63,14 @@ var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) =>
|
|
|
63
63
|
children: v.checkNow
|
|
64
64
|
}) : void 0,
|
|
65
65
|
children: v.updater
|
|
66
|
-
}), /* @__PURE__ */ m(
|
|
66
|
+
}), /* @__PURE__ */ m(i, { entries: [{
|
|
67
67
|
key: v.updaterPort,
|
|
68
68
|
value: y.updates ? v.yes : v.no
|
|
69
69
|
}, {
|
|
70
70
|
key: v.waitingVersion,
|
|
71
71
|
value: C?.version ?? v.none
|
|
72
72
|
}] })] }),
|
|
73
|
-
/* @__PURE__ */ h(
|
|
73
|
+
/* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(a, { children: v.localStack }), /* @__PURE__ */ m(i, { entries: [
|
|
74
74
|
{
|
|
75
75
|
key: v.sidecarPort,
|
|
76
76
|
value: b.sidecar === void 0 ? v.no : v.yes
|
|
@@ -84,15 +84,15 @@ var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) =>
|
|
|
84
84
|
value: T?.name ?? v.none
|
|
85
85
|
}
|
|
86
86
|
] })] }),
|
|
87
|
-
/* @__PURE__ */ h(
|
|
87
|
+
/* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(a, { children: v.capabilities }), O.length === 0 ? /* @__PURE__ */ m("div", {
|
|
88
88
|
className: "vdt:px-3 vdt:py-2 vdt:text-xs vdt:text-foreground-subtle",
|
|
89
89
|
children: v.noCapabilities
|
|
90
90
|
}) : /* @__PURE__ */ m("div", {
|
|
91
91
|
className: "vdt:flex vdt:flex-wrap vdt:gap-1 vdt:px-3 vdt:py-2",
|
|
92
|
-
children: O.map((
|
|
92
|
+
children: O.map((t) => /* @__PURE__ */ m(e, {
|
|
93
93
|
tone: "neutral",
|
|
94
|
-
children:
|
|
95
|
-
},
|
|
94
|
+
children: t
|
|
95
|
+
}, t))
|
|
96
96
|
})] })
|
|
97
97
|
]
|
|
98
98
|
});
|
package/dist/panels/indexes.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Badge as e, Card as t, CardBody as n, Empty as r, SectionTitle as i } from "../components/primitives.js";
|
|
2
|
+
import { Activity as a } from "../components/icons.js";
|
|
3
|
+
import { useInspectToken as o } from "../inspectAuth.js";
|
|
4
|
+
import { fetchInspect as s } from "../inspectFetch.js";
|
|
5
|
+
import { inspectRefusalFor as c } from "../inspectRefusal.js";
|
|
6
|
+
import { useDocumentVisible as l } from "../useDocumentVisible.js";
|
|
7
|
+
import { useDevtoolsStrings as u } from "../strings.js";
|
|
8
8
|
import { useEffect as d, useState as f } from "react";
|
|
9
9
|
import { useFrameworkRuntimes as p } from "@voltro/client";
|
|
10
10
|
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
11
11
|
// src/panels/indexes.tsx
|
|
12
12
|
var _ = 5e3, v = async (e, t) => {
|
|
13
13
|
if (e === "") return null;
|
|
14
|
-
let n = await
|
|
14
|
+
let n = await s(`${e}/_voltro/inspect/subscriptions`, t);
|
|
15
15
|
return n !== null && Array.isArray(n.subscriptions) ? n : null;
|
|
16
16
|
}, y = (e) => {
|
|
17
|
-
let t = p(), n =
|
|
17
|
+
let t = p(), n = l(), r = o(), i = t.names, a = e && n, [s, u] = f(() => i.map((e) => ({
|
|
18
18
|
name: e,
|
|
19
19
|
response: null,
|
|
20
20
|
live: !1
|
|
@@ -22,17 +22,17 @@ var _ = 5e3, v = async (e, t) => {
|
|
|
22
22
|
return d(() => {
|
|
23
23
|
if (!a) return;
|
|
24
24
|
let e = !1, n = (t, n) => {
|
|
25
|
-
e ||
|
|
25
|
+
e || u((e) => e.map((e) => e.name === t ? {
|
|
26
26
|
...e,
|
|
27
27
|
...n
|
|
28
28
|
} : e));
|
|
29
29
|
}, o = i.map((i) => {
|
|
30
30
|
let a = t.get(i).inspectBaseUrl;
|
|
31
31
|
if (a === "") return { teardown: () => {} };
|
|
32
|
-
let o = null,
|
|
33
|
-
|
|
34
|
-
}, d = () =>
|
|
35
|
-
if (
|
|
32
|
+
let o = null, s = null, l, u = () => {
|
|
33
|
+
s !== null && clearInterval(s), s = null;
|
|
34
|
+
}, d = () => c(a) !== void 0, f = () => {
|
|
35
|
+
if (s !== null || d()) return;
|
|
36
36
|
let e = async () => {
|
|
37
37
|
let e = await v(a, r);
|
|
38
38
|
e !== null && n(i, {
|
|
@@ -40,7 +40,7 @@ var _ = 5e3, v = async (e, t) => {
|
|
|
40
40
|
live: !1
|
|
41
41
|
}), d() && (u(), o?.close());
|
|
42
42
|
};
|
|
43
|
-
e(),
|
|
43
|
+
e(), s = setInterval(() => {
|
|
44
44
|
e();
|
|
45
45
|
}, _);
|
|
46
46
|
};
|
|
@@ -77,7 +77,7 @@ var _ = 5e3, v = async (e, t) => {
|
|
|
77
77
|
t,
|
|
78
78
|
i,
|
|
79
79
|
r
|
|
80
|
-
]),
|
|
80
|
+
]), s;
|
|
81
81
|
}, b = (e) => {
|
|
82
82
|
if (typeof e != "object" || !e) return !1;
|
|
83
83
|
let t = e;
|
|
@@ -102,90 +102,90 @@ var _ = 5e3, v = async (e, t) => {
|
|
|
102
102
|
}
|
|
103
103
|
return typeof n.column == "string" && typeof n.op == "string" ? E(n) : JSON.stringify(e);
|
|
104
104
|
}, O = () => {
|
|
105
|
-
let
|
|
106
|
-
return
|
|
105
|
+
let e = y(!0), o = u().indexes, s = e.filter((e) => e.response !== null).length;
|
|
106
|
+
return e.length === 0 ? /* @__PURE__ */ h(r, { children: o.noApis }) : s === 0 ? /* @__PURE__ */ g(r, { children: [o.unreachableTitle, /* @__PURE__ */ h("div", {
|
|
107
107
|
className: "vdt:mt-1 vdt:text-foreground-subtle",
|
|
108
|
-
children:
|
|
108
|
+
children: o.unreachableHint
|
|
109
109
|
})] }) : /* @__PURE__ */ h("div", {
|
|
110
110
|
className: "vdt:flex vdt:flex-col vdt:gap-3 vdt:p-3",
|
|
111
|
-
children:
|
|
112
|
-
Icon:
|
|
113
|
-
children:
|
|
114
|
-
}), /* @__PURE__ */ h(
|
|
111
|
+
children: e.map(({ name: e, response: r, live: s }) => r === null ? /* @__PURE__ */ g(t, { children: [/* @__PURE__ */ h(i, {
|
|
112
|
+
Icon: a,
|
|
113
|
+
children: e
|
|
114
|
+
}), /* @__PURE__ */ h(n, {
|
|
115
115
|
className: "vdt:text-xs vdt:text-foreground-subtle",
|
|
116
|
-
children:
|
|
117
|
-
})] },
|
|
118
|
-
apiName:
|
|
119
|
-
response:
|
|
120
|
-
live:
|
|
121
|
-
},
|
|
116
|
+
children: o.offline
|
|
117
|
+
})] }, e) : /* @__PURE__ */ h(k, {
|
|
118
|
+
apiName: e,
|
|
119
|
+
response: r,
|
|
120
|
+
live: s
|
|
121
|
+
}, e))
|
|
122
122
|
});
|
|
123
|
-
}, k = ({ apiName:
|
|
124
|
-
let
|
|
125
|
-
return /* @__PURE__ */ g(
|
|
126
|
-
/* @__PURE__ */ h(
|
|
127
|
-
Icon:
|
|
123
|
+
}, k = ({ apiName: n, response: r, live: o }) => {
|
|
124
|
+
let s = u().indexes, c = [...r.subscriptions].sort((e, t) => t.subscriberCount - e.subscriberCount);
|
|
125
|
+
return /* @__PURE__ */ g(t, { children: [
|
|
126
|
+
/* @__PURE__ */ h(i, {
|
|
127
|
+
Icon: a,
|
|
128
128
|
right: /* @__PURE__ */ g("div", {
|
|
129
129
|
className: "vdt:flex vdt:items-center vdt:gap-1",
|
|
130
|
-
children: [/* @__PURE__ */ h(
|
|
130
|
+
children: [/* @__PURE__ */ h(e, {
|
|
131
131
|
tone: "info",
|
|
132
|
-
children:
|
|
133
|
-
}), /* @__PURE__ */ h(
|
|
134
|
-
tone:
|
|
135
|
-
children:
|
|
132
|
+
children: s.subsBadge(r.subscriptions.length)
|
|
133
|
+
}), /* @__PURE__ */ h(e, {
|
|
134
|
+
tone: o ? "success" : "neutral",
|
|
135
|
+
children: o ? s.live : s.poll
|
|
136
136
|
})]
|
|
137
137
|
}),
|
|
138
|
-
children:
|
|
138
|
+
children: n
|
|
139
139
|
}),
|
|
140
|
-
|
|
140
|
+
r.matcherStats.length > 0 && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
|
|
141
141
|
className: "vdt:text-[11px] vdt:uppercase vdt:tracking-wide vdt:text-foreground-subtle vdt:mt-3 vdt:mb-1",
|
|
142
|
-
children:
|
|
142
|
+
children: s.tables
|
|
143
143
|
}), /* @__PURE__ */ h("div", {
|
|
144
144
|
className: "vdt:flex vdt:flex-col vdt:gap-1",
|
|
145
|
-
children:
|
|
145
|
+
children: r.matcherStats.map((t) => /* @__PURE__ */ g("div", {
|
|
146
146
|
className: "vdt:flex vdt:items-baseline vdt:gap-3 vdt:text-xs",
|
|
147
147
|
children: [
|
|
148
148
|
/* @__PURE__ */ h("span", {
|
|
149
149
|
className: "vdt:font-mono vdt:text-foreground",
|
|
150
|
-
children:
|
|
150
|
+
children: t.tableName
|
|
151
151
|
}),
|
|
152
152
|
/* @__PURE__ */ g("span", {
|
|
153
153
|
className: "vdt:text-foreground-subtle",
|
|
154
|
-
children: [
|
|
154
|
+
children: [t.tupleRouted + t.columnBucketed + t.rangeBucketed + t.unindexedFallback, " subs"]
|
|
155
155
|
}),
|
|
156
|
-
|
|
156
|
+
t.tupleRouted > 0 && /* @__PURE__ */ h(e, {
|
|
157
157
|
tone: "success",
|
|
158
|
-
children: `${
|
|
158
|
+
children: `${t.tupleRouted} tuple`
|
|
159
159
|
}),
|
|
160
|
-
|
|
160
|
+
t.columnBucketed > 0 && /* @__PURE__ */ h(e, {
|
|
161
161
|
tone: "info",
|
|
162
|
-
children: `${
|
|
162
|
+
children: `${t.columnBucketed} column`
|
|
163
163
|
}),
|
|
164
|
-
|
|
164
|
+
t.rangeBucketed > 0 && /* @__PURE__ */ h(e, {
|
|
165
165
|
tone: "neutral",
|
|
166
|
-
children: `${
|
|
166
|
+
children: `${t.rangeBucketed} range`
|
|
167
167
|
}),
|
|
168
|
-
|
|
168
|
+
t.unindexedFallback > 0 && /* @__PURE__ */ h(e, {
|
|
169
169
|
tone: "warning",
|
|
170
|
-
children: `${
|
|
170
|
+
children: `${t.unindexedFallback} unindexed`
|
|
171
171
|
}),
|
|
172
|
-
|
|
172
|
+
t.distinctTupleKeys > 0 && /* @__PURE__ */ g("span", {
|
|
173
173
|
className: "vdt:text-foreground-subtle",
|
|
174
|
-
children: [
|
|
174
|
+
children: [t.distinctTupleKeys, " tuple keys"]
|
|
175
175
|
})
|
|
176
176
|
]
|
|
177
|
-
},
|
|
177
|
+
}, t.tableName))
|
|
178
178
|
})] }),
|
|
179
|
-
|
|
179
|
+
c.length > 0 && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
|
|
180
180
|
className: "vdt:text-[11px] vdt:uppercase vdt:tracking-wide vdt:text-foreground-subtle vdt:mt-3 vdt:mb-1",
|
|
181
|
-
children:
|
|
181
|
+
children: s.subscriptionsSection
|
|
182
182
|
}), /* @__PURE__ */ h("div", {
|
|
183
183
|
className: "vdt:flex vdt:flex-col vdt:gap-2",
|
|
184
|
-
children:
|
|
184
|
+
children: c.map((e) => /* @__PURE__ */ h(A, { sub: e }, e.fingerprint))
|
|
185
185
|
})] })
|
|
186
186
|
] });
|
|
187
|
-
}, A = ({ sub:
|
|
188
|
-
let
|
|
187
|
+
}, A = ({ sub: t }) => {
|
|
188
|
+
let n = u().indexes, r = S(t);
|
|
189
189
|
return /* @__PURE__ */ g("div", {
|
|
190
190
|
className: "vdt:flex vdt:flex-col vdt:gap-0.5 vdt:px-2 vdt:py-1 vdt:rounded-sm vdt:bg-muted/40",
|
|
191
191
|
children: [/* @__PURE__ */ g("div", {
|
|
@@ -193,35 +193,35 @@ var _ = 5e3, v = async (e, t) => {
|
|
|
193
193
|
children: [
|
|
194
194
|
/* @__PURE__ */ h("span", {
|
|
195
195
|
className: "vdt:font-mono vdt:text-foreground",
|
|
196
|
-
children:
|
|
196
|
+
children: t.table
|
|
197
197
|
}),
|
|
198
|
-
/* @__PURE__ */ h(
|
|
199
|
-
tone: C(
|
|
200
|
-
children: w(
|
|
198
|
+
/* @__PURE__ */ h(e, {
|
|
199
|
+
tone: C(r),
|
|
200
|
+
children: w(r)
|
|
201
201
|
}),
|
|
202
|
-
|
|
202
|
+
t.usingIndex && /* @__PURE__ */ g("span", {
|
|
203
203
|
className: "vdt:text-foreground-subtle",
|
|
204
204
|
children: [
|
|
205
|
-
|
|
205
|
+
n.via,
|
|
206
206
|
" ",
|
|
207
207
|
/* @__PURE__ */ h("span", {
|
|
208
208
|
className: "vdt:font-mono",
|
|
209
|
-
children:
|
|
209
|
+
children: t.usingIndex.name
|
|
210
210
|
})
|
|
211
211
|
]
|
|
212
212
|
}),
|
|
213
213
|
/* @__PURE__ */ g("span", {
|
|
214
214
|
className: "vdt:text-foreground-subtle vdt:ml-auto",
|
|
215
215
|
children: [
|
|
216
|
-
|
|
216
|
+
t.subscriberCount,
|
|
217
217
|
" ",
|
|
218
|
-
|
|
218
|
+
n.clients(t.subscriberCount)
|
|
219
219
|
]
|
|
220
220
|
})
|
|
221
221
|
]
|
|
222
222
|
}), /* @__PURE__ */ h("div", {
|
|
223
223
|
className: "vdt:text-[11px] vdt:font-mono vdt:text-foreground-subtle vdt:break-all",
|
|
224
|
-
children: D(
|
|
224
|
+
children: D(t.predicate)
|
|
225
225
|
})]
|
|
226
226
|
});
|
|
227
227
|
}, j = (e) => {
|
package/dist/panels/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Badge as e, Button as t, Card as n, Empty as r, KeyValue as i, SectionTitle as a } from "../components/primitives.js";
|
|
2
|
+
import { Plug as o } from "../components/icons.js";
|
|
3
|
+
import { useDevtoolsStrings as s } from "../strings.js";
|
|
4
4
|
import { useCallback as c, useEffect as l, useState as u } from "react";
|
|
5
5
|
import { useAppUpdate as d, useInstallPrompt as f, useOfflineStatus as p } from "@voltro/web";
|
|
6
6
|
import { usePlatform as m } from "@voltro/client";
|
|
@@ -41,7 +41,7 @@ var v = (e, t) => ({
|
|
|
41
41
|
pushEndpointHost: c
|
|
42
42
|
};
|
|
43
43
|
}, S = (e) => e === "activated" ? "success" : e === null ? "neutral" : "warning", C = () => {
|
|
44
|
-
let v =
|
|
44
|
+
let v = s().pwa, y = d(), b = f(), C = p(), w = m(), [T, E] = u(null), D = c(() => {
|
|
45
45
|
x().then(E);
|
|
46
46
|
}, []);
|
|
47
47
|
if (l(() => {
|
|
@@ -50,21 +50,21 @@ var v = (e, t) => ({
|
|
|
50
50
|
return e?.serviceWorker?.addEventListener?.("controllerchange", D), () => {
|
|
51
51
|
e?.serviceWorker?.removeEventListener?.("controllerchange", D);
|
|
52
52
|
};
|
|
53
|
-
}, [D]), T === null) return /* @__PURE__ */ g(
|
|
54
|
-
if (!T.worker.supported) return /* @__PURE__ */ g(
|
|
53
|
+
}, [D]), T === null) return /* @__PURE__ */ g(r, { children: v.loading });
|
|
54
|
+
if (!T.worker.supported) return /* @__PURE__ */ g(r, { children: v.unsupported });
|
|
55
55
|
let O = T.worker;
|
|
56
56
|
return /* @__PURE__ */ _("div", {
|
|
57
57
|
className: "vdt:flex vdt:flex-col vdt:gap-3 vdt:p-3",
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */ _(
|
|
60
|
-
Icon:
|
|
61
|
-
right: /* @__PURE__ */ g(
|
|
59
|
+
/* @__PURE__ */ _(n, { children: [/* @__PURE__ */ g(a, {
|
|
60
|
+
Icon: o,
|
|
61
|
+
right: /* @__PURE__ */ g(t, {
|
|
62
62
|
size: "sm",
|
|
63
63
|
onClick: D,
|
|
64
64
|
children: v.refresh
|
|
65
65
|
}),
|
|
66
66
|
children: v.worker
|
|
67
|
-
}), /* @__PURE__ */ g(
|
|
67
|
+
}), /* @__PURE__ */ g(i, { entries: [
|
|
68
68
|
{
|
|
69
69
|
key: v.scope,
|
|
70
70
|
value: O.scope ?? v.none
|
|
@@ -75,21 +75,21 @@ var v = (e, t) => ({
|
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
key: "installing",
|
|
78
|
-
value: /* @__PURE__ */ g(
|
|
78
|
+
value: /* @__PURE__ */ g(e, {
|
|
79
79
|
tone: S(O.installing),
|
|
80
80
|
children: O.installing ?? v.none
|
|
81
81
|
})
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
key: "waiting",
|
|
85
|
-
value: /* @__PURE__ */ g(
|
|
85
|
+
value: /* @__PURE__ */ g(e, {
|
|
86
86
|
tone: S(O.waiting),
|
|
87
87
|
children: O.waiting ?? v.none
|
|
88
88
|
})
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
key: "active",
|
|
92
|
-
value: /* @__PURE__ */ g(
|
|
92
|
+
value: /* @__PURE__ */ g(e, {
|
|
93
93
|
tone: S(O.active),
|
|
94
94
|
children: O.active ?? v.none
|
|
95
95
|
})
|
|
@@ -99,14 +99,14 @@ var v = (e, t) => ({
|
|
|
99
99
|
value: O.backgroundSync ? v.yes : v.no
|
|
100
100
|
}
|
|
101
101
|
] })] }),
|
|
102
|
-
/* @__PURE__ */ _(
|
|
103
|
-
right: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(
|
|
102
|
+
/* @__PURE__ */ _(n, { children: [/* @__PURE__ */ g(a, {
|
|
103
|
+
right: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(t, {
|
|
104
104
|
size: "sm",
|
|
105
105
|
onClick: () => {
|
|
106
106
|
y.check();
|
|
107
107
|
},
|
|
108
108
|
children: v.checkNow
|
|
109
|
-
}), /* @__PURE__ */ g(
|
|
109
|
+
}), /* @__PURE__ */ g(t, {
|
|
110
110
|
size: "sm",
|
|
111
111
|
variant: "accent",
|
|
112
112
|
disabled: !y.updateAvailable,
|
|
@@ -116,7 +116,7 @@ var v = (e, t) => ({
|
|
|
116
116
|
children: v.forceUpdate
|
|
117
117
|
})] }),
|
|
118
118
|
children: v.update
|
|
119
|
-
}), /* @__PURE__ */ g(
|
|
119
|
+
}), /* @__PURE__ */ g(i, { entries: [
|
|
120
120
|
{
|
|
121
121
|
key: v.currentBuild,
|
|
122
122
|
value: w.platform.appVersion ?? v.unknown
|
|
@@ -130,15 +130,15 @@ var v = (e, t) => ({
|
|
|
130
130
|
value: C.online ? v.yes : v.no
|
|
131
131
|
}
|
|
132
132
|
] })] }),
|
|
133
|
-
/* @__PURE__ */ _(
|
|
133
|
+
/* @__PURE__ */ _(n, { children: [/* @__PURE__ */ g(a, { children: v.precache }), T.caches.length === 0 ? /* @__PURE__ */ g("div", {
|
|
134
134
|
className: "vdt:px-3 vdt:py-2 vdt:text-xs vdt:text-foreground-subtle",
|
|
135
135
|
children: v.noCaches
|
|
136
|
-
}) : /* @__PURE__ */ g(
|
|
136
|
+
}) : /* @__PURE__ */ g(i, { entries: T.caches.map((e) => ({
|
|
137
137
|
key: e.name,
|
|
138
138
|
value: v.entries(e.entries)
|
|
139
139
|
})) })] }),
|
|
140
|
-
/* @__PURE__ */ _(
|
|
141
|
-
right: b.canInstall ? /* @__PURE__ */ g(
|
|
140
|
+
/* @__PURE__ */ _(n, { children: [/* @__PURE__ */ g(a, {
|
|
141
|
+
right: b.canInstall ? /* @__PURE__ */ g(t, {
|
|
142
142
|
size: "sm",
|
|
143
143
|
onClick: () => {
|
|
144
144
|
b.install();
|
|
@@ -146,7 +146,7 @@ var v = (e, t) => ({
|
|
|
146
146
|
children: v.install
|
|
147
147
|
}) : void 0,
|
|
148
148
|
children: v.installAndPush
|
|
149
|
-
}), /* @__PURE__ */ g(
|
|
149
|
+
}), /* @__PURE__ */ g(i, { entries: [
|
|
150
150
|
{
|
|
151
151
|
key: v.installed,
|
|
152
152
|
value: b.installed ? v.yes : v.no
|
package/dist/panels/routes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Card as e, Empty as t, KeyValue as n, SectionTitle as r } from "../components/primitives.js";
|
|
2
|
+
import { Compass as i } from "../components/icons.js";
|
|
3
|
+
import { useDevtoolsStrings as a } from "../strings.js";
|
|
4
4
|
import { useEffect as o, useState as s, useSyncExternalStore as c } from "react";
|
|
5
5
|
import { getRouteSnapshot as l, subscribeRouteSnapshot as u } from "@voltro/web";
|
|
6
6
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
@@ -23,18 +23,18 @@ var p = (e) => {
|
|
|
23
23
|
};
|
|
24
24
|
}, []), e;
|
|
25
25
|
}, g = () => {
|
|
26
|
-
let o = m(), c = h(), l =
|
|
26
|
+
let o = m(), c = h(), l = a().routes, [u, g] = s(!0), _ = o.pathname === "/" && Object.keys(o.params).length === 0 && o.loaderData === void 0 && c !== "/" ? c : o.pathname, v = Object.entries(o.params).map(([e, t]) => ({
|
|
27
27
|
key: e,
|
|
28
28
|
value: String(t)
|
|
29
29
|
}));
|
|
30
30
|
return /* @__PURE__ */ f("div", {
|
|
31
31
|
className: "vdt:flex vdt:flex-col vdt:gap-3 vdt:p-3",
|
|
32
|
-
children: [/* @__PURE__ */ f(
|
|
33
|
-
/* @__PURE__ */ d(
|
|
34
|
-
Icon:
|
|
32
|
+
children: [/* @__PURE__ */ f(e, { children: [
|
|
33
|
+
/* @__PURE__ */ d(r, {
|
|
34
|
+
Icon: i,
|
|
35
35
|
children: l.currentRoute
|
|
36
36
|
}),
|
|
37
|
-
/* @__PURE__ */ d(
|
|
37
|
+
/* @__PURE__ */ d(n, { entries: [{
|
|
38
38
|
key: "pathname",
|
|
39
39
|
value: _
|
|
40
40
|
}, {
|
|
@@ -43,11 +43,11 @@ var p = (e) => {
|
|
|
43
43
|
}] }),
|
|
44
44
|
v.length > 0 ? /* @__PURE__ */ d("div", {
|
|
45
45
|
className: "vdt:px-3 vdt:pb-3",
|
|
46
|
-
children: /* @__PURE__ */ d(
|
|
46
|
+
children: /* @__PURE__ */ d(n, { entries: v })
|
|
47
47
|
}) : null
|
|
48
|
-
] }), /* @__PURE__ */ f(
|
|
49
|
-
/* @__PURE__ */ d(
|
|
50
|
-
Icon:
|
|
48
|
+
] }), /* @__PURE__ */ f(e, { children: [
|
|
49
|
+
/* @__PURE__ */ d(r, {
|
|
50
|
+
Icon: i,
|
|
51
51
|
children: l.loaderData
|
|
52
52
|
}),
|
|
53
53
|
/* @__PURE__ */ d("button", {
|
|
@@ -55,7 +55,7 @@ var p = (e) => {
|
|
|
55
55
|
className: "vdt:px-3 vdt:py-1.5 vdt:text-[10px] vdt:uppercase vdt:tracking-wider vdt:text-foreground-muted vdt:hover:text-foreground",
|
|
56
56
|
children: u ? l.collapse : l.expand
|
|
57
57
|
}),
|
|
58
|
-
u ? o.loaderData === void 0 ? /* @__PURE__ */ f(
|
|
58
|
+
u ? o.loaderData === void 0 ? /* @__PURE__ */ f(t, { children: [l.noLoaderTitle, /* @__PURE__ */ d("div", {
|
|
59
59
|
className: "vdt:mt-1 vdt:text-foreground-subtle",
|
|
60
60
|
children: l.noLoaderHint(/* @__PURE__ */ d("code", { children: "<Router>" }))
|
|
61
61
|
})] }) : /* @__PURE__ */ d("pre", {
|
package/dist/panels/runtimes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Badge as e, Card as t, Empty as n, KeyValue as r, SectionTitle as i } from "../components/primitives.js";
|
|
2
|
+
import { Plug as a } from "../components/icons.js";
|
|
3
|
+
import { useDevtoolsStrings as o } from "../strings.js";
|
|
4
4
|
import { useFrameworkRuntimes as s } from "@voltro/client";
|
|
5
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
// src/panels/runtimes.tsx
|
|
@@ -15,22 +15,22 @@ var u = (e) => {
|
|
|
15
15
|
workflows: a
|
|
16
16
|
};
|
|
17
17
|
}, d = () => {
|
|
18
|
-
let d = s(), f =
|
|
19
|
-
return p.length === 0 ? /* @__PURE__ */ l(
|
|
18
|
+
let d = s(), f = o().runtimes, p = d.names;
|
|
19
|
+
return p.length === 0 ? /* @__PURE__ */ l(n, { children: [f.emptyTitle, /* @__PURE__ */ c("div", {
|
|
20
20
|
className: "vdt:mt-1 vdt:text-foreground-subtle",
|
|
21
21
|
children: f.emptyHint
|
|
22
22
|
})] }) : /* @__PURE__ */ c("div", {
|
|
23
23
|
className: "vdt:flex vdt:flex-col vdt:gap-3 vdt:p-3",
|
|
24
|
-
children: p.map((
|
|
25
|
-
let
|
|
26
|
-
return /* @__PURE__ */ l(
|
|
27
|
-
Icon:
|
|
28
|
-
right: /* @__PURE__ */ c(
|
|
24
|
+
children: p.map((n) => {
|
|
25
|
+
let o = d.get(n), s = u(o.descriptors);
|
|
26
|
+
return /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ c(i, {
|
|
27
|
+
Icon: a,
|
|
28
|
+
right: /* @__PURE__ */ c(e, {
|
|
29
29
|
tone: "success",
|
|
30
30
|
children: f.live
|
|
31
31
|
}),
|
|
32
|
-
children:
|
|
33
|
-
}), /* @__PURE__ */ c(
|
|
32
|
+
children: n
|
|
33
|
+
}), /* @__PURE__ */ c(r, { entries: [
|
|
34
34
|
{
|
|
35
35
|
key: "queries",
|
|
36
36
|
value: String(s.queries)
|
|
@@ -53,13 +53,13 @@ var u = (e) => {
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
key: "cacheSize",
|
|
56
|
-
value: String(
|
|
56
|
+
value: String(o.cache.size())
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
key: "descriptors",
|
|
60
|
-
value: String(Object.keys(
|
|
60
|
+
value: String(Object.keys(o.descriptors).length)
|
|
61
61
|
}
|
|
62
|
-
] })] },
|
|
62
|
+
] })] }, n);
|
|
63
63
|
})
|
|
64
64
|
});
|
|
65
65
|
};
|