@scalar/api-client 2.2.31 → 2.2.33
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 +36 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +9 -3
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +62 -54
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +13 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.js +7 -7
- package/dist/components/DataTable/DataTableCell.vue.js +6 -6
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +5 -5
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +72 -71
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +23 -22
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +61 -48
- package/dist/components/SideNav/SideNavLink.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +5 -5
- package/dist/components/Sidebar/SidebarList.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +12 -12
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +168 -127
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +336 -254
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +168 -127
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +169 -128
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +8 -7
- package/dist/libs/find-request.d.ts +2 -0
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.js +114 -116
- package/dist/routes.d.ts +1 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +12 -7
- package/dist/store/active-entities.d.ts +29 -27
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/request-example.d.ts +134 -134
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +26 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +171 -128
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +48 -46
- package/dist/store/tags.d.ts +24 -4
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +12 -12
- package/dist/views/Cookies/Cookies.vue2.js +12 -12
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +98 -97
- package/dist/views/Environment/EnvironmentModal.vue.js +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +6 -6
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +3 -3
- package/dist/views/Request/RequestSidebar.vue2.js +14 -14
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
- 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 +132 -125
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +12 -12
- package/dist/views/Servers/ServerForm.vue.d.ts +8 -1
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.js +28 -59
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +141 -53
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./RequestSidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const f = /* @__PURE__ */ o
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-91e6d7f8"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as me, useId as fe, reactive as be, ref as ve, watch as K, onMounted as he, onBeforeUnmount as Se, computed as
|
|
1
|
+
import { defineComponent as me, useId as fe, reactive as be, ref as ve, watch as K, onMounted as he, onBeforeUnmount as Se, computed as ge, openBlock as r, createElementBlock as k, Fragment as O, withDirectives as N, createVNode as m, unref as t, normalizeClass as f, createSlots as ke, withCtx as c, createElementVNode as n, createBlock as d, createCommentVNode as b, isRef as Re, withKeys as $, withModifiers as v, vShow as L, renderList as U, createTextVNode as D, toDisplayString as ye, nextTick as we } from "vue";
|
|
2
2
|
import xe from "../../assets/rabbit.ascii.js";
|
|
3
3
|
import Ie from "../../assets/rabbitjump.ascii.js";
|
|
4
4
|
import Ce from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
@@ -60,7 +60,7 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
|
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
62
62
|
const {
|
|
63
|
-
searchText:
|
|
63
|
+
searchText: g,
|
|
64
64
|
searchResultsWithPlaceholderResults: x,
|
|
65
65
|
selectedSearchResult: I,
|
|
66
66
|
onSearchResultClick: ae,
|
|
@@ -101,7 +101,7 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
|
-
const ue =
|
|
104
|
+
const ue = ge(() => {
|
|
105
105
|
var e;
|
|
106
106
|
const s = x.value[I.value];
|
|
107
107
|
return (e = s == null ? void 0 : s.item) != null && e.id ? `#search-input-${s.item.id}` : void 0;
|
|
@@ -125,17 +125,17 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
|
|
|
125
125
|
s && (T.add(a, s.uid), E(`/workspace/${(o = w.value) == null ? void 0 : o.uid}/request/${a.uid}`));
|
|
126
126
|
}
|
|
127
127
|
}, ce = () => {
|
|
128
|
-
S.value || (
|
|
128
|
+
S.value || (g.value = ""), S.value && we(() => {
|
|
129
129
|
var s;
|
|
130
130
|
(s = C.value) == null || s.focus();
|
|
131
131
|
}), S.value = !S.value;
|
|
132
132
|
};
|
|
133
|
-
return (s, e) => (r(),
|
|
133
|
+
return (s, e) => (r(), k(O, null, [
|
|
134
134
|
N(m(t(Le), {
|
|
135
135
|
class: f([s.isSidebarOpen ? "sidebar-active-width" : ""]),
|
|
136
136
|
isSidebarOpen: s.isSidebarOpen,
|
|
137
137
|
"onUpdate:isSidebarOpen": e[9] || (e[9] = (o) => s.$emit("update:isSidebarOpen", o))
|
|
138
|
-
},
|
|
138
|
+
}, ke({
|
|
139
139
|
content: c(() => [
|
|
140
140
|
n("div", Je, [
|
|
141
141
|
m(qe, {
|
|
@@ -144,7 +144,7 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
|
|
|
144
144
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => s.$emit("update:isSidebarOpen", o))
|
|
145
145
|
}, null, 8, ["class", "modelValue"]),
|
|
146
146
|
t(l) ? b("", !0) : (r(), d(t(Ue), { key: 0 })),
|
|
147
|
-
t(l) ? b("", !0) : (r(),
|
|
147
|
+
t(l) ? b("", !0) : (r(), k("span", Qe, " / ")),
|
|
148
148
|
t(l) ? b("", !0) : (r(), d(Ce, { key: 2 })),
|
|
149
149
|
n("button", {
|
|
150
150
|
class: "ml-auto",
|
|
@@ -161,8 +161,8 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
|
|
|
161
161
|
m(t(Ee), {
|
|
162
162
|
ref_key: "searchInputRef",
|
|
163
163
|
ref: C,
|
|
164
|
-
modelValue: t(
|
|
165
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) => Re(
|
|
164
|
+
modelValue: t(g),
|
|
165
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => Re(g) ? g.value = o : null),
|
|
166
166
|
"aria-activedescendant": ue.value,
|
|
167
167
|
"aria-controls": t(W),
|
|
168
168
|
sidebar: "",
|
|
@@ -177,7 +177,7 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
|
|
|
177
177
|
[L, S.value]
|
|
178
178
|
]),
|
|
179
179
|
n("div", {
|
|
180
|
-
class: f(["flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
180
|
+
class: f(["gap-1/2 flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
181
181
|
"pb-14": !t(l)
|
|
182
182
|
}]),
|
|
183
183
|
onDragenter: e[7] || (e[7] = v(() => {
|
|
@@ -185,7 +185,7 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
|
|
|
185
185
|
onDragover: e[8] || (e[8] = v(() => {
|
|
186
186
|
}, ["prevent"]))
|
|
187
187
|
}, [
|
|
188
|
-
t(
|
|
188
|
+
t(g) ? (r(), d(t(We), {
|
|
189
189
|
key: 0,
|
|
190
190
|
id: t(W),
|
|
191
191
|
"aria-label": "Search Results",
|
|
@@ -193,7 +193,7 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
|
|
|
193
193
|
noResults: !t(x).length
|
|
194
194
|
}, {
|
|
195
195
|
default: c(() => [
|
|
196
|
-
(r(!0),
|
|
196
|
+
(r(!0), k(O, null, U(t(x), (o, i) => (r(), d(t(ze), {
|
|
197
197
|
id: `#search-input-${o.item.id}`,
|
|
198
198
|
key: o.refIndex,
|
|
199
199
|
ref_for: !0,
|
|
@@ -218,8 +218,8 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
|
|
|
218
218
|
}, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
|
|
219
219
|
]),
|
|
220
220
|
_: 1
|
|
221
|
-
}, 8, ["id", "noResults"])) : (r(),
|
|
222
|
-
(r(!0),
|
|
221
|
+
}, 8, ["id", "noResults"])) : (r(), k("nav", Ye, [
|
|
222
|
+
(r(!0), k(O, null, U(t(p), (o) => {
|
|
223
223
|
var i;
|
|
224
224
|
return r(), d(Ne, {
|
|
225
225
|
key: o.uid,
|
|
@@ -134,7 +134,7 @@ declare function __VLS_template(): {
|
|
|
134
134
|
};
|
|
135
135
|
}) | null;
|
|
136
136
|
};
|
|
137
|
-
rootEl:
|
|
137
|
+
rootEl: any;
|
|
138
138
|
};
|
|
139
139
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
140
140
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -148,7 +148,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
148
148
|
}>, {
|
|
149
149
|
isDroppable: boolean | ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => boolean);
|
|
150
150
|
isDraggable: boolean;
|
|
151
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
151
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
152
152
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
153
153
|
export default _default;
|
|
154
154
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -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":"AAuhBA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEzE,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;WAqgBT,OAAO,IAA6B;;oBA1wBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAtDlB,KA7e2B;;;;;;;oCA6e3B,KAxemD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA8xBvB,GAC5B,8CAC0C,GAAG,yBACnC,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4gBlD;AAmCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;iBA90BH,OAAO;6EAs1BvB,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 a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-c8c242e6"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useActiveEntities as
|
|
3
|
-
import { ScalarButton as D, ScalarIcon as x, ScalarTooltip as
|
|
4
|
-
import { Draggable as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
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 m, unref as n, createVNode as y, withCtx as g, createBlock as v, withModifiers as q, createElementVNode as o, toDisplayString as $, createCommentVNode as c, createTextVNode as W, renderSlot as fe, Fragment as ce, renderList as me } from "vue";
|
|
2
|
+
import { useActiveEntities as ge } from "../../store/active-entities.js";
|
|
3
|
+
import { ScalarButton as D, ScalarIcon as x, ScalarTooltip as ve } from "@scalar/components";
|
|
4
|
+
import { Draggable as be } from "@scalar/draggable";
|
|
5
|
+
import { shouldIgnoreEntity as F } from "@scalar/oas-utils/helpers";
|
|
6
|
+
import { useRouter as he, RouterLink as ye } from "vue-router";
|
|
7
|
+
import { PathId as xe } from "../../routes.js";
|
|
8
|
+
import ke from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
9
|
+
import { useSidebar as we } from "../../hooks/useSidebar.js";
|
|
10
|
+
import { getModifiers as Ue } from "../../libs/hot-keys.js";
|
|
11
|
+
import { useWorkspace as qe } from "../../store/store.js";
|
|
12
|
+
const De = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { class: "flex flex-row gap-1 items-center" }, Re = { class: "relative" }, Ie = { class: "flex items-start" }, Te = ["aria-expanded"], Me = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Ee = { class: "flex flex-1 flex-row justify-between" }, $e = { class: "break-all line-clamp-1 font-medium text-left w-full" }, ze = { class: "relative flex justify-end h-fit" }, Se = { 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" }, Ne = { class: "flex items-center text-c-2" }, Oe = { class: "text-pretty break-all" }, Pe = { key: 2 }, Y = "hover:bg-sidebar-active-b indent-padding-left", Ke = /* @__PURE__ */ ae({
|
|
12
13
|
__name: "RequestSidebarItem",
|
|
13
14
|
props: {
|
|
14
15
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -18,25 +19,25 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
18
19
|
menuItem: {}
|
|
19
20
|
},
|
|
20
21
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
22
|
+
setup(H, { emit: L }) {
|
|
23
|
+
ue((e) => ({
|
|
24
|
+
"536506c3": _.value,
|
|
25
|
+
"2bf0d41b": ee.value
|
|
25
26
|
}));
|
|
26
|
-
const s =
|
|
27
|
+
const s = H, G = L, { activeCollection: J, activeRequest: z, activeRouterParams: K, activeWorkspace: k } = ge(), {
|
|
27
28
|
collections: C,
|
|
28
|
-
tags:
|
|
29
|
+
tags: S,
|
|
29
30
|
isReadOnly: p,
|
|
30
|
-
requests:
|
|
31
|
-
requestExamples:
|
|
31
|
+
requests: R,
|
|
32
|
+
requestExamples: I,
|
|
32
33
|
collectionMutators: T,
|
|
33
|
-
tagMutators:
|
|
34
|
-
requestMutators:
|
|
35
|
-
requestExampleMutators:
|
|
36
|
-
events:
|
|
37
|
-
} =
|
|
34
|
+
tagMutators: N,
|
|
35
|
+
requestMutators: O,
|
|
36
|
+
requestExampleMutators: P,
|
|
37
|
+
events: Q
|
|
38
|
+
} = qe(), X = he(), { collapsedSidebarFolders: M, toggleSidebarFolder: Z } = we(), i = f(() => {
|
|
38
39
|
var r, d, b, w;
|
|
39
|
-
const e = C[s.uid], t =
|
|
40
|
+
const e = C[s.uid], t = S[s.uid], l = R[s.uid], a = I[s.uid];
|
|
40
41
|
return e ? {
|
|
41
42
|
title: ((r = e.info) == null ? void 0 : r.title) ?? "Unknown title",
|
|
42
43
|
entity: e,
|
|
@@ -46,8 +47,8 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
46
47
|
documentUrl: e.documentUrl,
|
|
47
48
|
watchMode: e.watchMode,
|
|
48
49
|
warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
|
|
49
|
-
edit: (h,
|
|
50
|
-
T.edit(e.uid, "info.title", h),
|
|
50
|
+
edit: (h, V) => {
|
|
51
|
+
T.edit(e.uid, "info.title", h), V && T.edit(e.uid, "x-scalar-icon", V);
|
|
51
52
|
},
|
|
52
53
|
delete: () => {
|
|
53
54
|
k.value && T.delete(e, k.value);
|
|
@@ -58,27 +59,27 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
58
59
|
resourceTitle: "Tag",
|
|
59
60
|
children: t.children,
|
|
60
61
|
warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
|
|
61
|
-
edit: (h) =>
|
|
62
|
+
edit: (h) => N.edit(t.uid, "name", h),
|
|
62
63
|
delete: () => {
|
|
63
|
-
s.parentUids[0] &&
|
|
64
|
+
s.parentUids[0] && N.delete(t, s.parentUids[0]);
|
|
64
65
|
}
|
|
65
|
-
} :
|
|
66
|
-
title:
|
|
66
|
+
} : l ? {
|
|
67
|
+
title: l.summary ?? l.path,
|
|
67
68
|
link: {
|
|
68
69
|
name: "request",
|
|
69
70
|
params: {
|
|
70
71
|
workspace: (d = k.value) == null ? void 0 : d.uid,
|
|
71
|
-
request:
|
|
72
|
+
request: l.uid
|
|
72
73
|
}
|
|
73
74
|
},
|
|
74
|
-
method:
|
|
75
|
-
entity:
|
|
75
|
+
method: l.method,
|
|
76
|
+
entity: l,
|
|
76
77
|
resourceTitle: "Request",
|
|
77
78
|
warning: "This cannot be undone. You’re about to delete the request.",
|
|
78
|
-
children:
|
|
79
|
-
edit: (h) =>
|
|
79
|
+
children: l.examples.slice(1),
|
|
80
|
+
edit: (h) => O.edit(l.uid, "summary", h),
|
|
80
81
|
delete: () => {
|
|
81
|
-
s.parentUids[0] &&
|
|
82
|
+
s.parentUids[0] && O.delete(l, s.parentUids[0]);
|
|
82
83
|
}
|
|
83
84
|
} : a ? {
|
|
84
85
|
title: a.name,
|
|
@@ -90,13 +91,13 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
90
91
|
examples: a.uid
|
|
91
92
|
}
|
|
92
93
|
},
|
|
93
|
-
method: (w =
|
|
94
|
+
method: (w = R[a.requestUid]) == null ? void 0 : w.method,
|
|
94
95
|
entity: a,
|
|
95
96
|
resourceTitle: "Example",
|
|
96
97
|
warning: "This cannot be undone. You’re about to delete the example from the request.",
|
|
97
98
|
children: [],
|
|
98
|
-
edit: (h) =>
|
|
99
|
-
delete: () =>
|
|
99
|
+
edit: (h) => P.edit(a.uid, "name", h),
|
|
100
|
+
delete: () => P.delete(a)
|
|
100
101
|
} : {
|
|
101
102
|
title: "Unknown",
|
|
102
103
|
entity: {
|
|
@@ -110,28 +111,28 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
110
111
|
delete: () => {
|
|
111
112
|
}
|
|
112
113
|
};
|
|
113
|
-
}),
|
|
114
|
+
}), j = f(
|
|
114
115
|
() => i.value.entity.type === "collection" && i.value.title === "Drafts"
|
|
115
|
-
),
|
|
116
|
+
), _ = f(() => s.parentUids.length ? p ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "12px"), ee = f(() => s.parentUids.length ? p ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "0px"), te = f(
|
|
116
117
|
() => {
|
|
117
118
|
var e;
|
|
118
|
-
return
|
|
119
|
+
return M[s.uid] || ((e = z.value) == null ? void 0 : e.uid) === s.uid && i.value.entity.examples.length > 1;
|
|
119
120
|
}
|
|
120
|
-
),
|
|
121
|
+
), ie = f(
|
|
121
122
|
() => {
|
|
122
123
|
var e;
|
|
123
|
-
return
|
|
124
|
+
return K.value[xe.Request] === "default" && ((e = z.value) == null ? void 0 : e.uid) === s.uid;
|
|
124
125
|
}
|
|
125
|
-
),
|
|
126
|
+
), E = de(null), A = f(() => {
|
|
126
127
|
let e = 0.5, t = 0.5;
|
|
127
|
-
if (!
|
|
128
|
-
const { draggingItem:
|
|
129
|
-
return !C[
|
|
130
|
-
}),
|
|
131
|
-
e && (
|
|
128
|
+
if (!E.value) return { ceiling: e, floor: t };
|
|
129
|
+
const { draggingItem: l } = E.value;
|
|
130
|
+
return !C[l == null ? void 0 : l.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 || I[t.id] || C[e.id]), se = (e, t) => {
|
|
132
|
+
e && (Ue(["default"]).some((r) => e[r]) ? G("newTab", t.title || "", t.entity.uid) : t.link && X.push(t.link));
|
|
132
133
|
};
|
|
133
|
-
function
|
|
134
|
-
|
|
134
|
+
function B() {
|
|
135
|
+
Q.commandPalette.emit({
|
|
135
136
|
commandName: "Create Request",
|
|
136
137
|
metaData: {
|
|
137
138
|
itemUid: s.uid,
|
|
@@ -139,56 +140,62 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
139
140
|
}
|
|
140
141
|
});
|
|
141
142
|
}
|
|
142
|
-
const
|
|
143
|
-
const { uid: e, watchModeStatus: t } =
|
|
143
|
+
const re = f(() => {
|
|
144
|
+
const { uid: e, watchModeStatus: t } = J.value || {};
|
|
144
145
|
return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
|
|
145
|
-
}),
|
|
146
|
+
}), oe = f(() => i.value.title == "Drafts" && !p && i.value.children.length > 0), le = f(() => {
|
|
147
|
+
const e = R[s.uid];
|
|
148
|
+
if (e) return !F(e);
|
|
149
|
+
const t = S[s.uid];
|
|
150
|
+
return t ? !F(t) : !0;
|
|
151
|
+
});
|
|
146
152
|
return (e, t) => {
|
|
147
|
-
const
|
|
148
|
-
return u(), U("li", {
|
|
149
|
-
|
|
153
|
+
const l = pe("RequestSidebarItem", !0);
|
|
154
|
+
return le.value ? (u(), U("li", {
|
|
155
|
+
key: 0,
|
|
156
|
+
class: m(["relative flex flex-row", [
|
|
150
157
|
n(p) && e.parentUids.length > 1 || !n(p) && 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" : ""
|
|
151
158
|
]])
|
|
152
159
|
}, [
|
|
153
|
-
y(n(
|
|
160
|
+
y(n(be), {
|
|
154
161
|
id: i.value.entity.uid,
|
|
155
162
|
ref_key: "draggableRef",
|
|
156
|
-
ref:
|
|
157
|
-
ceiling:
|
|
158
|
-
class: "flex flex-1 flex-col gap-
|
|
159
|
-
floor:
|
|
163
|
+
ref: E,
|
|
164
|
+
ceiling: A.value.ceiling,
|
|
165
|
+
class: "flex flex-1 flex-col gap-1/2 text-sm",
|
|
166
|
+
floor: A.value.floor,
|
|
160
167
|
isDraggable: e.isDraggable,
|
|
161
168
|
isDroppable: e.isDroppable,
|
|
162
169
|
parentIds: e.parentUids,
|
|
163
170
|
onOnDragEnd: t[9] || (t[9] = (...a) => e.$emit("onDragEnd", ...a))
|
|
164
171
|
}, {
|
|
165
|
-
default:
|
|
172
|
+
default: g(() => {
|
|
166
173
|
var a;
|
|
167
174
|
return [
|
|
168
|
-
i.value.link ? (u(), v(n(
|
|
175
|
+
i.value.link ? (u(), v(n(ye), {
|
|
169
176
|
key: 0,
|
|
170
177
|
class: "group no-underline",
|
|
171
178
|
to: i.value.link,
|
|
172
179
|
onClick: t[1] || (t[1] = q(
|
|
173
|
-
(r) =>
|
|
180
|
+
(r) => se(r, i.value),
|
|
174
181
|
["prevent"]
|
|
175
182
|
))
|
|
176
183
|
}, {
|
|
177
|
-
default:
|
|
184
|
+
default: g(({ isExactActive: r }) => {
|
|
178
185
|
var d, b;
|
|
179
186
|
return [
|
|
180
|
-
|
|
181
|
-
class:
|
|
182
|
-
|
|
183
|
-
r ||
|
|
187
|
+
o("div", {
|
|
188
|
+
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", [
|
|
189
|
+
Y,
|
|
190
|
+
r || ie.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
184
191
|
]])
|
|
185
192
|
}, [
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
n(p) ?
|
|
193
|
+
o("span", De, $(i.value.title), 1),
|
|
194
|
+
o("div", Ce, [
|
|
195
|
+
o("div", Re, [
|
|
196
|
+
n(p) ? c("", !0) : (u(), v(n(D), {
|
|
190
197
|
key: 0,
|
|
191
|
-
class:
|
|
198
|
+
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", {
|
|
192
199
|
flex: ((b = (d = e.menuItem) == null ? void 0 : d.item) == null ? void 0 : b.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
193
200
|
}]),
|
|
194
201
|
size: "sm",
|
|
@@ -204,7 +211,7 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
204
211
|
["stop", "prevent"]
|
|
205
212
|
))
|
|
206
213
|
}, {
|
|
207
|
-
default:
|
|
214
|
+
default: g(() => [
|
|
208
215
|
y(n(x), {
|
|
209
216
|
icon: "Ellipses",
|
|
210
217
|
size: "md"
|
|
@@ -213,14 +220,14 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
213
220
|
_: 1
|
|
214
221
|
}, 8, ["class"]))
|
|
215
222
|
]),
|
|
216
|
-
|
|
217
|
-
t[10] || (t[10] =
|
|
218
|
-
t[11] || (t[11] =
|
|
219
|
-
i.value.method ? (u(), v(n(
|
|
223
|
+
o("span", Ie, [
|
|
224
|
+
t[10] || (t[10] = W(" ")),
|
|
225
|
+
t[11] || (t[11] = o("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
226
|
+
i.value.method ? (u(), v(n(ke), {
|
|
220
227
|
key: 0,
|
|
221
228
|
class: "font-bold",
|
|
222
229
|
method: i.value.method
|
|
223
|
-
}, null, 8, ["method"])) :
|
|
230
|
+
}, null, 8, ["method"])) : c("", !0)
|
|
224
231
|
])
|
|
225
232
|
])
|
|
226
233
|
], 2)
|
|
@@ -229,16 +236,16 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
229
236
|
_: 1
|
|
230
237
|
}, 8, ["to"])) : !n(p) || e.parentUids.length ? (u(), U("button", {
|
|
231
238
|
key: 1,
|
|
232
|
-
"aria-expanded": n(
|
|
233
|
-
class:
|
|
239
|
+
"aria-expanded": n(M)[i.value.entity.uid],
|
|
240
|
+
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", [Y]]),
|
|
234
241
|
type: "button",
|
|
235
|
-
onClick: t[4] || (t[4] = (r) => n(
|
|
242
|
+
onClick: t[4] || (t[4] = (r) => n(Z)(i.value.entity.uid))
|
|
236
243
|
}, [
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
class:
|
|
241
|
-
"rotate-90": n(
|
|
244
|
+
o("span", Me, [
|
|
245
|
+
fe(e.$slots, "leftIcon", {}, () => [
|
|
246
|
+
o("div", {
|
|
247
|
+
class: m({
|
|
248
|
+
"rotate-90": n(M)[i.value.entity.uid]
|
|
242
249
|
})
|
|
243
250
|
}, [
|
|
244
251
|
y(n(x), {
|
|
@@ -248,18 +255,18 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
248
255
|
})
|
|
249
256
|
], 2)
|
|
250
257
|
], !0),
|
|
251
|
-
t[12] || (t[12] =
|
|
258
|
+
t[12] || (t[12] = W(" "))
|
|
252
259
|
]),
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
class:
|
|
260
|
+
o("div", Ee, [
|
|
261
|
+
o("span", $e, $(i.value.title), 1),
|
|
262
|
+
o("div", ze, [
|
|
263
|
+
o("div", {
|
|
264
|
+
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", {
|
|
258
265
|
flex: e.menuItem.open,
|
|
259
266
|
hidden: !e.menuItem.open || ((a = e.menuItem.item) == null ? void 0 : a.entity.uid) !== i.value.entity.uid
|
|
260
267
|
}])
|
|
261
268
|
}, [
|
|
262
|
-
!n(p) && !
|
|
269
|
+
!n(p) && !j.value || j.value && oe.value ? (u(), v(n(D), {
|
|
263
270
|
key: 0,
|
|
264
271
|
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",
|
|
265
272
|
size: "sm",
|
|
@@ -274,22 +281,22 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
274
281
|
["stop", "prevent"]
|
|
275
282
|
))
|
|
276
283
|
}, {
|
|
277
|
-
default:
|
|
284
|
+
default: g(() => [
|
|
278
285
|
y(n(x), {
|
|
279
286
|
icon: "Ellipses",
|
|
280
287
|
size: "md"
|
|
281
288
|
})
|
|
282
289
|
]),
|
|
283
290
|
_: 1
|
|
284
|
-
})) :
|
|
285
|
-
n(p) ?
|
|
291
|
+
})) : c("", !0),
|
|
292
|
+
n(p) ? c("", !0) : (u(), v(n(D), {
|
|
286
293
|
key: 1,
|
|
287
294
|
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",
|
|
288
295
|
size: "sm",
|
|
289
296
|
variant: "ghost",
|
|
290
|
-
onClick: t[3] || (t[3] = q((r) =>
|
|
297
|
+
onClick: t[3] || (t[3] = q((r) => B(), ["stop", "prevent"]))
|
|
291
298
|
}, {
|
|
292
|
-
default:
|
|
299
|
+
default: g(() => [
|
|
293
300
|
y(n(x), {
|
|
294
301
|
icon: "Add",
|
|
295
302
|
size: "md",
|
|
@@ -299,37 +306,37 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
299
306
|
_: 1
|
|
300
307
|
}))
|
|
301
308
|
], 2),
|
|
302
|
-
i.value.watchMode ? (u(), v(n(
|
|
309
|
+
i.value.watchMode ? (u(), v(n(ve), {
|
|
303
310
|
key: 0,
|
|
304
311
|
side: "right",
|
|
305
312
|
sideOffset: 12
|
|
306
313
|
}, {
|
|
307
|
-
trigger:
|
|
314
|
+
trigger: g(() => [
|
|
308
315
|
y(n(x), {
|
|
309
|
-
class:
|
|
316
|
+
class: m(["ml-0.5 text-sm", re.value]),
|
|
310
317
|
icon: "Watch",
|
|
311
318
|
size: "md",
|
|
312
319
|
thickness: "2"
|
|
313
320
|
}, null, 8, ["class"])
|
|
314
321
|
]),
|
|
315
|
-
content:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
322
|
+
content: g(() => [
|
|
323
|
+
o("div", Se, [
|
|
324
|
+
o("div", Ne, [
|
|
325
|
+
o("p", Oe, " Watching: " + $(i.value.documentUrl), 1)
|
|
319
326
|
])
|
|
320
327
|
])
|
|
321
328
|
]),
|
|
322
329
|
_: 1
|
|
323
|
-
})) :
|
|
324
|
-
t[13] || (t[13] =
|
|
330
|
+
})) : c("", !0),
|
|
331
|
+
t[13] || (t[13] = o("span", null, " ", -1))
|
|
325
332
|
])
|
|
326
333
|
])
|
|
327
|
-
], 10,
|
|
328
|
-
|
|
329
|
-
(u(!0), U(
|
|
334
|
+
], 10, Te)) : c("", !0),
|
|
335
|
+
te.value ? (u(), U("ul", Pe, [
|
|
336
|
+
(u(!0), U(ce, null, me(i.value.children, (r) => (u(), v(l, {
|
|
330
337
|
key: r,
|
|
331
|
-
isDraggable: !n(
|
|
332
|
-
isDroppable:
|
|
338
|
+
isDraggable: !n(I)[r],
|
|
339
|
+
isDroppable: ne,
|
|
333
340
|
menuItem: e.menuItem,
|
|
334
341
|
parentUids: [...e.parentUids, e.uid],
|
|
335
342
|
uid: r,
|
|
@@ -339,29 +346,29 @@ const Ue = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, qe = { c
|
|
|
339
346
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
340
347
|
i.value.children.length === 0 ? (u(), v(n(D), {
|
|
341
348
|
key: 0,
|
|
342
|
-
class:
|
|
349
|
+
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" : ""]),
|
|
343
350
|
variant: "ghost",
|
|
344
|
-
onClick: t[8] || (t[8] = (r) =>
|
|
351
|
+
onClick: t[8] || (t[8] = (r) => B())
|
|
345
352
|
}, {
|
|
346
|
-
default:
|
|
353
|
+
default: g(() => [
|
|
347
354
|
y(n(x), {
|
|
348
355
|
class: "mx-0.5 h-2.5 w-2.5",
|
|
349
356
|
icon: "Add",
|
|
350
357
|
thickness: "3"
|
|
351
358
|
}),
|
|
352
|
-
t[14] || (t[14] =
|
|
359
|
+
t[14] || (t[14] = o("span", null, "Add Request", -1))
|
|
353
360
|
]),
|
|
354
361
|
_: 1
|
|
355
|
-
}, 8, ["class"])) :
|
|
356
|
-
])) :
|
|
362
|
+
}, 8, ["class"])) : c("", !0)
|
|
363
|
+
])) : c("", !0)
|
|
357
364
|
];
|
|
358
365
|
}),
|
|
359
366
|
_: 3
|
|
360
367
|
}, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
|
|
361
|
-
], 2);
|
|
368
|
+
], 2)) : c("", !0);
|
|
362
369
|
};
|
|
363
370
|
}
|
|
364
371
|
});
|
|
365
372
|
export {
|
|
366
|
-
|
|
373
|
+
Ke as default
|
|
367
374
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSubpageHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSubpageHeader.vue"],"names":[],"mappings":"AA4GA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;;;AA6OF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./RequestSubpageHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-56f2e5e8"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|