@scalar/api-client 2.1.10 → 2.1.11
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 +15 -0
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +18 -18
- package/dist/router.js +1 -1
- package/dist/style.css +1 -1
- 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 +82 -88
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +107 -98
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +26 -26
- package/package.json +6 -6
- package/dist/views/Components/Schemas/Schemas.vue.d.ts +0 -3
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuth.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ab00a92e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,163 +1,157 @@
|
|
|
1
|
-
import { defineComponent as F, ref as A, computed as
|
|
2
|
-
import
|
|
3
|
-
import { useModal as
|
|
4
|
-
import { nanoid as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { displaySchemeFormatter as M, createSchemeValueSet as
|
|
8
|
-
import { ADD_AUTH_OPTIONS as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useWorkspace as
|
|
13
|
-
const
|
|
1
|
+
import { defineComponent as F, ref as A, computed as S, openBlock as f, createBlock as W, withCtx as r, createElementVNode as n, toDisplayString as $, createVNode as a, unref as c, createElementBlock as x, Fragment as q, renderList as z, createTextVNode as E, withModifiers as K, pushScopeId as H, popScopeId as L } from "vue";
|
|
2
|
+
import P from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
3
|
+
import { useModal as G, ScalarComboboxMultiselect as J, ScalarButton as Q, ScalarIcon as D } from "@scalar/components";
|
|
4
|
+
import { nanoid as X } from "nanoid";
|
|
5
|
+
import Y from "./DeleteRequestAuthModal.vue.js";
|
|
6
|
+
import Z from "./RequestExampleAuth.vue.js";
|
|
7
|
+
import { displaySchemeFormatter as M, createSchemeValueSet as ee } from "../../libs/auth.js";
|
|
8
|
+
import { ADD_AUTH_OPTIONS as te } from "../../consts/new-auth-options.js";
|
|
9
|
+
import le from "../../../../components/DataTable/DataTable.vue.js";
|
|
10
|
+
import oe from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
11
|
+
import se from "../../../../components/DataTable/DataTableHeader.vue.js";
|
|
12
|
+
import { useWorkspace as ae } from "../../../../store/store.js";
|
|
13
|
+
const b = (h) => (H("data-v-ab00a92e"), h = h(), L(), h), ce = { class: "flex gap-1" }, ie = /* @__PURE__ */ b(() => /* @__PURE__ */ n("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
|
+
}, ne = /* @__PURE__ */ b(() => /* @__PURE__ */ n("div", { class: "fade-left" }, null, -1)), ue = { class: "flex flex-1 gap-0.75 mr-1.5 items-center" }, me = /* @__PURE__ */ b(() => /* @__PURE__ */ n("div", { class: "fade-right" }, null, -1)), de = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "pl-2"
|
|
19
|
-
},
|
|
19
|
+
}, Ce = /* @__PURE__ */ F({
|
|
20
20
|
__name: "RequestAuth",
|
|
21
21
|
props: {
|
|
22
22
|
title: {}
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
24
|
+
setup(h) {
|
|
25
25
|
const {
|
|
26
26
|
activeCollection: u,
|
|
27
|
-
activeRequest:
|
|
28
|
-
collectionMutators:
|
|
27
|
+
activeRequest: i,
|
|
28
|
+
collectionMutators: V,
|
|
29
29
|
isReadOnly: g,
|
|
30
30
|
requestMutators: k,
|
|
31
|
-
securitySchemes:
|
|
32
|
-
securitySchemeMutators:
|
|
33
|
-
} =
|
|
34
|
-
var o,
|
|
35
|
-
const e = (
|
|
31
|
+
securitySchemes: v,
|
|
32
|
+
securitySchemeMutators: I
|
|
33
|
+
} = ae(), O = A(null), y = G(), w = A(void 0), C = `combobox-${X()}`, R = S(() => {
|
|
34
|
+
var o, m, d;
|
|
35
|
+
const e = (m = (o = i.value) == null ? void 0 : o.security) == null ? void 0 : m.filter(
|
|
36
36
|
(s) => Object.keys(s).length
|
|
37
37
|
);
|
|
38
38
|
return ((g.value && (e != null && e.length) ? e.map((s) => {
|
|
39
|
-
var
|
|
39
|
+
var p;
|
|
40
40
|
const l = Object.keys(s)[0];
|
|
41
|
-
return ((
|
|
42
|
-
}) : (
|
|
43
|
-
}), U =
|
|
41
|
+
return ((p = Object.values(v).find((N) => N.nameKey === l)) == null ? void 0 : p.uid) ?? "";
|
|
42
|
+
}) : (d = u.value) == null ? void 0 : d.securitySchemes) ?? []).map((s) => v[s]).filter((s) => s);
|
|
43
|
+
}), U = S(
|
|
44
44
|
() => {
|
|
45
|
-
const e =
|
|
45
|
+
const e = R.value.map(
|
|
46
46
|
(t) => M(t)
|
|
47
47
|
);
|
|
48
48
|
return g.value ? e : [
|
|
49
49
|
{ label: "Select auth", options: e },
|
|
50
50
|
{
|
|
51
51
|
label: "Add new auth",
|
|
52
|
-
options:
|
|
52
|
+
options: te
|
|
53
53
|
}
|
|
54
54
|
];
|
|
55
55
|
}
|
|
56
|
-
),
|
|
56
|
+
), _ = S(
|
|
57
57
|
() => {
|
|
58
58
|
var e;
|
|
59
|
-
return ((e =
|
|
60
|
-
(t) => M(
|
|
59
|
+
return ((e = i.value) == null ? void 0 : e.selectedSecuritySchemeUids.map(
|
|
60
|
+
(t) => M(v[t])
|
|
61
61
|
)) ?? [];
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
|
-
function
|
|
65
|
-
var
|
|
66
|
-
if (!((
|
|
64
|
+
function T(e) {
|
|
65
|
+
var d, s;
|
|
66
|
+
if (!((d = u.value) != null && d.uid) || !((s = i.value) != null && s.uid)) return;
|
|
67
67
|
const t = e.find((l) => l.payload), o = e.filter((l) => !l.payload).map(({ id: l }) => l);
|
|
68
68
|
if (t != null && t.payload) {
|
|
69
|
-
const l =
|
|
69
|
+
const l = I.add(
|
|
70
70
|
t.payload,
|
|
71
71
|
u.value.uid
|
|
72
72
|
);
|
|
73
73
|
o.push(l.uid);
|
|
74
74
|
}
|
|
75
|
-
const
|
|
76
|
-
|
|
75
|
+
const m = o.filter((l) => !u.value.auth[l]);
|
|
76
|
+
V.edit(
|
|
77
77
|
u.value.uid,
|
|
78
78
|
"auth",
|
|
79
|
-
|
|
79
|
+
m.reduce((l, p) => (l[p] = ee(v[p]), l), u.value.auth)
|
|
80
80
|
), k.edit(
|
|
81
|
-
|
|
81
|
+
i.value.uid,
|
|
82
82
|
"selectedSecuritySchemeUids",
|
|
83
83
|
o
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
|
-
const j = (e) =>
|
|
87
|
-
|
|
86
|
+
const j = (e) => i.value && k.edit(
|
|
87
|
+
i.value.uid,
|
|
88
88
|
"selectedSecuritySchemeUids",
|
|
89
|
-
|
|
89
|
+
i.value.selectedSecuritySchemeUids.filter(
|
|
90
90
|
(t) => t !== e
|
|
91
91
|
)
|
|
92
92
|
);
|
|
93
93
|
function B(e) {
|
|
94
|
-
|
|
94
|
+
w.value = e, y.show();
|
|
95
95
|
}
|
|
96
|
-
return (e, t) => (
|
|
96
|
+
return (e, t) => (f(), W(P, {
|
|
97
97
|
class: "group/params",
|
|
98
|
-
itemCount:
|
|
98
|
+
itemCount: _.value.length
|
|
99
99
|
}, {
|
|
100
|
-
title:
|
|
101
|
-
|
|
100
|
+
title: r(() => [
|
|
101
|
+
n("div", ce, $(e.title), 1)
|
|
102
102
|
]),
|
|
103
|
-
default:
|
|
104
|
-
|
|
105
|
-
a(c(
|
|
103
|
+
default: r(() => [
|
|
104
|
+
n("form", null, [
|
|
105
|
+
a(c(le), {
|
|
106
106
|
class: "flex-1",
|
|
107
107
|
columns: [""]
|
|
108
108
|
}, {
|
|
109
|
-
default:
|
|
110
|
-
a(c(
|
|
111
|
-
default:
|
|
112
|
-
a(c(
|
|
113
|
-
default:
|
|
114
|
-
a(c(
|
|
109
|
+
default: r(() => [
|
|
110
|
+
a(c(oe), null, {
|
|
111
|
+
default: r(() => [
|
|
112
|
+
a(c(se), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
|
|
113
|
+
default: r(() => [
|
|
114
|
+
a(c(J), {
|
|
115
115
|
ref_key: "comboboxRef",
|
|
116
|
-
ref:
|
|
116
|
+
ref: O,
|
|
117
117
|
class: "text-xs w-full",
|
|
118
118
|
fullWidth: "",
|
|
119
119
|
isDeletable: "",
|
|
120
|
-
modelValue:
|
|
120
|
+
modelValue: _.value,
|
|
121
121
|
multiple: "",
|
|
122
122
|
options: U.value,
|
|
123
123
|
style: { "margin-left": "120px" },
|
|
124
|
-
teleport: `#${
|
|
124
|
+
teleport: `#${C}`,
|
|
125
125
|
onDelete: B,
|
|
126
|
-
"onUpdate:modelValue":
|
|
126
|
+
"onUpdate:modelValue": T
|
|
127
127
|
}, {
|
|
128
|
-
default:
|
|
129
|
-
a(c(
|
|
128
|
+
default: r(() => [
|
|
129
|
+
a(c(Q), {
|
|
130
130
|
class: "h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start",
|
|
131
131
|
fullWidth: "",
|
|
132
132
|
variant: "ghost"
|
|
133
133
|
}, {
|
|
134
|
-
default:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
(
|
|
134
|
+
default: r(() => [
|
|
135
|
+
ie,
|
|
136
|
+
_.value.length ? (f(), x("div", re, [
|
|
137
|
+
ne,
|
|
138
|
+
n("div", ue, [
|
|
139
|
+
(f(!0), x(q, null, z(_.value, (o) => (f(), x("span", {
|
|
140
140
|
key: o.id,
|
|
141
141
|
class: "cm-pill flex items-center mx-0 h-fit"
|
|
142
142
|
}, [
|
|
143
|
-
E(
|
|
144
|
-
a(c(
|
|
143
|
+
E($(o.label) + " ", 1),
|
|
144
|
+
a(c(D), {
|
|
145
145
|
class: "ml-1 cursor-pointer text-c-3 hover:text-c-1",
|
|
146
146
|
icon: "Close",
|
|
147
147
|
size: "xs",
|
|
148
|
-
onClick:
|
|
148
|
+
onClick: K((m) => j(o.id), ["stop"])
|
|
149
149
|
}, null, 8, ["onClick"])
|
|
150
150
|
]))), 128))
|
|
151
151
|
]),
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}, [
|
|
156
|
-
pe
|
|
157
|
-
])) : L("", !0),
|
|
158
|
-
fe
|
|
159
|
-
])) : (d(), x("div", he, " None ")),
|
|
160
|
-
a(c(V), {
|
|
152
|
+
me
|
|
153
|
+
])) : (f(), x("div", de, " None ")),
|
|
154
|
+
a(c(D), {
|
|
161
155
|
class: "min-w-3 ml-auto mr-2.5",
|
|
162
156
|
icon: "ChevronDown",
|
|
163
157
|
size: "xs"
|
|
@@ -174,16 +168,16 @@ const y = (v) => (P("data-v-b2a5825f"), v = v(), G(), v), re = { class: "flex ga
|
|
|
174
168
|
]),
|
|
175
169
|
_: 1
|
|
176
170
|
}),
|
|
177
|
-
a(
|
|
171
|
+
a(Z)
|
|
178
172
|
]),
|
|
179
173
|
_: 1
|
|
180
174
|
}),
|
|
181
|
-
a(
|
|
182
|
-
scheme:
|
|
183
|
-
state: c(
|
|
184
|
-
onClose: t[0] || (t[0] = (o) => c(
|
|
175
|
+
a(Y, {
|
|
176
|
+
scheme: w.value,
|
|
177
|
+
state: c(y),
|
|
178
|
+
onClose: t[0] || (t[0] = (o) => c(y).hide())
|
|
185
179
|
}, null, 8, ["scheme", "state"]),
|
|
186
|
-
|
|
180
|
+
n("div", { id: C })
|
|
187
181
|
])
|
|
188
182
|
]),
|
|
189
183
|
_: 1
|
|
@@ -191,5 +185,5 @@ const y = (v) => (P("data-v-b2a5825f"), v = v(), G(), v), re = { class: "flex ga
|
|
|
191
185
|
}
|
|
192
186
|
});
|
|
193
187
|
export {
|
|
194
|
-
|
|
188
|
+
Ce as default
|
|
195
189
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";iBAqVe,OAAO;gBACR,OAAO;;;;cAMkB,MAAM;aAAO,MAAM;;;iBAP3C,OAAO;gBACR,OAAO;;;cAMkB,MAAM;aAAO,MAAM;;;;AAomB1D,wBAOG;AAOH,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-12ed2604"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,182 +1,191 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as Q, reactive as X, watch as Y, onMounted as Z, onBeforeUnmount as _, openBlock as a, createElementBlock as h, Fragment as S, withDirectives as ee, createVNode as l, unref as e, normalizeClass as b, createSlots as te, withCtx as n, createElementVNode as i, isRef as oe, withKeys as v, withModifiers as c, createBlock as d, renderList as D, createTextVNode as $, toDisplayString as re, createCommentVNode as B, vShow as se, pushScopeId as ae, popScopeId as ie } from "vue";
|
|
2
|
+
import ne from "../../assets/rabbit.ascii.js";
|
|
3
|
+
import le from "../../assets/rabbitjump.ascii.js";
|
|
4
|
+
import de from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
5
5
|
import V from "../../components/ScalarAsciiArt.vue.js";
|
|
6
|
-
import { useSearch as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { dragHandlerFactory as
|
|
10
|
-
import { ScalarSearchInput as
|
|
6
|
+
import { useSearch as me } from "../../components/Search/useSearch.js";
|
|
7
|
+
import pe from "../../components/Sidebar/SidebarButton.vue.js";
|
|
8
|
+
import ue from "./RequestSidebarItemMenu.vue.js";
|
|
9
|
+
import { dragHandlerFactory as ce } from "./handle-drag.js";
|
|
10
|
+
import { ScalarSearchInput as fe, ScalarSearchResultList as be, ScalarSearchResultItem as he, ScalarIcon as q } from "@scalar/components";
|
|
11
11
|
import { LibraryIcon as Se } from "@scalar/icons";
|
|
12
12
|
import ve from "./RequestSidebarItem.vue.js";
|
|
13
13
|
import Re from "../../components/Sidebar/Sidebar.vue.js";
|
|
14
14
|
import we from "./components/WorkspaceDropdown.vue.js";
|
|
15
15
|
import { useSidebar as ye } from "../../hooks/useSidebar.js";
|
|
16
|
-
import { useWorkspace as
|
|
17
|
-
import { hotKeyBus as
|
|
18
|
-
import { commandPaletteBus as
|
|
19
|
-
const
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
], -1)), je = /* @__PURE__ */
|
|
16
|
+
import { useWorkspace as ke } from "../../store/store.js";
|
|
17
|
+
import { hotKeyBus as E } from "../../libs/event-busses/hot-keys-bus.js";
|
|
18
|
+
import { commandPaletteBus as F } from "../../libs/event-busses/command-palette-bus.js";
|
|
19
|
+
const ge = (p) => (ae("data-v-12ed2604"), p = p(), ie(), p), Ie = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-50" }, xe = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, Ce = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, De = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("div", { class: "text-center text-balance text-sm mb-2 mt-2" }, [
|
|
20
|
+
/* @__PURE__ */ i("b", { class: "font-medium" }, "Let's Get Started"),
|
|
21
|
+
/* @__PURE__ */ i("p", { class: "mt-2" }, " Create request, folder, collection or import OpenAPI document ")
|
|
22
|
+
], -1)), je = /* @__PURE__ */ Q({
|
|
23
23
|
__name: "RequestSidebar",
|
|
24
24
|
props: {
|
|
25
25
|
showSidebar: { type: Boolean },
|
|
26
26
|
isReadonly: { type: Boolean }
|
|
27
27
|
},
|
|
28
28
|
emits: ["update:showSidebar", "newTab"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
activeWorkspaceCollections:
|
|
32
|
-
activeRequest:
|
|
29
|
+
setup(p, { emit: M }) {
|
|
30
|
+
const O = p, R = M, w = ke(), {
|
|
31
|
+
activeWorkspaceCollections: P,
|
|
32
|
+
activeRequest: z,
|
|
33
33
|
activeWorkspaceRequests: y,
|
|
34
|
-
findRequestParents:
|
|
35
|
-
isReadOnly:
|
|
36
|
-
} = w, { handleDragEnd:
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
findRequestParents: N,
|
|
35
|
+
isReadOnly: T
|
|
36
|
+
} = w, { handleDragEnd: A, isDroppable: K } = ce(w), { collapsedSidebarFolders: L, setCollapsedSidebarFolder: U } = ye(), u = X({ open: !1 });
|
|
37
|
+
Y(
|
|
38
|
+
z,
|
|
39
39
|
(r) => {
|
|
40
|
-
r &&
|
|
41
|
-
(t) =>
|
|
40
|
+
r && N(r).forEach(
|
|
41
|
+
(t) => U(t, !0)
|
|
42
42
|
);
|
|
43
43
|
},
|
|
44
44
|
{ immediate: !0 }
|
|
45
45
|
);
|
|
46
46
|
const {
|
|
47
47
|
searchText: f,
|
|
48
|
-
searchResultsWithPlaceholderResults:
|
|
49
|
-
selectedSearchResult:
|
|
50
|
-
onSearchResultClick:
|
|
51
|
-
fuseSearch:
|
|
48
|
+
searchResultsWithPlaceholderResults: k,
|
|
49
|
+
selectedSearchResult: g,
|
|
50
|
+
onSearchResultClick: W,
|
|
51
|
+
fuseSearch: H,
|
|
52
52
|
searchInputRef: I,
|
|
53
|
-
searchResultRefs:
|
|
53
|
+
searchResultRefs: j,
|
|
54
54
|
navigateSearchResults: x,
|
|
55
|
-
selectSearchResult:
|
|
56
|
-
} =
|
|
55
|
+
selectSearchResult: G
|
|
56
|
+
} = me(), C = (r) => {
|
|
57
57
|
var t;
|
|
58
|
-
r.toggleSidebar && R("update:showSidebar",
|
|
58
|
+
r.toggleSidebar && R("update:showSidebar", O.showSidebar), r.openCommandPalette && (r.openCommandPalette.preventDefault(), F.emit()), r.focusRequestSearch && ((t = I.value) == null || t.focus());
|
|
59
59
|
};
|
|
60
|
-
return
|
|
61
|
-
|
|
60
|
+
return Z(() => E.on(C)), _(() => {
|
|
61
|
+
E.off(C);
|
|
62
62
|
}), (r, t) => (a(), h(S, null, [
|
|
63
|
-
|
|
63
|
+
ee(l(e(Re), {
|
|
64
64
|
class: b([r.showSidebar ? "sidebar-active-width" : ""]),
|
|
65
65
|
showSidebar: r.showSidebar,
|
|
66
66
|
"onUpdate:showSidebar": t[8] || (t[8] = (o) => r.$emit("update:showSidebar", o))
|
|
67
|
-
},
|
|
67
|
+
}, te({
|
|
68
68
|
content: n(() => [
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
i("div", Ie, [
|
|
70
|
+
l(e(fe), {
|
|
71
71
|
ref_key: "searchInputRef",
|
|
72
72
|
ref: I,
|
|
73
73
|
modelValue: e(f),
|
|
74
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) =>
|
|
74
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => oe(f) ? f.value = o : null),
|
|
75
75
|
sidebar: "",
|
|
76
|
-
onInput: e(
|
|
76
|
+
onInput: e(H),
|
|
77
77
|
onKeydown: [
|
|
78
|
-
t[1] || (t[1] = v(
|
|
79
|
-
t[2] || (t[2] = v(
|
|
80
|
-
t[3] || (t[3] = v(
|
|
78
|
+
t[1] || (t[1] = v(c((o) => e(x)("down"), ["stop"]), ["down"])),
|
|
79
|
+
t[2] || (t[2] = v(c((o) => e(G)(), ["stop"]), ["enter"])),
|
|
80
|
+
t[3] || (t[3] = v(c((o) => e(x)("up"), ["stop"]), ["up"]))
|
|
81
81
|
]
|
|
82
82
|
}, null, 8, ["modelValue", "onInput"])
|
|
83
83
|
]),
|
|
84
|
-
|
|
84
|
+
i("div", {
|
|
85
85
|
class: b(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
86
86
|
"pb-14": !r.isReadonly
|
|
87
87
|
}]),
|
|
88
|
-
onDragenter: t[6] || (t[6] =
|
|
88
|
+
onDragenter: t[6] || (t[6] = c(() => {
|
|
89
89
|
}, ["prevent"])),
|
|
90
|
-
onDragover: t[7] || (t[7] =
|
|
90
|
+
onDragover: t[7] || (t[7] = c(() => {
|
|
91
91
|
}, ["prevent"]))
|
|
92
92
|
}, [
|
|
93
|
-
e(f) ? (a(),
|
|
93
|
+
e(f) ? (a(), d(e(be), {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "gap-px custom-scroll",
|
|
96
|
-
noResults: !e(
|
|
96
|
+
noResults: !e(k).length
|
|
97
97
|
}, {
|
|
98
98
|
default: n(() => [
|
|
99
|
-
(a(!0), h(S, null, D(e(
|
|
99
|
+
(a(!0), h(S, null, D(e(k), (o, m) => (a(), d(e(he), {
|
|
100
100
|
id: `#search-input-${o.item.id}`,
|
|
101
101
|
key: o.refIndex,
|
|
102
102
|
ref_for: !0,
|
|
103
|
-
ref: (
|
|
104
|
-
active: e(
|
|
103
|
+
ref: (s) => e(j)[m] = s,
|
|
104
|
+
active: e(g) === m,
|
|
105
105
|
class: "px-2",
|
|
106
|
-
onClick: (
|
|
107
|
-
onFocus: (
|
|
106
|
+
onClick: (s) => e(W)(o),
|
|
107
|
+
onFocus: (s) => g.value = m
|
|
108
108
|
}, {
|
|
109
109
|
addon: n(() => [
|
|
110
|
-
|
|
110
|
+
l(de, {
|
|
111
111
|
class: "font-bold",
|
|
112
112
|
method: o.item.httpVerb ?? "get"
|
|
113
113
|
}, null, 8, ["method"])
|
|
114
114
|
]),
|
|
115
115
|
default: n(() => [
|
|
116
|
-
$(
|
|
116
|
+
$(re(o.item.title) + " ", 1)
|
|
117
117
|
]),
|
|
118
118
|
_: 2
|
|
119
119
|
}, 1032, ["id", "active", "onClick", "onFocus"]))), 128))
|
|
120
120
|
]),
|
|
121
121
|
_: 1
|
|
122
|
-
}, 8, ["noResults"])) : (a(!0), h(S, { key: 1 }, D(e(
|
|
123
|
-
var
|
|
124
|
-
return a(),
|
|
122
|
+
}, 8, ["noResults"])) : (a(!0), h(S, { key: 1 }, D(e(P), (o) => {
|
|
123
|
+
var m;
|
|
124
|
+
return a(), d(ve, {
|
|
125
125
|
key: o.uid,
|
|
126
|
-
isDraggable: !r.isReadonly && ((
|
|
127
|
-
isDroppable: e(
|
|
128
|
-
menuItem:
|
|
126
|
+
isDraggable: !r.isReadonly && ((m = o.info) == null ? void 0 : m.title) !== "Drafts",
|
|
127
|
+
isDroppable: e(K),
|
|
128
|
+
menuItem: u,
|
|
129
129
|
parentUids: [],
|
|
130
130
|
uid: o.uid,
|
|
131
|
-
onNewTab: t[4] || (t[4] = (
|
|
132
|
-
onOnDragEnd: e(
|
|
133
|
-
onOpenMenu: t[5] || (t[5] = (
|
|
131
|
+
onNewTab: t[4] || (t[4] = (s, J) => R("newTab", { name: s, uid: J })),
|
|
132
|
+
onOnDragEnd: e(A),
|
|
133
|
+
onOpenMenu: t[5] || (t[5] = (s) => Object.assign(u, s))
|
|
134
134
|
}, {
|
|
135
|
-
leftIcon: n(() =>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
})
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
135
|
+
leftIcon: n(() => {
|
|
136
|
+
var s;
|
|
137
|
+
return [
|
|
138
|
+
((s = o.info) == null ? void 0 : s.title) === "Drafts" ? (a(), d(e(q), {
|
|
139
|
+
key: 0,
|
|
140
|
+
class: "text-sidebar-c-2 group-hover:hidden",
|
|
141
|
+
icon: "Scribble",
|
|
142
|
+
thickness: "2.5"
|
|
143
|
+
})) : (a(), d(e(Se), {
|
|
144
|
+
key: 1,
|
|
145
|
+
class: "text-sidebar-c-2 size-3.5 stroke-[2.5] group-hover:hidden",
|
|
146
|
+
src: o["x-scalar-icon"] || "interface-content-folder"
|
|
147
|
+
}, null, 8, ["src"])),
|
|
148
|
+
i("div", {
|
|
149
|
+
class: b({
|
|
150
|
+
"rotate-90": e(L)[o.uid]
|
|
151
|
+
})
|
|
152
|
+
}, [
|
|
153
|
+
l(e(q), {
|
|
154
|
+
class: "text-c-3 hidden text-sm group-hover:block",
|
|
155
|
+
icon: "ChevronRight",
|
|
156
|
+
size: "sm"
|
|
157
|
+
})
|
|
158
|
+
], 2)
|
|
159
|
+
];
|
|
160
|
+
}),
|
|
152
161
|
_: 2
|
|
153
162
|
}, 1032, ["isDraggable", "isDroppable", "menuItem", "uid", "onOnDragEnd"]);
|
|
154
163
|
}), 128))
|
|
155
164
|
], 34)
|
|
156
165
|
]),
|
|
157
166
|
button: n(() => [
|
|
158
|
-
|
|
167
|
+
i("div", {
|
|
159
168
|
class: b(["relative z-10 pt-0 md:px-2.5 md:pb-2.5 -translate-y-full w-[inherit]", {
|
|
160
169
|
"empty-sidebar-item": e(y).length <= 1,
|
|
161
170
|
"border-t-1/2": e(y).length <= 1
|
|
162
171
|
}])
|
|
163
172
|
}, [
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
art: e(
|
|
173
|
+
i("div", xe, [
|
|
174
|
+
i("div", Ce, [
|
|
175
|
+
l(V, {
|
|
176
|
+
art: e(ne),
|
|
168
177
|
class: "font-bold rabbitsit"
|
|
169
178
|
}, null, 8, ["art"]),
|
|
170
|
-
|
|
171
|
-
art: e(
|
|
179
|
+
l(V, {
|
|
180
|
+
art: e(le),
|
|
172
181
|
class: "font-bold absolute top-0 left-0 rabbitjump"
|
|
173
182
|
}, null, 8, ["art"])
|
|
174
183
|
]),
|
|
175
184
|
De
|
|
176
185
|
]),
|
|
177
|
-
r.isReadonly ? B("", !0) : (a(),
|
|
186
|
+
r.isReadonly ? B("", !0) : (a(), d(pe, {
|
|
178
187
|
key: 0,
|
|
179
|
-
click: e(
|
|
188
|
+
click: e(F).emit
|
|
180
189
|
}, {
|
|
181
190
|
title: n(() => [
|
|
182
191
|
$("Add Item")
|
|
@@ -190,17 +199,17 @@ const ke = (m) => (se("data-v-07523d65"), m = m(), ae(), m), Ie = { class: "sear
|
|
|
190
199
|
r.isReadonly ? void 0 : {
|
|
191
200
|
name: "header",
|
|
192
201
|
fn: n(() => [
|
|
193
|
-
|
|
202
|
+
l(e(we))
|
|
194
203
|
]),
|
|
195
204
|
key: "0"
|
|
196
205
|
}
|
|
197
206
|
]), 1032, ["class", "showSidebar"]), [
|
|
198
|
-
[
|
|
207
|
+
[se, r.showSidebar]
|
|
199
208
|
]),
|
|
200
|
-
!e(
|
|
209
|
+
!e(T) && u ? (a(), d(ue, {
|
|
201
210
|
key: 0,
|
|
202
|
-
menuItem:
|
|
203
|
-
onCloseMenu: t[9] || (t[9] = (o) =>
|
|
211
|
+
menuItem: u,
|
|
212
|
+
onCloseMenu: t[9] || (t[9] = (o) => u.open = !1)
|
|
204
213
|
}, null, 8, ["menuItem"])) : B("", !0)
|
|
205
214
|
], 64));
|
|
206
215
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";AAyOA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseEmpty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-43fc1968"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|