@scalar/api-client 2.3.34 → 2.4.1
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 +57 -0
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +74 -89
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +2 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +19 -18
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +3 -3
- package/dist/components/TopNav/TopNavItem.vue2.js +46 -54
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/hooks/useClientConfig.d.ts +72 -6
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +45 -40
- package/dist/layouts/App/create-api-client-app.d.ts +72 -52
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +144 -104
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +49 -44
- package/dist/layouts/Web/create-api-client-web.d.ts +72 -52
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +72 -52
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +53 -49
- package/dist/libs/electron.d.ts +5 -0
- package/dist/libs/electron.d.ts.map +1 -0
- package/dist/libs/electron.js +4 -0
- package/dist/libs/find-request.d.ts +2 -0
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts +10 -3
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.js +28 -6
- package/dist/libs/send-request/create-request-operation.d.ts +3 -1
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +91 -87
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -0
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +8 -0
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -0
- package/dist/plugins/hooks/usePluginManager.js +10 -0
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +7 -0
- package/dist/plugins/plugin-manager.d.ts +28 -0
- package/dist/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/plugins/plugin-manager.js +24 -0
- package/dist/store/active-entities.d.ts +2 -0
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +26 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +24 -24
- package/dist/store/store.d.ts +72 -52
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- 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/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +47 -45
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +61 -70
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +92 -77
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +59 -65
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +34 -35
- package/dist/views/Request/RequestSection/types/post-response.d.ts +7 -0
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItem.vue2.js +132 -134
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +82 -70
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -114
- package/package.json +25 -20
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as me, useCssVars as ve, computed as b, ref as ge, resolveComponent as be, createElementBlock as M, createCommentVNode as f, openBlock as d, normalizeClass as
|
|
2
|
-
import { ScalarButton as q, ScalarIcon as
|
|
3
|
-
import { Draggable as
|
|
1
|
+
import { defineComponent as me, useCssVars as ve, computed as b, ref as ge, resolveComponent as be, createElementBlock as M, createCommentVNode as f, openBlock as d, normalizeClass as y, unref as n, createVNode as m, withCtx as v, createBlock as c, withModifiers as w, createElementVNode as s, toDisplayString as A, createTextVNode as N, renderSlot as Z, Fragment as ye, renderList as he, nextTick as xe } from "vue";
|
|
2
|
+
import { ScalarButton as q, ScalarIcon as h, ScalarSidebarGroupToggle as _, ScalarTooltip as ee } from "@scalar/components";
|
|
3
|
+
import { Draggable as ke } from "@scalar/draggable";
|
|
4
4
|
import { shouldIgnoreEntity as te } from "@scalar/oas-utils/helpers";
|
|
5
|
-
import { useRouter as
|
|
5
|
+
import { useRouter as we, RouterLink as ie } from "vue-router";
|
|
6
6
|
import { useLayout as Ue } from "../../hooks/useLayout.js";
|
|
7
7
|
import { useSidebar as qe } from "../../hooks/useSidebar.js";
|
|
8
8
|
import { useActiveEntities as De } from "../../store/active-entities.js";
|
|
@@ -10,7 +10,13 @@ import { PathId as $ } from "../../routes.js";
|
|
|
10
10
|
import Ce from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
11
11
|
import { getModifiers as Re } from "../../libs/hot-keys.js";
|
|
12
12
|
import { useWorkspace as Ie } from "../../store/store.js";
|
|
13
|
-
const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" },
|
|
13
|
+
const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, Me = { class: "flex flex-row items-center gap-1" }, $e = { class: "relative" }, ze = { class: "flex items-start" }, Ee = { class: "flex flex-1 flex-row justify-between font-medium" }, Se = { class: "line-clamp-1 w-full break-all text-left" }, je = { class: "relative flex h-fit justify-end" }, Be = {
|
|
14
|
+
class: "flex items-center justify-center",
|
|
15
|
+
type: "button"
|
|
16
|
+
}, We = ["aria-expanded"], Ae = { class: "flex h-5 max-w-[14px] items-center justify-center" }, Ne = { class: "flex flex-1 flex-row justify-between" }, Oe = { class: "line-clamp-1 w-full break-all text-left font-medium" }, Pe = { class: "relative flex h-fit justify-end" }, Ve = {
|
|
17
|
+
class: "flex items-center justify-center",
|
|
18
|
+
type: "button"
|
|
19
|
+
}, Fe = { key: 3 }, O = "hover:bg-sidebar-active-b indent-padding-left", it = /* @__PURE__ */ me({
|
|
14
20
|
__name: "RequestSidebarItem",
|
|
15
21
|
props: {
|
|
16
22
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -22,22 +28,22 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
22
28
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
23
29
|
setup(l, { emit: ne }) {
|
|
24
30
|
ve((e) => ({
|
|
25
|
-
"
|
|
26
|
-
|
|
31
|
+
"0361ef56": ae.value,
|
|
32
|
+
bd04dd6e: re.value
|
|
27
33
|
}));
|
|
28
|
-
const
|
|
29
|
-
collections:
|
|
30
|
-
tags:
|
|
31
|
-
requests:
|
|
32
|
-
requestExamples:
|
|
33
|
-
collectionMutators:
|
|
34
|
+
const oe = ne, { activeCollection: le, activeRequest: P, activeRouterParams: se, activeWorkspace: U } = De(), {
|
|
35
|
+
collections: C,
|
|
36
|
+
tags: R,
|
|
37
|
+
requests: z,
|
|
38
|
+
requestExamples: E,
|
|
39
|
+
collectionMutators: S,
|
|
34
40
|
tagMutators: V,
|
|
35
41
|
requestMutators: j,
|
|
36
42
|
requestExampleMutators: F,
|
|
37
43
|
events: Y
|
|
38
|
-
} = Ie(), x =
|
|
39
|
-
var o, u, g,
|
|
40
|
-
const e =
|
|
44
|
+
} = Ie(), x = we(), { collapsedSidebarFolders: D, toggleSidebarFolder: H } = qe(), { layout: p } = Ue(), i = b(() => {
|
|
45
|
+
var o, u, g, T, J, Q;
|
|
46
|
+
const e = C[l.uid], t = R[l.uid], r = z[l.uid], a = E[l.uid];
|
|
41
47
|
return e ? {
|
|
42
48
|
title: ((o = e.info) == null ? void 0 : o.title) || "Untitled Collection",
|
|
43
49
|
entity: e,
|
|
@@ -54,11 +60,11 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
54
60
|
}
|
|
55
61
|
} : void 0,
|
|
56
62
|
warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
|
|
57
|
-
edit: (
|
|
58
|
-
|
|
63
|
+
edit: (k, X) => {
|
|
64
|
+
S.edit(e.uid, "info.title", k), X && S.edit(e.uid, "x-scalar-icon", X);
|
|
59
65
|
},
|
|
60
66
|
delete: () => {
|
|
61
|
-
U.value &&
|
|
67
|
+
U.value && S.delete(e, U.value);
|
|
62
68
|
}
|
|
63
69
|
} : t ? {
|
|
64
70
|
title: t.name,
|
|
@@ -66,14 +72,14 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
66
72
|
resourceTitle: "Tag",
|
|
67
73
|
children: t.children,
|
|
68
74
|
warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
|
|
69
|
-
edit: (
|
|
75
|
+
edit: (k) => V.edit(t.uid, "name", k),
|
|
70
76
|
delete: () => l.parentUids[0] && V.delete(t, l.parentUids[0])
|
|
71
77
|
} : r ? {
|
|
72
78
|
title: r.summary ?? r.path,
|
|
73
79
|
to: {
|
|
74
80
|
name: "request",
|
|
75
81
|
params: {
|
|
76
|
-
workspace: (
|
|
82
|
+
workspace: (T = U.value) == null ? void 0 : T.uid,
|
|
77
83
|
request: r.uid
|
|
78
84
|
}
|
|
79
85
|
},
|
|
@@ -82,7 +88,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
82
88
|
resourceTitle: "Request",
|
|
83
89
|
warning: "This cannot be undone. You’re about to delete the request.",
|
|
84
90
|
children: r.examples.slice(1),
|
|
85
|
-
edit: (
|
|
91
|
+
edit: (k) => j.edit(r.uid, "summary", k),
|
|
86
92
|
delete: () => l.parentUids[0] && j.delete(r, l.parentUids[0])
|
|
87
93
|
} : a != null && a.requestUid ? {
|
|
88
94
|
title: a.name,
|
|
@@ -94,12 +100,12 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
94
100
|
examples: a.uid
|
|
95
101
|
}
|
|
96
102
|
},
|
|
97
|
-
method: (Q =
|
|
103
|
+
method: (Q = z[a.requestUid]) == null ? void 0 : Q.method,
|
|
98
104
|
entity: a,
|
|
99
105
|
resourceTitle: "Example",
|
|
100
106
|
warning: "This cannot be undone. You’re about to delete the example from the request.",
|
|
101
107
|
children: [],
|
|
102
|
-
edit: (
|
|
108
|
+
edit: (k) => F.edit(a.uid, "name", k),
|
|
103
109
|
delete: () => F.delete(a)
|
|
104
110
|
} : {
|
|
105
111
|
title: "Unknown",
|
|
@@ -112,7 +118,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
112
118
|
edit: () => null,
|
|
113
119
|
delete: () => null
|
|
114
120
|
};
|
|
115
|
-
}),
|
|
121
|
+
}), I = b(
|
|
116
122
|
() => i.value.entity.type === "collection" && i.value.title === "Drafts"
|
|
117
123
|
), ae = b(() => l.parentUids.length ? p === "modal" ? `${(l.parentUids.length - 1) * 12}px` : `${l.parentUids.length * 12}px` : "12px"), re = b(() => l.parentUids.length ? p === "modal" ? `${(l.parentUids.length - 1) * 12}px` : `${l.parentUids.length * 12}px` : "0px"), ue = b(
|
|
118
124
|
() => {
|
|
@@ -122,20 +128,20 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
122
128
|
), de = b(
|
|
123
129
|
() => {
|
|
124
130
|
var e;
|
|
125
|
-
return typeof x.currentRoute.value.name == "string" && x.currentRoute.value.name.startsWith("request") &&
|
|
131
|
+
return typeof x.currentRoute.value.name == "string" && x.currentRoute.value.name.startsWith("request") && se.value[$.Request] === "default" && ((e = P.value) == null ? void 0 : e.uid) === l.uid;
|
|
126
132
|
}
|
|
127
|
-
),
|
|
133
|
+
), B = ge(null), L = b(() => {
|
|
128
134
|
let e = 0.5, t = 0.5;
|
|
129
|
-
if (!
|
|
135
|
+
if (!B.value)
|
|
130
136
|
return { ceiling: e, floor: t };
|
|
131
|
-
const { draggingItem: r } =
|
|
132
|
-
return !
|
|
133
|
-
}), pe = (e, t) => !(p === "modal" ||
|
|
134
|
-
e && (Re(["default"]).some((o) => e[o]) ?
|
|
137
|
+
const { draggingItem: r } = B.value;
|
|
138
|
+
return !C[r == null ? void 0 : r.id] && i.value.entity.type === "collection" ? (e = 1, t = 0) : i.value.entity.type === "tag" && (e = 0.8, t = 0.2), { ceiling: e, floor: t };
|
|
139
|
+
}), pe = (e, t) => !(p === "modal" || E[t.id] || C[e.id]), fe = (e, t) => {
|
|
140
|
+
e && (Re(["default"]).some((o) => e[o]) ? oe("newTab", t.title || "", t.entity.uid) : t.to && x.push(t.to), xe(() => Y.focusAddressBar.emit()));
|
|
135
141
|
};
|
|
136
|
-
function
|
|
142
|
+
function W(e) {
|
|
137
143
|
var o, u, g;
|
|
138
|
-
const t = l.parentUids[0] ? ((o =
|
|
144
|
+
const t = l.parentUids[0] ? ((o = C[l.parentUids[0]]) == null ? void 0 : o.uid) || "" : e, r = l.parentUids[0] && ((u = R[e]) != null && u.name) ? { tags: [R[e].name] } : {}, a = j.add(
|
|
139
145
|
r,
|
|
140
146
|
t
|
|
141
147
|
);
|
|
@@ -150,27 +156,27 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
150
156
|
}));
|
|
151
157
|
}
|
|
152
158
|
const G = b(() => {
|
|
153
|
-
const { uid: e, watchModeStatus: t } =
|
|
159
|
+
const { uid: e, watchModeStatus: t } = le.value || {};
|
|
154
160
|
return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
|
|
155
|
-
}), K = b(() => i.value.title === "Drafts" && p !== "modal" && i.value.children.length > 0),
|
|
156
|
-
const e =
|
|
161
|
+
}), K = b(() => i.value.title === "Drafts" && p !== "modal" && i.value.children.length > 0), ce = b(() => {
|
|
162
|
+
const e = z[l.uid];
|
|
157
163
|
if (e)
|
|
158
164
|
return !te(e);
|
|
159
|
-
const t =
|
|
165
|
+
const t = R[l.uid];
|
|
160
166
|
return t ? !te(t) : !0;
|
|
161
167
|
});
|
|
162
168
|
return (e, t) => {
|
|
163
169
|
const r = be("RequestSidebarItem", !0);
|
|
164
|
-
return
|
|
170
|
+
return ce.value ? (d(), M("li", {
|
|
165
171
|
key: 0,
|
|
166
|
-
class:
|
|
172
|
+
class: y(["relative flex flex-row", [
|
|
167
173
|
n(p) === "modal" && e.parentUids.length > 1 || n(p) !== "modal" && e.parentUids.length ? "before:bg-border indent-border-line-offset before:z-1 mb-[.5px] before:pointer-events-none before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full" : ""
|
|
168
174
|
]])
|
|
169
175
|
}, [
|
|
170
|
-
|
|
176
|
+
m(n(ke), {
|
|
171
177
|
id: i.value.entity.uid,
|
|
172
178
|
ref_key: "draggableRef",
|
|
173
|
-
ref:
|
|
179
|
+
ref: B,
|
|
174
180
|
ceiling: L.value.ceiling,
|
|
175
181
|
class: "gap-1/2 flex flex-1 flex-col text-sm",
|
|
176
182
|
floor: L.value.floor,
|
|
@@ -179,50 +185,50 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
179
185
|
parentIds: e.parentUids,
|
|
180
186
|
onOnDragEnd: t[12] || (t[12] = (...a) => e.$emit("onDragEnd", ...a))
|
|
181
187
|
}, {
|
|
182
|
-
default:
|
|
188
|
+
default: v(() => {
|
|
183
189
|
var a;
|
|
184
190
|
return [
|
|
185
|
-
(i.value.entity.type === "request" || i.value.entity.type === "requestExample") && i.value.to ? (d(),
|
|
191
|
+
(i.value.entity.type === "request" || i.value.entity.type === "requestExample") && i.value.to ? (d(), c(n(ie), {
|
|
186
192
|
key: 0,
|
|
187
193
|
class: "group no-underline",
|
|
188
194
|
to: i.value.to,
|
|
189
|
-
onClick: t[1] || (t[1] =
|
|
190
|
-
(o) =>
|
|
195
|
+
onClick: t[1] || (t[1] = w(
|
|
196
|
+
(o) => fe(o, i.value),
|
|
191
197
|
["prevent"]
|
|
192
198
|
))
|
|
193
199
|
}, {
|
|
194
|
-
default:
|
|
200
|
+
default: v(({ isExactActive: o }) => {
|
|
195
201
|
var u, g;
|
|
196
202
|
return [
|
|
197
203
|
s("div", {
|
|
198
|
-
class:
|
|
204
|
+
class: y(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2", [
|
|
199
205
|
O,
|
|
200
206
|
o || de.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
201
207
|
]])
|
|
202
208
|
}, [
|
|
203
|
-
s("span", Te,
|
|
204
|
-
s("div",
|
|
205
|
-
s("div",
|
|
206
|
-
n(p) !== "modal" ? (d(),
|
|
209
|
+
s("span", Te, A(i.value.title || "Untitled"), 1),
|
|
210
|
+
s("div", Me, [
|
|
211
|
+
s("div", $e, [
|
|
212
|
+
n(p) !== "modal" ? (d(), c(n(q), {
|
|
207
213
|
key: 0,
|
|
208
|
-
class:
|
|
214
|
+
class: y(["hover:bg-b-3 hidden aspect-square h-fit px-0.5 py-0 opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
|
|
209
215
|
flex: ((g = (u = e.menuItem) == null ? void 0 : u.item) == null ? void 0 : g.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
210
216
|
}]),
|
|
211
217
|
size: "sm",
|
|
212
218
|
type: "button",
|
|
213
219
|
variant: "ghost",
|
|
214
|
-
onClick: t[0] || (t[0] =
|
|
215
|
-
(
|
|
220
|
+
onClick: t[0] || (t[0] = w(
|
|
221
|
+
(T) => e.$emit("openMenu", {
|
|
216
222
|
item: i.value,
|
|
217
223
|
parentUids: e.parentUids,
|
|
218
|
-
targetRef:
|
|
224
|
+
targetRef: T.currentTarget,
|
|
219
225
|
open: !e.menuItem.open
|
|
220
226
|
}),
|
|
221
227
|
["stop", "prevent"]
|
|
222
228
|
))
|
|
223
229
|
}, {
|
|
224
|
-
default:
|
|
225
|
-
|
|
230
|
+
default: v(() => [
|
|
231
|
+
m(n(h), {
|
|
226
232
|
icon: "Ellipses",
|
|
227
233
|
size: "md"
|
|
228
234
|
})
|
|
@@ -230,10 +236,10 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
230
236
|
_: 1
|
|
231
237
|
}, 8, ["class"])) : f("", !0)
|
|
232
238
|
]),
|
|
233
|
-
s("span",
|
|
239
|
+
s("span", ze, [
|
|
234
240
|
t[13] || (t[13] = N(" ")),
|
|
235
241
|
t[14] || (t[14] = s("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
236
|
-
i.value.method ? (d(),
|
|
242
|
+
i.value.method ? (d(), c(n(Ce), {
|
|
237
243
|
key: 0,
|
|
238
244
|
class: "font-bold",
|
|
239
245
|
method: i.value.method
|
|
@@ -244,10 +250,10 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
244
250
|
];
|
|
245
251
|
}),
|
|
246
252
|
_: 1
|
|
247
|
-
}, 8, ["to"])) : (n(p) !== "modal" || e.parentUids.length) && i.value.entity.type === "collection" && i.value.to ? (d(),
|
|
253
|
+
}, 8, ["to"])) : (n(p) !== "modal" || e.parentUids.length) && i.value.entity.type === "collection" && i.value.to ? (d(), c(n(ie), {
|
|
248
254
|
key: 1,
|
|
249
255
|
"aria-expanded": !!n(D)[i.value.entity.uid],
|
|
250
|
-
class:
|
|
256
|
+
class: y(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 no-underline focus-visible:z-10", [
|
|
251
257
|
O,
|
|
252
258
|
{
|
|
253
259
|
"bg-sidebar-active-b text-sidebar-active-c transition-none": typeof n(x).currentRoute.value.name == "string" && n(x).currentRoute.value.name.startsWith("collection") && n(x).currentRoute.value.params[n($).Collection] === i.value.entity.uid,
|
|
@@ -256,15 +262,15 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
256
262
|
]]),
|
|
257
263
|
to: i.value.to
|
|
258
264
|
}, {
|
|
259
|
-
default:
|
|
265
|
+
default: v(() => {
|
|
260
266
|
var o;
|
|
261
267
|
return [
|
|
262
268
|
s("span", {
|
|
263
269
|
class: "flex h-5 max-w-[14px] cursor-pointer items-center justify-center",
|
|
264
|
-
onClick: t[2] || (t[2] =
|
|
270
|
+
onClick: t[2] || (t[2] = w((u) => n(H)(i.value.entity.uid), ["stop", "prevent"]))
|
|
265
271
|
}, [
|
|
266
272
|
Z(e.$slots, "leftIcon", {}, () => [
|
|
267
|
-
|
|
273
|
+
m(n(_), {
|
|
268
274
|
class: "text-c-3 shrink-0",
|
|
269
275
|
open: !!n(D)[i.value.entity.uid]
|
|
270
276
|
}, null, 8, ["open"])
|
|
@@ -272,20 +278,20 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
272
278
|
t[15] || (t[15] = N(" "))
|
|
273
279
|
]),
|
|
274
280
|
s("div", Ee, [
|
|
275
|
-
s("span", Se,
|
|
276
|
-
s("div",
|
|
281
|
+
s("span", Se, A(i.value.title), 1),
|
|
282
|
+
s("div", je, [
|
|
277
283
|
s("div", {
|
|
278
|
-
class:
|
|
284
|
+
class: y(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
|
|
279
285
|
flex: e.menuItem.open,
|
|
280
286
|
hidden: !e.menuItem.open || ((o = e.menuItem.item) == null ? void 0 : o.entity.uid) !== i.value.entity.uid
|
|
281
287
|
}])
|
|
282
288
|
}, [
|
|
283
|
-
n(p) !== "modal" && !
|
|
289
|
+
n(p) !== "modal" && !I.value || I.value && K.value ? (d(), c(n(q), {
|
|
284
290
|
key: 0,
|
|
285
291
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
286
292
|
size: "sm",
|
|
287
293
|
variant: "ghost",
|
|
288
|
-
onClick: t[3] || (t[3] =
|
|
294
|
+
onClick: t[3] || (t[3] = w(
|
|
289
295
|
(u) => e.$emit("openMenu", {
|
|
290
296
|
item: i.value,
|
|
291
297
|
parentUids: e.parentUids,
|
|
@@ -295,23 +301,23 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
295
301
|
["stop", "prevent"]
|
|
296
302
|
))
|
|
297
303
|
}, {
|
|
298
|
-
default:
|
|
299
|
-
|
|
304
|
+
default: v(() => [
|
|
305
|
+
m(n(h), {
|
|
300
306
|
icon: "Ellipses",
|
|
301
307
|
size: "md"
|
|
302
308
|
})
|
|
303
309
|
]),
|
|
304
310
|
_: 1
|
|
305
311
|
})) : f("", !0),
|
|
306
|
-
n(p) !== "modal" ? (d(),
|
|
312
|
+
n(p) !== "modal" ? (d(), c(n(q), {
|
|
307
313
|
key: 1,
|
|
308
314
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
309
315
|
size: "sm",
|
|
310
316
|
variant: "ghost",
|
|
311
|
-
onClick: t[4] || (t[4] =
|
|
317
|
+
onClick: t[4] || (t[4] = w((u) => W(i.value.entity.uid), ["stop", "prevent"]))
|
|
312
318
|
}, {
|
|
313
|
-
default:
|
|
314
|
-
|
|
319
|
+
default: v(() => [
|
|
320
|
+
m(n(h), {
|
|
315
321
|
icon: "Add",
|
|
316
322
|
size: "md",
|
|
317
323
|
thickness: "2"
|
|
@@ -320,28 +326,24 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
320
326
|
_: 1
|
|
321
327
|
})) : f("", !0)
|
|
322
328
|
], 2),
|
|
323
|
-
i.value.watchMode ? (d(),
|
|
329
|
+
i.value.watchMode ? (d(), c(n(ee), {
|
|
324
330
|
key: 0,
|
|
325
|
-
|
|
326
|
-
|
|
331
|
+
placement: "right",
|
|
332
|
+
offset: 12,
|
|
333
|
+
content: `Watching: ${i.value.documentUrl}`
|
|
327
334
|
}, {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
content: c(() => [
|
|
337
|
-
s("div", je, [
|
|
338
|
-
s("div", We, [
|
|
339
|
-
s("p", Ae, " Watching: " + C(i.value.documentUrl), 1)
|
|
340
|
-
])
|
|
335
|
+
default: v(() => [
|
|
336
|
+
s("button", Be, [
|
|
337
|
+
m(n(h), {
|
|
338
|
+
class: y(["ml-0.5 text-sm", G.value]),
|
|
339
|
+
icon: "Watch",
|
|
340
|
+
size: "md",
|
|
341
|
+
thickness: "2"
|
|
342
|
+
}, null, 8, ["class"])
|
|
341
343
|
])
|
|
342
344
|
]),
|
|
343
345
|
_: 1
|
|
344
|
-
})) : f("", !0),
|
|
346
|
+
}, 8, ["content"])) : f("", !0),
|
|
345
347
|
t[16] || (t[16] = s("span", null, " ", -1))
|
|
346
348
|
])
|
|
347
349
|
])
|
|
@@ -351,34 +353,34 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
351
353
|
}, 8, ["aria-expanded", "class", "to"])) : n(p) !== "modal" || e.parentUids.length ? (d(), M("button", {
|
|
352
354
|
key: 2,
|
|
353
355
|
"aria-expanded": !!n(D)[i.value.entity.uid],
|
|
354
|
-
class:
|
|
356
|
+
class: y(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [O]]),
|
|
355
357
|
type: "button",
|
|
356
358
|
onClick: t[7] || (t[7] = (o) => n(H)(i.value.entity.uid))
|
|
357
359
|
}, [
|
|
358
|
-
s("span",
|
|
360
|
+
s("span", Ae, [
|
|
359
361
|
Z(e.$slots, "leftIcon", {}, () => [
|
|
360
|
-
|
|
362
|
+
m(n(_), {
|
|
361
363
|
class: "text-c-3 hover:text-c-1 shrink-0",
|
|
362
364
|
open: !!n(D)[i.value.entity.uid]
|
|
363
365
|
}, null, 8, ["open"])
|
|
364
366
|
], !0),
|
|
365
367
|
t[17] || (t[17] = N(" "))
|
|
366
368
|
]),
|
|
367
|
-
s("div",
|
|
368
|
-
s("span",
|
|
369
|
-
s("div",
|
|
369
|
+
s("div", Ne, [
|
|
370
|
+
s("span", Oe, A(i.value.title), 1),
|
|
371
|
+
s("div", Pe, [
|
|
370
372
|
s("div", {
|
|
371
|
-
class:
|
|
373
|
+
class: y(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
|
|
372
374
|
flex: e.menuItem.open,
|
|
373
375
|
hidden: !e.menuItem.open || ((a = e.menuItem.item) == null ? void 0 : a.entity.uid) !== i.value.entity.uid
|
|
374
376
|
}])
|
|
375
377
|
}, [
|
|
376
|
-
n(p) !== "modal" && !
|
|
378
|
+
n(p) !== "modal" && !I.value || I.value && K.value ? (d(), c(n(q), {
|
|
377
379
|
key: 0,
|
|
378
380
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
379
381
|
size: "sm",
|
|
380
382
|
variant: "ghost",
|
|
381
|
-
onClick: t[5] || (t[5] =
|
|
383
|
+
onClick: t[5] || (t[5] = w(
|
|
382
384
|
(o) => e.$emit("openMenu", {
|
|
383
385
|
item: i.value,
|
|
384
386
|
parentUids: e.parentUids,
|
|
@@ -388,23 +390,23 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
388
390
|
["stop", "prevent"]
|
|
389
391
|
))
|
|
390
392
|
}, {
|
|
391
|
-
default:
|
|
392
|
-
|
|
393
|
+
default: v(() => [
|
|
394
|
+
m(n(h), {
|
|
393
395
|
icon: "Ellipses",
|
|
394
396
|
size: "md"
|
|
395
397
|
})
|
|
396
398
|
]),
|
|
397
399
|
_: 1
|
|
398
400
|
})) : f("", !0),
|
|
399
|
-
n(p) !== "modal" ? (d(),
|
|
401
|
+
n(p) !== "modal" ? (d(), c(n(q), {
|
|
400
402
|
key: 1,
|
|
401
403
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
402
404
|
size: "sm",
|
|
403
405
|
variant: "ghost",
|
|
404
|
-
onClick: t[6] || (t[6] =
|
|
406
|
+
onClick: t[6] || (t[6] = w((o) => W(i.value.entity.uid), ["stop", "prevent"]))
|
|
405
407
|
}, {
|
|
406
|
-
default:
|
|
407
|
-
|
|
408
|
+
default: v(() => [
|
|
409
|
+
m(n(h), {
|
|
408
410
|
icon: "Add",
|
|
409
411
|
size: "md",
|
|
410
412
|
thickness: "2"
|
|
@@ -413,24 +415,20 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
413
415
|
_: 1
|
|
414
416
|
})) : f("", !0)
|
|
415
417
|
], 2),
|
|
416
|
-
i.value.watchMode ? (d(),
|
|
418
|
+
i.value.watchMode ? (d(), c(n(ee), {
|
|
417
419
|
key: 0,
|
|
418
|
-
|
|
419
|
-
|
|
420
|
+
content: "Watching: {{ item.documentUrl }}",
|
|
421
|
+
placement: "right",
|
|
422
|
+
offset: 12
|
|
420
423
|
}, {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
content: c(() => [
|
|
430
|
-
s("div", Ye, [
|
|
431
|
-
s("div", He, [
|
|
432
|
-
s("p", Le, " Watching: " + C(i.value.documentUrl), 1)
|
|
433
|
-
])
|
|
424
|
+
default: v(() => [
|
|
425
|
+
s("button", Ve, [
|
|
426
|
+
m(n(h), {
|
|
427
|
+
class: y(["ml-0.5 text-sm", G.value]),
|
|
428
|
+
icon: "Watch",
|
|
429
|
+
size: "md",
|
|
430
|
+
thickness: "2"
|
|
431
|
+
}, null, 8, ["class"])
|
|
434
432
|
])
|
|
435
433
|
]),
|
|
436
434
|
_: 1
|
|
@@ -438,11 +436,11 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
438
436
|
t[18] || (t[18] = s("span", null, " ", -1))
|
|
439
437
|
])
|
|
440
438
|
])
|
|
441
|
-
], 10,
|
|
442
|
-
ue.value ? (d(), M("ul",
|
|
443
|
-
(d(!0), M(
|
|
439
|
+
], 10, We)) : f("", !0),
|
|
440
|
+
ue.value ? (d(), M("ul", Fe, [
|
|
441
|
+
(d(!0), M(ye, null, he(i.value.children, (o) => (d(), c(r, {
|
|
444
442
|
key: o,
|
|
445
|
-
isDraggable: !n(
|
|
443
|
+
isDraggable: !n(E)[o],
|
|
446
444
|
isDroppable: pe,
|
|
447
445
|
menuItem: e.menuItem,
|
|
448
446
|
parentUids: [...e.parentUids, e.uid],
|
|
@@ -451,14 +449,14 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
451
449
|
onOnDragEnd: t[9] || (t[9] = (...u) => e.$emit("onDragEnd", ...u)),
|
|
452
450
|
onOpenMenu: t[10] || (t[10] = (u) => e.$emit("openMenu", u))
|
|
453
451
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
454
|
-
i.value.children.length === 0 ? (d(),
|
|
452
|
+
i.value.children.length === 0 ? (d(), c(n(q), {
|
|
455
453
|
key: 0,
|
|
456
|
-
class:
|
|
454
|
+
class: y(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs", e.parentUids.length ? "pl-9" : ""]),
|
|
457
455
|
variant: "ghost",
|
|
458
|
-
onClick: t[11] || (t[11] = (o) =>
|
|
456
|
+
onClick: t[11] || (t[11] = (o) => W(i.value.entity.uid))
|
|
459
457
|
}, {
|
|
460
|
-
default:
|
|
461
|
-
|
|
458
|
+
default: v(() => [
|
|
459
|
+
m(n(h), {
|
|
462
460
|
icon: "Add",
|
|
463
461
|
size: "sm"
|
|
464
462
|
}),
|
|
@@ -476,5 +474,5 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
476
474
|
}
|
|
477
475
|
});
|
|
478
476
|
export {
|
|
479
|
-
|
|
477
|
+
it as default
|
|
480
478
|
};
|
|
@@ -34,7 +34,7 @@ const W = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, $ = {
|
|
|
34
34
|
}));
|
|
35
35
|
}, k = (o) => {
|
|
36
36
|
o != null && o.createNew && x.name === "request" && f();
|
|
37
|
-
}, w = "2.
|
|
37
|
+
}, w = "2.4.1";
|
|
38
38
|
return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (u(), l("div", W, [
|
|
39
39
|
s("div", {
|
|
40
40
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AA0RA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,gBAAgB,EACjB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAerF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,SAAS,EAAE,SAAS,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACtC,aAAa,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAA;CACpD,CAAC;;AAwUF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseSection.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-7138ed84"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|