@scalar/api-client 2.2.12 → 2.2.16
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 +44 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +114 -111
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +74 -81
- package/dist/components/SideNav/SideNav.vue.js +6 -6
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +49 -48
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +23 -23
- package/dist/views/Request/RequestSubpageHeader.vue.js +3 -3
- package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.2.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 875a04a: fix: path params missing from client
|
|
8
|
+
|
|
9
|
+
## 2.2.15
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [c263aaf]
|
|
14
|
+
- Updated dependencies [573d113]
|
|
15
|
+
- Updated dependencies [c263aaf]
|
|
16
|
+
- @scalar/types@0.0.25
|
|
17
|
+
- @scalar/oas-utils@0.2.90
|
|
18
|
+
- @scalar/openapi-parser@0.10.1
|
|
19
|
+
- @scalar/themes@0.9.57
|
|
20
|
+
- @scalar/import@0.2.9
|
|
21
|
+
- @scalar/postman-to-openapi@0.1.13
|
|
22
|
+
- @scalar/components@0.13.7
|
|
23
|
+
- @scalar/use-hooks@0.1.10
|
|
24
|
+
- @scalar/use-codemirror@0.11.51
|
|
25
|
+
|
|
26
|
+
## 2.2.14
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- 984e394: fix: hides flow row for unique scheme flow
|
|
31
|
+
- 40ec239: fix: updates address bar servers dropdown display logic
|
|
32
|
+
|
|
33
|
+
## 2.2.13
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- 23daedd: feat(components): create ScalarHeader component
|
|
38
|
+
- Updated dependencies [23daedd]
|
|
39
|
+
- @scalar/components@0.13.6
|
|
40
|
+
- @scalar/themes@0.9.56
|
|
41
|
+
- @scalar/use-codemirror@0.11.50
|
|
42
|
+
- @scalar/oas-utils@0.2.89
|
|
43
|
+
- @scalar/use-hooks@0.1.9
|
|
44
|
+
- @scalar/import@0.2.8
|
|
45
|
+
- @scalar/postman-to-openapi@0.1.12
|
|
46
|
+
|
|
3
47
|
## 2.2.12
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;AAuxBA,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cb8f6677"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,154 +1,157 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useActiveEntities as
|
|
4
|
-
import { Listbox as
|
|
5
|
-
import { ScalarButton as
|
|
6
|
-
import { REQUEST_METHODS as
|
|
7
|
-
import { isMacOS as
|
|
8
|
-
import { useMagicKeys as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useWorkspace as
|
|
13
|
-
const
|
|
1
|
+
import { defineComponent as $, ref as i, watch as P, onMounted as D, onBeforeUnmount as Q, unref as o, openBlock as q, createElementBlock as W, createElementVNode as r, createVNode as u, withCtx as B, normalizeClass as E, normalizeStyle as j, createBlock as F, createCommentVNode as S } from "vue";
|
|
2
|
+
import G from "../CodeInput/CodeInput.vue.js";
|
|
3
|
+
import { useActiveEntities as J } from "../../store/active-entities.js";
|
|
4
|
+
import { Listbox as X } from "@headlessui/vue";
|
|
5
|
+
import { ScalarButton as Y, ScalarIcon as Z } from "@scalar/components";
|
|
6
|
+
import { REQUEST_METHODS as ee } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import { isMacOS as te } from "@scalar/use-tooltip";
|
|
8
|
+
import { useMagicKeys as le, whenever as oe } from "@vueuse/core";
|
|
9
|
+
import re from "../HttpMethod/HttpMethod.vue.js";
|
|
10
|
+
import ae from "./AddressBarHistory.vue.js";
|
|
11
|
+
import se from "./AddressBarServer.vue.js";
|
|
12
|
+
import { useWorkspace as ne } from "../../store/store.js";
|
|
13
|
+
const ie = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "order-last lg:order-none lg:w-auto w-full"
|
|
16
|
-
},
|
|
16
|
+
}, ue = { class: "m-auto flex flex-row items-center" }, de = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden" }, fe = { class: "flex gap-1" }, me = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, ce = {
|
|
17
17
|
"aria-hidden": "true",
|
|
18
18
|
class: "inline-flex gap-1 items-center"
|
|
19
|
-
},
|
|
19
|
+
}, Be = /* @__PURE__ */ $({
|
|
20
20
|
__name: "AddressBar",
|
|
21
21
|
emits: ["importCurl"],
|
|
22
|
-
setup(
|
|
23
|
-
const { activeRequest: l, activeExample:
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
setup(ve) {
|
|
23
|
+
const { activeRequest: l, activeExample: V, activeServer: M, activeCollection: c } = J(), { isReadOnly: v, requestMutators: m, requestHistory: I, events: d } = ne(), p = i(I[0]), x = i(null), h = le();
|
|
24
|
+
oe(
|
|
25
|
+
te() ? h.meta_enter : h.ctrl_enter,
|
|
26
26
|
() => d.executeRequest.emit()
|
|
27
27
|
);
|
|
28
|
-
const
|
|
28
|
+
const U = (e) => {
|
|
29
29
|
!l.value || l.value.path === e || m.edit(l.value.uid, "path", e);
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
P(
|
|
32
32
|
() => {
|
|
33
33
|
var e;
|
|
34
34
|
return (e = l.value) == null ? void 0 : e.path;
|
|
35
35
|
},
|
|
36
36
|
(e) => {
|
|
37
|
-
!l.value || !e ||
|
|
37
|
+
!l.value || !e || U(e);
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
|
-
const
|
|
41
|
-
function
|
|
42
|
-
s.value ?
|
|
40
|
+
const a = i(100), b = i(0), s = i(!1), n = i();
|
|
41
|
+
function H() {
|
|
42
|
+
s.value ? a.value -= (a.value - 15) / 60 : a.value -= b.value / 20, a.value <= 0 && (clearInterval(n.value), n.value = void 0, a.value = 100, s.value = !1);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
|
|
44
|
+
function L() {
|
|
45
|
+
n.value || (s.value = !0, n.value = setInterval(H, 20));
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
|
|
47
|
+
function z() {
|
|
48
|
+
b.value = a.value, s.value = !1;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
clearInterval(
|
|
50
|
+
function A() {
|
|
51
|
+
clearInterval(n.value), n.value = void 0, a.value = 100, s.value = !1;
|
|
52
52
|
}
|
|
53
53
|
d.requestStatus.on((e) => {
|
|
54
|
-
e === "start" &&
|
|
54
|
+
e === "start" && L(), e === "stop" && z(), e === "abort" && A();
|
|
55
55
|
});
|
|
56
|
-
function
|
|
56
|
+
function K(e) {
|
|
57
57
|
l.value && m.edit(l.value.uid, "method", e);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function O() {
|
|
60
60
|
if (!l.value) return;
|
|
61
61
|
const { method: e } = l.value;
|
|
62
|
-
return
|
|
62
|
+
return ee[e].backgroundColor;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function g() {
|
|
65
65
|
s.value || (s.value = !0, d.executeRequest.emit());
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function N(e) {
|
|
68
68
|
l.value && m.edit(l.value.uid, "path", e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function w(e) {
|
|
71
71
|
var t;
|
|
72
|
-
e != null && e.focusAddressBar && ((t =
|
|
72
|
+
e != null && e.focusAddressBar && ((t = x.value) == null || t.focus());
|
|
73
73
|
}
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
modelValue:
|
|
78
|
-
"onUpdate:modelValue": t[1] || (t[1] = (f) =>
|
|
74
|
+
return D(() => d.hotKeys.on(w)), Q(() => d.hotKeys.off(w)), (e, t) => o(l) && o(V) ? (q(), W("div", ie, [
|
|
75
|
+
r("div", ue, [
|
|
76
|
+
u(o(X), {
|
|
77
|
+
modelValue: p.value,
|
|
78
|
+
"onUpdate:modelValue": t[1] || (t[1] = (f) => p.value = f)
|
|
79
79
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
t[2] || (t[2] = o("div", { class: "fade-left" }, null, -1)),
|
|
104
|
-
n(Z),
|
|
105
|
-
n($, {
|
|
106
|
-
ref_key: "addressBarRef",
|
|
107
|
-
ref: p,
|
|
108
|
-
"aria-label": "Path",
|
|
109
|
-
class: "outline-none",
|
|
110
|
-
disableCloseBrackets: "",
|
|
111
|
-
disabled: a(c),
|
|
112
|
-
disableEnter: "",
|
|
113
|
-
disableTabIndent: "",
|
|
114
|
-
emitOnBlur: !1,
|
|
115
|
-
importCurl: "",
|
|
116
|
-
modelValue: a(l).path,
|
|
117
|
-
placeholder: a(_) ? "" : "Enter a URL or cURL command",
|
|
118
|
-
server: "",
|
|
119
|
-
onCurl: t[0] || (t[0] = (U) => e.$emit("importCurl", U)),
|
|
120
|
-
onSubmit: b,
|
|
121
|
-
"onUpdate:modelValue": I
|
|
122
|
-
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
123
|
-
t[3] || (t[3] = o("div", { class: "fade-right" }, null, -1))
|
|
124
|
-
]),
|
|
125
|
-
n(Y, { open: f }, null, 8, ["open"]),
|
|
126
|
-
n(a(Q), {
|
|
127
|
-
class: "relative h-auto shrink-0 overflow-hidden !pl-2 !pr-2.5 !py-1 font-bold",
|
|
128
|
-
disabled: s.value,
|
|
129
|
-
onClick: b
|
|
130
|
-
}, {
|
|
131
|
-
default: w(() => [
|
|
132
|
-
o("span", se, [
|
|
133
|
-
n(a(W), {
|
|
134
|
-
class: "relative shrink-0 fill-current",
|
|
135
|
-
icon: "Play",
|
|
136
|
-
size: "xs"
|
|
137
|
-
}),
|
|
138
|
-
t[4] || (t[4] = o("span", { class: "text-xxs lg:flex hidden" }, "Send", -1))
|
|
139
|
-
]),
|
|
140
|
-
t[5] || (t[5] = o("span", { class: "sr-only" }, " Send Request ", -1))
|
|
80
|
+
default: B(({ open: f }) => {
|
|
81
|
+
var y, C, k, _, R;
|
|
82
|
+
return [
|
|
83
|
+
r("div", {
|
|
84
|
+
class: E([
|
|
85
|
+
"addressbar-bg-states text-xxs relative flex w-full xl:min-w-[720px] xl:max-w-[720px] lg:min-w-[580px] lg:max-w-[580px] order-last overflow-hidden lg:order-none flex-1 flex-row items-stretch rounded-lg border-1/2 p-[3px]",
|
|
86
|
+
{ "border-transparent overflow-visible rounded-b-none": f }
|
|
87
|
+
])
|
|
88
|
+
}, [
|
|
89
|
+
r("div", de, [
|
|
90
|
+
r("div", {
|
|
91
|
+
class: E(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full z-context", O()]),
|
|
92
|
+
style: j({ transform: `translate3d(-${a.value}%,0,0)` })
|
|
93
|
+
}, null, 6)
|
|
94
|
+
]),
|
|
95
|
+
r("div", fe, [
|
|
96
|
+
u(re, {
|
|
97
|
+
isEditable: !o(v),
|
|
98
|
+
isSquare: "",
|
|
99
|
+
method: o(l).method,
|
|
100
|
+
teleport: "",
|
|
101
|
+
onChange: K
|
|
102
|
+
}, null, 8, ["isEditable", "method"])
|
|
141
103
|
]),
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
104
|
+
r("div", me, [
|
|
105
|
+
t[2] || (t[2] = r("div", { class: "fade-left" }, null, -1)),
|
|
106
|
+
(C = (y = o(c)) == null ? void 0 : y.servers) != null && C.length ? (q(), F(se, { key: 0 })) : S("", !0),
|
|
107
|
+
u(G, {
|
|
108
|
+
ref_key: "addressBarRef",
|
|
109
|
+
ref: x,
|
|
110
|
+
"aria-label": "Path",
|
|
111
|
+
class: "outline-none",
|
|
112
|
+
disableCloseBrackets: "",
|
|
113
|
+
disabled: o(v),
|
|
114
|
+
disableEnter: "",
|
|
115
|
+
disableTabIndent: "",
|
|
116
|
+
emitOnBlur: !1,
|
|
117
|
+
importCurl: "",
|
|
118
|
+
modelValue: o(l).path,
|
|
119
|
+
placeholder: (R = (k = o(c)) == null ? void 0 : k.servers) != null && R.includes((_ = o(M)) == null ? void 0 : _.uid) ? "" : "Enter a URL or cURL command",
|
|
120
|
+
server: "",
|
|
121
|
+
onCurl: t[0] || (t[0] = (T) => e.$emit("importCurl", T)),
|
|
122
|
+
onSubmit: g,
|
|
123
|
+
"onUpdate:modelValue": N
|
|
124
|
+
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
125
|
+
t[3] || (t[3] = r("div", { class: "fade-right" }, null, -1))
|
|
126
|
+
]),
|
|
127
|
+
u(ae, { open: f }, null, 8, ["open"]),
|
|
128
|
+
u(o(Y), {
|
|
129
|
+
class: "relative h-auto shrink-0 overflow-hidden !pl-2 !pr-2.5 !py-1 font-bold",
|
|
130
|
+
disabled: s.value,
|
|
131
|
+
onClick: g
|
|
132
|
+
}, {
|
|
133
|
+
default: B(() => [
|
|
134
|
+
r("span", ce, [
|
|
135
|
+
u(o(Z), {
|
|
136
|
+
class: "relative shrink-0 fill-current",
|
|
137
|
+
icon: "Play",
|
|
138
|
+
size: "xs"
|
|
139
|
+
}),
|
|
140
|
+
t[4] || (t[4] = r("span", { class: "text-xxs lg:flex hidden" }, "Send", -1))
|
|
141
|
+
]),
|
|
142
|
+
t[5] || (t[5] = r("span", { class: "sr-only" }, " Send Request ", -1))
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["disabled"])
|
|
146
|
+
], 2)
|
|
147
|
+
];
|
|
148
|
+
}),
|
|
146
149
|
_: 1
|
|
147
150
|
}, 8, ["modelValue"])
|
|
148
151
|
])
|
|
149
|
-
])) :
|
|
152
|
+
])) : S("", !0);
|
|
150
153
|
}
|
|
151
154
|
});
|
|
152
155
|
export {
|
|
153
|
-
|
|
156
|
+
Be as default
|
|
154
157
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AA6UA,wBAMG"}
|
|
@@ -1,116 +1,109 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useActiveEntities as
|
|
3
|
-
import { ScalarDropdown as
|
|
4
|
-
import
|
|
5
|
-
import { useWorkspace as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as B, computed as i, watch as U, openBlock as s, createBlock as v, unref as l, withCtx as m, createElementBlock as a, createCommentVNode as p, Fragment as d, renderList as _, createVNode as c, createElementVNode as o, createTextVNode as V, toDisplayString as E } from "vue";
|
|
2
|
+
import { useActiveEntities as O } from "../../store/active-entities.js";
|
|
3
|
+
import { ScalarDropdown as R, ScalarDropdownDivider as b, ScalarDropdownItem as W, ScalarIcon as I } from "@scalar/components";
|
|
4
|
+
import h from "./AddressBarServerItem.vue.js";
|
|
5
|
+
import { useWorkspace as L } from "../../store/store.js";
|
|
6
|
+
const T = {
|
|
7
7
|
class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 py-0.5 text-c-2 -outline-offset-1",
|
|
8
8
|
type: "button"
|
|
9
|
-
},
|
|
9
|
+
}, j = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "text-xxs text-c-2 ml-8"
|
|
12
|
-
},
|
|
13
|
-
key: 1,
|
|
14
|
-
class: "flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
|
|
15
|
-
}, K = /* @__PURE__ */ V({
|
|
12
|
+
}, z = { class: "flex items-center justify-center h-4 w-4" }, H = /* @__PURE__ */ B({
|
|
16
13
|
__name: "AddressBarServer",
|
|
17
|
-
setup(
|
|
18
|
-
const { activeRequest:
|
|
14
|
+
setup(F) {
|
|
15
|
+
const { activeRequest: x, activeCollection: f, activeServer: u } = O(), { isReadOnly: g, servers: S, collectionMutators: A, events: C } = L(), w = i(
|
|
19
16
|
() => {
|
|
20
17
|
var t, e;
|
|
21
|
-
return (e = (t =
|
|
22
|
-
var
|
|
18
|
+
return (e = (t = x.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
|
|
19
|
+
var n;
|
|
23
20
|
return {
|
|
24
21
|
id: r,
|
|
25
|
-
label: ((
|
|
22
|
+
label: ((n = S[r]) == null ? void 0 : n.url) ?? "Unknown server"
|
|
26
23
|
};
|
|
27
24
|
});
|
|
28
25
|
}
|
|
29
|
-
),
|
|
26
|
+
), y = i(
|
|
30
27
|
() => {
|
|
31
28
|
var t, e;
|
|
32
|
-
return (e = (t =
|
|
33
|
-
var
|
|
29
|
+
return (e = (t = f.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
|
|
30
|
+
var n;
|
|
34
31
|
return {
|
|
35
32
|
id: r,
|
|
36
|
-
label: ((
|
|
33
|
+
label: ((n = S[r]) == null ? void 0 : n.url) ?? "Unknown server"
|
|
37
34
|
};
|
|
38
35
|
});
|
|
39
36
|
}
|
|
40
|
-
),
|
|
37
|
+
), k = i(
|
|
41
38
|
() => {
|
|
42
39
|
var t, e;
|
|
43
|
-
return ((t =
|
|
40
|
+
return ((t = w.value) == null ? void 0 : t.length) && ((e = y.value) == null ? void 0 : e.length);
|
|
44
41
|
}
|
|
45
42
|
);
|
|
46
|
-
|
|
47
|
-
!t || t.selectedServerUid || e != null && e.selectedServerUid ||
|
|
43
|
+
U([f, x], ([t, e]) => {
|
|
44
|
+
!t || t.selectedServerUid || e != null && e.selectedServerUid || A.edit(
|
|
48
45
|
t.uid,
|
|
49
46
|
"selectedServerUid",
|
|
50
47
|
t.servers[0]
|
|
51
48
|
);
|
|
52
49
|
});
|
|
53
|
-
const
|
|
50
|
+
const D = () => C.commandPalette.emit({
|
|
54
51
|
commandName: "Add Server"
|
|
55
|
-
}),
|
|
52
|
+
}), N = i(() => {
|
|
56
53
|
var t, e, r;
|
|
57
|
-
return (e = (t =
|
|
54
|
+
return (e = (t = u.value) == null ? void 0 : t.url) != null && e.endsWith("/") ? u.value.url.slice(0, -1) : ((r = u.value) == null ? void 0 : r.url) || "";
|
|
58
55
|
});
|
|
59
|
-
return (t, e) => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})) : f.value ? (l(), n("div", M, b(f.value), 1)) : v("", !0);
|
|
111
|
-
};
|
|
56
|
+
return (t, e) => (s(), v(l(R), {
|
|
57
|
+
class: "w-max",
|
|
58
|
+
teleport: ""
|
|
59
|
+
}, {
|
|
60
|
+
items: m(() => [
|
|
61
|
+
k.value ? (s(), a("div", j, " Request Servers ")) : p("", !0),
|
|
62
|
+
(s(!0), a(d, null, _(w.value, (r) => (s(), v(h, {
|
|
63
|
+
key: r.id,
|
|
64
|
+
serverOption: r,
|
|
65
|
+
type: "request"
|
|
66
|
+
}, null, 8, ["serverOption"]))), 128)),
|
|
67
|
+
k.value ? (s(), a(d, { key: 1 }, [
|
|
68
|
+
c(l(b)),
|
|
69
|
+
e[1] || (e[1] = o("div", { class: "text-xxs text-c-2 ml-8" }, "Collection Servers", -1))
|
|
70
|
+
], 64)) : p("", !0),
|
|
71
|
+
(s(!0), a(d, null, _(y.value, (r) => (s(), v(h, {
|
|
72
|
+
key: r.id,
|
|
73
|
+
serverOption: r,
|
|
74
|
+
type: "collection"
|
|
75
|
+
}, null, 8, ["serverOption"]))), 128)),
|
|
76
|
+
l(g) ? p("", !0) : (s(), a(d, { key: 2 }, [
|
|
77
|
+
c(l(b)),
|
|
78
|
+
c(l(W), null, {
|
|
79
|
+
default: m(() => [
|
|
80
|
+
o("div", {
|
|
81
|
+
class: "font-code text-xxs flex items-center gap-1.5",
|
|
82
|
+
onClick: D
|
|
83
|
+
}, [
|
|
84
|
+
o("div", z, [
|
|
85
|
+
c(l(I), {
|
|
86
|
+
icon: "Add",
|
|
87
|
+
size: "sm"
|
|
88
|
+
})
|
|
89
|
+
]),
|
|
90
|
+
e[2] || (e[2] = o("span", null, "Add Server", -1))
|
|
91
|
+
])
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
})
|
|
95
|
+
], 64))
|
|
96
|
+
]),
|
|
97
|
+
default: m(() => [
|
|
98
|
+
o("button", T, [
|
|
99
|
+
e[0] || (e[0] = o("span", { class: "sr-only" }, "Server:", -1)),
|
|
100
|
+
V(" " + E(N.value), 1)
|
|
101
|
+
])
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
}));
|
|
112
105
|
}
|
|
113
106
|
});
|
|
114
107
|
export {
|
|
115
|
-
|
|
108
|
+
H as default
|
|
116
109
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, openBlock as
|
|
1
|
+
import { defineComponent as h, openBlock as r, createElementBlock as o, normalizeClass as p, unref as e, createVNode as t, withCtx as n, createElementVNode as i, Fragment as v, renderList as w, createTextVNode as d, toDisplayString as y, createCommentVNode as b } from "vue";
|
|
2
2
|
import { ROUTES as k } from "../../constants.js";
|
|
3
3
|
import { ScalarIcon as N } from "@scalar/components";
|
|
4
4
|
import { useRouter as S } from "vue-router";
|
|
@@ -14,9 +14,9 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
|
|
|
14
14
|
__name: "SideNav",
|
|
15
15
|
setup(R) {
|
|
16
16
|
const { currentRoute: m } = S(), { layout: s } = j();
|
|
17
|
-
return ($, l) => (
|
|
17
|
+
return ($, l) => (r(), o("nav", {
|
|
18
18
|
"aria-label": "App Navigation",
|
|
19
|
-
class: p(["flex items-center justify-center sm:justify-between gap-1.5 app-drag-region", e(s) === "web" ? "border h-
|
|
19
|
+
class: p(["flex items-center justify-center sm:justify-between gap-1.5 app-drag-region", e(s) === "web" ? "border h-header" : "sm:flex-col px-2 pb-2"]),
|
|
20
20
|
role: "navigation"
|
|
21
21
|
}, [
|
|
22
22
|
t(u, { class: "app-no-drag-region" }, {
|
|
@@ -33,11 +33,11 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
|
|
|
33
33
|
size: "xl"
|
|
34
34
|
})
|
|
35
35
|
], 2),
|
|
36
|
-
(
|
|
36
|
+
(r(!0), o(v, null, w(e(k).filter(
|
|
37
37
|
(a) => a.name !== "settings"
|
|
38
38
|
), ({ icon: a, name: c, prettyName: g }, x) => {
|
|
39
39
|
var f;
|
|
40
|
-
return
|
|
40
|
+
return r(), o("li", { key: x }, [
|
|
41
41
|
t(_, {
|
|
42
42
|
active: (f = e(m).name) == null ? void 0 : f.startsWith(c),
|
|
43
43
|
icon: a,
|
|
@@ -70,7 +70,7 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
|
|
|
70
70
|
i("li", E, [
|
|
71
71
|
t(V)
|
|
72
72
|
]),
|
|
73
|
-
e(s) !== "desktop" ? (
|
|
73
|
+
e(s) !== "desktop" ? (r(), o("li", L, [
|
|
74
74
|
t(C)
|
|
75
75
|
])) : b("", !0)
|
|
76
76
|
]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1cfdf7d0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -3,7 +3,7 @@ import { useBreakpoints as $ } from "@scalar/use-hooks/useBreakpoints";
|
|
|
3
3
|
import { useWorkspace as z } from "../../store/store.js";
|
|
4
4
|
const C = {
|
|
5
5
|
key: 0,
|
|
6
|
-
class: "min-h-12 xl:min-h-header flex items-center justify-between border-b-1/2 px-3 py-1.5 md:px-4 md:py-2.5 text-sm"
|
|
6
|
+
class: "min-h-12 xl:min-h-client-header flex items-center justify-between border-b-1/2 px-3 py-1.5 md:px-4 md:py-2.5 text-sm"
|
|
7
7
|
}, I = { class: "font-medium m-0 text-sm whitespace-nowrap" }, R = { class: "relative z-10 pt-0 md:px-2.5 md:pb-2.5 sticky bottom-0 w-[inherit] has-[.empty-sidebar-item]:border-t-1/2" }, j = /* @__PURE__ */ S({
|
|
8
8
|
__name: "Sidebar",
|
|
9
9
|
props: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { openBlock as o, createElementBlock as l, createElementVNode as n, renderSlot as t } from "vue";
|
|
2
2
|
import s from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const
|
|
3
|
+
const c = {}, r = { class: "flex xl:h-full xl:min-w-0 flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-12 xl:min-h-client-header flex items-center border-b-1/2 px-3.5 py-1.5 md:px-4 md:py-2 xl:px-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none z-1" };
|
|
4
4
|
function m(e, d) {
|
|
5
|
-
return o(), l("section",
|
|
5
|
+
return o(), l("section", r, [
|
|
6
6
|
n("div", i, [
|
|
7
7
|
t(e.$slots, "title")
|
|
8
8
|
]),
|
|
9
9
|
t(e.$slots, "default")
|
|
10
10
|
]);
|
|
11
11
|
}
|
|
12
|
-
const p = /* @__PURE__ */ s(
|
|
12
|
+
const p = /* @__PURE__ */ s(c, [["render", m]]);
|
|
13
13
|
export {
|
|
14
14
|
p as default
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":";AAyZA,wBAMG"}
|
|
@@ -2,7 +2,7 @@ import o from "./ApiClientModal.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8a354e47"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|