@scalar/api-client 2.5.17 → 2.5.19
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 +47 -0
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -8
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +15 -13
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +10 -9
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +28 -26
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +9 -8
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -7
- package/dist/components/ImportCollection/ImportNowButton.vue.js +6 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +4 -2
- package/dist/components/SectionFilter.vue.d.ts.map +1 -1
- package/dist/components/SectionFilter.vue.js +2 -2
- package/dist/components/SectionFilter.vue2.js +8 -8
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.js +3 -2
- package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.js +7 -7
- package/dist/components/SideNav/SideHelp.vue.js +16 -10
- package/dist/components/SideNav/SideNav.vue.js +2 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -1
- package/dist/components/TopNav/TopNav.vue.js +9 -7
- package/dist/components/TopNav/TopNavItem.vue2.js +8 -4
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +14 -14
- package/dist/layouts/App/create-api-client-app.d.ts +42 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +84 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +42 -2
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +42 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +42 -2
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +42 -2
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue2.js +8 -7
- package/dist/views/Collection/CollectionServers.vue2.js +2 -1
- package/dist/views/Collection/CollectionSettings.vue2.js +2 -1
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +4 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +4 -2
- package/dist/views/Environment/Environment.vue2.js +2 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +10 -9
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +2 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +5 -4
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +22 -11
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +9 -8
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -28
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +4 -2
- package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +12 -10
- package/dist/views/Request/RequestSidebar.vue2.js +2 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +2 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -3
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +4 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +2 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +2 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +4 -2
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +5 -4
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +13 -10
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +46 -44
- package/dist/views/Settings/SettingsGeneral.vue.js +19 -17
- package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -5
- package/package.json +20 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, computed as P, ref as R, onMounted as q, createElementBlock as i, openBlock as l, Fragment as p, renderList as
|
|
1
|
+
import { defineComponent as F, computed as P, ref as R, onMounted as q, createElementBlock as i, openBlock as l, Fragment as p, renderList as $, createBlock as S, createCommentVNode as v, unref as d, normalizeClass as _, withCtx as n, createVNode as u, createTextVNode as V, toDisplayString as E, mergeProps as k, createElementVNode as A, capitalize as g } from "vue";
|
|
2
2
|
import { ScalarMarkdown as z } from "@scalar/components";
|
|
3
3
|
import { safeLocalStorage as I, CLIENT_LS_KEYS as N } from "@scalar/helpers/object/local-storage";
|
|
4
4
|
import { isDefined as j } from "@scalar/oas-utils/helpers";
|
|
@@ -24,21 +24,21 @@ const J = {
|
|
|
24
24
|
workspace: {}
|
|
25
25
|
},
|
|
26
26
|
setup(c) {
|
|
27
|
-
const
|
|
27
|
+
const C = D(), { collectionMutators: L, securitySchemes: x, securitySchemeMutators: M } = C, U = P(
|
|
28
28
|
() => c.securitySchemeUids.map((t) => ({
|
|
29
29
|
scheme: x[t]
|
|
30
30
|
}))
|
|
31
31
|
), s = R(""), O = (t) => {
|
|
32
|
-
const r = t.description ? `: ${t.description}` : "", e = `${
|
|
32
|
+
const r = t.description ? `: ${t.description}` : "", e = `${g(t.nameKey)}${r || `: ${t.type}`}`;
|
|
33
33
|
if (t.type === "apiKey")
|
|
34
|
-
return `${
|
|
34
|
+
return `${g(t.nameKey)}${r || `: ${t.in}`}`;
|
|
35
35
|
if (t.type === "oauth2") {
|
|
36
36
|
const o = Object.values(t.flows ?? {})[0];
|
|
37
|
-
return `${
|
|
37
|
+
return `${g(t.nameKey)}: ${s.value ? s.value : (o == null ? void 0 : o.type) ?? ""}${r}`;
|
|
38
38
|
}
|
|
39
|
-
return t.type === "http" ? `${
|
|
39
|
+
return t.type === "http" ? `${g(t.nameKey)}: ${t.scheme}${r}` : `${e}${r}`;
|
|
40
40
|
}, m = (t, r, e) => {
|
|
41
|
-
H(t, r, e,
|
|
41
|
+
H(t, r, e, C, c.persistAuth);
|
|
42
42
|
};
|
|
43
43
|
q(() => {
|
|
44
44
|
if (!c.persistAuth)
|
|
@@ -54,8 +54,8 @@ const J = {
|
|
|
54
54
|
);
|
|
55
55
|
Object.entries(t).forEach(([e, o]) => {
|
|
56
56
|
const a = r[e];
|
|
57
|
-
a && Object.entries(o).forEach(([
|
|
58
|
-
M.edit(a,
|
|
57
|
+
a && Object.entries(o).forEach(([T, K]) => {
|
|
58
|
+
M.edit(a, T, K);
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
try {
|
|
@@ -71,36 +71,36 @@ const J = {
|
|
|
71
71
|
envVariables: c.envVariables,
|
|
72
72
|
workspace: c.workspace
|
|
73
73
|
};
|
|
74
|
-
return (t, r) => (l(!0), i(p, null,
|
|
74
|
+
return (t, r) => (l(!0), i(p, null, $(U.value, ({ scheme: e }) => (l(), i(p, {
|
|
75
75
|
key: e == null ? void 0 : e.uid
|
|
76
76
|
}, [
|
|
77
|
-
|
|
77
|
+
U.value.length > 1 ? (l(), S(d(f), {
|
|
78
78
|
key: 0,
|
|
79
|
-
class:
|
|
79
|
+
class: _({
|
|
80
80
|
"request-example-references-header": t.layout === "reference"
|
|
81
81
|
})
|
|
82
82
|
}, {
|
|
83
83
|
default: n(() => [
|
|
84
84
|
u(d(B), {
|
|
85
|
-
class:
|
|
85
|
+
class: _(["text-c-2 flex items-center pl-3", t.layout === "reference" && "border-b"])
|
|
86
86
|
}, {
|
|
87
87
|
default: n(() => [
|
|
88
|
-
V(
|
|
88
|
+
V(E(O(e)), 1)
|
|
89
89
|
]),
|
|
90
90
|
_: 2
|
|
91
91
|
}, 1032, ["class"])
|
|
92
92
|
]),
|
|
93
93
|
_: 2
|
|
94
94
|
}, 1032, ["class"])) : v("", !0),
|
|
95
|
-
e != null && e.description &&
|
|
95
|
+
e != null && e.description && U.value.length <= 1 ? (l(), S(d(f), { key: 1 }, {
|
|
96
96
|
default: n(() => [
|
|
97
97
|
u(d(B), {
|
|
98
98
|
"aria-label": e.description,
|
|
99
|
-
class: "text-c-2 auth-description-container group/auth
|
|
99
|
+
class: "text-c-2 auth-description-container group/auth flex items-center whitespace-nowrap outline-none hover:whitespace-normal"
|
|
100
100
|
}, {
|
|
101
101
|
default: n(() => [
|
|
102
102
|
u(d(z), {
|
|
103
|
-
class: "auth-description bg-b-1 text-c-2 outline-b-3 top-0 z-1
|
|
103
|
+
class: "auth-description bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full px-3 py-1.25 *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none",
|
|
104
104
|
value: e.description
|
|
105
105
|
}, null, 8, ["value"])
|
|
106
106
|
]),
|
|
@@ -122,7 +122,8 @@ const J = {
|
|
|
122
122
|
default: n(() => r[0] || (r[0] = [
|
|
123
123
|
V(" Bearer Token ")
|
|
124
124
|
])),
|
|
125
|
-
_: 2
|
|
125
|
+
_: 2,
|
|
126
|
+
__: [0]
|
|
126
127
|
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
127
128
|
]),
|
|
128
129
|
_: 2
|
|
@@ -140,7 +141,8 @@ const J = {
|
|
|
140
141
|
default: n(() => r[1] || (r[1] = [
|
|
141
142
|
V(" Username ")
|
|
142
143
|
])),
|
|
143
|
-
_: 2
|
|
144
|
+
_: 2,
|
|
145
|
+
__: [1]
|
|
144
146
|
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
145
147
|
]),
|
|
146
148
|
_: 2
|
|
@@ -156,7 +158,8 @@ const J = {
|
|
|
156
158
|
default: n(() => r[2] || (r[2] = [
|
|
157
159
|
V(" Password ")
|
|
158
160
|
])),
|
|
159
|
-
_: 2
|
|
161
|
+
_: 2,
|
|
162
|
+
__: [2]
|
|
160
163
|
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
161
164
|
]),
|
|
162
165
|
_: 2
|
|
@@ -174,7 +177,8 @@ const J = {
|
|
|
174
177
|
default: n(() => r[3] || (r[3] = [
|
|
175
178
|
V(" Name ")
|
|
176
179
|
])),
|
|
177
|
-
_: 2
|
|
180
|
+
_: 2,
|
|
181
|
+
__: [3]
|
|
178
182
|
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
179
183
|
]),
|
|
180
184
|
_: 2
|
|
@@ -190,7 +194,8 @@ const J = {
|
|
|
190
194
|
default: n(() => r[4] || (r[4] = [
|
|
191
195
|
V(" Value ")
|
|
192
196
|
])),
|
|
193
|
-
_: 2
|
|
197
|
+
_: 2,
|
|
198
|
+
__: [4]
|
|
194
199
|
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
195
200
|
]),
|
|
196
201
|
_: 2
|
|
@@ -200,23 +205,23 @@ const J = {
|
|
|
200
205
|
default: n(() => [
|
|
201
206
|
Object.keys(e.flows).length > 1 ? (l(), i("div", J, [
|
|
202
207
|
A("div", Y, [
|
|
203
|
-
(l(!0), i(p, null,
|
|
208
|
+
(l(!0), i(p, null, $(e == null ? void 0 : e.flows, (o, a, y) => (l(), i("button", {
|
|
204
209
|
key: a,
|
|
205
|
-
class:
|
|
210
|
+
class: _(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
|
|
206
211
|
"!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (s.value === a || y === 0 && !s.value),
|
|
207
212
|
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (s.value === a || y === 0 && !s.value)
|
|
208
213
|
}]),
|
|
209
214
|
type: "button",
|
|
210
|
-
onClick: (
|
|
215
|
+
onClick: (T) => s.value = a
|
|
211
216
|
}, [
|
|
212
|
-
A("span", G,
|
|
217
|
+
A("span", G, E(a), 1)
|
|
213
218
|
], 10, W))), 128))
|
|
214
219
|
])
|
|
215
220
|
])) : v("", !0)
|
|
216
221
|
]),
|
|
217
222
|
_: 2
|
|
218
223
|
}, 1024),
|
|
219
|
-
(l(!0), i(p, null,
|
|
224
|
+
(l(!0), i(p, null, $(e == null ? void 0 : e.flows, (o, a, y) => (l(), i(p, { key: a }, [
|
|
220
225
|
s.value === a || y === 0 && !s.value ? (l(), S(Q, k({
|
|
221
226
|
key: 0,
|
|
222
227
|
ref_for: !0
|
|
@@ -231,7 +236,7 @@ const J = {
|
|
|
231
236
|
], 64))), 128))
|
|
232
237
|
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (l(), i("div", {
|
|
233
238
|
key: 5,
|
|
234
|
-
class:
|
|
239
|
+
class: _(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": t.layout === "reference" }])
|
|
235
240
|
}, " Coming soon ", 2)) : v("", !0)
|
|
236
241
|
], 64))), 128));
|
|
237
242
|
}
|
|
@@ -367,7 +367,8 @@ const me = {
|
|
|
367
367
|
default: m(() => n[3] || (n[3] = [
|
|
368
368
|
H(" Delete ")
|
|
369
369
|
])),
|
|
370
|
-
_: 1
|
|
370
|
+
_: 1,
|
|
371
|
+
__: [3]
|
|
371
372
|
})
|
|
372
373
|
], 64)) : (b(), g(y(F), {
|
|
373
374
|
key: 1,
|
|
@@ -385,7 +386,8 @@ const me = {
|
|
|
385
386
|
thickness: "2.5"
|
|
386
387
|
})
|
|
387
388
|
]),
|
|
388
|
-
_: 1
|
|
389
|
+
_: 1,
|
|
390
|
+
__: [4]
|
|
389
391
|
}))
|
|
390
392
|
])) : ((o = p.value) == null ? void 0 : o.id) == "multipartForm" ? (b(), g(G, {
|
|
391
393
|
key: 2,
|
|
@@ -29,14 +29,14 @@ const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
|
|
31
31
|
setup(x, { emit: F }) {
|
|
32
|
-
const m = x, t = F,
|
|
32
|
+
const m = x, t = F, _ = ["", "", "36px"], w = (e, o, l) => {
|
|
33
33
|
t("updateRow", e, o, l);
|
|
34
|
-
},
|
|
34
|
+
}, U = (e) => {
|
|
35
35
|
t("uploadFile", e);
|
|
36
|
-
},
|
|
36
|
+
}, S = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default, T = (e) => !!(e.key || e.value);
|
|
37
37
|
return (e, o) => (u(), i(N, {
|
|
38
38
|
class: "group/table flex-1",
|
|
39
|
-
columns:
|
|
39
|
+
columns: _
|
|
40
40
|
}, {
|
|
41
41
|
default: n(() => [
|
|
42
42
|
r($, { class: "sr-only !block" }, {
|
|
@@ -93,7 +93,8 @@ const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
93
93
|
_: 1
|
|
94
94
|
})
|
|
95
95
|
]),
|
|
96
|
-
_: 2
|
|
96
|
+
_: 2,
|
|
97
|
+
__: [4]
|
|
97
98
|
}, 1032, ["to"])) : (u(), i(P, {
|
|
98
99
|
key: 1,
|
|
99
100
|
class: "!border-r",
|
|
@@ -154,7 +155,7 @@ const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
154
155
|
"onUpdate:modelValue": (a) => t("updateRow", d, "value", a)
|
|
155
156
|
}, {
|
|
156
157
|
icon: n(() => [
|
|
157
|
-
|
|
158
|
+
T(l) && !l.required ? (u(), i(s(R), {
|
|
158
159
|
key: 0,
|
|
159
160
|
class: v([{
|
|
160
161
|
"-mr-0.5": s(h)(l)
|
|
@@ -170,7 +171,7 @@ const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
170
171
|
}, 1032, ["class", "onClick"])) : k("", !0),
|
|
171
172
|
s(h)(l) ? (u(), i(K, {
|
|
172
173
|
key: 1,
|
|
173
|
-
item: { ...l, default:
|
|
174
|
+
item: { ...l, default: S(l) }
|
|
174
175
|
}, null, 8, ["item"])) : k("", !0)
|
|
175
176
|
]),
|
|
176
177
|
_: 2
|
|
@@ -192,14 +193,14 @@ const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
192
193
|
p("button", {
|
|
193
194
|
class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
|
|
194
195
|
type: "button",
|
|
195
|
-
onClick: (
|
|
196
|
+
onClick: (I) => t("removeFile", d)
|
|
196
197
|
}, " Delete ", 8, A)
|
|
197
198
|
], 64)) : (u(), b("div", L, [
|
|
198
199
|
r(s(R), {
|
|
199
200
|
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
200
201
|
size: "sm",
|
|
201
202
|
variant: "outlined",
|
|
202
|
-
onClick: (
|
|
203
|
+
onClick: (I) => U(d)
|
|
203
204
|
}, {
|
|
204
205
|
default: n(() => [
|
|
205
206
|
o[5] || (o[5] = p("span", null, "Upload File", -1)),
|
|
@@ -210,7 +211,8 @@ const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
210
211
|
thickness: "2.5"
|
|
211
212
|
})
|
|
212
213
|
]),
|
|
213
|
-
_: 2
|
|
214
|
+
_: 2,
|
|
215
|
+
__: [5]
|
|
214
216
|
}, 1032, ["onClick"])
|
|
215
217
|
]))
|
|
216
218
|
];
|
|
@@ -330,7 +330,8 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
330
330
|
default: d(() => e[12] || (e[12] = [
|
|
331
331
|
q(" Import Collection ")
|
|
332
332
|
])),
|
|
333
|
-
_: 1
|
|
333
|
+
_: 1,
|
|
334
|
+
__: [12]
|
|
334
335
|
}, 8, ["class"])) : m("", !0),
|
|
335
336
|
t(n) !== "modal" ? (r(), u(ze, {
|
|
336
337
|
key: 2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+rBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAY,QAAQ,EAAO,MAAM,KAAK,CAAA;AAU7C,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIzE,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AA4VF,iBAAS,cAAc;WA+tBT,OAAO,IAA6B;;oBAziCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KA5oBmB;;;;;;;oCA4oBnB,KAxoBO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+rBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAY,QAAQ,EAAO,MAAM,KAAK,CAAA;AAU7C,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIzE,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AA4VF,iBAAS,cAAc;WA+tBT,OAAO,IAA6B;;oBAziCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KA5oBmB;;;;;;;oCA4oBnB,KAxoBO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAuyBU,GACjB,8CACqB,GAAG,yBAAyB,GAAG,6DAIlD,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA08BD;AAqCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -111,7 +111,8 @@ const ge = /* @__PURE__ */ H({
|
|
|
111
111
|
}),
|
|
112
112
|
t[8] || (t[8] = g("span", null, "Add Example", -1))
|
|
113
113
|
]),
|
|
114
|
-
_: 1
|
|
114
|
+
_: 1,
|
|
115
|
+
__: [8]
|
|
115
116
|
})) : c("", !0),
|
|
116
117
|
E.value ? c("", !0) : (s(), d(n(y), {
|
|
117
118
|
key: 1,
|
|
@@ -175,7 +176,8 @@ const ge = /* @__PURE__ */ H({
|
|
|
175
176
|
}),
|
|
176
177
|
t[9] || (t[9] = g("span", null, "Delete", -1))
|
|
177
178
|
]),
|
|
178
|
-
_: 1
|
|
179
|
+
_: 1,
|
|
180
|
+
__: [9]
|
|
179
181
|
})),
|
|
180
182
|
E.value ? (s(), d(n(y), {
|
|
181
183
|
key: 4,
|
|
@@ -191,7 +193,8 @@ const ge = /* @__PURE__ */ H({
|
|
|
191
193
|
}),
|
|
192
194
|
t[10] || (t[10] = g("span", null, "Clear Drafts", -1))
|
|
193
195
|
]),
|
|
194
|
-
_: 1
|
|
196
|
+
_: 1,
|
|
197
|
+
__: [10]
|
|
195
198
|
})) : c("", !0)
|
|
196
199
|
];
|
|
197
200
|
}),
|
|
@@ -42,13 +42,15 @@ const H = {
|
|
|
42
42
|
default: e(() => t[1] || (t[1] = [
|
|
43
43
|
n("Header Key")
|
|
44
44
|
])),
|
|
45
|
-
_: 1
|
|
45
|
+
_: 1,
|
|
46
|
+
__: [1]
|
|
46
47
|
}),
|
|
47
48
|
a(d(x), null, {
|
|
48
49
|
default: e(() => t[2] || (t[2] = [
|
|
49
50
|
n("Header Value")
|
|
50
51
|
])),
|
|
51
|
-
_: 1
|
|
52
|
+
_: 1,
|
|
53
|
+
__: [2]
|
|
52
54
|
})
|
|
53
55
|
]),
|
|
54
56
|
_: 1
|
|
@@ -15,7 +15,7 @@ const x = ["download", "href"], h = /* @__PURE__ */ l({
|
|
|
15
15
|
return n.filename ? n.filename : `response${o}`;
|
|
16
16
|
});
|
|
17
17
|
return (o, e) => (i(), a("a", {
|
|
18
|
-
class: "text-c-3 text-xxs hover:bg-b-3
|
|
18
|
+
class: "text-c-3 text-xxs hover:bg-b-3 flex items-center gap-1 rounded px-1.5 py-0.5 no-underline",
|
|
19
19
|
download: `${r.value}`,
|
|
20
20
|
href: o.href,
|
|
21
21
|
onClick: e[0] || (e[0] = d(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyRaw.vue"],"names":[],"mappings":"AAkHA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAM/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAAA;CACzC,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyRaw.vue"],"names":[],"mappings":"AAkHA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAM/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAAA;CACzC,CAAC;;AAuHF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseBodyRaw.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-27e5c2e0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -6,8 +6,8 @@ import { useClipboard as _ } from "@scalar/use-hooks/useClipboard";
|
|
|
6
6
|
const k = { class: "body-raw grid min-h-0 overflow-hidden p-px outline-none has-[:focus-visible]:outline" }, w = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "scalar-code-copy"
|
|
9
|
-
},
|
|
10
|
-
class: "body-raw-scroller
|
|
9
|
+
}, R = {
|
|
10
|
+
class: "body-raw-scroller relative overflow-auto overscroll-contain",
|
|
11
11
|
tabindex: "0"
|
|
12
12
|
}, E = /* @__PURE__ */ m({
|
|
13
13
|
__name: "ResponseBodyRaw",
|
|
@@ -32,7 +32,7 @@ const k = { class: "body-raw grid min-h-0 overflow-hidden p-px outline-none has-
|
|
|
32
32
|
e("button", {
|
|
33
33
|
class: "copy-button",
|
|
34
34
|
type: "button",
|
|
35
|
-
onClick: o[0] || (o[0] = (
|
|
35
|
+
onClick: o[0] || (o[0] = (x) => a(u)(s()))
|
|
36
36
|
}, [
|
|
37
37
|
o[1] || (o[1] = e("span", { class: "sr-only" }, "Copy content", -1)),
|
|
38
38
|
b(a(v), {
|
|
@@ -41,7 +41,7 @@ const k = { class: "body-raw grid min-h-0 overflow-hidden p-px outline-none has-
|
|
|
41
41
|
})
|
|
42
42
|
])
|
|
43
43
|
])) : y("", !0),
|
|
44
|
-
e("div",
|
|
44
|
+
e("div", R, [
|
|
45
45
|
e("div", {
|
|
46
46
|
ref_key: "codeMirrorRef",
|
|
47
47
|
ref: n
|
|
@@ -34,7 +34,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
34
34
|
}));
|
|
35
35
|
}, k = (o) => {
|
|
36
36
|
o != null && o.createNew && g.name === "request" && f();
|
|
37
|
-
}, w = "2.5.
|
|
37
|
+
}, w = "2.5.19";
|
|
38
38
|
return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (u(), i("div", W, [
|
|
39
39
|
s("div", {
|
|
40
40
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
|
@@ -42,13 +42,15 @@ const H = {
|
|
|
42
42
|
default: e(() => r[1] || (r[1] = [
|
|
43
43
|
n("Header Key")
|
|
44
44
|
])),
|
|
45
|
-
_: 1
|
|
45
|
+
_: 1,
|
|
46
|
+
__: [1]
|
|
46
47
|
}),
|
|
47
48
|
a(u(x), null, {
|
|
48
49
|
default: e(() => r[2] || (r[2] = [
|
|
49
50
|
n("Header Value")
|
|
50
51
|
])),
|
|
51
|
-
_: 1
|
|
52
|
+
_: 1,
|
|
53
|
+
__: [2]
|
|
52
54
|
})
|
|
53
55
|
]),
|
|
54
56
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, ref as c, createBlock as d, openBlock as l, Transition as m, withCtx as r, createElementBlock as f, createCommentVNode as p, unref as e, createVNode as i, createTextVNode as g } from "vue";
|
|
2
|
-
import { useLoadingState as v, ScalarLoading as
|
|
2
|
+
import { useLoadingState as v, ScalarLoading as _, ScalarButton as x } from "@scalar/components";
|
|
3
3
|
import { useWorkspace as k } from "../../../store/store.js";
|
|
4
4
|
const L = {
|
|
5
5
|
key: 0,
|
|
@@ -13,19 +13,20 @@ const L = {
|
|
|
13
13
|
}), (s, o) => (l(), d(m, null, {
|
|
14
14
|
default: r(() => [
|
|
15
15
|
e(t).isLoading ? (l(), f("div", L, [
|
|
16
|
-
i(e(
|
|
16
|
+
i(e(_), {
|
|
17
17
|
class: "text-c-3",
|
|
18
18
|
loadingState: e(t),
|
|
19
19
|
size: "3xl"
|
|
20
20
|
}, null, 8, ["loadingState"]),
|
|
21
|
-
i(e(
|
|
21
|
+
i(e(x), {
|
|
22
22
|
variant: "ghost",
|
|
23
23
|
onClick: o[0] || (o[0] = (C) => e(n).cancelRequest.emit())
|
|
24
24
|
}, {
|
|
25
25
|
default: r(() => o[1] || (o[1] = [
|
|
26
26
|
g(" Cancel ")
|
|
27
27
|
])),
|
|
28
|
-
_: 1
|
|
28
|
+
_: 1,
|
|
29
|
+
__: [1]
|
|
29
30
|
})
|
|
30
31
|
])) : p("", !0)
|
|
31
32
|
]),
|
|
@@ -8,7 +8,7 @@ import { useWorkspace as J } from "../../../store/store.js";
|
|
|
8
8
|
const K = { class: "flex w-[inherit] items-center text-base" }, Q = { class: "m-0 flex items-center gap-1.5 font-bold" }, X = { class: "line-clamp-1 text-left" }, Z = { class: "overflow-hidden text-ellipsis" }, ee = { class: "flex h-4 w-4 items-center justify-center" }, ce = /* @__PURE__ */ L({
|
|
9
9
|
__name: "WorkspaceDropdown",
|
|
10
10
|
setup(te) {
|
|
11
|
-
const { activeWorkspace: c } = H(), { workspaces: r, workspaceMutators:
|
|
11
|
+
const { activeWorkspace: c } = H(), { workspaces: r, workspaceMutators: x, events: T } = J(), { push: g } = P(), j = (o) => {
|
|
12
12
|
var t;
|
|
13
13
|
o !== ((t = c.value) == null ? void 0 : t.uid) && g({
|
|
14
14
|
name: "workspace",
|
|
@@ -20,7 +20,7 @@ const K = { class: "flex w-[inherit] items-center text-base" }, Q = { class: "m-
|
|
|
20
20
|
const t = r[o];
|
|
21
21
|
t && (d.value = t.name, i.value = o, u.show());
|
|
22
22
|
}, R = (o) => {
|
|
23
|
-
o.trim() && (
|
|
23
|
+
o.trim() && (x.edit(i.value, "name", o.trim()), u.hide());
|
|
24
24
|
}, M = (o) => {
|
|
25
25
|
const t = r[o];
|
|
26
26
|
t && (d.value = t.name, i.value = o, p.show());
|
|
@@ -28,7 +28,7 @@ const K = { class: "flex w-[inherit] items-center text-base" }, Q = { class: "m-
|
|
|
28
28
|
var o;
|
|
29
29
|
if (!b.value) {
|
|
30
30
|
const t = ((o = c.value) == null ? void 0 : o.uid) === i.value, n = { ...r };
|
|
31
|
-
if (delete n[i.value],
|
|
31
|
+
if (delete n[i.value], x.delete(i.value), t) {
|
|
32
32
|
const m = Object.keys(n)[0];
|
|
33
33
|
await g({
|
|
34
34
|
name: "workspace",
|
|
@@ -63,8 +63,8 @@ const K = { class: "flex w-[inherit] items-center text-base" }, Q = { class: "m-
|
|
|
63
63
|
items: a(() => [
|
|
64
64
|
s(e(h), {
|
|
65
65
|
class: "flex gap-2",
|
|
66
|
-
onMousedown: (
|
|
67
|
-
onTouchend: v((
|
|
66
|
+
onMousedown: (_) => W(n.uid),
|
|
67
|
+
onTouchend: v((_) => W(n.uid), ["prevent"])
|
|
68
68
|
}, {
|
|
69
69
|
default: a(() => [
|
|
70
70
|
s(e(k), {
|
|
@@ -75,13 +75,14 @@ const K = { class: "flex w-[inherit] items-center text-base" }, Q = { class: "m-
|
|
|
75
75
|
}),
|
|
76
76
|
t[2] || (t[2] = l("span", null, "Rename", -1))
|
|
77
77
|
]),
|
|
78
|
-
_: 2
|
|
78
|
+
_: 2,
|
|
79
|
+
__: [2]
|
|
79
80
|
}, 1032, ["onMousedown", "onTouchend"]),
|
|
80
81
|
b.value ? U("", !0) : (f(), S(e(h), {
|
|
81
82
|
key: 0,
|
|
82
83
|
class: "flex gap-2",
|
|
83
|
-
onMousedown: v((
|
|
84
|
-
onTouchend: v((
|
|
84
|
+
onMousedown: v((_) => M(n.uid), ["prevent"]),
|
|
85
|
+
onTouchend: v((_) => M(n.uid), ["prevent"])
|
|
85
86
|
}, {
|
|
86
87
|
default: a(() => [
|
|
87
88
|
s(e(k), {
|
|
@@ -92,7 +93,8 @@ const K = { class: "flex w-[inherit] items-center text-base" }, Q = { class: "m-
|
|
|
92
93
|
}),
|
|
93
94
|
t[3] || (t[3] = l("span", null, "Delete", -1))
|
|
94
95
|
]),
|
|
95
|
-
_: 2
|
|
96
|
+
_: 2,
|
|
97
|
+
__: [3]
|
|
96
98
|
}, 1032, ["onMousedown", "onTouchend"]))
|
|
97
99
|
]),
|
|
98
100
|
default: a(() => [
|
|
@@ -131,7 +133,8 @@ const K = { class: "flex w-[inherit] items-center text-base" }, Q = { class: "m-
|
|
|
131
133
|
]),
|
|
132
134
|
t[4] || (t[4] = l("span", null, "Create Workspace", -1))
|
|
133
135
|
]),
|
|
134
|
-
_: 1
|
|
136
|
+
_: 1,
|
|
137
|
+
__: [4]
|
|
135
138
|
})
|
|
136
139
|
]),
|
|
137
140
|
default: a(() => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAGzE,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAmBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,aAAoB,MAAM,YAAY,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAe3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,SACpB,UAAU,gBAEF,MAAM,aAET,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8J/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,SACrB,eAAe,UACb,MAAM,8BAKX;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B,KACA,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAGzE,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAmBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,aAAoB,MAAM,YAAY,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAe3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,SACpB,UAAU,gBAEF,MAAM,aAET,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8J/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,SACrB,eAAe,UACb,MAAM,8BAKX;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B,KACA,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAiF/B,CAAA"}
|