@websublime/vite-plugin-open-api-devtools 0.8.5 → 0.9.0-next.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/dist/ModelsPage-OOYQ3USo.js +798 -0
- package/dist/ModelsPage-OOYQ3USo.js.map +1 -0
- package/dist/{RoutesPage-BCKS0kdj.js → RoutesPage-BgsspZkr.js} +191 -191
- package/dist/RoutesPage-BgsspZkr.js.map +1 -0
- package/dist/SimulatorPage-g9fGUP4F.js +436 -0
- package/dist/SimulatorPage-g9fGUP4F.js.map +1 -0
- package/dist/TimelinePage-D_GD3OjL.js +861 -0
- package/dist/TimelinePage-D_GD3OjL.js.map +1 -0
- package/dist/{check-BZ_jBwd4.js → check-B4mNtdMg.js} +2 -2
- package/dist/{check-BZ_jBwd4.js.map → check-B4mNtdMg.js.map} +1 -1
- package/dist/devtools.css +1 -1
- package/dist/devtools.js +1 -1
- package/dist/devtools.umd.cjs +3 -3
- package/dist/devtools.umd.cjs.map +1 -1
- package/dist/{format-Dq-zmlAN.js → format-Dj37a-xS.js} +2 -2
- package/dist/{format-Dq-zmlAN.js.map → format-Dj37a-xS.js.map} +1 -1
- package/dist/main-CWgkFc8w.js +620 -0
- package/dist/main-CWgkFc8w.js.map +1 -0
- package/dist/registry-SW4SCwV5.js +216 -0
- package/dist/registry-SW4SCwV5.js.map +1 -0
- package/dist/spa/assets/{ModelsPage-8zCKSqIw.css → ModelsPage-CrseRvBH.css} +1 -1
- package/dist/spa/assets/ModelsPage-CxzHlUKB.js +4 -0
- package/dist/spa/assets/ModelsPage-CxzHlUKB.js.map +1 -0
- package/dist/spa/assets/RoutesPage-BchriFi3.js +2 -0
- package/dist/spa/assets/RoutesPage-BchriFi3.js.map +1 -0
- package/dist/spa/assets/{RoutesPage-BVXzvJ2S.css → RoutesPage-Wp_sf4Io.css} +1 -1
- package/dist/spa/assets/SimulatorPage-CHGPhn5Y.js +2 -0
- package/dist/spa/assets/SimulatorPage-CHGPhn5Y.js.map +1 -0
- package/dist/spa/assets/SimulatorPage-p6R5JJTE.css +1 -0
- package/dist/spa/assets/{TimelinePage-BDyp8kvu.css → TimelinePage-ED20f46Y.css} +1 -1
- package/dist/spa/assets/TimelinePage-zBBJCjLX.js +2 -0
- package/dist/spa/assets/TimelinePage-zBBJCjLX.js.map +1 -0
- package/dist/spa/assets/check-CDp1nxJT.js +2 -0
- package/dist/spa/assets/{check-DaD3RpI4.js.map → check-CDp1nxJT.js.map} +1 -1
- package/dist/spa/assets/{format-er1_KlP8.js → format-DA0n5kox.js} +2 -2
- package/dist/spa/assets/{format-er1_KlP8.js.map → format-DA0n5kox.js.map} +1 -1
- package/dist/spa/assets/index-Ddu0x8qb.js +3 -0
- package/dist/spa/assets/index-Ddu0x8qb.js.map +1 -0
- package/dist/spa/assets/registry-CKvK0Ln5.js +2 -0
- package/dist/spa/assets/registry-CKvK0Ln5.js.map +1 -0
- package/dist/spa/assets/{trash-2-BhRxw6RN.js → trash-2-B1UuFJDm.js} +2 -2
- package/dist/spa/assets/{trash-2-BhRxw6RN.js.map → trash-2-B1UuFJDm.js.map} +1 -1
- package/dist/spa/assets/{triangle-alert-QXcMwGDR.js → triangle-alert-ITT7135L.js} +2 -2
- package/dist/spa/assets/{triangle-alert-QXcMwGDR.js.map → triangle-alert-ITT7135L.js.map} +1 -1
- package/dist/spa/assets/{vue-vendor-Bkktf9yg.js → vue-vendor-D62nux6V.js} +2 -2
- package/dist/spa/assets/{vue-vendor-Bkktf9yg.js.map → vue-vendor-D62nux6V.js.map} +1 -1
- package/dist/spa/assets/x-YOimnrsL.js +2 -0
- package/dist/spa/assets/{x-DGt4DUCk.js.map → x-YOimnrsL.js.map} +1 -1
- package/dist/spa/index.html +2 -2
- package/dist/{trash-2-D9Av3Lfp.js → trash-2-CDLzu4_Y.js} +2 -2
- package/dist/{trash-2-D9Av3Lfp.js.map → trash-2-CDLzu4_Y.js.map} +1 -1
- package/dist/{triangle-alert-6Spra6HA.js → triangle-alert-BP3-t-po.js} +2 -2
- package/dist/{triangle-alert-6Spra6HA.js.map → triangle-alert-BP3-t-po.js.map} +1 -1
- package/dist/{x-DI-fqJ3g.js → x-BZzigrBR.js} +2 -2
- package/dist/{x-DI-fqJ3g.js.map → x-BZzigrBR.js.map} +1 -1
- package/package.json +13 -12
- package/dist/ModelsPage-DxcKgz3y.js +0 -757
- package/dist/ModelsPage-DxcKgz3y.js.map +0 -1
- package/dist/RoutesPage-BCKS0kdj.js.map +0 -1
- package/dist/SimulatorPage-BlbxLDdf.js +0 -430
- package/dist/SimulatorPage-BlbxLDdf.js.map +0 -1
- package/dist/TimelinePage-BhtcWy3o.js +0 -849
- package/dist/TimelinePage-BhtcWy3o.js.map +0 -1
- package/dist/main-DmyM_bX3.js +0 -537
- package/dist/main-DmyM_bX3.js.map +0 -1
- package/dist/registry-BQhccWMq.js +0 -153
- package/dist/registry-BQhccWMq.js.map +0 -1
- package/dist/spa/assets/ModelsPage-Bd7YM0_p.js +0 -4
- package/dist/spa/assets/ModelsPage-Bd7YM0_p.js.map +0 -1
- package/dist/spa/assets/RoutesPage-YQcTov5t.js +0 -2
- package/dist/spa/assets/RoutesPage-YQcTov5t.js.map +0 -1
- package/dist/spa/assets/SimulatorPage-DGEq_rzM.css +0 -1
- package/dist/spa/assets/SimulatorPage-DPxecZGS.js +0 -2
- package/dist/spa/assets/SimulatorPage-DPxecZGS.js.map +0 -1
- package/dist/spa/assets/TimelinePage-CbWvtFc_.js +0 -2
- package/dist/spa/assets/TimelinePage-CbWvtFc_.js.map +0 -1
- package/dist/spa/assets/check-DaD3RpI4.js +0 -2
- package/dist/spa/assets/index-x38XzU3c.js +0 -3
- package/dist/spa/assets/index-x38XzU3c.js.map +0 -1
- package/dist/spa/assets/registry-DjJcdO1T.js +0 -2
- package/dist/spa/assets/registry-DjJcdO1T.js.map +0 -1
- package/dist/spa/assets/x-DGt4DUCk.js +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as E, computed as H, createElementBlock as o, openBlock as n, createVNode as l, createElementVNode as t, unref as e, normalizeClass as
|
|
2
|
-
import { g as P, C as Q, a as
|
|
3
|
-
import { c as
|
|
4
|
-
import { u as
|
|
5
|
-
import { X as j } from "./x-
|
|
6
|
-
const R =
|
|
1
|
+
import { defineComponent as E, computed as H, createElementBlock as o, openBlock as n, createVNode as l, createElementVNode as t, unref as e, normalizeClass as g, toDisplayString as c, createCommentVNode as p, createTextVNode as x, Fragment as k, renderList as S, withDirectives as Y, createBlock as q, resolveDynamicComponent as G, vShow as tt, ref as T, onMounted as et, onUnmounted as st, watch as nt } from "vue";
|
|
2
|
+
import { g as P, C as Q, a as ot, S as V, F as it, b as at } from "./format-Dj37a-xS.js";
|
|
3
|
+
import { c as b, _ as F, u as dt, a as lt, R as rt } from "./main-CWgkFc8w.js";
|
|
4
|
+
import { u as ct } from "./registry-SW4SCwV5.js";
|
|
5
|
+
import { X as j } from "./x-BZzigrBR.js";
|
|
6
|
+
const R = b("code", [
|
|
7
7
|
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
8
8
|
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
9
9
|
]);
|
|
10
|
-
const M =
|
|
10
|
+
const M = b("file-json", [
|
|
11
11
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
12
12
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
13
13
|
[
|
|
@@ -19,11 +19,11 @@ const M = $("file-json", [
|
|
|
19
19
|
{ d: "M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1", key: "mpwhp6" }
|
|
20
20
|
]
|
|
21
21
|
]);
|
|
22
|
-
const
|
|
22
|
+
const ut = b("lock", [
|
|
23
23
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
24
24
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
25
25
|
]);
|
|
26
|
-
const
|
|
26
|
+
const pt = b("shield", [
|
|
27
27
|
[
|
|
28
28
|
"path",
|
|
29
29
|
{
|
|
@@ -32,7 +32,7 @@ const ct = $("shield", [
|
|
|
32
32
|
}
|
|
33
33
|
]
|
|
34
34
|
]);
|
|
35
|
-
const w =
|
|
35
|
+
const w = b("sprout", [
|
|
36
36
|
["path", { d: "M7 20h10", key: "e6iznv" }],
|
|
37
37
|
["path", { d: "M10 20c5.5-2.5.8-6.4 3-10", key: "161w41" }],
|
|
38
38
|
[
|
|
@@ -50,7 +50,7 @@ const w = $("sprout", [
|
|
|
50
50
|
}
|
|
51
51
|
]
|
|
52
52
|
]);
|
|
53
|
-
const
|
|
53
|
+
const _t = b("tag", [
|
|
54
54
|
[
|
|
55
55
|
"path",
|
|
56
56
|
{
|
|
@@ -59,128 +59,128 @@ const ut = $("tag", [
|
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
61
|
["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
|
|
62
|
-
]),
|
|
62
|
+
]), ht = { class: "endpoint-detail" }, yt = {
|
|
63
63
|
key: 0,
|
|
64
64
|
class: "endpoint-detail__empty"
|
|
65
|
-
},
|
|
65
|
+
}, mt = {
|
|
66
66
|
key: 1,
|
|
67
67
|
class: "endpoint-detail__content"
|
|
68
|
-
},
|
|
68
|
+
}, gt = { class: "endpoint-detail__header" }, vt = { class: "endpoint-detail__path font-mono" }, ft = { class: "endpoint-detail__status" }, kt = {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "endpoint-detail__status-item endpoint-detail__status-item--handler"
|
|
71
|
-
},
|
|
71
|
+
}, bt = {
|
|
72
72
|
key: 1,
|
|
73
73
|
class: "endpoint-detail__status-item endpoint-detail__status-item--seed"
|
|
74
|
-
},
|
|
74
|
+
}, $t = {
|
|
75
75
|
key: 2,
|
|
76
76
|
class: "endpoint-detail__status-item endpoint-detail__status-item--security"
|
|
77
|
-
},
|
|
77
|
+
}, St = {
|
|
78
78
|
key: 3,
|
|
79
79
|
class: "endpoint-detail__status-item endpoint-detail__status-item--auto"
|
|
80
|
-
},
|
|
80
|
+
}, Ct = { class: "endpoint-detail__sections" }, zt = { class: "endpoint-detail__section" }, xt = { class: "endpoint-detail__section-content font-mono" }, Mt = {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "endpoint-detail__section"
|
|
83
|
-
},
|
|
83
|
+
}, Ht = { class: "endpoint-detail__section-title" }, Et = { class: "endpoint-detail__tags" }, Ft = {
|
|
84
84
|
key: 1,
|
|
85
85
|
class: "endpoint-detail__section"
|
|
86
|
-
},
|
|
86
|
+
}, Rt = { class: "endpoint-detail__section-content" }, wt = {
|
|
87
87
|
key: 2,
|
|
88
88
|
class: "endpoint-detail__section"
|
|
89
|
-
},
|
|
89
|
+
}, It = { class: "endpoint-detail__section-content endpoint-detail__description" }, Dt = {
|
|
90
90
|
key: 3,
|
|
91
91
|
class: "endpoint-detail__section"
|
|
92
|
-
},
|
|
92
|
+
}, Lt = { class: "endpoint-detail__section-title" }, Nt = { class: "endpoint-detail__section-content font-mono" }, At = {
|
|
93
93
|
key: 4,
|
|
94
94
|
class: "endpoint-detail__section"
|
|
95
|
-
},
|
|
95
|
+
}, Tt = { class: "endpoint-detail__section-title" }, Vt = { class: "endpoint-detail__security" }, jt = { class: "endpoint-detail__security-name font-mono" }, qt = { class: "endpoint-detail__security-scopes text-muted" }, Gt = /* @__PURE__ */ E({
|
|
96
96
|
__name: "EndpointDetail",
|
|
97
97
|
props: {
|
|
98
98
|
endpoint: {}
|
|
99
99
|
},
|
|
100
100
|
setup(d) {
|
|
101
|
-
const s = d,
|
|
101
|
+
const s = d, v = H(() => s.endpoint?.security && s.endpoint.security.length > 0), f = H(() => s.endpoint?.security ? s.endpoint.security.map((y) => ({
|
|
102
102
|
name: y.name,
|
|
103
103
|
scopes: y.scopes.length > 0 ? y.scopes.join(", ") : "No scopes"
|
|
104
104
|
})) : []);
|
|
105
|
-
return (y, i) => (n(), o("div",
|
|
106
|
-
d.endpoint ? (n(), o("div",
|
|
107
|
-
t("header",
|
|
105
|
+
return (y, i) => (n(), o("div", ht, [
|
|
106
|
+
d.endpoint ? (n(), o("div", mt, [
|
|
107
|
+
t("header", gt, [
|
|
108
108
|
t("span", {
|
|
109
|
-
class:
|
|
109
|
+
class: g([
|
|
110
110
|
"method-badge",
|
|
111
111
|
"method-badge--large",
|
|
112
112
|
`method-badge--${d.endpoint.method}`
|
|
113
113
|
])
|
|
114
114
|
}, c(e(P)(d.endpoint.method)), 3),
|
|
115
|
-
t("h2",
|
|
115
|
+
t("h2", vt, c(d.endpoint.path), 1)
|
|
116
116
|
]),
|
|
117
|
-
t("div",
|
|
118
|
-
d.endpoint.hasHandler ? (n(), o("div",
|
|
117
|
+
t("div", ft, [
|
|
118
|
+
d.endpoint.hasHandler ? (n(), o("div", kt, [
|
|
119
119
|
l(e(R), { size: 14 }),
|
|
120
120
|
i[2] || (i[2] = t("span", null, "Has custom handler", -1))
|
|
121
|
-
])) :
|
|
122
|
-
d.endpoint.hasSeed ? (n(), o("div",
|
|
121
|
+
])) : p("", !0),
|
|
122
|
+
d.endpoint.hasSeed ? (n(), o("div", bt, [
|
|
123
123
|
l(e(w), { size: 14 }),
|
|
124
124
|
i[3] || (i[3] = t("span", null, "Has seed data", -1))
|
|
125
|
-
])) :
|
|
126
|
-
|
|
127
|
-
l(e(
|
|
125
|
+
])) : p("", !0),
|
|
126
|
+
v.value ? (n(), o("div", $t, [
|
|
127
|
+
l(e(ut), { size: 14 }),
|
|
128
128
|
i[4] || (i[4] = t("span", null, "Requires authentication", -1))
|
|
129
|
-
])) :
|
|
130
|
-
!d.endpoint.hasHandler && !d.endpoint.hasSeed ? (n(), o("div",
|
|
129
|
+
])) : p("", !0),
|
|
130
|
+
!d.endpoint.hasHandler && !d.endpoint.hasSeed ? (n(), o("div", St, [
|
|
131
131
|
l(e(M), { size: 14 }),
|
|
132
132
|
i[5] || (i[5] = t("span", null, "Auto-generated response", -1))
|
|
133
|
-
])) :
|
|
133
|
+
])) : p("", !0)
|
|
134
134
|
]),
|
|
135
|
-
t("div",
|
|
136
|
-
t("section",
|
|
135
|
+
t("div", Ct, [
|
|
136
|
+
t("section", zt, [
|
|
137
137
|
i[6] || (i[6] = t("h3", { class: "endpoint-detail__section-title" }, "Operation", -1)),
|
|
138
|
-
t("p",
|
|
138
|
+
t("p", xt, c(d.endpoint.operationId), 1)
|
|
139
139
|
]),
|
|
140
|
-
d.endpoint.tags.length > 0 ? (n(), o("section",
|
|
141
|
-
t("h3",
|
|
142
|
-
l(e(
|
|
140
|
+
d.endpoint.tags.length > 0 ? (n(), o("section", Mt, [
|
|
141
|
+
t("h3", Ht, [
|
|
142
|
+
l(e(_t), { size: 14 }),
|
|
143
143
|
i[7] || (i[7] = x(" Tags ", -1))
|
|
144
144
|
]),
|
|
145
|
-
t("div",
|
|
146
|
-
(n(!0), o(
|
|
145
|
+
t("div", Et, [
|
|
146
|
+
(n(!0), o(k, null, S(d.endpoint.tags, (_) => (n(), o("span", {
|
|
147
147
|
key: _,
|
|
148
148
|
class: "endpoint-detail__tag"
|
|
149
149
|
}, c(_), 1))), 128))
|
|
150
150
|
])
|
|
151
|
-
])) :
|
|
152
|
-
d.endpoint.summary ? (n(), o("section",
|
|
151
|
+
])) : p("", !0),
|
|
152
|
+
d.endpoint.summary ? (n(), o("section", Ft, [
|
|
153
153
|
i[8] || (i[8] = t("h3", { class: "endpoint-detail__section-title" }, "Summary", -1)),
|
|
154
|
-
t("p",
|
|
155
|
-
])) :
|
|
156
|
-
d.endpoint.description ? (n(), o("section",
|
|
154
|
+
t("p", Rt, c(d.endpoint.summary), 1)
|
|
155
|
+
])) : p("", !0),
|
|
156
|
+
d.endpoint.description ? (n(), o("section", wt, [
|
|
157
157
|
i[9] || (i[9] = t("h3", { class: "endpoint-detail__section-title" }, "Description", -1)),
|
|
158
|
-
t("p",
|
|
159
|
-
])) :
|
|
160
|
-
d.endpoint.responseSchema ? (n(), o("section",
|
|
161
|
-
t("h3",
|
|
158
|
+
t("p", It, c(d.endpoint.description), 1)
|
|
159
|
+
])) : p("", !0),
|
|
160
|
+
d.endpoint.responseSchema ? (n(), o("section", Dt, [
|
|
161
|
+
t("h3", Lt, [
|
|
162
162
|
l(e(M), { size: 14 }),
|
|
163
163
|
i[10] || (i[10] = x(" Response Schema ", -1))
|
|
164
164
|
]),
|
|
165
|
-
t("p",
|
|
166
|
-
])) :
|
|
167
|
-
|
|
168
|
-
t("h3",
|
|
169
|
-
l(e(
|
|
165
|
+
t("p", Nt, c(d.endpoint.responseSchema), 1)
|
|
166
|
+
])) : p("", !0),
|
|
167
|
+
v.value ? (n(), o("section", At, [
|
|
168
|
+
t("h3", Tt, [
|
|
169
|
+
l(e(pt), { size: 14 }),
|
|
170
170
|
i[11] || (i[11] = x(" Security ", -1))
|
|
171
171
|
]),
|
|
172
|
-
t("div",
|
|
173
|
-
(n(!0), o(
|
|
172
|
+
t("div", Vt, [
|
|
173
|
+
(n(!0), o(k, null, S(f.value, (_) => (n(), o("div", {
|
|
174
174
|
key: _.name,
|
|
175
175
|
class: "endpoint-detail__security-item"
|
|
176
176
|
}, [
|
|
177
|
-
t("span",
|
|
178
|
-
t("span",
|
|
177
|
+
t("span", jt, c(_.name), 1),
|
|
178
|
+
t("span", qt, c(_.scopes), 1)
|
|
179
179
|
]))), 128))
|
|
180
180
|
])
|
|
181
|
-
])) :
|
|
181
|
+
])) : p("", !0)
|
|
182
182
|
])
|
|
183
|
-
])) : (n(), o("div",
|
|
183
|
+
])) : (n(), o("div", yt, [
|
|
184
184
|
l(e(M), {
|
|
185
185
|
size: 48,
|
|
186
186
|
class: "endpoint-detail__empty-icon"
|
|
@@ -190,21 +190,21 @@ const ut = $("tag", [
|
|
|
190
190
|
]))
|
|
191
191
|
]));
|
|
192
192
|
}
|
|
193
|
-
}),
|
|
193
|
+
}), Pt = /* @__PURE__ */ F(Gt, [["__scopeId", "data-v-c66a0f52"]]), Qt = { class: "endpoint-list" }, Bt = {
|
|
194
194
|
key: 0,
|
|
195
195
|
class: "endpoint-list__empty"
|
|
196
|
-
},
|
|
196
|
+
}, Kt = {
|
|
197
197
|
key: 1,
|
|
198
198
|
class: "endpoint-list__groups"
|
|
199
|
-
},
|
|
199
|
+
}, Ut = ["aria-expanded", "aria-controls", "onClick"], Ot = { class: "endpoint-group__tag" }, Jt = { class: "endpoint-group__count text-muted" }, Wt = ["id", "aria-label"], Xt = ["aria-selected", "onClick"], Zt = { class: "endpoint-item__path font-mono" }, Yt = { class: "endpoint-item__indicators" }, te = {
|
|
200
200
|
key: 0,
|
|
201
201
|
class: "endpoint-item__indicator endpoint-item__indicator--handler",
|
|
202
202
|
title: "Has custom handler"
|
|
203
|
-
},
|
|
203
|
+
}, ee = {
|
|
204
204
|
key: 1,
|
|
205
205
|
class: "endpoint-item__indicator endpoint-item__indicator--seed",
|
|
206
206
|
title: "Has seed data"
|
|
207
|
-
},
|
|
207
|
+
}, se = /* @__PURE__ */ E({
|
|
208
208
|
__name: "EndpointList",
|
|
209
209
|
props: {
|
|
210
210
|
groups: {},
|
|
@@ -212,48 +212,48 @@ const ut = $("tag", [
|
|
|
212
212
|
},
|
|
213
213
|
emits: ["select", "toggle-group"],
|
|
214
214
|
setup(d, { emit: s }) {
|
|
215
|
-
const
|
|
216
|
-
function y(
|
|
217
|
-
|
|
215
|
+
const v = d, f = s;
|
|
216
|
+
function y(m) {
|
|
217
|
+
f("select", m.key);
|
|
218
218
|
}
|
|
219
|
-
function i(
|
|
220
|
-
|
|
219
|
+
function i(m) {
|
|
220
|
+
f("toggle-group", m);
|
|
221
221
|
}
|
|
222
|
-
function _(
|
|
223
|
-
return
|
|
222
|
+
function _(m) {
|
|
223
|
+
return v.selectedKey === m.key;
|
|
224
224
|
}
|
|
225
|
-
return (
|
|
226
|
-
d.groups.length === 0 ? (n(), o("div",
|
|
225
|
+
return (m, C) => (n(), o("div", Qt, [
|
|
226
|
+
d.groups.length === 0 ? (n(), o("div", Bt, [...C[0] || (C[0] = [
|
|
227
227
|
t("p", { class: "text-muted" }, "No endpoints found", -1)
|
|
228
|
-
])])) : (n(), o("div",
|
|
229
|
-
(n(!0), o(
|
|
230
|
-
key:
|
|
228
|
+
])])) : (n(), o("div", Kt, [
|
|
229
|
+
(n(!0), o(k, null, S(d.groups, (u) => (n(), o("div", {
|
|
230
|
+
key: u.tag,
|
|
231
231
|
class: "endpoint-group"
|
|
232
232
|
}, [
|
|
233
233
|
t("button", {
|
|
234
234
|
type: "button",
|
|
235
235
|
class: "endpoint-group__header",
|
|
236
|
-
"aria-expanded":
|
|
237
|
-
"aria-controls": `group-${
|
|
238
|
-
onClick: (h) => i(
|
|
236
|
+
"aria-expanded": u.isExpanded,
|
|
237
|
+
"aria-controls": `group-${u.tag}`,
|
|
238
|
+
onClick: (h) => i(u.tag)
|
|
239
239
|
}, [
|
|
240
|
-
(n(), q(G(
|
|
240
|
+
(n(), q(G(u.isExpanded ? e(Q) : e(ot)), {
|
|
241
241
|
size: 16,
|
|
242
242
|
class: "endpoint-group__chevron"
|
|
243
243
|
})),
|
|
244
|
-
t("span",
|
|
245
|
-
t("span",
|
|
246
|
-
], 8,
|
|
247
|
-
|
|
248
|
-
id: `group-${
|
|
244
|
+
t("span", Ot, c(u.tag), 1),
|
|
245
|
+
t("span", Jt, " (" + c(u.endpoints.length) + ") ", 1)
|
|
246
|
+
], 8, Ut),
|
|
247
|
+
Y(t("div", {
|
|
248
|
+
id: `group-${u.tag}`,
|
|
249
249
|
class: "endpoint-group__items",
|
|
250
250
|
role: "group",
|
|
251
|
-
"aria-label": `${
|
|
251
|
+
"aria-label": `${u.tag} endpoints`
|
|
252
252
|
}, [
|
|
253
|
-
(n(!0), o(
|
|
253
|
+
(n(!0), o(k, null, S(u.endpoints, (h) => (n(), o("button", {
|
|
254
254
|
key: h.key,
|
|
255
255
|
type: "button",
|
|
256
|
-
class:
|
|
256
|
+
class: g([
|
|
257
257
|
"endpoint-item",
|
|
258
258
|
{ "endpoint-item--selected": _(h) }
|
|
259
259
|
]),
|
|
@@ -261,53 +261,53 @@ const ut = $("tag", [
|
|
|
261
261
|
onClick: (I) => y(h)
|
|
262
262
|
}, [
|
|
263
263
|
t("span", {
|
|
264
|
-
class:
|
|
264
|
+
class: g([
|
|
265
265
|
"method-badge",
|
|
266
266
|
`method-badge--${h.method}`
|
|
267
267
|
])
|
|
268
268
|
}, c(e(P)(h.method)), 3),
|
|
269
|
-
t("span",
|
|
270
|
-
t("div",
|
|
271
|
-
h.hasHandler ? (n(), o("span",
|
|
269
|
+
t("span", Zt, c(h.path), 1),
|
|
270
|
+
t("div", Yt, [
|
|
271
|
+
h.hasHandler ? (n(), o("span", te, [
|
|
272
272
|
l(e(R), { size: 12 })
|
|
273
|
-
])) :
|
|
274
|
-
h.hasSeed ? (n(), o("span",
|
|
273
|
+
])) : p("", !0),
|
|
274
|
+
h.hasSeed ? (n(), o("span", ee, [
|
|
275
275
|
l(e(w), { size: 12 })
|
|
276
|
-
])) :
|
|
276
|
+
])) : p("", !0)
|
|
277
277
|
])
|
|
278
|
-
], 10,
|
|
279
|
-
], 8,
|
|
280
|
-
[
|
|
278
|
+
], 10, Xt))), 128))
|
|
279
|
+
], 8, Wt), [
|
|
280
|
+
[tt, u.isExpanded]
|
|
281
281
|
])
|
|
282
282
|
]))), 128))
|
|
283
283
|
]))
|
|
284
284
|
]));
|
|
285
285
|
}
|
|
286
|
-
}),
|
|
286
|
+
}), ne = /* @__PURE__ */ F(se, [["__scopeId", "data-v-554ffe63"]]), oe = { class: "routes-page" }, ie = { class: "routes-toolbar" }, ae = { class: "routes-search" }, de = ["value"], le = ["aria-expanded"], re = {
|
|
287
287
|
key: 0,
|
|
288
288
|
class: "routes-filter-toggle__badge"
|
|
289
|
-
},
|
|
289
|
+
}, ce = { class: "routes-stats" }, ue = { class: "routes-stats__item" }, pe = { class: "routes-stats__item" }, _e = {
|
|
290
290
|
key: 0,
|
|
291
291
|
class: "routes-filters"
|
|
292
|
-
},
|
|
292
|
+
}, he = { class: "routes-filters__section" }, ye = { class: "routes-filters__methods" }, me = ["onClick"], ge = { class: "routes-filters__section" }, ve = { class: "routes-filters__status" }, fe = {
|
|
293
293
|
key: 0,
|
|
294
294
|
class: "routes-filters__actions"
|
|
295
|
-
},
|
|
295
|
+
}, ke = { class: "routes-content" }, be = {
|
|
296
296
|
key: 0,
|
|
297
297
|
class: "routes-loading"
|
|
298
|
-
},
|
|
298
|
+
}, $e = {
|
|
299
299
|
key: 1,
|
|
300
300
|
class: "routes-error"
|
|
301
|
-
},
|
|
301
|
+
}, Se = { class: "routes-error__message" }, Ce = {
|
|
302
302
|
key: 2,
|
|
303
303
|
class: "routes-empty empty-state"
|
|
304
|
-
},
|
|
304
|
+
}, ze = {
|
|
305
305
|
key: 3,
|
|
306
306
|
class: "routes-empty empty-state"
|
|
307
|
-
},
|
|
307
|
+
}, xe = { class: "routes-list-panel" }, Me = { class: "routes-detail-panel" }, He = /* @__PURE__ */ E({
|
|
308
308
|
__name: "RoutesPage",
|
|
309
309
|
setup(d) {
|
|
310
|
-
const s =
|
|
310
|
+
const s = ct(), v = dt(), { send: f, on: y, connected: i } = lt(), _ = T(!1), m = T(null), C = [
|
|
311
311
|
"get",
|
|
312
312
|
"post",
|
|
313
313
|
"put",
|
|
@@ -317,143 +317,143 @@ const ut = $("tag", [
|
|
|
317
317
|
"head",
|
|
318
318
|
"trace"
|
|
319
319
|
];
|
|
320
|
-
function
|
|
321
|
-
|
|
322
|
-
}
|
|
323
|
-
function p(r) {
|
|
324
|
-
s.setRegistryData(r), s.setLoading(!1);
|
|
320
|
+
function u() {
|
|
321
|
+
i.value && (s.setLoading(!0), f({ type: "get:registry" }));
|
|
325
322
|
}
|
|
326
323
|
function h(r) {
|
|
327
|
-
s.
|
|
324
|
+
s.setRegistryData(v.specIds[0] ?? "default", r), s.setLoading(!1);
|
|
328
325
|
}
|
|
329
326
|
function I(r) {
|
|
330
|
-
s.
|
|
327
|
+
s.selectEndpoint(r);
|
|
331
328
|
}
|
|
332
329
|
function B(r) {
|
|
330
|
+
s.toggleGroup(r);
|
|
331
|
+
}
|
|
332
|
+
function K(r) {
|
|
333
333
|
const a = r.target;
|
|
334
334
|
s.setSearchQuery(a.value);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
s.setSearchQuery(""),
|
|
336
|
+
function U() {
|
|
337
|
+
s.setSearchQuery(""), m.value?.focus();
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function O(r) {
|
|
340
340
|
s.toggleMethodFilter(r);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function J(r) {
|
|
343
343
|
return s.filter.methods.includes(r);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function W() {
|
|
346
346
|
const r = s.filter.hasHandler;
|
|
347
347
|
s.setHandlerFilter(r === !0 ? null : !0);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function X() {
|
|
350
350
|
const r = s.filter.hasSeed;
|
|
351
351
|
s.setSeedFilter(r === !0 ? null : !0);
|
|
352
352
|
}
|
|
353
353
|
function D() {
|
|
354
354
|
s.clearFilters();
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
|
|
356
|
+
function Z() {
|
|
357
|
+
_.value = !_.value;
|
|
358
358
|
}
|
|
359
359
|
const z = H(() => s.hasActiveFilters());
|
|
360
360
|
let L = null, N = null, A = null;
|
|
361
|
-
return
|
|
362
|
-
L =
|
|
363
|
-
}),
|
|
361
|
+
return et(() => {
|
|
362
|
+
L = y("registry", h), N = y("handlers:updated", () => u()), A = y("seeds:updated", () => u()), i.value && u();
|
|
363
|
+
}), st(() => {
|
|
364
364
|
L?.(), N?.(), A?.();
|
|
365
|
-
}),
|
|
366
|
-
r &&
|
|
367
|
-
}), (r, a) => (n(), o("div",
|
|
368
|
-
t("div",
|
|
369
|
-
t("div",
|
|
365
|
+
}), nt(i, (r) => {
|
|
366
|
+
r && u();
|
|
367
|
+
}), (r, a) => (n(), o("div", oe, [
|
|
368
|
+
t("div", ie, [
|
|
369
|
+
t("div", ae, [
|
|
370
370
|
l(e(V), {
|
|
371
371
|
size: 16,
|
|
372
372
|
class: "routes-search__icon"
|
|
373
373
|
}),
|
|
374
374
|
t("input", {
|
|
375
375
|
ref_key: "searchInputRef",
|
|
376
|
-
ref:
|
|
376
|
+
ref: m,
|
|
377
377
|
type: "text",
|
|
378
378
|
class: "routes-search__input input",
|
|
379
379
|
placeholder: "Search endpoints...",
|
|
380
380
|
value: e(s).searchQuery,
|
|
381
|
-
onInput:
|
|
382
|
-
}, null, 40,
|
|
381
|
+
onInput: K
|
|
382
|
+
}, null, 40, de),
|
|
383
383
|
e(s).searchQuery ? (n(), o("button", {
|
|
384
384
|
key: 0,
|
|
385
385
|
type: "button",
|
|
386
386
|
class: "routes-search__clear btn btn--ghost btn--icon",
|
|
387
387
|
title: "Clear search",
|
|
388
|
-
onClick:
|
|
388
|
+
onClick: U
|
|
389
389
|
}, [
|
|
390
390
|
l(e(j), { size: 14 })
|
|
391
|
-
])) :
|
|
391
|
+
])) : p("", !0)
|
|
392
392
|
]),
|
|
393
393
|
t("button", {
|
|
394
394
|
type: "button",
|
|
395
|
-
class:
|
|
395
|
+
class: g([
|
|
396
396
|
"routes-filter-toggle btn btn--secondary",
|
|
397
397
|
{ "routes-filter-toggle--active": z.value }
|
|
398
398
|
]),
|
|
399
|
-
"aria-expanded":
|
|
400
|
-
onClick:
|
|
399
|
+
"aria-expanded": _.value,
|
|
400
|
+
onClick: Z
|
|
401
401
|
}, [
|
|
402
|
-
l(e(
|
|
402
|
+
l(e(it), { size: 16 }),
|
|
403
403
|
a[0] || (a[0] = t("span", null, "Filters", -1)),
|
|
404
|
-
z.value ? (n(), o("span",
|
|
405
|
-
(n(), q(G(
|
|
406
|
-
], 10,
|
|
407
|
-
t("div",
|
|
408
|
-
t("span",
|
|
404
|
+
z.value ? (n(), o("span", re, c(e(s).filter.methods.length + (e(s).filter.hasHandler ? 1 : 0) + (e(s).filter.hasSeed ? 1 : 0)), 1)) : p("", !0),
|
|
405
|
+
(n(), q(G(_.value ? e(at) : e(Q)), { size: 14 }))
|
|
406
|
+
], 10, le),
|
|
407
|
+
t("div", ce, [
|
|
408
|
+
t("span", ue, c(e(s).filteredEndpoints.length) + " endpoints ", 1),
|
|
409
409
|
a[1] || (a[1] = t("span", { class: "routes-stats__separator" }, "|", -1)),
|
|
410
|
-
t("span",
|
|
410
|
+
t("span", pe, c(e(s).allTags.length) + " tags ", 1)
|
|
411
411
|
])
|
|
412
412
|
]),
|
|
413
|
-
|
|
414
|
-
t("div",
|
|
413
|
+
_.value ? (n(), o("div", _e, [
|
|
414
|
+
t("div", he, [
|
|
415
415
|
a[2] || (a[2] = t("h4", { class: "routes-filters__title" }, "Methods", -1)),
|
|
416
|
-
t("div",
|
|
417
|
-
(n(), o(
|
|
418
|
-
key:
|
|
416
|
+
t("div", ye, [
|
|
417
|
+
(n(), o(k, null, S(C, ($) => t("button", {
|
|
418
|
+
key: $,
|
|
419
419
|
type: "button",
|
|
420
|
-
class:
|
|
420
|
+
class: g([
|
|
421
421
|
"method-badge",
|
|
422
|
-
`method-badge--${
|
|
423
|
-
{ "method-badge--inactive": !
|
|
422
|
+
`method-badge--${$}`,
|
|
423
|
+
{ "method-badge--inactive": !J($) && e(s).filter.methods.length > 0 }
|
|
424
424
|
]),
|
|
425
|
-
onClick: (
|
|
426
|
-
}, c(
|
|
425
|
+
onClick: (Ee) => O($)
|
|
426
|
+
}, c($.toUpperCase()), 11, me)), 64))
|
|
427
427
|
])
|
|
428
428
|
]),
|
|
429
|
-
t("div",
|
|
429
|
+
t("div", ge, [
|
|
430
430
|
a[5] || (a[5] = t("h4", { class: "routes-filters__title" }, "Status", -1)),
|
|
431
|
-
t("div",
|
|
431
|
+
t("div", ve, [
|
|
432
432
|
t("button", {
|
|
433
433
|
type: "button",
|
|
434
|
-
class:
|
|
434
|
+
class: g([
|
|
435
435
|
"routes-filters__status-btn",
|
|
436
436
|
{ "routes-filters__status-btn--active": e(s).filter.hasHandler }
|
|
437
437
|
]),
|
|
438
|
-
onClick:
|
|
438
|
+
onClick: W
|
|
439
439
|
}, [
|
|
440
440
|
l(e(R), { size: 14 }),
|
|
441
441
|
a[3] || (a[3] = t("span", null, "Has Handler", -1))
|
|
442
442
|
], 2),
|
|
443
443
|
t("button", {
|
|
444
444
|
type: "button",
|
|
445
|
-
class:
|
|
445
|
+
class: g([
|
|
446
446
|
"routes-filters__status-btn",
|
|
447
447
|
{ "routes-filters__status-btn--active": e(s).filter.hasSeed }
|
|
448
448
|
]),
|
|
449
|
-
onClick:
|
|
449
|
+
onClick: X
|
|
450
450
|
}, [
|
|
451
451
|
l(e(w), { size: 14 }),
|
|
452
452
|
a[4] || (a[4] = t("span", null, "Has Seed", -1))
|
|
453
453
|
], 2)
|
|
454
454
|
])
|
|
455
455
|
]),
|
|
456
|
-
z.value ? (n(), o("div",
|
|
456
|
+
z.value ? (n(), o("div", fe, [
|
|
457
457
|
t("button", {
|
|
458
458
|
type: "button",
|
|
459
459
|
class: "btn btn--ghost",
|
|
@@ -462,27 +462,27 @@ const ut = $("tag", [
|
|
|
462
462
|
l(e(j), { size: 14 }),
|
|
463
463
|
a[6] || (a[6] = x(" Clear all filters ", -1))
|
|
464
464
|
])
|
|
465
|
-
])) :
|
|
466
|
-
])) :
|
|
467
|
-
t("div",
|
|
468
|
-
e(s).isLoading ? (n(), o("div",
|
|
465
|
+
])) : p("", !0)
|
|
466
|
+
])) : p("", !0),
|
|
467
|
+
t("div", ke, [
|
|
468
|
+
e(s).isLoading ? (n(), o("div", be, [...a[7] || (a[7] = [
|
|
469
469
|
t("div", { class: "routes-loading__spinner" }, null, -1),
|
|
470
470
|
t("span", { class: "text-muted" }, "Loading endpoints...", -1)
|
|
471
|
-
])])) : e(s).error ? (n(), o("div",
|
|
472
|
-
t("p",
|
|
471
|
+
])])) : e(s).error ? (n(), o("div", $e, [
|
|
472
|
+
t("p", Se, c(e(s).error), 1),
|
|
473
473
|
t("button", {
|
|
474
474
|
type: "button",
|
|
475
475
|
class: "btn btn--primary",
|
|
476
|
-
onClick:
|
|
476
|
+
onClick: u
|
|
477
477
|
}, " Retry ")
|
|
478
|
-
])) : e(s).endpoints.length === 0 ? (n(), o("div",
|
|
479
|
-
l(e(
|
|
478
|
+
])) : e(s).endpoints.length === 0 ? (n(), o("div", Ce, [
|
|
479
|
+
l(e(rt), {
|
|
480
480
|
size: 48,
|
|
481
481
|
class: "empty-state__icon"
|
|
482
482
|
}),
|
|
483
483
|
a[8] || (a[8] = t("h3", { class: "empty-state__title" }, "No endpoints found", -1)),
|
|
484
484
|
a[9] || (a[9] = t("p", { class: "empty-state__description" }, " No API endpoints are available. Make sure your OpenAPI spec is loaded. ", -1))
|
|
485
|
-
])) : e(s).filteredEndpoints.length === 0 ? (n(), o("div",
|
|
485
|
+
])) : e(s).filteredEndpoints.length === 0 ? (n(), o("div", ze, [
|
|
486
486
|
l(e(V), {
|
|
487
487
|
size: 48,
|
|
488
488
|
class: "empty-state__icon"
|
|
@@ -494,18 +494,18 @@ const ut = $("tag", [
|
|
|
494
494
|
type: "button",
|
|
495
495
|
class: "btn btn--secondary",
|
|
496
496
|
onClick: D
|
|
497
|
-
}, " Clear filters ")) :
|
|
498
|
-
])) : (n(), o(
|
|
499
|
-
t("div",
|
|
500
|
-
l(
|
|
497
|
+
}, " Clear filters ")) : p("", !0)
|
|
498
|
+
])) : (n(), o(k, { key: 4 }, [
|
|
499
|
+
t("div", xe, [
|
|
500
|
+
l(ne, {
|
|
501
501
|
groups: e(s).groupedEndpoints,
|
|
502
502
|
"selected-key": e(s).selectedEndpointKey,
|
|
503
|
-
onSelect:
|
|
504
|
-
onToggleGroup:
|
|
503
|
+
onSelect: I,
|
|
504
|
+
onToggleGroup: B
|
|
505
505
|
}, null, 8, ["groups", "selected-key"])
|
|
506
506
|
]),
|
|
507
|
-
t("div",
|
|
508
|
-
l(
|
|
507
|
+
t("div", Me, [
|
|
508
|
+
l(Pt, {
|
|
509
509
|
endpoint: e(s).selectedEndpoint
|
|
510
510
|
}, null, 8, ["endpoint"])
|
|
511
511
|
])
|
|
@@ -513,8 +513,8 @@ const ut = $("tag", [
|
|
|
513
513
|
])
|
|
514
514
|
]));
|
|
515
515
|
}
|
|
516
|
-
}),
|
|
516
|
+
}), Le = /* @__PURE__ */ F(He, [["__scopeId", "data-v-c32ae519"]]);
|
|
517
517
|
export {
|
|
518
|
-
|
|
518
|
+
Le as default
|
|
519
519
|
};
|
|
520
|
-
//# sourceMappingURL=RoutesPage-
|
|
520
|
+
//# sourceMappingURL=RoutesPage-BgsspZkr.js.map
|