@scalar/api-client 2.0.28 → 2.0.29
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 +6 -0
- package/dist/components/SubpageHeader.vue.d.ts +12 -0
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -0
- package/dist/components/SubpageHeader.vue.js +31 -0
- package/dist/components/SubpageHeader.vue2.js +4 -0
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +44 -38
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +92 -86
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +45 -39
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=SubpageHeader.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/SubpageHeader.vue"],"names":[],"mappings":"AA+BA,iBAAS,cAAc;qBA2EO,GAAG;EAchC;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as r, resolveComponent as l, openBlock as s, createElementBlock as c, createElementVNode as t, createVNode as e, withCtx as a, unref as d, renderSlot as i } from "vue";
|
|
2
|
+
import { ScalarIcon as u } from "@scalar/components";
|
|
3
|
+
const p = { class: "flex flex-1 flex-col rounded-lg rounded-b-none rounded-r-none pt-0 h-full bg-b-2" }, m = { class: "lg:min-h-header items-center w-full p-1 t-app__top-container flex items-center" }, f = /* @__PURE__ */ t("span", null, "Back To Requests", -1), g = /* @__PURE__ */ r({
|
|
4
|
+
__name: "SubpageHeader",
|
|
5
|
+
setup(_) {
|
|
6
|
+
return (o, h) => {
|
|
7
|
+
const n = l("router-link");
|
|
8
|
+
return s(), c("div", p, [
|
|
9
|
+
t("div", m, [
|
|
10
|
+
e(n, {
|
|
11
|
+
class: "text-c-2 text-sm font-medium gitbook-show ml-1 flex items-center p-1.5 hover:bg-b-3 rounded cursor-pointer gap-1 active:text-c-1 no-underline",
|
|
12
|
+
to: "/workspace/default/request/default"
|
|
13
|
+
}, {
|
|
14
|
+
default: a(() => [
|
|
15
|
+
e(d(u), {
|
|
16
|
+
icon: "ChevronLeft",
|
|
17
|
+
size: "sm"
|
|
18
|
+
}),
|
|
19
|
+
f
|
|
20
|
+
]),
|
|
21
|
+
_: 1
|
|
22
|
+
})
|
|
23
|
+
]),
|
|
24
|
+
i(o.$slots, "default")
|
|
25
|
+
]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
g as default
|
|
31
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";AAgPA,wBAKG"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineComponent as u, openBlock as i, createBlock as a, withCtx as e, createVNode as t, unref as m, createElementVNode as f, createElementBlock as d, Fragment as
|
|
1
|
+
import { defineComponent as u, openBlock as i, createBlock as a, withCtx as e, createVNode as t, unref as m, createElementVNode as f, createElementBlock as d, Fragment as _, renderList as p, createTextVNode as k } from "vue";
|
|
2
2
|
import x from "../../components/Sidebar/SidebarButton.vue.js";
|
|
3
3
|
import C from "../../components/Sidebar/SidebarList.vue.js";
|
|
4
4
|
import h from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
5
|
-
import b from "../../components/
|
|
6
|
-
import L from "../../components/ViewLayout/
|
|
7
|
-
import
|
|
5
|
+
import b from "../../components/SubpageHeader.vue.js";
|
|
6
|
+
import L from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
7
|
+
import V from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
8
|
+
import { useWorkspace as $ } from "../../store/workspace.js";
|
|
8
9
|
import { createCookie as v } from "@scalar/oas-utils/entities/workspace/cookie";
|
|
9
10
|
import { nanoid as y } from "nanoid";
|
|
10
11
|
import { useRouter as N } from "vue-router";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import w from "./CookieForm.vue.js";
|
|
13
|
+
import B from "./CookieRaw.vue.js";
|
|
14
|
+
import E from "../../components/Sidebar/Sidebar.vue.js";
|
|
14
15
|
/* empty css */
|
|
15
|
-
const
|
|
16
|
+
const S = { class: "flex-1" }, P = /* @__PURE__ */ u({
|
|
16
17
|
__name: "Cookies",
|
|
17
|
-
setup(
|
|
18
|
-
const { cookies: n, cookieMutators: s } =
|
|
18
|
+
setup(g) {
|
|
19
|
+
const { cookies: n, cookieMutators: s } = $(), l = N(), c = () => {
|
|
19
20
|
const o = v({
|
|
20
21
|
uid: y(),
|
|
21
22
|
name: "Cookie",
|
|
@@ -28,39 +29,44 @@ const E = { class: "flex-1" }, J = /* @__PURE__ */ u({
|
|
|
28
29
|
});
|
|
29
30
|
s.add(o), l.push(o.uid);
|
|
30
31
|
};
|
|
31
|
-
return (o,
|
|
32
|
+
return (o, A) => (i(), a(b, null, {
|
|
32
33
|
default: e(() => [
|
|
33
|
-
t(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
34
|
+
t(L, null, {
|
|
35
|
+
default: e(() => [
|
|
36
|
+
t(m(E), { title: "Domain" }, {
|
|
37
|
+
content: e(() => [
|
|
38
|
+
f("div", S, [
|
|
39
|
+
t(C, null, {
|
|
40
|
+
default: e(() => [
|
|
41
|
+
(i(!0), d(_, null, p(m(n), (r) => (i(), a(h, {
|
|
42
|
+
key: r.uid,
|
|
43
|
+
class: "text-xs",
|
|
44
|
+
variable: { name: r.name, uid: r.uid }
|
|
45
|
+
}, null, 8, ["variable"]))), 128))
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
})
|
|
49
|
+
])
|
|
50
|
+
]),
|
|
51
|
+
button: e(() => [
|
|
52
|
+
t(x, { click: c }, {
|
|
53
|
+
title: e(() => [
|
|
54
|
+
k("Add Item")
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
})
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}),
|
|
61
|
+
t(V, { class: "flex-1" }, {
|
|
62
|
+
default: e(() => [
|
|
63
|
+
t(w),
|
|
64
|
+
t(B)
|
|
52
65
|
]),
|
|
53
66
|
_: 1
|
|
54
67
|
})
|
|
55
68
|
]),
|
|
56
69
|
_: 1
|
|
57
|
-
}),
|
|
58
|
-
t(L, { class: "flex-1" }, {
|
|
59
|
-
default: e(() => [
|
|
60
|
-
t($),
|
|
61
|
-
t(w)
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
70
|
})
|
|
65
71
|
]),
|
|
66
72
|
_: 1
|
|
@@ -68,5 +74,5 @@ const E = { class: "flex-1" }, J = /* @__PURE__ */ u({
|
|
|
68
74
|
}
|
|
69
75
|
});
|
|
70
76
|
export {
|
|
71
|
-
|
|
77
|
+
P as default
|
|
72
78
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/Environment.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/Environment.vue"],"names":[],"mappings":";AAghBA,wBAKG"}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { defineComponent as N, ref as c, onMounted as C, openBlock as
|
|
1
|
+
import { defineComponent as N, ref as c, onMounted as C, openBlock as r, createBlock as f, withCtx as o, createVNode as a, createElementVNode as _, createElementBlock as d, Fragment as w, renderList as $, unref as u, createTextVNode as I, createSlots as S, createCommentVNode as h, toDisplayString as L, withKeys as B, nextTick as R } from "vue";
|
|
2
2
|
import K from "../../components/CodeInput/CodeInput.vue.js";
|
|
3
3
|
import A from "../../components/Sidebar/Sidebar.vue.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import M from "../../components/Sidebar/SidebarButton.vue.js";
|
|
6
6
|
import T from "../../components/Sidebar/SidebarList.vue.js";
|
|
7
7
|
import U from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
8
|
-
import F from "../../components/
|
|
9
|
-
import J from "../../components/ViewLayout/
|
|
10
|
-
import O from "../../components/ViewLayout/
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import z from "
|
|
15
|
-
|
|
8
|
+
import F from "../../components/SubpageHeader.vue.js";
|
|
9
|
+
import J from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
10
|
+
import O from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
11
|
+
import W from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
12
|
+
import { useWorkspace as j } from "../../store/workspace.js";
|
|
13
|
+
import { nanoid as q } from "nanoid";
|
|
14
|
+
import { useRouter as z } from "vue-router";
|
|
15
|
+
import G from "./EnvironmentColors.vue.js";
|
|
16
|
+
const H = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, de = /* @__PURE__ */ N({
|
|
16
17
|
__name: "Environment",
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
18
|
+
setup(X) {
|
|
19
|
+
const v = z(), { environments: n, environmentMutators: m } = j(), e = c(null), p = c(null), s = c(!1);
|
|
19
20
|
function E() {
|
|
20
21
|
const t = {
|
|
21
22
|
name: "New Environment",
|
|
22
|
-
uid:
|
|
23
|
+
uid: q(),
|
|
23
24
|
color: "grey",
|
|
24
25
|
raw: JSON.stringify({ exampleKey: "exampleValue" }, null, 2),
|
|
25
26
|
parsed: [],
|
|
26
27
|
isDefault: !1
|
|
27
28
|
};
|
|
28
|
-
m.add(t), e.value = t.uid,
|
|
29
|
+
m.add(t), e.value = t.uid, v.push(e.value);
|
|
29
30
|
}
|
|
30
31
|
function k(t) {
|
|
31
32
|
e.value && m.edit(e.value, "raw", t);
|
|
@@ -35,7 +36,7 @@ const G = { class: "flex-1" }, H = ["value"], P = { class: "colors ml-auto" }, c
|
|
|
35
36
|
}, x = (t) => {
|
|
36
37
|
e.value && (n[e.value].color = t);
|
|
37
38
|
}, V = () => {
|
|
38
|
-
|
|
39
|
+
v.currentRoute.value.params.environment === "default" && (e.value = n.default.uid);
|
|
39
40
|
}, b = () => {
|
|
40
41
|
e.value && !n[e.value].isDefault && (s.value = !0, R(() => {
|
|
41
42
|
var t;
|
|
@@ -45,82 +46,87 @@ const G = { class: "flex-1" }, H = ["value"], P = { class: "colors ml-auto" }, c
|
|
|
45
46
|
const l = t.target.value;
|
|
46
47
|
e.value && !n[e.value].isDefault && (n[e.value].name = l);
|
|
47
48
|
};
|
|
48
|
-
return C(V), (t, i) => (
|
|
49
|
+
return C(V), (t, i) => (r(), f(F, null, {
|
|
49
50
|
default: o(() => [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
51
|
+
a(J, null, {
|
|
52
|
+
default: o(() => [
|
|
53
|
+
a(A, { title: "Environment" }, {
|
|
54
|
+
content: o(() => [
|
|
55
|
+
_("div", H, [
|
|
56
|
+
a(T, null, {
|
|
57
|
+
default: o(() => [
|
|
58
|
+
(r(!0), d(w, null, $(u(n), (l) => (r(), f(U, {
|
|
59
|
+
key: l.uid,
|
|
60
|
+
class: "text-xs",
|
|
61
|
+
variable: {
|
|
62
|
+
name: l.name,
|
|
63
|
+
uid: l.uid,
|
|
64
|
+
color: l.color,
|
|
65
|
+
isDefault: l.isDefault
|
|
66
|
+
},
|
|
67
|
+
onClick: (D) => e.value = l.uid,
|
|
68
|
+
onDelete: (D) => y(l.uid)
|
|
69
|
+
}, null, 8, ["variable", "onClick", "onDelete"]))), 128))
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
})
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
button: o(() => [
|
|
76
|
+
a(M, { click: E }, {
|
|
77
|
+
title: o(() => [
|
|
78
|
+
I("Add Environment Variable")
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
})
|
|
76
82
|
]),
|
|
77
83
|
_: 1
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
_: 1
|
|
81
|
-
}),
|
|
82
|
-
r(J, { class: "flex-1" }, {
|
|
83
|
-
default: o(() => [
|
|
84
|
-
r(O, null, S({
|
|
84
|
+
}),
|
|
85
|
+
a(O, { class: "flex-1" }, {
|
|
85
86
|
default: o(() => [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
a(W, null, S({
|
|
88
|
+
default: o(() => [
|
|
89
|
+
e.value ? (r(), f(K, {
|
|
90
|
+
key: 0,
|
|
91
|
+
class: "px-2 py-2.5",
|
|
92
|
+
lineNumbers: "",
|
|
93
|
+
modelValue: u(n)[e.value].raw,
|
|
94
|
+
"onUpdate:modelValue": k
|
|
95
|
+
}, null, 8, ["modelValue"])) : h("", !0)
|
|
96
|
+
]),
|
|
97
|
+
_: 2
|
|
98
|
+
}, [
|
|
99
|
+
e.value ? {
|
|
100
|
+
name: "title",
|
|
101
|
+
fn: o(() => [
|
|
102
|
+
!s.value || u(n)[e.value].isDefault ? (r(), d("span", {
|
|
103
|
+
key: 0,
|
|
104
|
+
onDblclick: b
|
|
105
|
+
}, L(u(n)[e.value].name), 33)) : (r(), d("input", {
|
|
106
|
+
key: 1,
|
|
107
|
+
ref_key: "nameInputRef",
|
|
108
|
+
ref: p,
|
|
109
|
+
class: "ring-1 ring-offset-4 ring-b-outline rounded",
|
|
110
|
+
spellcheck: "false",
|
|
111
|
+
type: "text",
|
|
112
|
+
value: u(n)[e.value].name,
|
|
113
|
+
onBlur: i[0] || (i[0] = (l) => s.value = !1),
|
|
114
|
+
onInput: g,
|
|
115
|
+
onKeyup: i[1] || (i[1] = B((l) => s.value = !1, ["enter"]))
|
|
116
|
+
}, null, 40, P)),
|
|
117
|
+
_("div", Q, [
|
|
118
|
+
a(G, {
|
|
119
|
+
activeColor: u(n)[e.value].color,
|
|
120
|
+
onSelect: x
|
|
121
|
+
}, null, 8, ["activeColor"])
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
key: "0"
|
|
125
|
+
} : void 0
|
|
126
|
+
]), 1024)
|
|
93
127
|
]),
|
|
94
|
-
_:
|
|
95
|
-
}
|
|
96
|
-
e.value ? {
|
|
97
|
-
name: "title",
|
|
98
|
-
fn: o(() => [
|
|
99
|
-
!s.value || u(n)[e.value].isDefault ? (a(), v("span", {
|
|
100
|
-
key: 0,
|
|
101
|
-
onDblclick: b
|
|
102
|
-
}, L(u(n)[e.value].name), 33)) : (a(), v("input", {
|
|
103
|
-
key: 1,
|
|
104
|
-
ref_key: "nameInputRef",
|
|
105
|
-
ref: p,
|
|
106
|
-
class: "ring-1 ring-offset-4 ring-b-outline rounded",
|
|
107
|
-
spellcheck: "false",
|
|
108
|
-
type: "text",
|
|
109
|
-
value: u(n)[e.value].name,
|
|
110
|
-
onBlur: i[0] || (i[0] = (l) => s.value = !1),
|
|
111
|
-
onInput: g,
|
|
112
|
-
onKeyup: i[1] || (i[1] = B((l) => s.value = !1, ["enter"]))
|
|
113
|
-
}, null, 40, H)),
|
|
114
|
-
_("div", P, [
|
|
115
|
-
r(z, {
|
|
116
|
-
activeColor: u(n)[e.value].color,
|
|
117
|
-
onSelect: x
|
|
118
|
-
}, null, 8, ["activeColor"])
|
|
119
|
-
])
|
|
120
|
-
]),
|
|
121
|
-
key: "0"
|
|
122
|
-
} : void 0
|
|
123
|
-
]), 1024)
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
124
130
|
]),
|
|
125
131
|
_: 1
|
|
126
132
|
})
|
|
@@ -130,5 +136,5 @@ const G = { class: "flex-1" }, H = ["value"], P = { class: "colors ml-auto" }, c
|
|
|
130
136
|
}
|
|
131
137
|
});
|
|
132
138
|
export {
|
|
133
|
-
|
|
139
|
+
de as default
|
|
134
140
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/Servers.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/Servers.vue"],"names":[],"mappings":";AAqNA,wBAKG"}
|
|
@@ -1,58 +1,64 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, openBlock as l, createBlock as s, withCtx as e, createVNode as r, unref as n, createElementVNode as d, createElementBlock as p, Fragment as v, renderList as x, createTextVNode as S } from "vue";
|
|
2
2
|
import h from "../../components/Sidebar/SidebarButton.vue.js";
|
|
3
3
|
import k from "../../components/Sidebar/SidebarList.vue.js";
|
|
4
4
|
import b from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
5
|
-
import L from "../../components/
|
|
6
|
-
import V from "../../components/ViewLayout/
|
|
5
|
+
import L from "../../components/SubpageHeader.vue.js";
|
|
6
|
+
import V from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
7
|
+
import $ from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
7
8
|
import { useWorkspace as w } from "../../store/workspace.js";
|
|
8
9
|
import { createServer as C } from "@scalar/oas-utils/entities/workspace/server";
|
|
9
|
-
import { useRouter as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import { useRouter as y } from "vue-router";
|
|
11
|
+
import B from "./ServerForm.vue.js";
|
|
12
|
+
import E from "../../components/Sidebar/Sidebar.vue.js";
|
|
12
13
|
/* empty css */
|
|
13
|
-
const
|
|
14
|
+
const N = { class: "flex-1" }, K = /* @__PURE__ */ _({
|
|
14
15
|
__name: "Servers",
|
|
15
|
-
setup(
|
|
16
|
-
const { activeCollection: t, servers: m, serverMutators: c } = w(), { push: u } =
|
|
16
|
+
setup(g) {
|
|
17
|
+
const { activeCollection: t, servers: m, serverMutators: c } = w(), { push: u } = y(), f = () => {
|
|
17
18
|
if (!t.value) return;
|
|
18
19
|
const o = C({ url: "http://localhost" });
|
|
19
20
|
c.add(o, t.value.uid), u(`/servers/${o.uid}`);
|
|
20
21
|
};
|
|
21
|
-
return (o,
|
|
22
|
+
return (o, A) => (l(), s(L, null, {
|
|
22
23
|
default: e(() => [
|
|
23
|
-
r(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
24
|
+
r(V, null, {
|
|
25
|
+
default: e(() => [
|
|
26
|
+
r(n(E), { title: "Servers" }, {
|
|
27
|
+
content: e(() => [
|
|
28
|
+
d("div", N, [
|
|
29
|
+
r(k, null, {
|
|
30
|
+
default: e(() => {
|
|
31
|
+
var i;
|
|
32
|
+
return [
|
|
33
|
+
(l(!0), p(v, null, x((i = n(t)) == null ? void 0 : i.spec.serverUids, (a) => (l(), s(b, {
|
|
34
|
+
key: a,
|
|
35
|
+
class: "text-xs",
|
|
36
|
+
variable: { name: n(m)[a].url, uid: a }
|
|
37
|
+
}, null, 8, ["variable"]))), 128))
|
|
38
|
+
];
|
|
39
|
+
}),
|
|
40
|
+
_: 1
|
|
41
|
+
})
|
|
42
|
+
])
|
|
43
|
+
]),
|
|
44
|
+
button: e(() => [
|
|
45
|
+
r(h, { click: f }, {
|
|
46
|
+
title: e(() => [
|
|
47
|
+
S("Add Server")
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}),
|
|
54
|
+
r($, { class: "flex-1" }, {
|
|
55
|
+
default: e(() => [
|
|
56
|
+
r(B)
|
|
45
57
|
]),
|
|
46
58
|
_: 1
|
|
47
59
|
})
|
|
48
60
|
]),
|
|
49
61
|
_: 1
|
|
50
|
-
}),
|
|
51
|
-
r(V, { class: "flex-1" }, {
|
|
52
|
-
default: e(() => [
|
|
53
|
-
r(y)
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
62
|
})
|
|
57
63
|
]),
|
|
58
64
|
_: 1
|
|
@@ -60,5 +66,5 @@ const E = { class: "flex-1" }, I = /* @__PURE__ */ d({
|
|
|
60
66
|
}
|
|
61
67
|
});
|
|
62
68
|
export {
|
|
63
|
-
|
|
69
|
+
K as default
|
|
64
70
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.0.
|
|
21
|
+
"version": "2.0.29",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -119,13 +119,13 @@
|
|
|
119
119
|
"vue-router": "^4.3.0",
|
|
120
120
|
"zod": "^3.22.4",
|
|
121
121
|
"@scalar/components": "0.12.18",
|
|
122
|
-
"@scalar/draggable": "0.1.3",
|
|
123
122
|
"@scalar/oas-utils": "0.2.16",
|
|
124
123
|
"@scalar/object-utils": "1.1.4",
|
|
124
|
+
"@scalar/draggable": "0.1.3",
|
|
125
125
|
"@scalar/themes": "0.9.15",
|
|
126
126
|
"@scalar/use-codemirror": "0.11.8",
|
|
127
|
-
"@scalar/use-
|
|
128
|
-
"@scalar/use-
|
|
127
|
+
"@scalar/use-tooltip": "1.0.2",
|
|
128
|
+
"@scalar/use-toasts": "0.7.4"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@types/content-type": "^1.1.8",
|