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