@scalar/api-client 2.2.9 → 2.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/libs/send-request/send-request.js +6 -6
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +12 -12
- 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 +40 -36
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +44 -44
- 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 +115 -122
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +11 -11
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/package.json +9 -9
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as ne, useCssVars as
|
|
1
|
+
import { defineComponent as ne, useCssVars as oe, computed as c, ref as le, resolveComponent as re, openBlock as d, createElementBlock as k, normalizeClass as m, unref as s, createVNode as h, withCtx as g, createBlock as v, withModifiers as w, createElementVNode as l, toDisplayString as M, createCommentVNode as b, createTextVNode as A, renderSlot as ae, Fragment as ue, renderList as de } from "vue";
|
|
2
2
|
import { useActiveEntities as pe } from "../../store/active-entities.js";
|
|
3
3
|
import { ScalarButton as q, ScalarIcon as y, ScalarTooltip as fe } from "@scalar/components";
|
|
4
|
-
import { Draggable as
|
|
5
|
-
import { useRouter as
|
|
4
|
+
import { Draggable as ce } from "@scalar/draggable";
|
|
5
|
+
import { useRouter as me, RouterLink as ge } from "vue-router";
|
|
6
6
|
import { PathId as ve } from "../../routes.js";
|
|
7
7
|
import be from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
8
8
|
import { useSidebar as he } from "../../hooks/useSidebar.js";
|
|
9
9
|
import { getModifiers as ye } from "../../libs/hot-keys.js";
|
|
10
10
|
import { useWorkspace as xe } from "../../store/store.js";
|
|
11
|
-
const we = { class: "flex flex-row gap-1 items-center" },
|
|
11
|
+
const ke = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, we = { class: "flex flex-row gap-1 items-center" }, qe = { class: "relative" }, Ue = { class: "flex items-start" }, De = ["aria-expanded"], Ce = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Re = { class: "flex flex-1 flex-row justify-between" }, Te = { class: "break-all line-clamp-1 font-medium text-left w-full" }, Ie = { class: "relative flex justify-end h-fit" }, Me = { 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" }, Ee = { class: "flex items-center text-c-2" }, $e = { class: "text-pretty break-all" }, ze = { key: 2 }, B = "hover:bg-sidebar-active-b indent-padding-left", Ye = /* @__PURE__ */ ne({
|
|
12
12
|
__name: "RequestSidebarItem",
|
|
13
13
|
props: {
|
|
14
14
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -19,14 +19,14 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
21
21
|
setup(V, { emit: W }) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
oe((e) => ({
|
|
23
|
+
b4d0afaa: Q.value,
|
|
24
|
+
c4444c9a: X.value
|
|
25
25
|
}));
|
|
26
26
|
const n = V, F = W, { activeCollection: Y, activeRequest: E, activeRouterParams: H, activeWorkspace: U } = pe(), {
|
|
27
27
|
collections: D,
|
|
28
28
|
tags: L,
|
|
29
|
-
isReadOnly:
|
|
29
|
+
isReadOnly: f,
|
|
30
30
|
requests: $,
|
|
31
31
|
requestExamples: C,
|
|
32
32
|
collectionMutators: R,
|
|
@@ -34,11 +34,11 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
|
|
|
34
34
|
requestMutators: S,
|
|
35
35
|
requestExampleMutators: N,
|
|
36
36
|
events: G
|
|
37
|
-
} = xe(), J =
|
|
38
|
-
var
|
|
39
|
-
const e = D[n.uid], t = L[n.uid],
|
|
37
|
+
} = xe(), J = me(), { collapsedSidebarFolders: T, toggleSidebarFolder: K } = he(), i = c(() => {
|
|
38
|
+
var o, p;
|
|
39
|
+
const e = D[n.uid], t = L[n.uid], r = $[n.uid], a = C[n.uid];
|
|
40
40
|
return e ? {
|
|
41
|
-
title: ((
|
|
41
|
+
title: ((o = e.info) == null ? void 0 : o.title) ?? "Unknown title",
|
|
42
42
|
entity: e,
|
|
43
43
|
resourceTitle: "Collection",
|
|
44
44
|
children: e.children,
|
|
@@ -58,61 +58,61 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
|
|
|
58
58
|
warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
|
|
59
59
|
edit: (u) => z.edit(t.uid, "name", u),
|
|
60
60
|
delete: () => z.delete(t, n.parentUids[0])
|
|
61
|
-
} :
|
|
62
|
-
title:
|
|
61
|
+
} : r ? {
|
|
62
|
+
title: r.summary ?? r.path,
|
|
63
63
|
link: {
|
|
64
64
|
name: "request",
|
|
65
65
|
params: {
|
|
66
66
|
workspace: U.value.uid,
|
|
67
|
-
request:
|
|
67
|
+
request: r.uid
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
method:
|
|
71
|
-
entity:
|
|
70
|
+
method: r.method,
|
|
71
|
+
entity: r,
|
|
72
72
|
resourceTitle: "Request",
|
|
73
73
|
warning: "This cannot be undone. You’re about to delete the request.",
|
|
74
|
-
children:
|
|
75
|
-
edit: (u) => S.edit(
|
|
76
|
-
delete: () => S.delete(
|
|
74
|
+
children: r.examples.slice(1),
|
|
75
|
+
edit: (u) => S.edit(r.uid, "summary", u),
|
|
76
|
+
delete: () => S.delete(r, n.parentUids[0])
|
|
77
77
|
} : {
|
|
78
|
-
title:
|
|
78
|
+
title: a.name,
|
|
79
79
|
link: {
|
|
80
80
|
name: "request.examples",
|
|
81
81
|
params: {
|
|
82
82
|
workspace: U.value.uid,
|
|
83
|
-
request:
|
|
84
|
-
examples:
|
|
83
|
+
request: a.requestUid,
|
|
84
|
+
examples: a.uid
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
method: (p = $[
|
|
88
|
-
entity:
|
|
87
|
+
method: (p = $[a.requestUid]) == null ? void 0 : p.method,
|
|
88
|
+
entity: a,
|
|
89
89
|
resourceTitle: "Example",
|
|
90
90
|
warning: "This cannot be undone. You’re about to delete the example from the request.",
|
|
91
91
|
children: [],
|
|
92
|
-
edit: (u) => N.edit(
|
|
93
|
-
delete: () => N.delete(
|
|
92
|
+
edit: (u) => N.edit(a.uid, "name", u),
|
|
93
|
+
delete: () => N.delete(a)
|
|
94
94
|
};
|
|
95
95
|
}), O = c(
|
|
96
96
|
() => i.value.entity.type === "collection" && i.value.title === "Drafts"
|
|
97
|
-
), Q = c(() => n.parentUids.length ?
|
|
97
|
+
), Q = c(() => n.parentUids.length ? f ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "12px"), X = c(() => n.parentUids.length ? f ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "0px"), Z = c(
|
|
98
98
|
() => {
|
|
99
99
|
var e;
|
|
100
|
-
return
|
|
100
|
+
return T[n.uid] || ((e = E.value) == null ? void 0 : e.uid) === n.uid && i.value.entity.examples.length > 1;
|
|
101
101
|
}
|
|
102
102
|
), _ = c(
|
|
103
103
|
() => {
|
|
104
104
|
var e;
|
|
105
105
|
return H.value[ve.Request] === "default" && ((e = E.value) == null ? void 0 : e.uid) === n.uid;
|
|
106
106
|
}
|
|
107
|
-
),
|
|
107
|
+
), I = le(null), P = c(() => {
|
|
108
108
|
let e = 0.5, t = 0.5;
|
|
109
|
-
if (!
|
|
110
|
-
const { draggingItem:
|
|
111
|
-
return !D[
|
|
112
|
-
}), ee = (e, t) => !(
|
|
113
|
-
e && (ye(["default"]).some((
|
|
109
|
+
if (!I.value) return { ceiling: e, floor: t };
|
|
110
|
+
const { draggingItem: r } = I.value;
|
|
111
|
+
return !D[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 };
|
|
112
|
+
}), ee = (e, t) => !(f || C[t.id] || D[e.id]), te = (e, t) => {
|
|
113
|
+
e && (ye(["default"]).some((o) => e[o]) ? F("newTab", t.title || "", t.entity.uid) : t.link && J.push(t.link));
|
|
114
114
|
};
|
|
115
|
-
function
|
|
115
|
+
function j() {
|
|
116
116
|
G.commandPalette.emit({
|
|
117
117
|
commandName: "Create Request",
|
|
118
118
|
metaData: {
|
|
@@ -124,63 +124,59 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
|
|
|
124
124
|
const ie = c(() => {
|
|
125
125
|
const { uid: e, watchModeStatus: t } = Y.value || {};
|
|
126
126
|
return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
|
|
127
|
-
}), se = c(() => i.value.title == "Drafts" && !
|
|
127
|
+
}), se = c(() => i.value.title == "Drafts" && !f && i.value.children.length > 0);
|
|
128
128
|
return (e, t) => {
|
|
129
|
-
const
|
|
130
|
-
return
|
|
129
|
+
const r = re("RequestSidebarItem", !0);
|
|
130
|
+
return d(), k("li", {
|
|
131
131
|
class: m(["relative flex flex-row", [
|
|
132
|
-
s(
|
|
132
|
+
s(f) && e.parentUids.length > 1 || !s(f) && 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" : ""
|
|
133
133
|
]])
|
|
134
134
|
}, [
|
|
135
|
-
|
|
135
|
+
h(s(ce), {
|
|
136
136
|
id: i.value.entity.uid,
|
|
137
137
|
ref_key: "draggableRef",
|
|
138
|
-
ref:
|
|
138
|
+
ref: I,
|
|
139
139
|
ceiling: P.value.ceiling,
|
|
140
140
|
class: "flex flex-1 flex-col gap-[.5px] text-sm",
|
|
141
141
|
floor: P.value.floor,
|
|
142
142
|
isDraggable: e.isDraggable,
|
|
143
143
|
isDroppable: e.isDroppable,
|
|
144
144
|
parentIds: e.parentUids,
|
|
145
|
-
onOnDragEnd: t[9] || (t[9] = (...
|
|
145
|
+
onOnDragEnd: t[9] || (t[9] = (...a) => e.$emit("onDragEnd", ...a))
|
|
146
146
|
}, {
|
|
147
|
-
default:
|
|
148
|
-
var
|
|
147
|
+
default: g(() => {
|
|
148
|
+
var a;
|
|
149
149
|
return [
|
|
150
|
-
i.value.link ? (
|
|
150
|
+
i.value.link ? (d(), v(s(ge), {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "group no-underline",
|
|
153
153
|
to: i.value.link,
|
|
154
|
-
onClick: t[1] || (t[1] =
|
|
155
|
-
(
|
|
154
|
+
onClick: t[1] || (t[1] = w(
|
|
155
|
+
(o) => te(o, i.value),
|
|
156
156
|
["prevent"]
|
|
157
157
|
))
|
|
158
158
|
}, {
|
|
159
|
-
default:
|
|
159
|
+
default: g(({ isExactActive: o }) => {
|
|
160
160
|
var p, u;
|
|
161
161
|
return [
|
|
162
162
|
l("div", {
|
|
163
|
-
class: m(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
class: m(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-0.5 py-1.5 pr-2 rounded w-full", [
|
|
164
|
+
B,
|
|
165
|
+
o || _.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
166
166
|
]])
|
|
167
167
|
}, [
|
|
168
|
-
l("span",
|
|
169
|
-
class: m(["line-clamp-3 font-medium w-full pl-2 word-break-break-word", {
|
|
170
|
-
"editable-sidebar-hover-item": !s(d)
|
|
171
|
-
}])
|
|
172
|
-
}, I(i.value.title), 3),
|
|
168
|
+
l("span", ke, M(i.value.title), 1),
|
|
173
169
|
l("div", we, [
|
|
174
|
-
l("div",
|
|
175
|
-
s(
|
|
170
|
+
l("div", qe, [
|
|
171
|
+
s(f) ? b("", !0) : (d(), v(s(q), {
|
|
176
172
|
key: 0,
|
|
177
|
-
class: m(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100
|
|
173
|
+
class: m(["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", {
|
|
178
174
|
flex: ((u = (p = e.menuItem) == null ? void 0 : p.item) == null ? void 0 : u.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
179
175
|
}]),
|
|
180
176
|
size: "sm",
|
|
181
177
|
type: "button",
|
|
182
178
|
variant: "ghost",
|
|
183
|
-
onClick: t[0] || (t[0] =
|
|
179
|
+
onClick: t[0] || (t[0] = w(
|
|
184
180
|
(x) => e.$emit("openMenu", {
|
|
185
181
|
item: i.value,
|
|
186
182
|
parentUids: e.parentUids,
|
|
@@ -190,8 +186,8 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
|
|
|
190
186
|
["stop", "prevent"]
|
|
191
187
|
))
|
|
192
188
|
}, {
|
|
193
|
-
default:
|
|
194
|
-
|
|
189
|
+
default: g(() => [
|
|
190
|
+
h(s(y), {
|
|
195
191
|
icon: "Ellipses",
|
|
196
192
|
size: "md"
|
|
197
193
|
})
|
|
@@ -199,150 +195,147 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
|
|
|
199
195
|
_: 1
|
|
200
196
|
}, 8, ["class"]))
|
|
201
197
|
]),
|
|
202
|
-
l("span",
|
|
203
|
-
t[10] || (t[10] =
|
|
198
|
+
l("span", Ue, [
|
|
199
|
+
t[10] || (t[10] = A(" ")),
|
|
204
200
|
t[11] || (t[11] = l("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
205
|
-
i.value.method ? (
|
|
201
|
+
i.value.method ? (d(), v(s(be), {
|
|
206
202
|
key: 0,
|
|
207
203
|
class: "font-bold",
|
|
208
204
|
method: i.value.method
|
|
209
|
-
}, null, 8, ["method"])) :
|
|
205
|
+
}, null, 8, ["method"])) : b("", !0)
|
|
210
206
|
])
|
|
211
207
|
])
|
|
212
208
|
], 2)
|
|
213
209
|
];
|
|
214
210
|
}),
|
|
215
211
|
_: 1
|
|
216
|
-
}, 8, ["to"])) : !s(
|
|
212
|
+
}, 8, ["to"])) : !s(f) || e.parentUids.length ? (d(), k("button", {
|
|
217
213
|
key: 1,
|
|
218
|
-
"aria-expanded": s(
|
|
219
|
-
class: m(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10",
|
|
214
|
+
"aria-expanded": s(T)[i.value.entity.uid],
|
|
215
|
+
class: m(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [B]]),
|
|
220
216
|
type: "button",
|
|
221
|
-
onClick: t[4] || (t[4] = (
|
|
217
|
+
onClick: t[4] || (t[4] = (o) => s(K)(i.value.entity.uid))
|
|
222
218
|
}, [
|
|
223
|
-
l("span",
|
|
224
|
-
|
|
219
|
+
l("span", Ce, [
|
|
220
|
+
ae(e.$slots, "leftIcon", {}, () => [
|
|
225
221
|
l("div", {
|
|
226
222
|
class: m({
|
|
227
|
-
"rotate-90": s(
|
|
223
|
+
"rotate-90": s(T)[i.value.entity.uid]
|
|
228
224
|
})
|
|
229
225
|
}, [
|
|
230
|
-
|
|
226
|
+
h(s(y), {
|
|
231
227
|
class: "text-c-3 text-sm",
|
|
232
228
|
icon: "ChevronRight",
|
|
233
229
|
size: "md"
|
|
234
230
|
})
|
|
235
231
|
], 2)
|
|
236
232
|
], !0),
|
|
237
|
-
t[12] || (t[12] =
|
|
233
|
+
t[12] || (t[12] = A(" "))
|
|
238
234
|
]),
|
|
239
|
-
l("div",
|
|
240
|
-
l("span",
|
|
241
|
-
|
|
242
|
-
"editable-sidebar-hover-item": !s(d)
|
|
243
|
-
}])
|
|
244
|
-
}, I(i.value.title), 3),
|
|
245
|
-
l("div", Re, [
|
|
235
|
+
l("div", Re, [
|
|
236
|
+
l("span", Te, M(i.value.title), 1),
|
|
237
|
+
l("div", Ie, [
|
|
246
238
|
l("div", {
|
|
247
|
-
class: m(["
|
|
248
|
-
flex:
|
|
249
|
-
|
|
239
|
+
class: m(["items-center opacity-0 gap-px group-hover:opacity-100 group-hover:flex group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
|
|
240
|
+
flex: e.menuItem.open,
|
|
241
|
+
hidden: !e.menuItem.open || ((a = e.menuItem.item) == null ? void 0 : a.entity.uid) !== i.value.entity.uid
|
|
250
242
|
}])
|
|
251
243
|
}, [
|
|
252
|
-
!s(
|
|
244
|
+
!s(f) && !O.value || O.value && se.value ? (d(), v(s(q), {
|
|
253
245
|
key: 0,
|
|
254
|
-
class: "px-0.5 py-0 hover:bg-b-3 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
|
|
246
|
+
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",
|
|
255
247
|
size: "sm",
|
|
256
248
|
variant: "ghost",
|
|
257
|
-
onClick: t[2] || (t[2] =
|
|
258
|
-
(
|
|
249
|
+
onClick: t[2] || (t[2] = w(
|
|
250
|
+
(o) => e.$emit("openMenu", {
|
|
259
251
|
item: i.value,
|
|
260
252
|
parentUids: e.parentUids,
|
|
261
|
-
targetRef:
|
|
253
|
+
targetRef: o.currentTarget.parentNode,
|
|
262
254
|
open: !0
|
|
263
255
|
}),
|
|
264
256
|
["stop", "prevent"]
|
|
265
257
|
))
|
|
266
258
|
}, {
|
|
267
|
-
default:
|
|
268
|
-
|
|
259
|
+
default: g(() => [
|
|
260
|
+
h(s(y), {
|
|
269
261
|
icon: "Ellipses",
|
|
270
262
|
size: "md"
|
|
271
263
|
})
|
|
272
264
|
]),
|
|
273
265
|
_: 1
|
|
274
|
-
})) :
|
|
275
|
-
|
|
276
|
-
|
|
266
|
+
})) : b("", !0),
|
|
267
|
+
s(f) ? b("", !0) : (d(), v(s(q), {
|
|
268
|
+
key: 1,
|
|
269
|
+
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",
|
|
277
270
|
size: "sm",
|
|
278
271
|
variant: "ghost",
|
|
279
|
-
onClick: t[3] || (t[3] =
|
|
272
|
+
onClick: t[3] || (t[3] = w((o) => j(), ["stop", "prevent"]))
|
|
280
273
|
}, {
|
|
281
|
-
default:
|
|
282
|
-
|
|
274
|
+
default: g(() => [
|
|
275
|
+
h(s(y), {
|
|
283
276
|
icon: "Add",
|
|
284
277
|
size: "md",
|
|
285
278
|
thickness: "2"
|
|
286
279
|
})
|
|
287
280
|
]),
|
|
288
281
|
_: 1
|
|
289
|
-
})
|
|
282
|
+
}))
|
|
290
283
|
], 2),
|
|
291
|
-
i.value.watchMode ? (
|
|
284
|
+
i.value.watchMode ? (d(), v(s(fe), {
|
|
292
285
|
key: 0,
|
|
293
286
|
side: "right",
|
|
294
287
|
sideOffset: 12
|
|
295
288
|
}, {
|
|
296
|
-
trigger:
|
|
297
|
-
|
|
298
|
-
class: m(["text-sm", ie.value]),
|
|
289
|
+
trigger: g(() => [
|
|
290
|
+
h(s(y), {
|
|
291
|
+
class: m(["ml-0.5 text-sm", ie.value]),
|
|
299
292
|
icon: "Watch",
|
|
300
293
|
size: "md",
|
|
301
294
|
thickness: "2"
|
|
302
295
|
}, null, 8, ["class"])
|
|
303
296
|
]),
|
|
304
|
-
content:
|
|
297
|
+
content: g(() => [
|
|
305
298
|
l("div", Me, [
|
|
306
|
-
l("div",
|
|
307
|
-
l("p",
|
|
299
|
+
l("div", Ee, [
|
|
300
|
+
l("p", $e, " Watching: " + M(i.value.documentUrl), 1)
|
|
308
301
|
])
|
|
309
302
|
])
|
|
310
303
|
]),
|
|
311
304
|
_: 1
|
|
312
|
-
})) :
|
|
305
|
+
})) : b("", !0),
|
|
313
306
|
t[13] || (t[13] = l("span", null, " ", -1))
|
|
314
307
|
])
|
|
315
308
|
])
|
|
316
|
-
],
|
|
317
|
-
Z.value ? (
|
|
318
|
-
(
|
|
319
|
-
key:
|
|
320
|
-
isDraggable: !s(C)[
|
|
309
|
+
], 10, De)) : b("", !0),
|
|
310
|
+
Z.value ? (d(), k("ul", ze, [
|
|
311
|
+
(d(!0), k(ue, null, de(i.value.children, (o) => (d(), v(r, {
|
|
312
|
+
key: o,
|
|
313
|
+
isDraggable: !s(C)[o],
|
|
321
314
|
isDroppable: ee,
|
|
322
315
|
menuItem: e.menuItem,
|
|
323
316
|
parentUids: [...e.parentUids, e.uid],
|
|
324
|
-
uid:
|
|
317
|
+
uid: o,
|
|
325
318
|
onNewTab: t[5] || (t[5] = (p, u) => e.$emit("newTab", p, u)),
|
|
326
319
|
onOnDragEnd: t[6] || (t[6] = (...p) => e.$emit("onDragEnd", ...p)),
|
|
327
320
|
onOpenMenu: t[7] || (t[7] = (p) => e.$emit("openMenu", p))
|
|
328
321
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
329
|
-
i.value.children.length === 0 ? (
|
|
322
|
+
i.value.children.length === 0 ? (d(), v(s(q), {
|
|
330
323
|
key: 0,
|
|
331
324
|
class: m(["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" : ""]),
|
|
332
325
|
variant: "ghost",
|
|
333
|
-
onClick: t[8] || (t[8] = (
|
|
326
|
+
onClick: t[8] || (t[8] = (o) => j())
|
|
334
327
|
}, {
|
|
335
|
-
default:
|
|
336
|
-
|
|
337
|
-
class: "
|
|
328
|
+
default: g(() => [
|
|
329
|
+
h(s(y), {
|
|
330
|
+
class: "mx-0.5 h-2.5 w-2.5",
|
|
338
331
|
icon: "Add",
|
|
339
332
|
thickness: "3"
|
|
340
333
|
}),
|
|
341
334
|
t[14] || (t[14] = l("span", null, "Add Request", -1))
|
|
342
335
|
]),
|
|
343
336
|
_: 1
|
|
344
|
-
}, 8, ["class"])) :
|
|
345
|
-
])) :
|
|
337
|
+
}, 8, ["class"])) : b("", !0)
|
|
338
|
+
])) : b("", !0)
|
|
346
339
|
];
|
|
347
340
|
}),
|
|
348
341
|
_: 3
|
|
@@ -352,5 +345,5 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
|
|
|
352
345
|
}
|
|
353
346
|
});
|
|
354
347
|
export {
|
|
355
|
-
|
|
348
|
+
Ye as default
|
|
356
349
|
};
|
|
@@ -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-78a00890"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -17,7 +17,7 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
|
|
|
17
17
|
a.commandPalette.emit({ commandName: "Create Request" });
|
|
18
18
|
}, y = (i) => {
|
|
19
19
|
i != null && i.createNew && v.name === "request" && f();
|
|
20
|
-
}, h = "2.2.
|
|
20
|
+
}, h = "2.2.11";
|
|
21
21
|
return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (r(), l("div", K, [
|
|
22
22
|
o("div", {
|
|
23
23
|
class: k(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
|
@@ -79,23 +79,23 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
|
|
|
79
79
|
e[5] || (e[5] = c(" Get Started ")),
|
|
80
80
|
s(p, { hotkey: "k" })
|
|
81
81
|
])) : m("", !0),
|
|
82
|
-
o("button", {
|
|
83
|
-
class: "flex items-center gap-1.5",
|
|
84
|
-
type: "button",
|
|
85
|
-
onClick: e[1] || (e[1] = (b) => t(a).executeRequest.emit())
|
|
86
|
-
}, [
|
|
87
|
-
e[6] || (e[6] = c(" Send Request ")),
|
|
88
|
-
s(p, { hotkey: "↵" })
|
|
89
|
-
]),
|
|
90
82
|
t(n) === "desktop" ? (r(), l("button", {
|
|
91
83
|
key: 1,
|
|
92
84
|
class: "flex items-center gap-1.5",
|
|
93
85
|
type: "button",
|
|
94
86
|
onClick: f
|
|
95
87
|
}, [
|
|
96
|
-
e[
|
|
88
|
+
e[6] || (e[6] = c(" New Request ")),
|
|
97
89
|
s(p, { hotkey: "N" })
|
|
98
|
-
])) : m("", !0)
|
|
90
|
+
])) : m("", !0),
|
|
91
|
+
o("button", {
|
|
92
|
+
class: "flex items-center gap-1.5",
|
|
93
|
+
type: "button",
|
|
94
|
+
onClick: e[1] || (e[1] = (b) => t(a).executeRequest.emit())
|
|
95
|
+
}, [
|
|
96
|
+
e[7] || (e[7] = c(" Send Request ")),
|
|
97
|
+
s(p, { hotkey: "↵" })
|
|
98
|
+
])
|
|
99
99
|
])
|
|
100
100
|
]));
|
|
101
101
|
}
|
|
@@ -73,7 +73,7 @@ const J = { class: "flex items-center text-sm w-[inherit]" }, K = { class: "font
|
|
|
73
73
|
}, 1032, ["onMousedown", "onTouchend"]),
|
|
74
74
|
_.value ? (m(), h(e(P), {
|
|
75
75
|
key: 0,
|
|
76
|
-
class: "z-
|
|
76
|
+
class: "z-overlay",
|
|
77
77
|
side: "bottom"
|
|
78
78
|
}, {
|
|
79
79
|
trigger: n(() => [
|
|
@@ -98,7 +98,7 @@ const J = { class: "flex items-center text-sm w-[inherit]" }, K = { class: "font
|
|
|
98
98
|
})
|
|
99
99
|
]),
|
|
100
100
|
content: n(() => t[6] || (t[6] = [
|
|
101
|
-
l("div", { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-
|
|
101
|
+
l("div", { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-context p-2 text-xxs leading-5 z-10 text-c-1" }, [
|
|
102
102
|
l("div", { class: "flex items-center text-c-2" }, [
|
|
103
103
|
l("span", null, "Only workspace cannot be deleted.")
|
|
104
104
|
])
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2.
|
|
21
|
+
"version": "2.2.11",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -169,19 +169,19 @@
|
|
|
169
169
|
"whatwg-mimetype": "^4.0.0",
|
|
170
170
|
"yaml": "^2.4.5",
|
|
171
171
|
"zod": "^3.23.8",
|
|
172
|
+
"@scalar/components": "0.13.4",
|
|
172
173
|
"@scalar/draggable": "0.1.7",
|
|
173
|
-
"@scalar/oas-utils": "0.2.86",
|
|
174
|
-
"@scalar/import": "0.2.4",
|
|
175
|
-
"@scalar/openapi-parser": "0.8.10",
|
|
176
|
-
"@scalar/object-utils": "1.1.12",
|
|
177
174
|
"@scalar/icons": "0.1.2",
|
|
175
|
+
"@scalar/import": "0.2.6",
|
|
176
|
+
"@scalar/object-utils": "1.1.12",
|
|
177
|
+
"@scalar/openapi-parser": "0.9.0",
|
|
178
178
|
"@scalar/openapi-types": "0.1.5",
|
|
179
|
-
"@scalar/
|
|
179
|
+
"@scalar/oas-utils": "0.2.87",
|
|
180
|
+
"@scalar/themes": "0.9.54",
|
|
180
181
|
"@scalar/types": "0.0.23",
|
|
181
|
-
"@scalar/
|
|
182
|
-
"@scalar/use-codemirror": "0.11.47",
|
|
182
|
+
"@scalar/postman-to-openapi": "0.1.10",
|
|
183
183
|
"@scalar/use-hooks": "0.1.7",
|
|
184
|
-
"@scalar/
|
|
184
|
+
"@scalar/use-codemirror": "0.11.48",
|
|
185
185
|
"@scalar/use-toasts": "0.7.7",
|
|
186
186
|
"@scalar/use-tooltip": "1.0.4"
|
|
187
187
|
},
|