@scalar/api-client 2.0.55 → 2.0.57
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 +25 -0
- 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 +6 -6
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +45 -45
- package/dist/components/Search/useSearch.d.ts +29 -0
- package/dist/components/Search/useSearch.d.ts.map +1 -0
- package/dist/components/Search/useSearch.js +62 -0
- package/dist/layouts/App/create-api-client-app.d.ts +13 -13
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +26 -26
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +13 -13
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +3 -3
- package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.js +17 -16
- package/dist/libs/local-storage.js +1 -1
- package/dist/store/workspace.d.ts +26 -26
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +259 -215
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +45 -41
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +31 -25
- 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 +16 -17
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +20 -21
- package/package.json +5 -5
- package/dist/components/Search/SearchButton.vue.js +0 -7
- package/dist/components/Search/SearchButton.vue2.js +0 -30
|
@@ -1,74 +1,84 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useWorkspace as
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as pe, ref as he, watch as z, onMounted as ve, onBeforeUnmount as be, openBlock as f, createElementBlock as _, normalizeClass as b, unref as t, createElementVNode as v, createVNode as c, createCommentVNode as C, withCtx as m, withDirectives as xe, createSlots as ge, isRef as Se, withModifiers as L, createBlock as S, Fragment as T, renderList as j, createTextVNode as A, toDisplayString as Re, vShow as ye, pushScopeId as we, popScopeId as _e } from "vue";
|
|
2
|
+
import ke from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
|
+
import Ue from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
4
|
+
import { useSearch as Ce } from "../../components/Search/useSearch.js";
|
|
5
|
+
import Ie from "../../components/Sidebar/SidebarButton.vue.js";
|
|
6
|
+
import De from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
7
|
+
import Be from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
8
|
+
import qe from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
9
|
+
import { useWorkspace as Ve } from "../../store/workspace.js";
|
|
10
|
+
import Oe from "./RequestSection/RequestSection.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import { useToasts as
|
|
15
|
-
import { useMediaQuery as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
12
|
+
import $e from "./ResponseSection/ResponseSection.vue.js";
|
|
13
|
+
import { ScalarIcon as I, ScalarSearchInput as Fe, ScalarSearchResultList as Me, ScalarSearchResultItem as Pe } from "@scalar/components";
|
|
14
|
+
import { useToasts as Ee } from "@scalar/use-toasts";
|
|
15
|
+
import { useMediaQuery as Ne } from "@vueuse/core";
|
|
16
|
+
import We from "./RequestSidebarItem.vue.js";
|
|
17
|
+
import ze from "../../components/Sidebar/Sidebar.vue.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import
|
|
20
|
-
import { useSidebar as
|
|
21
|
-
import { sendRequest as
|
|
22
|
-
import { executeRequestBus as
|
|
23
|
-
import { hotKeyBus as
|
|
24
|
-
import { commandPaletteBus as
|
|
25
|
-
import { requestStatusBus as
|
|
26
|
-
const
|
|
19
|
+
import Le from "./components/WorkspaceDropdown.vue.js";
|
|
20
|
+
import { useSidebar as Te } from "../../hooks/useSidebar.js";
|
|
21
|
+
import { sendRequest as je } from "../../libs/sendRequest.js";
|
|
22
|
+
import { executeRequestBus as H } from "../../libs/event-busses/execute-request-bus.js";
|
|
23
|
+
import { hotKeyBus as K } from "../../libs/event-busses/hot-keys-bus.js";
|
|
24
|
+
import { commandPaletteBus as J } from "../../libs/event-busses/command-palette-bus.js";
|
|
25
|
+
import { requestStatusBus as k } from "../../libs/event-busses/request-status-bus.js";
|
|
26
|
+
const Ae = (R) => (we("data-v-05d30cb4"), R = R(), _e(), R), He = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2" }, Ke = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, Je = /* @__PURE__ */ Ae(() => /* @__PURE__ */ v("a", {
|
|
27
27
|
class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
|
|
28
28
|
href: "https://scalar.com/",
|
|
29
29
|
target: "_blank"
|
|
30
|
-
}, " Powered by Scalar.com ", -1)),
|
|
30
|
+
}, " Powered by Scalar.com ", -1)), Qe = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, Ge = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-50" }, yt = /* @__PURE__ */ pe({
|
|
31
31
|
__name: "Request",
|
|
32
|
-
setup(
|
|
33
|
-
var
|
|
32
|
+
setup(R) {
|
|
33
|
+
var W;
|
|
34
34
|
const {
|
|
35
35
|
activeExample: y,
|
|
36
|
-
activeRequest:
|
|
37
|
-
activeSecuritySchemes:
|
|
36
|
+
activeRequest: h,
|
|
37
|
+
activeSecuritySchemes: Q,
|
|
38
38
|
activeWorkspace: l,
|
|
39
|
-
activeWorkspaceCollections:
|
|
40
|
-
activeWorkspaceServers:
|
|
41
|
-
activeWorkspaceRequests:
|
|
42
|
-
collectionMutators:
|
|
43
|
-
collections:
|
|
44
|
-
cookies:
|
|
45
|
-
environments:
|
|
46
|
-
findRequestFolders:
|
|
39
|
+
activeWorkspaceCollections: G,
|
|
40
|
+
activeWorkspaceServers: X,
|
|
41
|
+
activeWorkspaceRequests: Y,
|
|
42
|
+
collectionMutators: D,
|
|
43
|
+
collections: p,
|
|
44
|
+
cookies: Z,
|
|
45
|
+
environments: ee,
|
|
46
|
+
findRequestFolders: te,
|
|
47
47
|
folders: x,
|
|
48
|
-
folderMutators:
|
|
49
|
-
modalState:
|
|
50
|
-
requestMutators:
|
|
51
|
-
workspaceMutators:
|
|
52
|
-
} =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
folderMutators: B,
|
|
49
|
+
modalState: se,
|
|
50
|
+
requestMutators: oe,
|
|
51
|
+
workspaceMutators: q
|
|
52
|
+
} = Ve(), { collapsedSidebarFolders: re, setCollapsedSidebarFolder: ie } = Te(), { toast: V } = Ee(), {
|
|
53
|
+
searchText: w,
|
|
54
|
+
searchResultsWithPlaceholderResults: O,
|
|
55
|
+
selectedSearchResult: $,
|
|
56
|
+
onSearchResultClick: ae,
|
|
57
|
+
fuseSearch: le,
|
|
58
|
+
searchInputRef: F,
|
|
59
|
+
searchResultRefs: ne,
|
|
60
|
+
navigateSearchResults: M,
|
|
61
|
+
selectSearchResult: de
|
|
62
|
+
} = Ce(), ce = Ne("(max-width: 780px)"), u = he(!((W = l.value) != null && W.isReadOnly));
|
|
63
|
+
z(ce, (s) => u.value = !s), z(
|
|
64
|
+
h,
|
|
65
|
+
(s) => {
|
|
66
|
+
s && te(s.uid).forEach(
|
|
67
|
+
(o) => ie(o, !0)
|
|
58
68
|
);
|
|
59
69
|
},
|
|
60
70
|
{ immediate: !0 }
|
|
61
71
|
);
|
|
62
|
-
const
|
|
72
|
+
const P = async () => {
|
|
63
73
|
var i;
|
|
64
|
-
if (!
|
|
74
|
+
if (!h.value || !y.value) {
|
|
65
75
|
console.warn(
|
|
66
76
|
"There is no request active at the moment. Please select one then try again."
|
|
67
77
|
);
|
|
68
78
|
return;
|
|
69
79
|
}
|
|
70
|
-
let
|
|
71
|
-
const
|
|
80
|
+
let s = y.value.url;
|
|
81
|
+
const o = Object.values(ee).reduce(
|
|
72
82
|
(r, a) => {
|
|
73
83
|
try {
|
|
74
84
|
return { ...r, ...JSON.parse(a.raw) };
|
|
@@ -77,211 +87,245 @@ const Ie = (w) => (fe("data-v-b7bd40a0"), w = w(), pe(), w), Ve = { class: "lg:m
|
|
|
77
87
|
}
|
|
78
88
|
},
|
|
79
89
|
{}
|
|
80
|
-
),
|
|
81
|
-
|
|
90
|
+
), e = /\{\{(.*?)\}\}/g;
|
|
91
|
+
s = s.replace(e, (r, a) => (X.value.forEach((n) => {
|
|
82
92
|
if (n.url === a)
|
|
83
93
|
return a;
|
|
84
|
-
}),
|
|
94
|
+
}), o[a] || a)), k.emit("start");
|
|
85
95
|
try {
|
|
86
|
-
const { request: r, response: a, error: n } = await
|
|
87
|
-
|
|
96
|
+
const { request: r, response: a, error: n } = await je(
|
|
97
|
+
h.value,
|
|
88
98
|
y.value,
|
|
89
|
-
|
|
90
|
-
|
|
99
|
+
s,
|
|
100
|
+
Q.value,
|
|
91
101
|
(i = l.value) == null ? void 0 : i.proxyUrl,
|
|
92
|
-
|
|
102
|
+
Z
|
|
93
103
|
);
|
|
94
|
-
r && a ? (
|
|
95
|
-
...
|
|
104
|
+
r && a ? (oe.edit(h.value.uid, "history", [
|
|
105
|
+
...h.value.history,
|
|
96
106
|
{
|
|
97
107
|
request: r,
|
|
98
108
|
response: a,
|
|
99
109
|
timestamp: Date.now()
|
|
100
110
|
}
|
|
101
|
-
]),
|
|
111
|
+
]), k.emit("stop")) : (V((n == null ? void 0 : n.message) ?? "Send Request Failed", "error"), k.emit("abort"));
|
|
102
112
|
} catch (r) {
|
|
103
|
-
console.error(r),
|
|
104
|
-
${r}`, "error"),
|
|
113
|
+
console.error(r), V(`Oops!
|
|
114
|
+
${r}`, "error"), k.emit("abort");
|
|
105
115
|
}
|
|
106
|
-
},
|
|
107
|
-
|
|
116
|
+
}, E = (s) => {
|
|
117
|
+
var o;
|
|
118
|
+
s.toggleSidebar && (u.value = !u.value), s.openCommandPalette && (s.openCommandPalette.preventDefault(), J.emit()), s.focusRequestSearch && ((o = F.value) == null || o.focus()), s.navigateSearchResultsUp && M("up"), s.navigateSearchResultsDown && M("down"), s.selectSearchResult && de();
|
|
108
119
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}),
|
|
112
|
-
|
|
120
|
+
ve(() => {
|
|
121
|
+
H.on(P), K.on(E);
|
|
122
|
+
}), be(() => {
|
|
123
|
+
H.off(P), K.off(E);
|
|
113
124
|
});
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
if (!
|
|
118
|
-
const { id:
|
|
119
|
-
if (i ?
|
|
125
|
+
const N = (s, o) => {
|
|
126
|
+
p[s] ? D.edit(s, "childUids", o) : x[s] && B.edit(s, "childUids", o);
|
|
127
|
+
}, ue = (s, o) => {
|
|
128
|
+
if (!s || !o) return;
|
|
129
|
+
const { id: e, parentId: i } = s, { id: r, parentId: a, offset: n } = o;
|
|
130
|
+
if (i ? p[i] ? D.edit(
|
|
120
131
|
i,
|
|
121
132
|
"childUids",
|
|
122
|
-
|
|
123
|
-
(d) => d !==
|
|
133
|
+
p[i].childUids.filter(
|
|
134
|
+
(d) => d !== e
|
|
124
135
|
)
|
|
125
|
-
) : x[i] &&
|
|
136
|
+
) : x[i] && B.edit(
|
|
126
137
|
i,
|
|
127
138
|
"childUids",
|
|
128
|
-
x[i].childUids.filter((d) => d !==
|
|
129
|
-
) :
|
|
139
|
+
x[i].childUids.filter((d) => d !== e)
|
|
140
|
+
) : q.edit(
|
|
130
141
|
l.value.uid,
|
|
131
142
|
"collectionUids",
|
|
132
|
-
l.value.collectionUids.filter((d) => d !==
|
|
143
|
+
l.value.collectionUids.filter((d) => d !== e)
|
|
133
144
|
), n === 2) {
|
|
134
|
-
const d =
|
|
135
|
-
|
|
145
|
+
const d = p[r] || x[r];
|
|
146
|
+
N(r, [...d.childUids, e]);
|
|
136
147
|
} else if (a) {
|
|
137
|
-
const g = [...(
|
|
138
|
-
g.splice(
|
|
148
|
+
const g = [...(p[a] || x[a]).childUids], U = g.findIndex((fe) => r === fe) ?? 0;
|
|
149
|
+
g.splice(U + n, 0, e), N(a, g);
|
|
139
150
|
} else {
|
|
140
|
-
const d = [...l.value.collectionUids], g = d.findIndex((
|
|
141
|
-
d.splice(g + n, 0,
|
|
151
|
+
const d = [...l.value.collectionUids], g = d.findIndex((U) => r === U) ?? 0;
|
|
152
|
+
d.splice(g + n, 0, e), q.edit(
|
|
142
153
|
l.value.uid,
|
|
143
154
|
"collectionUids",
|
|
144
155
|
d
|
|
145
156
|
);
|
|
146
157
|
}
|
|
147
|
-
},
|
|
148
|
-
var
|
|
149
|
-
return !(l.value.isReadOnly || !
|
|
158
|
+
}, me = (s, o) => {
|
|
159
|
+
var e, i, r;
|
|
160
|
+
return !(l.value.isReadOnly || !p[s.id] && o.offset !== 2 || p[s.id] && ((r = (i = (e = p[o.id]) == null ? void 0 : e.spec) == null ? void 0 : i.info) == null ? void 0 : r.title) === "Drafts");
|
|
150
161
|
};
|
|
151
|
-
return (
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
v("div",
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
Ee
|
|
165
|
-
]),
|
|
166
|
-
c(ve),
|
|
167
|
-
v("div", Pe, [
|
|
168
|
-
s(l).isReadOnly ? (h(), k("button", {
|
|
169
|
-
key: 0,
|
|
170
|
-
class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
|
|
171
|
-
type: "button",
|
|
172
|
-
onClick: e[1] || (e[1] = (t) => s(G).hide())
|
|
173
|
-
}, [
|
|
174
|
-
c(s(C), {
|
|
175
|
-
icon: "Close",
|
|
176
|
-
size: "lg",
|
|
177
|
-
thickness: "1.75"
|
|
178
|
-
})
|
|
179
|
-
])) : U("", !0)
|
|
180
|
-
])
|
|
162
|
+
return (s, o) => (f(), _("div", {
|
|
163
|
+
class: b(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden", {
|
|
164
|
+
"!mr-0 !mb-0 !border-0": t(l).isReadOnly
|
|
165
|
+
}])
|
|
166
|
+
}, [
|
|
167
|
+
v("div", He, [
|
|
168
|
+
v("div", Ke, [
|
|
169
|
+
c(De, {
|
|
170
|
+
modelValue: u.value,
|
|
171
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => u.value = e),
|
|
172
|
+
class: "gitbook-hidden"
|
|
173
|
+
}, null, 8, ["modelValue"]),
|
|
174
|
+
Je
|
|
181
175
|
]),
|
|
182
|
-
c(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
icon: "CodeFolder",
|
|
216
|
-
size: "sm",
|
|
217
|
-
thickness: "2"
|
|
218
|
-
}),
|
|
219
|
-
v("div", {
|
|
220
|
-
class: b({
|
|
221
|
-
"rotate-90": s(Y)[t.uid]
|
|
222
|
-
})
|
|
223
|
-
}, [
|
|
224
|
-
c(s(C), {
|
|
225
|
-
class: "text-c-3 hidden text-sm group-hover:block",
|
|
226
|
-
icon: "ChevronRight",
|
|
227
|
-
size: "sm"
|
|
228
|
-
})
|
|
229
|
-
], 2)
|
|
230
|
-
]),
|
|
231
|
-
_: 2
|
|
232
|
-
}, 1032, ["isDraggable", "item"]);
|
|
233
|
-
}), 128))
|
|
234
|
-
], 34)
|
|
176
|
+
c(ke),
|
|
177
|
+
v("div", Qe, [
|
|
178
|
+
t(l).isReadOnly ? (f(), _("button", {
|
|
179
|
+
key: 0,
|
|
180
|
+
class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
|
|
181
|
+
type: "button",
|
|
182
|
+
onClick: o[1] || (o[1] = (e) => t(se).hide())
|
|
183
|
+
}, [
|
|
184
|
+
c(t(I), {
|
|
185
|
+
icon: "Close",
|
|
186
|
+
size: "lg",
|
|
187
|
+
thickness: "1.75"
|
|
188
|
+
})
|
|
189
|
+
])) : C("", !0)
|
|
190
|
+
])
|
|
191
|
+
]),
|
|
192
|
+
c(Be, null, {
|
|
193
|
+
default: m(() => [
|
|
194
|
+
xe(c(t(ze), {
|
|
195
|
+
class: b([u.value ? "sidebar-active-width" : ""]),
|
|
196
|
+
showSideBar: u.value,
|
|
197
|
+
"onUpdate:showSideBar": o[5] || (o[5] = (e) => u.value = e)
|
|
198
|
+
}, ge({
|
|
199
|
+
content: m(() => [
|
|
200
|
+
v("div", Ge, [
|
|
201
|
+
c(t(Fe), {
|
|
202
|
+
ref_key: "searchInputRef",
|
|
203
|
+
ref: F,
|
|
204
|
+
modelValue: t(w),
|
|
205
|
+
"onUpdate:modelValue": o[2] || (o[2] = (e) => Se(w) ? w.value = e : null),
|
|
206
|
+
sidebar: "",
|
|
207
|
+
onInput: t(le)
|
|
208
|
+
}, null, 8, ["modelValue", "onInput"])
|
|
235
209
|
]),
|
|
236
|
-
|
|
237
|
-
|
|
210
|
+
v("div", {
|
|
211
|
+
class: b(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
212
|
+
"pb-14": !t(l).isReadOnly
|
|
213
|
+
}]),
|
|
214
|
+
onDragenter: o[3] || (o[3] = L(() => {
|
|
215
|
+
}, ["prevent"])),
|
|
216
|
+
onDragover: o[4] || (o[4] = L(() => {
|
|
217
|
+
}, ["prevent"]))
|
|
218
|
+
}, [
|
|
219
|
+
t(w) ? (f(), S(t(Me), {
|
|
238
220
|
key: 0,
|
|
239
|
-
class:
|
|
240
|
-
|
|
241
|
-
}),
|
|
242
|
-
click: s(j).emit
|
|
221
|
+
class: "gap-px custom-scroll",
|
|
222
|
+
noResults: !t(O).length
|
|
243
223
|
}, {
|
|
244
|
-
|
|
245
|
-
|
|
224
|
+
default: m(() => [
|
|
225
|
+
(f(!0), _(T, null, j(t(O), (e, i) => (f(), S(t(Pe), {
|
|
226
|
+
id: `#search-input-${e.item.id}`,
|
|
227
|
+
key: e.refIndex,
|
|
228
|
+
ref_for: !0,
|
|
229
|
+
ref: (r) => t(ne)[i] = r,
|
|
230
|
+
active: t($) === i,
|
|
231
|
+
class: "px-2",
|
|
232
|
+
onClick: (r) => t(ae)(e),
|
|
233
|
+
onFocus: (r) => $.value = i
|
|
234
|
+
}, {
|
|
235
|
+
addon: m(() => [
|
|
236
|
+
c(Ue, {
|
|
237
|
+
class: "font-bold",
|
|
238
|
+
method: e.item.httpVerb ?? "get"
|
|
239
|
+
}, null, 8, ["method"])
|
|
240
|
+
]),
|
|
241
|
+
default: m(() => [
|
|
242
|
+
A(Re(e.item.title) + " ", 1)
|
|
243
|
+
]),
|
|
244
|
+
_: 2
|
|
245
|
+
}, 1032, ["id", "active", "onClick", "onFocus"]))), 128))
|
|
246
246
|
]),
|
|
247
247
|
_: 1
|
|
248
|
-
}, 8, ["
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
}, 8, ["noResults"])) : (f(!0), _(T, { key: 1 }, j(t(G), (e) => {
|
|
249
|
+
var i, r;
|
|
250
|
+
return f(), S(We, {
|
|
251
|
+
key: e.uid,
|
|
252
|
+
isDraggable: !t(l).isReadOnly && ((r = (i = e.spec) == null ? void 0 : i.info) == null ? void 0 : r.title) !== "Drafts",
|
|
253
|
+
isDroppable: me,
|
|
254
|
+
item: e,
|
|
255
|
+
parentUids: [],
|
|
256
|
+
onOnDragEnd: ue
|
|
257
|
+
}, {
|
|
258
|
+
leftIcon: m(() => [
|
|
259
|
+
c(t(I), {
|
|
260
|
+
class: "text-sidebar-c-2 text-sm group-hover:hidden",
|
|
261
|
+
icon: "CodeFolder",
|
|
262
|
+
size: "sm",
|
|
263
|
+
thickness: "2"
|
|
264
|
+
}),
|
|
265
|
+
v("div", {
|
|
266
|
+
class: b({
|
|
267
|
+
"rotate-90": t(re)[e.uid]
|
|
268
|
+
})
|
|
269
|
+
}, [
|
|
270
|
+
c(t(I), {
|
|
271
|
+
class: "text-c-3 hidden text-sm group-hover:block",
|
|
272
|
+
icon: "ChevronRight",
|
|
273
|
+
size: "sm"
|
|
274
|
+
})
|
|
275
|
+
], 2)
|
|
276
|
+
]),
|
|
277
|
+
_: 2
|
|
278
|
+
}, 1032, ["isDraggable", "item"]);
|
|
279
|
+
}), 128))
|
|
280
|
+
], 34)
|
|
281
|
+
]),
|
|
282
|
+
button: m(() => [
|
|
283
|
+
t(l).isReadOnly ? C("", !0) : (f(), S(Ie, {
|
|
284
|
+
key: 0,
|
|
285
|
+
class: b({
|
|
286
|
+
"empty-sidebar-item": t(Y).length === 1
|
|
287
|
+
}),
|
|
288
|
+
click: t(J).emit
|
|
289
|
+
}, {
|
|
290
|
+
title: m(() => [
|
|
291
|
+
A("Add Item")
|
|
256
292
|
]),
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
]), 1032, ["class", "showSideBar"]), [
|
|
260
|
-
[me, u.value]
|
|
293
|
+
_: 1
|
|
294
|
+
}, 8, ["class", "click"]))
|
|
261
295
|
]),
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
];
|
|
274
|
-
}),
|
|
275
|
-
_: 1
|
|
276
|
-
}, 8, ["class"])) : U("", !0)
|
|
296
|
+
_: 2
|
|
297
|
+
}, [
|
|
298
|
+
t(l).isReadOnly ? void 0 : {
|
|
299
|
+
name: "header",
|
|
300
|
+
fn: m(() => [
|
|
301
|
+
c(t(Le))
|
|
302
|
+
]),
|
|
303
|
+
key: "0"
|
|
304
|
+
}
|
|
305
|
+
]), 1032, ["class", "showSideBar"]), [
|
|
306
|
+
[ye, u.value]
|
|
277
307
|
]),
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
308
|
+
t(y) ? (f(), S(qe, {
|
|
309
|
+
key: 0,
|
|
310
|
+
class: b(["flex-1", [u.value ? "sidebar-active-hide-layout" : ""]])
|
|
311
|
+
}, {
|
|
312
|
+
default: m(() => {
|
|
313
|
+
var e, i, r, a, n;
|
|
314
|
+
return [
|
|
315
|
+
c(Oe),
|
|
316
|
+
c($e, {
|
|
317
|
+
response: (n = (a = (e = t(h)) == null ? void 0 : e.history) == null ? void 0 : a[((r = (i = t(h)) == null ? void 0 : i.history) == null ? void 0 : r.length) - 1]) == null ? void 0 : n.response
|
|
318
|
+
}, null, 8, ["response"])
|
|
319
|
+
];
|
|
320
|
+
}),
|
|
321
|
+
_: 1
|
|
322
|
+
}, 8, ["class"])) : C("", !0)
|
|
323
|
+
]),
|
|
324
|
+
_: 1
|
|
325
|
+
})
|
|
326
|
+
], 2));
|
|
283
327
|
}
|
|
284
328
|
});
|
|
285
329
|
export {
|
|
286
|
-
|
|
330
|
+
yt as default
|
|
287
331
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AAwLA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,2CAA2C,CAAA;;WAMzC,MAAM;cACH,MAAM,cAAc,CAAC,YAAY,CAAC;;WADrC,MAAM;cACH,MAAM,cAAc,CAAC,YAAY,CAAC;;AAgS9C,wBAMG;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"}
|