@scalar/api-client 2.0.47 → 2.0.49
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 +37 -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 +77 -71
- package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +49 -44
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +97 -106
- package/dist/components/Sidebar/Sidebar.vue.d.ts +23 -3
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +55 -19
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +46 -43
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -9
- package/dist/layouts/App/ApiClientApp.vue.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +56 -46
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +20 -20
- package/dist/layouts/Modal/create-api-client-modal.d.ts +112 -92
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +56 -46
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-busses/{command-palette.d.ts → command-palette-bus.d.ts} +1 -1
- package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -0
- package/dist/libs/event-busses/{execute-requestBus.d.ts → execute-request-bus.d.ts} +1 -1
- package/dist/libs/event-busses/execute-request-bus.d.ts.map +1 -0
- package/dist/libs/event-busses/hot-keys-bus.d.ts +33 -0
- package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -0
- package/dist/libs/event-busses/hot-keys-bus.js +33 -0
- package/dist/libs/event-busses/index.d.ts +3 -3
- package/dist/libs/event-busses/index.d.ts.map +1 -1
- package/dist/libs/event-busses/index.js +3 -3
- package/dist/libs/index.js +3 -3
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +15 -30
- package/dist/router.d.ts +2 -2
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +3 -3
- package/dist/store/workspace.d.ts +112 -92
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +140 -137
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +135 -131
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth.vue2.js +165 -148
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +252 -138
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +27 -5
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +83 -158
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +215 -70
- package/dist/views/Request/consts/new-auth-options.d.ts +0 -1
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.js +5 -6
- package/package.json +7 -7
- package/dist/libs/event-busses/command-palette.d.ts.map +0 -1
- package/dist/libs/event-busses/execute-requestBus.d.ts.map +0 -1
- package/dist/libs/event-busses/hot-key.d.ts +0 -34
- package/dist/libs/event-busses/hot-key.d.ts.map +0 -1
- package/dist/libs/event-busses/hot-key.js +0 -25
- /package/dist/libs/event-busses/{command-palette.js → command-palette-bus.js} +0 -0
- /package/dist/libs/event-busses/{execute-requestBus.js → execute-request-bus.js} +0 -0
|
@@ -1,180 +1,200 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useWorkspace as
|
|
1
|
+
import { defineComponent as K, ref as L, computed as C, openBlock as i, createBlock as b, withCtx as o, createElementVNode as h, toDisplayString as g, createVNode as u, unref as n, createElementBlock as c, Fragment as v, renderList as q, createTextVNode as f, withModifiers as z, createCommentVNode as A, capitalize as E, pushScopeId as Q, popScopeId as G } from "vue";
|
|
2
|
+
import J from "../../../components/DataTable/DataTableCell.vue.js";
|
|
3
|
+
import X from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
4
|
+
import { useWorkspace as Y } from "../../../store/workspace.js";
|
|
5
5
|
import V from "./RequestAuthDataTableInput.vue.js";
|
|
6
|
-
import { ScalarComboboxMultiselect as
|
|
7
|
-
import { camelToTitleWords as
|
|
8
|
-
import { ADD_AUTH_OPTIONS as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
6
|
+
import { ScalarComboboxMultiselect as Z, ScalarButton as ee, ScalarIcon as F } from "@scalar/components";
|
|
7
|
+
import { camelToTitleWords as te } from "@scalar/oas-utils/helpers";
|
|
8
|
+
import { ADD_AUTH_OPTIONS as le, ADD_AUTH_DICT as ae } from "../consts/new-auth-options.js";
|
|
9
|
+
import oe from "../../../components/DataTable/DataTable.vue.js";
|
|
10
|
+
import _ from "../../../components/DataTable/DataTableRow.vue.js";
|
|
11
|
+
import ue from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
12
|
+
import ne from "../components/OAuth2.vue.js";
|
|
13
|
+
const D = (S) => (Q("data-v-afbf407f"), S = S(), G(), S), ie = { class: "flex gap-1" }, se = /* @__PURE__ */ D(() => /* @__PURE__ */ h("div", { class: "text-c-2 h-8 flex min-w-[120px] items-center border-r-1/2 pr-0 pl-2" }, " Auth Type ", -1)), re = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "flex relative scroll-timeline-x w-full"
|
|
16
|
-
},
|
|
16
|
+
}, de = /* @__PURE__ */ D(() => /* @__PURE__ */ h("div", { class: "fade-left" }, null, -1)), ce = { class: "flex flex-1 gap-0.75 mr-1.5 items-center" }, pe = /* @__PURE__ */ D(() => /* @__PURE__ */ h("div", { class: "fade-right" }, null, -1)), me = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "pl-2"
|
|
19
|
-
},
|
|
19
|
+
}, $ = "*sclrMulti*", Te = /* @__PURE__ */ K({
|
|
20
20
|
__name: "RequestAuth",
|
|
21
21
|
props: {
|
|
22
22
|
title: {}
|
|
23
23
|
},
|
|
24
24
|
setup(S) {
|
|
25
25
|
const {
|
|
26
|
-
activeCollection:
|
|
27
|
-
activeRequest:
|
|
28
|
-
activeSecurityRequirements:
|
|
29
|
-
activeSecuritySchemes:
|
|
30
|
-
isReadOnly:
|
|
31
|
-
requestMutators:
|
|
32
|
-
securitySchemeMutators:
|
|
33
|
-
securitySchemes:
|
|
34
|
-
} =
|
|
35
|
-
switch (
|
|
26
|
+
activeCollection: T,
|
|
27
|
+
activeRequest: k,
|
|
28
|
+
activeSecurityRequirements: O,
|
|
29
|
+
activeSecuritySchemes: R,
|
|
30
|
+
isReadOnly: w,
|
|
31
|
+
requestMutators: P,
|
|
32
|
+
securitySchemeMutators: N,
|
|
33
|
+
securitySchemes: U
|
|
34
|
+
} = Y(), B = L(null), I = (t) => {
|
|
35
|
+
switch (t == null ? void 0 : t.type) {
|
|
36
36
|
case "apiKey":
|
|
37
|
-
return `${
|
|
37
|
+
return `${E(t.in)}`;
|
|
38
38
|
case "http":
|
|
39
|
-
return `${
|
|
39
|
+
return `${E(t.scheme)} Authentication`;
|
|
40
40
|
case "oauth2":
|
|
41
|
-
return
|
|
41
|
+
return te(t.flow.type);
|
|
42
42
|
case "openIdConnect":
|
|
43
43
|
return "Open ID Connect";
|
|
44
44
|
default:
|
|
45
45
|
return "None";
|
|
46
46
|
}
|
|
47
|
-
},
|
|
47
|
+
}, j = C(
|
|
48
48
|
() => {
|
|
49
49
|
var e;
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
const t = (e = T.value) == null ? void 0 : e.securitySchemeDict, l = O.value.flatMap((d) => {
|
|
51
|
+
const a = Object.keys(d);
|
|
52
|
+
if (a.length === 0 && w.value)
|
|
53
|
+
return { id: "none", label: "None" };
|
|
54
|
+
if (!t) return [];
|
|
55
|
+
if (a.length > 1) {
|
|
56
|
+
const p = a.map((r) => {
|
|
57
|
+
const x = t[r];
|
|
58
|
+
return U[x];
|
|
59
|
+
}), s = p.map((r) => r.nameKey).join(" & ");
|
|
60
|
+
return {
|
|
61
|
+
id: $ + p.map((r) => r.uid).join($),
|
|
62
|
+
label: s
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
return a.flatMap((p) => {
|
|
66
|
+
const s = t[p], r = U[s], x = I(r);
|
|
55
67
|
return {
|
|
56
68
|
id: s,
|
|
57
|
-
label:
|
|
58
|
-
labelWithoutId: x
|
|
69
|
+
label: x
|
|
59
70
|
};
|
|
60
71
|
});
|
|
61
72
|
});
|
|
62
|
-
if (
|
|
63
|
-
return
|
|
73
|
+
if (w.value)
|
|
74
|
+
return l;
|
|
64
75
|
{
|
|
65
|
-
const
|
|
66
|
-
const
|
|
76
|
+
const d = k.value.securitySchemeUids.map((s) => {
|
|
77
|
+
const r = U[s], x = I(r);
|
|
67
78
|
return {
|
|
68
79
|
id: s,
|
|
69
|
-
label: "name" in
|
|
70
|
-
labelWithoutId: x
|
|
80
|
+
label: "name" in r && r.name.length ? `${x} (${r.name})` : x
|
|
71
81
|
};
|
|
72
|
-
}),
|
|
73
|
-
(s) =>
|
|
82
|
+
}), a = k.value.selectedSecuritySchemeUids, p = d.filter(
|
|
83
|
+
(s) => a.includes(s.id)
|
|
74
84
|
);
|
|
75
85
|
return [
|
|
76
|
-
{ label: "Select auth", options: [...
|
|
86
|
+
{ label: "Select auth", options: [...l, ...p] },
|
|
77
87
|
{
|
|
78
88
|
label: "Add new auth",
|
|
79
|
-
options:
|
|
89
|
+
options: le
|
|
80
90
|
}
|
|
81
91
|
];
|
|
82
92
|
}
|
|
83
93
|
}
|
|
84
|
-
),
|
|
94
|
+
), M = (t) => {
|
|
95
|
+
if (t.startsWith($)) {
|
|
96
|
+
const l = t.split($);
|
|
97
|
+
return l.shift(), l;
|
|
98
|
+
} else
|
|
99
|
+
return [t];
|
|
100
|
+
}, m = C({
|
|
85
101
|
// Grab the selected OR first security scheme
|
|
86
|
-
get: () =>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
102
|
+
get: () => {
|
|
103
|
+
var l;
|
|
104
|
+
const t = new Set(
|
|
105
|
+
((l = k.value) == null ? void 0 : l.selectedSecuritySchemeUids) || []
|
|
106
|
+
);
|
|
107
|
+
return j.value.flatMap(
|
|
108
|
+
(e) => "options" in e ? e.options : e
|
|
109
|
+
).filter(
|
|
110
|
+
(e) => M(e.id).some((d) => t.has(d))
|
|
111
|
+
);
|
|
112
|
+
},
|
|
96
113
|
// Update the selected auth per this request
|
|
97
|
-
set: (
|
|
98
|
-
var e,
|
|
99
|
-
const
|
|
100
|
-
(s) =>
|
|
114
|
+
set: (t) => {
|
|
115
|
+
var e, d, a, p;
|
|
116
|
+
const l = t.find(
|
|
117
|
+
(s) => ae[s.id]
|
|
101
118
|
);
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
119
|
+
l != null && l.payload && T.value ? ((p = (a = (d = (e = B.value) == null ? void 0 : e.comboboxPopoverRef) == null ? void 0 : d.popoverButtonRef) == null ? void 0 : a.el) == null || p.click(), N.add(
|
|
120
|
+
l.payload,
|
|
121
|
+
T.value.uid,
|
|
122
|
+
k.value,
|
|
106
123
|
!0
|
|
107
|
-
)) :
|
|
108
|
-
|
|
124
|
+
)) : P.edit(
|
|
125
|
+
k.value.uid,
|
|
109
126
|
"selectedSecuritySchemeUids",
|
|
110
|
-
|
|
127
|
+
t.flatMap((s) => M(s.id))
|
|
111
128
|
);
|
|
112
129
|
}
|
|
113
|
-
}),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
130
|
+
}), W = C(
|
|
131
|
+
() => m.value.flatMap(({ id: t }) => M(t)).map((t) => {
|
|
132
|
+
const l = U[t];
|
|
133
|
+
return `${I(l)} (${l.nameKey})`;
|
|
134
|
+
})
|
|
135
|
+
), y = (t, l, e) => N.edit(t.uid ?? "", l, e), H = (t) => {
|
|
136
|
+
const l = m.value.filter(
|
|
137
|
+
(e) => e.id !== t
|
|
118
138
|
);
|
|
119
|
-
|
|
139
|
+
m.value = l;
|
|
120
140
|
};
|
|
121
|
-
return (
|
|
141
|
+
return (t, l) => (i(), b(X, {
|
|
122
142
|
class: "group/params",
|
|
123
|
-
itemCount:
|
|
143
|
+
itemCount: m.value.length
|
|
124
144
|
}, {
|
|
125
|
-
title:
|
|
126
|
-
h("div",
|
|
145
|
+
title: o(() => [
|
|
146
|
+
h("div", ie, g(t.title), 1)
|
|
127
147
|
]),
|
|
128
|
-
default:
|
|
148
|
+
default: o(() => [
|
|
129
149
|
h("form", null, [
|
|
130
|
-
u(n(
|
|
150
|
+
u(n(oe), {
|
|
131
151
|
class: "flex-1",
|
|
132
152
|
columns: [""]
|
|
133
153
|
}, {
|
|
134
|
-
default:
|
|
135
|
-
u(n(
|
|
136
|
-
default:
|
|
137
|
-
u(n(
|
|
138
|
-
default:
|
|
139
|
-
u(n(
|
|
154
|
+
default: o(() => [
|
|
155
|
+
u(n(_), null, {
|
|
156
|
+
default: o(() => [
|
|
157
|
+
u(n(ue), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
|
|
158
|
+
default: o(() => [
|
|
159
|
+
u(n(Z), {
|
|
140
160
|
ref_key: "comboboxRef",
|
|
141
|
-
ref:
|
|
142
|
-
modelValue:
|
|
143
|
-
"onUpdate:modelValue":
|
|
161
|
+
ref: B,
|
|
162
|
+
modelValue: m.value,
|
|
163
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => m.value = e),
|
|
144
164
|
class: "text-xs w-full",
|
|
145
165
|
fullWidth: "",
|
|
146
166
|
multiple: "",
|
|
147
|
-
options:
|
|
167
|
+
options: j.value,
|
|
148
168
|
style: { "margin-left": "120px" },
|
|
149
169
|
teleport: ""
|
|
150
170
|
}, {
|
|
151
|
-
default:
|
|
152
|
-
u(n(
|
|
171
|
+
default: o(() => [
|
|
172
|
+
u(n(ee), {
|
|
153
173
|
class: "h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start",
|
|
154
174
|
fullWidth: "",
|
|
155
175
|
variant: "ghost"
|
|
156
176
|
}, {
|
|
157
|
-
default:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
h("div",
|
|
162
|
-
(i(!0), c(v, null,
|
|
177
|
+
default: o(() => [
|
|
178
|
+
se,
|
|
179
|
+
m.value.length ? (i(), c("div", re, [
|
|
180
|
+
de,
|
|
181
|
+
h("div", ce, [
|
|
182
|
+
(i(!0), c(v, null, q(m.value, (e) => (i(), c("span", {
|
|
163
183
|
key: e.id,
|
|
164
184
|
class: "cm-pill flex items-center mx-0 h-fit"
|
|
165
185
|
}, [
|
|
166
|
-
|
|
167
|
-
u(n(
|
|
186
|
+
f(g(e.label) + " ", 1),
|
|
187
|
+
u(n(F), {
|
|
168
188
|
class: "ml-1 cursor-pointer text-c-3 hover:text-c-1",
|
|
169
189
|
icon: "Close",
|
|
170
190
|
size: "xs",
|
|
171
|
-
onClick:
|
|
191
|
+
onClick: z((d) => H(e.id), ["stop"])
|
|
172
192
|
}, null, 8, ["onClick"])
|
|
173
193
|
]))), 128))
|
|
174
194
|
]),
|
|
175
|
-
|
|
176
|
-
])) : (i(), c("div",
|
|
177
|
-
u(n(
|
|
195
|
+
pe
|
|
196
|
+
])) : (i(), c("div", me, " None ")),
|
|
197
|
+
u(n(F), {
|
|
178
198
|
class: "min-w-3 ml-auto mr-2.5",
|
|
179
199
|
icon: "ChevronDown",
|
|
180
200
|
size: "xs"
|
|
@@ -191,123 +211,120 @@ const C = (S) => (H("data-v-24e41ef0"), S = S(), Q(), S), oe = { class: "flex ga
|
|
|
191
211
|
]),
|
|
192
212
|
_: 1
|
|
193
213
|
}),
|
|
194
|
-
(i(!0), c(v, null,
|
|
214
|
+
(i(!0), c(v, null, q(n(R), (e, d) => (i(), c(v, {
|
|
195
215
|
key: e.uid
|
|
196
216
|
}, [
|
|
197
|
-
n(
|
|
217
|
+
n(R).length > 1 ? (i(), b(n(_), {
|
|
198
218
|
key: 0,
|
|
199
219
|
class: "group/delete"
|
|
200
220
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
u(
|
|
203
|
-
default:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
p(U((t = d.value[r]) == null ? void 0 : t.label), 1)
|
|
207
|
-
];
|
|
208
|
-
}),
|
|
221
|
+
default: o(() => [
|
|
222
|
+
u(J, { class: "text-c-2 pl-2 text-xs font-medium flex items-center bg-b-2" }, {
|
|
223
|
+
default: o(() => [
|
|
224
|
+
f(g(W.value[d]), 1)
|
|
225
|
+
]),
|
|
209
226
|
_: 2
|
|
210
227
|
}, 1024)
|
|
211
228
|
]),
|
|
212
229
|
_: 2
|
|
213
|
-
}, 1024)) :
|
|
230
|
+
}, 1024)) : A("", !0),
|
|
214
231
|
e.type === "http" ? (i(), c(v, { key: 1 }, [
|
|
215
|
-
e.scheme === "bearer" ? (i(),
|
|
216
|
-
default:
|
|
232
|
+
e.scheme === "bearer" ? (i(), b(n(_), { key: 0 }, {
|
|
233
|
+
default: o(() => [
|
|
217
234
|
u(V, {
|
|
218
235
|
id: `http-bearer-token-${e.uid}`,
|
|
219
236
|
modelValue: e.value,
|
|
220
237
|
placeholder: "Token",
|
|
221
238
|
type: "password",
|
|
222
|
-
"onUpdate:modelValue": (
|
|
239
|
+
"onUpdate:modelValue": (a) => y(e, "value", a)
|
|
223
240
|
}, {
|
|
224
|
-
default:
|
|
225
|
-
|
|
241
|
+
default: o(() => [
|
|
242
|
+
f(" Bearer Token ")
|
|
226
243
|
]),
|
|
227
244
|
_: 2
|
|
228
245
|
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
229
246
|
]),
|
|
230
247
|
_: 2
|
|
231
248
|
}, 1024)) : e.scheme === "basic" ? (i(), c(v, { key: 1 }, [
|
|
232
|
-
u(n(
|
|
233
|
-
default:
|
|
249
|
+
u(n(_), null, {
|
|
250
|
+
default: o(() => [
|
|
234
251
|
u(V, {
|
|
235
252
|
id: `http-basic-username-${e.uid}`,
|
|
236
253
|
class: "text-c-2",
|
|
237
254
|
modelValue: e.value,
|
|
238
255
|
placeholder: "ScalarEnjoyer01",
|
|
239
256
|
required: "",
|
|
240
|
-
"onUpdate:modelValue": (
|
|
257
|
+
"onUpdate:modelValue": (a) => y(e, "value", a)
|
|
241
258
|
}, {
|
|
242
|
-
default:
|
|
243
|
-
|
|
259
|
+
default: o(() => [
|
|
260
|
+
f(" Username ")
|
|
244
261
|
]),
|
|
245
262
|
_: 2
|
|
246
263
|
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
247
264
|
]),
|
|
248
265
|
_: 2
|
|
249
266
|
}, 1024),
|
|
250
|
-
u(n(
|
|
251
|
-
default:
|
|
267
|
+
u(n(_), null, {
|
|
268
|
+
default: o(() => [
|
|
252
269
|
u(V, {
|
|
253
270
|
id: `http-basic-password-${e.uid}`,
|
|
254
271
|
modelValue: e.secondValue,
|
|
255
272
|
placeholder: "xxxxxx",
|
|
256
273
|
type: "password",
|
|
257
|
-
"onUpdate:modelValue": (
|
|
274
|
+
"onUpdate:modelValue": (a) => y(e, "secondValue", a)
|
|
258
275
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
|
|
276
|
+
default: o(() => [
|
|
277
|
+
f(" Password ")
|
|
261
278
|
]),
|
|
262
279
|
_: 2
|
|
263
280
|
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
264
281
|
]),
|
|
265
282
|
_: 2
|
|
266
283
|
}, 1024)
|
|
267
|
-
], 64)) :
|
|
284
|
+
], 64)) : A("", !0)
|
|
268
285
|
], 64)) : e.type === "apiKey" ? (i(), c(v, { key: 2 }, [
|
|
269
|
-
n(
|
|
270
|
-
default:
|
|
286
|
+
n(w) ? (i(), b(n(_), { key: 1 }, {
|
|
287
|
+
default: o(() => [
|
|
271
288
|
u(V, {
|
|
272
289
|
id: `api-key-value-${e.uid}`,
|
|
273
290
|
modelValue: e.value,
|
|
274
291
|
placeholder: "Value",
|
|
275
|
-
"onUpdate:modelValue": (
|
|
292
|
+
"onUpdate:modelValue": (a) => y(e, "value", a)
|
|
276
293
|
}, {
|
|
277
|
-
default:
|
|
278
|
-
|
|
294
|
+
default: o(() => [
|
|
295
|
+
f(g(e.name), 1)
|
|
279
296
|
]),
|
|
280
297
|
_: 2
|
|
281
298
|
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
282
299
|
]),
|
|
283
300
|
_: 2
|
|
284
301
|
}, 1024)) : (i(), c(v, { key: 0 }, [
|
|
285
|
-
u(n(
|
|
286
|
-
default:
|
|
302
|
+
u(n(_), null, {
|
|
303
|
+
default: o(() => [
|
|
287
304
|
u(V, {
|
|
288
305
|
id: `api-key-name-${e.uid}`,
|
|
289
306
|
modelValue: e.name,
|
|
290
307
|
placeholder: "api-key",
|
|
291
|
-
"onUpdate:modelValue": (
|
|
308
|
+
"onUpdate:modelValue": (a) => y(e, "name", a)
|
|
292
309
|
}, {
|
|
293
|
-
default:
|
|
294
|
-
|
|
310
|
+
default: o(() => [
|
|
311
|
+
f(" Name ")
|
|
295
312
|
]),
|
|
296
313
|
_: 2
|
|
297
314
|
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
298
315
|
]),
|
|
299
316
|
_: 2
|
|
300
317
|
}, 1024),
|
|
301
|
-
u(n(
|
|
302
|
-
default:
|
|
318
|
+
u(n(_), null, {
|
|
319
|
+
default: o(() => [
|
|
303
320
|
u(V, {
|
|
304
321
|
id: `api-key-value-add-${e.uid}`,
|
|
305
322
|
modelValue: e.value,
|
|
306
323
|
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
307
|
-
"onUpdate:modelValue": (
|
|
324
|
+
"onUpdate:modelValue": (a) => y(e, "value", a)
|
|
308
325
|
}, {
|
|
309
|
-
default:
|
|
310
|
-
|
|
326
|
+
default: o(() => [
|
|
327
|
+
f(" Value ")
|
|
311
328
|
]),
|
|
312
329
|
_: 2
|
|
313
330
|
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
@@ -315,10 +332,10 @@ const C = (S) => (H("data-v-24e41ef0"), S = S(), Q(), S), oe = { class: "flex ga
|
|
|
315
332
|
_: 2
|
|
316
333
|
}, 1024)
|
|
317
334
|
], 64))
|
|
318
|
-
], 64)) : e.type === "oauth2" ? (i(),
|
|
335
|
+
], 64)) : e.type === "oauth2" ? (i(), b(n(ne), {
|
|
319
336
|
key: 3,
|
|
320
337
|
scheme: e
|
|
321
|
-
}, null, 8, ["scheme"])) :
|
|
338
|
+
}, null, 8, ["scheme"])) : A("", !0)
|
|
322
339
|
], 64))), 128))
|
|
323
340
|
]),
|
|
324
341
|
_: 1
|
|
@@ -330,5 +347,5 @@ const C = (S) => (H("data-v-24e41ef0"), S = S(), Q(), S), oe = { class: "flex ga
|
|
|
330
347
|
}
|
|
331
348
|
});
|
|
332
349
|
export {
|
|
333
|
-
|
|
350
|
+
Te as default
|
|
334
351
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAqeA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AAkPlD,iBAAS,cAAc;gBA/MT,IAAI;;gBAAJ,IAAI;EA02BjB;AACD,QAAA,MAAM,eAAe;IAr4BjB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;IAdpD;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;;iBATtC,OAAO;MAu4BvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-846321e2"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|