@scalar/api-client 2.2.44 → 2.2.45
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 +26 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +37 -37
- package/dist/components/EmptyState.vue.d.ts +3 -0
- package/dist/components/EmptyState.vue.d.ts.map +1 -0
- package/dist/components/EmptyState.vue.js +7 -0
- package/dist/components/EmptyState.vue2.js +31 -0
- package/dist/components/Form/Form.vue.js +1 -1
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.js +12 -7
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +2 -2
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
- package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
- package/dist/libs/create-client.d.ts +2 -2
- package/dist/libs/index.js +31 -33
- package/dist/libs/send-request/build-request-security.d.ts +17 -0
- package/dist/libs/send-request/build-request-security.d.ts.map +1 -0
- package/dist/libs/send-request/build-request-security.js +31 -0
- package/dist/libs/send-request/create-fetch-body.d.ts +18 -0
- package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -0
- package/dist/libs/send-request/create-fetch-body.js +26 -0
- package/dist/libs/send-request/create-fetch-headers.d.ts +4 -0
- package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -0
- package/dist/libs/send-request/create-fetch-headers.js +11 -0
- package/dist/libs/send-request/create-fetch-query-params.d.ts +4 -0
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -0
- package/dist/libs/send-request/create-fetch-query-params.js +10 -0
- package/dist/libs/send-request/create-request-operation.d.ts +29 -0
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -0
- package/dist/libs/send-request/create-request-operation.js +107 -0
- package/dist/libs/send-request/decode-buffer.d.ts +3 -0
- package/dist/libs/send-request/decode-buffer.d.ts.map +1 -0
- package/dist/libs/send-request/decode-buffer.js +9 -0
- package/dist/libs/send-request/index.d.ts +2 -1
- package/dist/libs/send-request/index.d.ts.map +1 -1
- package/dist/libs/send-request/index.js +4 -6
- package/dist/store/request-example.d.ts +2 -2
- package/dist/store/store.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieModal.vue.js +2 -2
- package/dist/views/Cookies/CookieModal.vue2.js +11 -11
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +37 -36
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +89 -87
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +47 -45
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +8 -7
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +97 -104
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +39 -57
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +74 -71
- package/package.json +10 -10
- package/dist/libs/send-request/send-request.d.ts +0 -51
- package/dist/libs/send-request/send-request.d.ts.map +0 -1
- package/dist/libs/send-request/send-request.js +0 -177
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, resolveComponent as S, openBlock as r, createBlock as i, withCtx as t, createElementBlock as c, Fragment as f, renderList as $, createElementVNode as s, createVNode as d, unref as p, toDisplayString as b, normalizeClass as U, createSlots as T, createCommentVNode as
|
|
1
|
+
import { defineComponent as F, resolveComponent as S, openBlock as r, createBlock as i, withCtx as t, createElementBlock as c, Fragment as f, renderList as $, createElementVNode as s, createVNode as d, unref as p, toDisplayString as b, normalizeClass as U, createSlots as T, createCommentVNode as k, createTextVNode as z, computed as D } from "vue";
|
|
2
2
|
import w from "../../../components/CodeInput/CodeInput.vue.js";
|
|
3
3
|
import q from "../../../components/DataTable/DataTable.vue.js";
|
|
4
4
|
import y from "../../../components/DataTable/DataTableCell.vue.js";
|
|
@@ -22,7 +22,7 @@ const L = { class: "contents" }, j = { class: "sr-only" }, A = { class: "text-c-
|
|
|
22
22
|
n("updateRow", e, o, m);
|
|
23
23
|
}, h = (e) => {
|
|
24
24
|
n("uploadFile", e);
|
|
25
|
-
},
|
|
25
|
+
}, x = (e) => D(() => {
|
|
26
26
|
if (e.type === "integer" && e.value !== void 0) {
|
|
27
27
|
const o = Number(e.value);
|
|
28
28
|
if (e.minimum !== void 0 && o < e.minimum)
|
|
@@ -55,13 +55,14 @@ const L = { class: "contents" }, j = { class: "sr-only" }, A = { class: "text-c-
|
|
|
55
55
|
}, {
|
|
56
56
|
trigger: t(() => [
|
|
57
57
|
d(p(V), {
|
|
58
|
+
class: "text-c-1",
|
|
58
59
|
icon: "Globe",
|
|
59
60
|
size: "xs"
|
|
60
61
|
})
|
|
61
62
|
]),
|
|
62
63
|
content: t(() => o[4] || (o[4] = [
|
|
63
64
|
s("div", { class: "grid gap-1.5 pointer-events-none max-w-[320px] w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, [
|
|
64
|
-
s("div", { class: "flex items-center text-c-
|
|
65
|
+
s("div", { class: "flex items-center text-c-1" }, [
|
|
65
66
|
s("span", { class: "text-pretty" }, " Global cookies are shared across the whole workspace. ")
|
|
66
67
|
])
|
|
67
68
|
], -1)
|
|
@@ -126,14 +127,14 @@ const L = { class: "contents" }, j = { class: "sr-only" }, A = { class: "text-c-
|
|
|
126
127
|
p(g)(l) ? (r(), i(O, {
|
|
127
128
|
key: 0,
|
|
128
129
|
item: { ...l, default: _(l) }
|
|
129
|
-
}, null, 8, ["item"])) :
|
|
130
|
+
}, null, 8, ["item"])) : k("", !0)
|
|
130
131
|
]),
|
|
131
132
|
_: 2
|
|
132
133
|
}, [
|
|
133
|
-
|
|
134
|
+
x(l).value ? {
|
|
134
135
|
name: "warning",
|
|
135
136
|
fn: t(() => [
|
|
136
|
-
z(b(
|
|
137
|
+
z(b(x(l).value), 1)
|
|
137
138
|
]),
|
|
138
139
|
key: "0"
|
|
139
140
|
} : void 0
|
|
@@ -178,7 +179,7 @@ const L = { class: "contents" }, j = { class: "sr-only" }, A = { class: "text-c-
|
|
|
178
179
|
];
|
|
179
180
|
}),
|
|
180
181
|
_: 2
|
|
181
|
-
}, 1024)) :
|
|
182
|
+
}, 1024)) : k("", !0)
|
|
182
183
|
]),
|
|
183
184
|
_: 2
|
|
184
185
|
}, 1024))), 128))
|
|
@@ -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":"AAshBA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAOzE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAQ1B,KAAK,WAAW,GAAG;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AAmRJ,iBAAS,cAAc;WAkgBT,OAAO,IAA6B;;oBAvwBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA3DlB,KAxeM;;;;;;;oCAweN,KAleK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4xBL,GAAG,8CAA8C,GAAG,yBACzC,GAAG,6DAEA,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0gBhB;AAoCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;iBA50BH,OAAO;6EAo1BvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,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
|
|
5
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e3a4cd39"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
p as default
|
|
8
8
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as ae, useCssVars as ue, computed as f, ref as de, resolveComponent as pe, openBlock as u, createElementBlock as U, normalizeClass as
|
|
1
|
+
import { defineComponent as ae, useCssVars as ue, computed as f, ref as de, resolveComponent as pe, openBlock as u, createElementBlock as U, normalizeClass as h, unref as n, createVNode as y, withCtx as c, createBlock as g, withModifiers as q, createElementVNode as l, toDisplayString as S, createCommentVNode as m, createTextVNode as W, renderSlot as fe, Fragment as me, renderList as ce } from "vue";
|
|
2
2
|
import { useActiveEntities as ge } from "../../store/active-entities.js";
|
|
3
|
-
import { ScalarButton as D, ScalarIcon as x,
|
|
4
|
-
import { Draggable as
|
|
3
|
+
import { ScalarButton as D, ScalarIcon as x, ScalarSidebarGroupToggle as ve, ScalarTooltip as be } from "@scalar/components";
|
|
4
|
+
import { Draggable as he } from "@scalar/draggable";
|
|
5
5
|
import { shouldIgnoreEntity as F } from "@scalar/oas-utils/helpers";
|
|
6
|
-
import { useRouter as
|
|
7
|
-
import { PathId as
|
|
8
|
-
import
|
|
9
|
-
import { useSidebar as
|
|
10
|
-
import { getModifiers as
|
|
11
|
-
import { useWorkspace as
|
|
12
|
-
import { useLayout as
|
|
13
|
-
const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { class: "flex flex-row gap-1 items-center" }, Re = { class: "relative" },
|
|
6
|
+
import { useRouter as ye, RouterLink as xe } from "vue-router";
|
|
7
|
+
import { PathId as ke } from "../../routes.js";
|
|
8
|
+
import we from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
9
|
+
import { useSidebar as Ue } from "../../hooks/useSidebar.js";
|
|
10
|
+
import { getModifiers as qe } from "../../libs/hot-keys.js";
|
|
11
|
+
import { useWorkspace as De } from "../../store/store.js";
|
|
12
|
+
import { useLayout as Te } from "../../hooks/useLayout.js";
|
|
13
|
+
const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { class: "flex flex-row gap-1 items-center" }, Re = { class: "relative" }, Me = { class: "flex items-start" }, Ee = ["aria-expanded"], Se = { class: "flex h-5 items-center justify-center max-w-[14px]" }, $e = { class: "flex flex-1 flex-row justify-between" }, ze = { class: "break-all line-clamp-1 font-medium text-left w-full" }, Ne = { class: "relative flex justify-end h-fit" }, Oe = { class: "grid gap-1.5 pointer-events-none max-w-10 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, Pe = { class: "flex items-center text-c-2" }, je = { class: "text-pretty break-all" }, Ae = { key: 2 }, Y = "hover:bg-sidebar-active-b indent-padding-left", Ze = /* @__PURE__ */ ae({
|
|
14
14
|
__name: "RequestSidebarItem",
|
|
15
15
|
props: {
|
|
16
16
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -22,22 +22,22 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
22
22
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
23
23
|
setup(H, { emit: L }) {
|
|
24
24
|
ue((e) => ({
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
f5d4ba50: _.value,
|
|
26
|
+
b9977834: ee.value
|
|
27
27
|
}));
|
|
28
|
-
const s = H, G = L, { activeCollection: J, activeRequest:
|
|
29
|
-
collections:
|
|
30
|
-
tags:
|
|
31
|
-
requests:
|
|
32
|
-
requestExamples:
|
|
33
|
-
collectionMutators:
|
|
28
|
+
const s = H, G = L, { activeCollection: J, activeRequest: $, activeRouterParams: K, activeWorkspace: k } = ge(), {
|
|
29
|
+
collections: T,
|
|
30
|
+
tags: z,
|
|
31
|
+
requests: C,
|
|
32
|
+
requestExamples: I,
|
|
33
|
+
collectionMutators: R,
|
|
34
34
|
tagMutators: N,
|
|
35
35
|
requestMutators: O,
|
|
36
36
|
requestExampleMutators: P,
|
|
37
37
|
events: Q
|
|
38
|
-
} =
|
|
39
|
-
var o, d,
|
|
40
|
-
const e =
|
|
38
|
+
} = De(), X = ye(), { collapsedSidebarFolders: M, toggleSidebarFolder: Z } = Ue(), { layout: p } = Te(), i = f(() => {
|
|
39
|
+
var o, d, v, w;
|
|
40
|
+
const e = T[s.uid], t = z[s.uid], r = C[s.uid], a = I[s.uid];
|
|
41
41
|
return e ? {
|
|
42
42
|
title: ((o = e.info) == null ? void 0 : o.title) ?? "Unknown title",
|
|
43
43
|
entity: e,
|
|
@@ -47,11 +47,11 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
47
47
|
documentUrl: e.documentUrl,
|
|
48
48
|
watchMode: e.watchMode,
|
|
49
49
|
warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
|
|
50
|
-
edit: (
|
|
51
|
-
|
|
50
|
+
edit: (b, V) => {
|
|
51
|
+
R.edit(e.uid, "info.title", b), V && R.edit(e.uid, "x-scalar-icon", V);
|
|
52
52
|
},
|
|
53
53
|
delete: () => {
|
|
54
|
-
k.value &&
|
|
54
|
+
k.value && R.delete(e, k.value);
|
|
55
55
|
}
|
|
56
56
|
} : t ? {
|
|
57
57
|
title: t.name,
|
|
@@ -59,44 +59,44 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
59
59
|
resourceTitle: "Tag",
|
|
60
60
|
children: t.children,
|
|
61
61
|
warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
|
|
62
|
-
edit: (
|
|
62
|
+
edit: (b) => N.edit(t.uid, "name", b),
|
|
63
63
|
delete: () => {
|
|
64
64
|
s.parentUids[0] && N.delete(t, s.parentUids[0]);
|
|
65
65
|
}
|
|
66
|
-
} :
|
|
67
|
-
title:
|
|
66
|
+
} : r ? {
|
|
67
|
+
title: r.summary ?? r.path,
|
|
68
68
|
link: {
|
|
69
69
|
name: "request",
|
|
70
70
|
params: {
|
|
71
71
|
workspace: (d = k.value) == null ? void 0 : d.uid,
|
|
72
|
-
request:
|
|
72
|
+
request: r.uid
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
method:
|
|
76
|
-
entity:
|
|
75
|
+
method: r.method,
|
|
76
|
+
entity: r,
|
|
77
77
|
resourceTitle: "Request",
|
|
78
78
|
warning: "This cannot be undone. You’re about to delete the request.",
|
|
79
|
-
children:
|
|
80
|
-
edit: (
|
|
79
|
+
children: r.examples.slice(1),
|
|
80
|
+
edit: (b) => O.edit(r.uid, "summary", b),
|
|
81
81
|
delete: () => {
|
|
82
|
-
s.parentUids[0] && O.delete(
|
|
82
|
+
s.parentUids[0] && O.delete(r, s.parentUids[0]);
|
|
83
83
|
}
|
|
84
84
|
} : a ? {
|
|
85
85
|
title: a.name,
|
|
86
86
|
link: {
|
|
87
87
|
name: "request.examples",
|
|
88
88
|
params: {
|
|
89
|
-
workspace: (
|
|
89
|
+
workspace: (v = k.value) == null ? void 0 : v.uid,
|
|
90
90
|
request: a.requestUid,
|
|
91
91
|
examples: a.uid
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
method: (w =
|
|
94
|
+
method: (w = C[a.requestUid]) == null ? void 0 : w.method,
|
|
95
95
|
entity: a,
|
|
96
96
|
resourceTitle: "Example",
|
|
97
97
|
warning: "This cannot be undone. You’re about to delete the example from the request.",
|
|
98
98
|
children: [],
|
|
99
|
-
edit: (
|
|
99
|
+
edit: (b) => P.edit(a.uid, "name", b),
|
|
100
100
|
delete: () => P.delete(a)
|
|
101
101
|
} : {
|
|
102
102
|
title: "Unknown",
|
|
@@ -116,20 +116,20 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
116
116
|
), _ = f(() => s.parentUids.length ? p === "modal" ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "12px"), ee = f(() => s.parentUids.length ? p === "modal" ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "0px"), te = f(
|
|
117
117
|
() => {
|
|
118
118
|
var e;
|
|
119
|
-
return M[s.uid] || ((e =
|
|
119
|
+
return M[s.uid] || ((e = $.value) == null ? void 0 : e.uid) === s.uid && i.value.entity.examples.length > 1;
|
|
120
120
|
}
|
|
121
121
|
), ie = f(
|
|
122
122
|
() => {
|
|
123
123
|
var e;
|
|
124
|
-
return K.value[
|
|
124
|
+
return K.value[ke.Request] === "default" && ((e = $.value) == null ? void 0 : e.uid) === s.uid;
|
|
125
125
|
}
|
|
126
126
|
), E = de(null), A = f(() => {
|
|
127
127
|
let e = 0.5, t = 0.5;
|
|
128
128
|
if (!E.value) return { ceiling: e, floor: t };
|
|
129
|
-
const { draggingItem:
|
|
130
|
-
return !
|
|
131
|
-
}), ne = (e, t) => !(p === "modal" ||
|
|
132
|
-
e && (
|
|
129
|
+
const { draggingItem: r } = E.value;
|
|
130
|
+
return !T[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 };
|
|
131
|
+
}), ne = (e, t) => !(p === "modal" || I[t.id] || T[e.id]), se = (e, t) => {
|
|
132
|
+
e && (qe(["default"]).some((o) => e[o]) ? G("newTab", t.title || "", t.entity.uid) : t.link && X.push(t.link));
|
|
133
133
|
};
|
|
134
134
|
function B() {
|
|
135
135
|
Q.commandPalette.emit({
|
|
@@ -144,20 +144,20 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
144
144
|
const { uid: e, watchModeStatus: t } = J.value || {};
|
|
145
145
|
return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
|
|
146
146
|
}), re = f(() => i.value.title == "Drafts" && p !== "modal" && i.value.children.length > 0), le = f(() => {
|
|
147
|
-
const e =
|
|
147
|
+
const e = C[s.uid];
|
|
148
148
|
if (e) return !F(e);
|
|
149
|
-
const t =
|
|
149
|
+
const t = z[s.uid];
|
|
150
150
|
return t ? !F(t) : !0;
|
|
151
151
|
});
|
|
152
152
|
return (e, t) => {
|
|
153
|
-
const
|
|
153
|
+
const r = pe("RequestSidebarItem", !0);
|
|
154
154
|
return le.value ? (u(), U("li", {
|
|
155
155
|
key: 0,
|
|
156
|
-
class:
|
|
156
|
+
class: h(["relative flex flex-row", [
|
|
157
157
|
n(p) === "modal" && e.parentUids.length > 1 || n(p) !== "modal" && e.parentUids.length ? "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
|
|
158
158
|
]])
|
|
159
159
|
}, [
|
|
160
|
-
y(n(
|
|
160
|
+
y(n(he), {
|
|
161
161
|
id: i.value.entity.uid,
|
|
162
162
|
ref_key: "draggableRef",
|
|
163
163
|
ref: E,
|
|
@@ -169,10 +169,10 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
169
169
|
parentIds: e.parentUids,
|
|
170
170
|
onOnDragEnd: t[9] || (t[9] = (...a) => e.$emit("onDragEnd", ...a))
|
|
171
171
|
}, {
|
|
172
|
-
default:
|
|
172
|
+
default: c(() => {
|
|
173
173
|
var a;
|
|
174
174
|
return [
|
|
175
|
-
i.value.link ? (u(),
|
|
175
|
+
i.value.link ? (u(), g(n(xe), {
|
|
176
176
|
key: 0,
|
|
177
177
|
class: "group no-underline",
|
|
178
178
|
to: i.value.link,
|
|
@@ -181,22 +181,22 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
181
181
|
["prevent"]
|
|
182
182
|
))
|
|
183
183
|
}, {
|
|
184
|
-
default:
|
|
185
|
-
var d,
|
|
184
|
+
default: c(({ isExactActive: o }) => {
|
|
185
|
+
var d, v;
|
|
186
186
|
return [
|
|
187
|
-
|
|
188
|
-
class:
|
|
187
|
+
l("div", {
|
|
188
|
+
class: h(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-0.5 py-1.5 pr-2 rounded w-full", [
|
|
189
189
|
Y,
|
|
190
190
|
o || ie.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
191
191
|
]])
|
|
192
192
|
}, [
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
n(p) !== "modal" ? (u(),
|
|
193
|
+
l("span", Ce, S(i.value.title), 1),
|
|
194
|
+
l("div", Ie, [
|
|
195
|
+
l("div", Re, [
|
|
196
|
+
n(p) !== "modal" ? (u(), g(n(D), {
|
|
197
197
|
key: 0,
|
|
198
|
-
class:
|
|
199
|
-
flex: ((
|
|
198
|
+
class: h(["hidden px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-hover:flex group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit", {
|
|
199
|
+
flex: ((v = (d = e.menuItem) == null ? void 0 : d.item) == null ? void 0 : v.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
200
200
|
}]),
|
|
201
201
|
size: "sm",
|
|
202
202
|
type: "button",
|
|
@@ -211,7 +211,7 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
211
211
|
["stop", "prevent"]
|
|
212
212
|
))
|
|
213
213
|
}, {
|
|
214
|
-
default:
|
|
214
|
+
default: c(() => [
|
|
215
215
|
y(n(x), {
|
|
216
216
|
icon: "Ellipses",
|
|
217
217
|
size: "md"
|
|
@@ -220,10 +220,10 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
220
220
|
_: 1
|
|
221
221
|
}, 8, ["class"])) : m("", !0)
|
|
222
222
|
]),
|
|
223
|
-
|
|
223
|
+
l("span", Me, [
|
|
224
224
|
t[10] || (t[10] = W(" ")),
|
|
225
|
-
t[11] || (t[11] =
|
|
226
|
-
i.value.method ? (u(),
|
|
225
|
+
t[11] || (t[11] = l("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
226
|
+
i.value.method ? (u(), g(n(we), {
|
|
227
227
|
key: 0,
|
|
228
228
|
class: "font-bold",
|
|
229
229
|
method: i.value.method
|
|
@@ -237,36 +237,29 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
237
237
|
}, 8, ["to"])) : n(p) !== "modal" || e.parentUids.length ? (u(), U("button", {
|
|
238
238
|
key: 1,
|
|
239
239
|
"aria-expanded": n(M)[i.value.entity.uid],
|
|
240
|
-
class:
|
|
240
|
+
class: h(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [Y]]),
|
|
241
241
|
type: "button",
|
|
242
242
|
onClick: t[4] || (t[4] = (o) => n(Z)(i.value.entity.uid))
|
|
243
243
|
}, [
|
|
244
|
-
|
|
244
|
+
l("span", Se, [
|
|
245
245
|
fe(e.$slots, "leftIcon", {}, () => [
|
|
246
|
-
|
|
247
|
-
class: c
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}, [
|
|
251
|
-
y(n(x), {
|
|
252
|
-
class: "text-c-3 text-sm",
|
|
253
|
-
icon: "ChevronRight",
|
|
254
|
-
size: "md"
|
|
255
|
-
})
|
|
256
|
-
], 2)
|
|
246
|
+
y(n(ve), {
|
|
247
|
+
class: "text-c-3 shrink-0",
|
|
248
|
+
open: n(M)[i.value.entity.uid]
|
|
249
|
+
}, null, 8, ["open"])
|
|
257
250
|
], !0),
|
|
258
251
|
t[12] || (t[12] = W(" "))
|
|
259
252
|
]),
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
class:
|
|
253
|
+
l("div", $e, [
|
|
254
|
+
l("span", ze, S(i.value.title), 1),
|
|
255
|
+
l("div", Ne, [
|
|
256
|
+
l("div", {
|
|
257
|
+
class: h(["items-center opacity-0 gap-px group-hover:opacity-100 group-hover:flex group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
|
|
265
258
|
flex: e.menuItem.open,
|
|
266
259
|
hidden: !e.menuItem.open || ((a = e.menuItem.item) == null ? void 0 : a.entity.uid) !== i.value.entity.uid
|
|
267
260
|
}])
|
|
268
261
|
}, [
|
|
269
|
-
n(p) !== "modal" && !j.value || j.value && re.value ? (u(),
|
|
262
|
+
n(p) !== "modal" && !j.value || j.value && re.value ? (u(), g(n(D), {
|
|
270
263
|
key: 0,
|
|
271
264
|
class: "px-0.5 py-0 hover:bg-b-3 hover:text-c-1 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
|
|
272
265
|
size: "sm",
|
|
@@ -281,7 +274,7 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
281
274
|
["stop", "prevent"]
|
|
282
275
|
))
|
|
283
276
|
}, {
|
|
284
|
-
default:
|
|
277
|
+
default: c(() => [
|
|
285
278
|
y(n(x), {
|
|
286
279
|
icon: "Ellipses",
|
|
287
280
|
size: "md"
|
|
@@ -289,14 +282,14 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
289
282
|
]),
|
|
290
283
|
_: 1
|
|
291
284
|
})) : m("", !0),
|
|
292
|
-
n(p) !== "modal" ? (u(),
|
|
285
|
+
n(p) !== "modal" ? (u(), g(n(D), {
|
|
293
286
|
key: 1,
|
|
294
287
|
class: "px-0.5 py-0 hover:bg-b-3 hover:text-c-1 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
|
|
295
288
|
size: "sm",
|
|
296
289
|
variant: "ghost",
|
|
297
290
|
onClick: t[3] || (t[3] = q((o) => B(), ["stop", "prevent"]))
|
|
298
291
|
}, {
|
|
299
|
-
default:
|
|
292
|
+
default: c(() => [
|
|
300
293
|
y(n(x), {
|
|
301
294
|
icon: "Add",
|
|
302
295
|
size: "md",
|
|
@@ -306,57 +299,57 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
306
299
|
_: 1
|
|
307
300
|
})) : m("", !0)
|
|
308
301
|
], 2),
|
|
309
|
-
i.value.watchMode ? (u(),
|
|
302
|
+
i.value.watchMode ? (u(), g(n(be), {
|
|
310
303
|
key: 0,
|
|
311
304
|
side: "right",
|
|
312
305
|
sideOffset: 12
|
|
313
306
|
}, {
|
|
314
|
-
trigger:
|
|
307
|
+
trigger: c(() => [
|
|
315
308
|
y(n(x), {
|
|
316
|
-
class:
|
|
309
|
+
class: h(["ml-0.5 text-sm", oe.value]),
|
|
317
310
|
icon: "Watch",
|
|
318
311
|
size: "md",
|
|
319
312
|
thickness: "2"
|
|
320
313
|
}, null, 8, ["class"])
|
|
321
314
|
]),
|
|
322
|
-
content:
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
315
|
+
content: c(() => [
|
|
316
|
+
l("div", Oe, [
|
|
317
|
+
l("div", Pe, [
|
|
318
|
+
l("p", je, " Watching: " + S(i.value.documentUrl), 1)
|
|
326
319
|
])
|
|
327
320
|
])
|
|
328
321
|
]),
|
|
329
322
|
_: 1
|
|
330
323
|
})) : m("", !0),
|
|
331
|
-
t[13] || (t[13] =
|
|
324
|
+
t[13] || (t[13] = l("span", null, " ", -1))
|
|
332
325
|
])
|
|
333
326
|
])
|
|
334
|
-
], 10,
|
|
335
|
-
te.value ? (u(), U("ul",
|
|
336
|
-
(u(!0), U(me, null, ce(i.value.children, (o) => (u(),
|
|
327
|
+
], 10, Ee)) : m("", !0),
|
|
328
|
+
te.value ? (u(), U("ul", Ae, [
|
|
329
|
+
(u(!0), U(me, null, ce(i.value.children, (o) => (u(), g(r, {
|
|
337
330
|
key: o,
|
|
338
|
-
isDraggable: !n(
|
|
331
|
+
isDraggable: !n(I)[o],
|
|
339
332
|
isDroppable: ne,
|
|
340
333
|
menuItem: e.menuItem,
|
|
341
334
|
parentUids: [...e.parentUids, e.uid],
|
|
342
335
|
uid: o,
|
|
343
|
-
onNewTab: t[5] || (t[5] = (d,
|
|
336
|
+
onNewTab: t[5] || (t[5] = (d, v) => e.$emit("newTab", d, v)),
|
|
344
337
|
onOnDragEnd: t[6] || (t[6] = (...d) => e.$emit("onDragEnd", ...d)),
|
|
345
338
|
onOpenMenu: t[7] || (t[7] = (d) => e.$emit("openMenu", d))
|
|
346
339
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
347
|
-
i.value.children.length === 0 ? (u(),
|
|
340
|
+
i.value.children.length === 0 ? (u(), g(n(D), {
|
|
348
341
|
key: 0,
|
|
349
|
-
class:
|
|
342
|
+
class: h(["mb-[.5px] flex gap-1.5 h-8 text-c-1 py-0 justify-start text-xs w-full hover:bg-b-2", e.parentUids.length ? "pl-9" : ""]),
|
|
350
343
|
variant: "ghost",
|
|
351
344
|
onClick: t[8] || (t[8] = (o) => B())
|
|
352
345
|
}, {
|
|
353
|
-
default:
|
|
346
|
+
default: c(() => [
|
|
354
347
|
y(n(x), {
|
|
355
348
|
class: "mx-0.5 h-2.5 w-2.5",
|
|
356
349
|
icon: "Add",
|
|
357
350
|
thickness: "3"
|
|
358
351
|
}),
|
|
359
|
-
t[14] || (t[14] =
|
|
352
|
+
t[14] || (t[14] = l("span", null, "Add Request", -1))
|
|
360
353
|
]),
|
|
361
354
|
_: 1
|
|
362
355
|
}, 8, ["class"])) : m("", !0)
|
|
@@ -370,5 +363,5 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
|
|
|
370
363
|
}
|
|
371
364
|
});
|
|
372
365
|
export {
|
|
373
|
-
|
|
366
|
+
Ze as default
|
|
374
367
|
};
|
|
@@ -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":";AA4UA,wBAMG"}
|
|
@@ -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
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3cd362ca"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|