@scalar/api-client 2.1.17 → 2.1.19
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 +43 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +5 -1
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +78 -75
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +6 -6
- package/dist/components/CodeInput/CodeInput.vue.d.ts +6 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +57 -49
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +3 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +13 -11
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +0 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.js +36 -38
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +100 -80
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +7 -7
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +42 -42
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +19 -3
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +27 -14
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -8
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +39 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.js +7 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +88 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue2.js +37 -26
- package/dist/components/SideNav/SideNavLink.vue.d.ts +2 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +10 -11
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +24 -3
- 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 +26 -22
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +4 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +35 -32
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +11 -11
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/hooks/useDarkModeState.d.ts +4 -3
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.js +36 -21
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +34 -41
- package/dist/layouts/App/create-api-client-app.d.ts +35 -32
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
- package/dist/layouts/Modal/create-api-client-modal.d.ts +70 -64
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +35 -42
- package/dist/layouts/Web/create-api-client-web.d.ts +35 -32
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +35 -32
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +1 -1
- package/dist/libs/extractAttachmentFilename.d.ts +2 -0
- package/dist/libs/extractAttachmentFilename.d.ts.map +1 -0
- package/dist/libs/extractAttachmentFilename.js +20 -0
- package/dist/libs/getOpenApiDocumentDetails.d.ts +10 -0
- package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -0
- package/dist/libs/getOpenApiDocumentDetails.js +40 -0
- package/dist/libs/importers/curl.d.ts +3 -0
- package/dist/libs/importers/curl.d.ts.map +1 -0
- package/dist/libs/importers/curl.js +61 -0
- package/dist/libs/importers/index.d.ts +2 -0
- package/dist/libs/importers/index.d.ts.map +1 -0
- package/dist/libs/importers/index.js +4 -0
- package/dist/libs/index.d.ts +2 -2
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +22 -22
- package/dist/libs/isUrl.d.ts +1 -1
- package/dist/libs/isUrl.d.ts.map +1 -1
- package/dist/libs/isUrl.js +4 -3
- package/dist/libs/parse-curl.d.ts +12 -0
- package/dist/libs/parse-curl.d.ts.map +1 -0
- package/dist/libs/parse-curl.js +70 -0
- package/dist/router.d.ts +2 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +33 -24
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +21 -26
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.d.ts +1 -0
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +2 -1
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store.d.ts +70 -64
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +126 -119
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +18 -18
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +9 -9
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +146 -96
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +4 -4
- 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 +2 -2
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +49 -49
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +2 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +4 -4
- package/dist/views/Request/RequestSubpageHeader.vue2.js +17 -15
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +63 -55
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +2 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +14 -14
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
- package/dist/views/Settings/Settings.vue.d.ts +4 -0
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -0
- package/dist/views/Settings/Settings.vue.js +4 -0
- package/dist/views/Settings/Settings.vue2.js +59 -0
- package/dist/{components/DarkModeToggle/DarkModeIconToggle.vue.d.ts → views/Settings/SettingsGeneral.vue.d.ts} +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -0
- package/dist/views/Settings/SettingsGeneral.vue.js +124 -0
- package/dist/views/Settings/SettingsGeneral.vue2.js +4 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts +3 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +1 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.js +78 -0
- package/dist/views/Settings/SettingsGeneralMode.vue2.js +4 -0
- package/package.json +60 -36
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +0 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +0 -31
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue2.js +0 -4
- package/dist/components/DarkModeToggle/index.d.ts +0 -2
- package/dist/components/DarkModeToggle/index.d.ts.map +0 -1
- package/dist/components/DarkModeToggle/index.js +0 -4
- package/dist/components/ScreenReader.vue.js +0 -7
- package/dist/components/ScreenReader.vue2.js +0 -18
- package/dist/libs/getOpenApiDocumentVersion.d.ts +0 -8
- package/dist/libs/getOpenApiDocumentVersion.d.ts.map +0 -1
- package/dist/libs/getOpenApiDocumentVersion.js +0 -20
- package/dist/libs/isDocument.d.ts +0 -3
- package/dist/libs/isDocument.d.ts.map +0 -1
- package/dist/libs/isDocument.js +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as te, useCssVars as ie, computed as c, ref as ne, resolveComponent as re, openBlock as p, createElementBlock as w, normalizeClass as m, unref as n, createVNode as h, withCtx as y, createBlock as b, withModifiers as R, createElementVNode as
|
|
2
|
-
import { PathId as
|
|
1
|
+
import { defineComponent as te, useCssVars as ie, computed as c, ref as ne, resolveComponent as re, openBlock as p, createElementBlock as w, normalizeClass as m, unref as n, createVNode as h, withCtx as y, createBlock as b, withModifiers as R, createElementVNode as u, toDisplayString as j, createCommentVNode as g, createTextVNode as z, renderSlot as le, Fragment as se, renderList as ae, pushScopeId as oe, popScopeId as ue } from "vue";
|
|
2
|
+
import { PathId as de } from "../../router.js";
|
|
3
3
|
import { ScalarButton as $, ScalarIcon as q } from "@scalar/components";
|
|
4
4
|
import { Draggable as pe } from "@scalar/draggable";
|
|
5
5
|
import { RouterLink as fe } from "vue-router";
|
|
@@ -8,7 +8,7 @@ import { useSidebar as ce } from "../../hooks/useSidebar.js";
|
|
|
8
8
|
import { getModifiers as be } from "../../libs/event-busses/hot-keys-bus.js";
|
|
9
9
|
import { useWorkspace as ge } from "../../store/store.js";
|
|
10
10
|
import { commandPaletteBus as ve } from "../../libs/event-busses/command-palette-bus.js";
|
|
11
|
-
const V = (v) => (oe("data-v-
|
|
11
|
+
const V = (v) => (oe("data-v-a2f84453"), v = v(), ue(), v), he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relative" }, xe = { class: "flex items-start" }, ke = { class: "flex h-5 items-center justify-center max-w-[14px]" }, we = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, qe = { class: "relative flex h-fit" }, Ue = /* @__PURE__ */ V(() => /* @__PURE__ */ u("span", null, " ", -1)), De = { key: 2 }, Ce = /* @__PURE__ */ V(() => /* @__PURE__ */ u("span", null, "Add Request", -1)), P = "hover:bg-sidebar-active-b indent-padding-left", je = /* @__PURE__ */ te({
|
|
12
12
|
__name: "RequestSidebarItem",
|
|
13
13
|
props: {
|
|
14
14
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -20,8 +20,8 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
20
20
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
21
21
|
setup(v, { emit: F }) {
|
|
22
22
|
ie((e) => ({
|
|
23
|
-
|
|
24
|
-
"
|
|
23
|
+
53291891: J.value,
|
|
24
|
+
"247670e6": K.value
|
|
25
25
|
}));
|
|
26
26
|
const r = v, Y = F, {
|
|
27
27
|
activeRequest: T,
|
|
@@ -33,12 +33,12 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
33
33
|
requests: M,
|
|
34
34
|
requestExamples: D,
|
|
35
35
|
collectionMutators: C,
|
|
36
|
-
tagMutators:
|
|
37
|
-
requestMutators:
|
|
38
|
-
requestExampleMutators:
|
|
36
|
+
tagMutators: E,
|
|
37
|
+
requestMutators: S,
|
|
38
|
+
requestExampleMutators: N,
|
|
39
39
|
router: W
|
|
40
|
-
} = ge(), { collapsedSidebarFolders:
|
|
41
|
-
var s,
|
|
40
|
+
} = ge(), { collapsedSidebarFolders: O, toggleSidebarFolder: H } = ce(), i = c(() => {
|
|
41
|
+
var s, d;
|
|
42
42
|
const e = U[r.uid], t = L[r.uid], l = M[r.uid], a = D[r.uid];
|
|
43
43
|
return e ? {
|
|
44
44
|
title: ((s = e.info) == null ? void 0 : s.title) ?? "Unknown title",
|
|
@@ -57,8 +57,8 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
57
57
|
resourceTitle: "Tag",
|
|
58
58
|
children: t.children,
|
|
59
59
|
warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
|
|
60
|
-
edit: (o) =>
|
|
61
|
-
delete: () =>
|
|
60
|
+
edit: (o) => E.edit(t.uid, "name", o),
|
|
61
|
+
delete: () => E.delete(t, r.parentUids[0])
|
|
62
62
|
} : l ? {
|
|
63
63
|
title: l.summary ?? [l.method, l.path].join(" - "),
|
|
64
64
|
link: `/workspace/${x.value.uid}/request/${l.uid}`,
|
|
@@ -67,32 +67,32 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
67
67
|
resourceTitle: "Request",
|
|
68
68
|
warning: "This cannot be undone. You’re about to delete the request.",
|
|
69
69
|
children: l.examples,
|
|
70
|
-
edit: (o) =>
|
|
71
|
-
delete: () =>
|
|
70
|
+
edit: (o) => S.edit(l.uid, "summary", o),
|
|
71
|
+
delete: () => S.delete(l, r.parentUids[0])
|
|
72
72
|
} : {
|
|
73
73
|
title: a.name,
|
|
74
74
|
link: `/workspace/${x.value.uid}/request/${a.requestUid}/examples/${a.uid}`,
|
|
75
|
-
method: (
|
|
75
|
+
method: (d = M[a.requestUid]) == null ? void 0 : d.method,
|
|
76
76
|
entity: a,
|
|
77
77
|
resourceTitle: "Example",
|
|
78
78
|
warning: "This cannot be undone. You’re about to delete the example from the request.",
|
|
79
79
|
children: [],
|
|
80
|
-
edit: (o) =>
|
|
81
|
-
delete: () =>
|
|
80
|
+
edit: (o) => N.edit(a.uid, "name", o),
|
|
81
|
+
delete: () => N.delete(a)
|
|
82
82
|
};
|
|
83
83
|
}), G = c(
|
|
84
84
|
() => i.value.entity.type === "collection" && i.value.title === "Drafts"
|
|
85
85
|
), J = c(() => r.parentUids.length ? f.value ? `${(r.parentUids.length - 1) * 12}px` : `${r.parentUids.length * 12}px` : "12px"), K = c(() => r.parentUids.length ? f.value ? `${(r.parentUids.length - 1) * 12}px` : `${r.parentUids.length * 12}px` : "0px"), Q = c(
|
|
86
86
|
() => {
|
|
87
87
|
var e;
|
|
88
|
-
return
|
|
88
|
+
return O[r.uid] || ((e = T.value) == null ? void 0 : e.uid) === r.uid && i.value.entity.examples.length > 1;
|
|
89
89
|
}
|
|
90
90
|
), X = c(
|
|
91
91
|
() => {
|
|
92
92
|
var e;
|
|
93
|
-
return A.value[
|
|
93
|
+
return A.value[de.Request] === "default" && ((e = T.value) == null ? void 0 : e.uid) === r.uid;
|
|
94
94
|
}
|
|
95
|
-
), I = ne(null),
|
|
95
|
+
), I = ne(null), B = c(() => {
|
|
96
96
|
let e = 0.5, t = 0.5;
|
|
97
97
|
if (!I.value) return { ceiling: e, floor: t };
|
|
98
98
|
const { draggingItem: l } = I.value;
|
|
@@ -113,16 +113,16 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
113
113
|
const l = re("RequestSidebarItem", !0);
|
|
114
114
|
return p(), w("div", {
|
|
115
115
|
class: m(["relative flex flex-row", [
|
|
116
|
-
n(f) && e.parentUids.length > 1 || !n(f) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:
|
|
116
|
+
n(f) && e.parentUids.length > 1 || !n(f) && e.parentUids.length ? "before:bg-b-3 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" : ""
|
|
117
117
|
]])
|
|
118
118
|
}, [
|
|
119
119
|
h(n(pe), {
|
|
120
120
|
id: i.value.entity.uid,
|
|
121
121
|
ref_key: "draggableRef",
|
|
122
122
|
ref: I,
|
|
123
|
-
ceiling:
|
|
123
|
+
ceiling: B.value.ceiling,
|
|
124
124
|
class: "flex flex-1 flex-col gap-[.5px] text-sm",
|
|
125
|
-
floor:
|
|
125
|
+
floor: B.value.floor,
|
|
126
126
|
isDraggable: e.isDraggable,
|
|
127
127
|
isDroppable: e.isDroppable,
|
|
128
128
|
parentIds: e.parentUids,
|
|
@@ -141,26 +141,26 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
141
141
|
))
|
|
142
142
|
}, {
|
|
143
143
|
default: y(({ isExactActive: s }) => {
|
|
144
|
-
var
|
|
144
|
+
var d, o;
|
|
145
145
|
return [
|
|
146
|
-
|
|
146
|
+
u("div", {
|
|
147
147
|
class: m(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
|
|
148
148
|
P,
|
|
149
149
|
s || X.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
150
150
|
]]),
|
|
151
151
|
tabindex: "0"
|
|
152
152
|
}, [
|
|
153
|
-
|
|
154
|
-
class: m(["line-clamp-3
|
|
153
|
+
u("span", {
|
|
154
|
+
class: m(["line-clamp-3 font-medium w-full pl-2 word-break-break-word", {
|
|
155
155
|
"editable-sidebar-hover-item": !n(f)
|
|
156
156
|
}])
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
}, j(i.value.title), 3),
|
|
158
|
+
u("div", he, [
|
|
159
|
+
u("div", ye, [
|
|
160
160
|
n(f) ? g("", !0) : (p(), b(n($), {
|
|
161
161
|
key: 0,
|
|
162
|
-
class: m(["px-0.5 py-0
|
|
163
|
-
flex: ((o = (
|
|
162
|
+
class: m(["px-0.5 py-0 hover:bg-b-3 hidden group-hover:flex absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
|
|
163
|
+
flex: ((o = (d = e.menuItem) == null ? void 0 : d.item) == null ? void 0 : o.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
164
164
|
}]),
|
|
165
165
|
size: "sm",
|
|
166
166
|
type: "button",
|
|
@@ -184,8 +184,8 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
184
184
|
_: 1
|
|
185
185
|
}, 8, ["class"]))
|
|
186
186
|
]),
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
u("span", xe, [
|
|
188
|
+
z(" "),
|
|
189
189
|
i.value.method ? (p(), b(n(me), {
|
|
190
190
|
key: 0,
|
|
191
191
|
class: "font-bold",
|
|
@@ -199,15 +199,15 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
199
199
|
_: 1
|
|
200
200
|
}, 8, ["to"])) : !n(f) || e.parentUids.length ? (p(), w("button", {
|
|
201
201
|
key: 1,
|
|
202
|
-
class: m(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5
|
|
202
|
+
class: m(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5", P]),
|
|
203
203
|
type: "button",
|
|
204
204
|
onClick: t[3] || (t[3] = (s) => n(H)(i.value.entity.uid))
|
|
205
205
|
}, [
|
|
206
|
-
|
|
206
|
+
u("span", ke, [
|
|
207
207
|
le(e.$slots, "leftIcon", {}, () => [
|
|
208
|
-
|
|
208
|
+
u("div", {
|
|
209
209
|
class: m({
|
|
210
|
-
"rotate-90": n(
|
|
210
|
+
"rotate-90": n(O)[i.value.entity.uid]
|
|
211
211
|
})
|
|
212
212
|
}, [
|
|
213
213
|
h(n(q), {
|
|
@@ -218,18 +218,18 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
218
218
|
})
|
|
219
219
|
], 2)
|
|
220
220
|
], !0),
|
|
221
|
-
|
|
221
|
+
z(" ")
|
|
222
222
|
]),
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
class: m(["line-clamp-3
|
|
223
|
+
u("div", we, [
|
|
224
|
+
u("span", {
|
|
225
|
+
class: m(["line-clamp-3 font-medium text-left w-full word-break-break-word", {
|
|
226
226
|
"editable-sidebar-hover-item": !n(f)
|
|
227
227
|
}])
|
|
228
|
-
},
|
|
229
|
-
|
|
228
|
+
}, j(i.value.title), 3),
|
|
229
|
+
u("div", qe, [
|
|
230
230
|
!n(f) && !G.value ? (p(), b(n($), {
|
|
231
231
|
key: 0,
|
|
232
|
-
class: m(["px-0.5 py-0
|
|
232
|
+
class: m(["px-0.5 py-0 hover:bg-b-3 hidden group-hover:flex absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
|
|
233
233
|
flex: ((a = e.menuItem.item) == null ? void 0 : a.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
234
234
|
}]),
|
|
235
235
|
size: "sm",
|
|
@@ -264,9 +264,9 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
264
264
|
menuItem: e.menuItem,
|
|
265
265
|
parentUids: [...e.parentUids, e.uid],
|
|
266
266
|
uid: s,
|
|
267
|
-
onNewTab: t[4] || (t[4] = (
|
|
268
|
-
onOnDragEnd: t[5] || (t[5] = (...
|
|
269
|
-
onOpenMenu: t[6] || (t[6] = (
|
|
267
|
+
onNewTab: t[4] || (t[4] = (d, o) => e.$emit("newTab", d, o)),
|
|
268
|
+
onOnDragEnd: t[5] || (t[5] = (...d) => e.$emit("onDragEnd", ...d)),
|
|
269
|
+
onOpenMenu: t[6] || (t[6] = (d) => e.$emit("openMenu", d))
|
|
270
270
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
271
271
|
i.value.children.length === 0 ? (p(), b(n($), {
|
|
272
272
|
key: 0,
|
|
@@ -294,5 +294,5 @@ const V = (v) => (oe("data-v-d3581d0d"), v = v(), de(), v), he = { class: "flex
|
|
|
294
294
|
}
|
|
295
295
|
});
|
|
296
296
|
export {
|
|
297
|
-
|
|
297
|
+
je as default
|
|
298
298
|
};
|
|
@@ -4,11 +4,13 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
4
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
5
|
"update:modelValue": (v: boolean) => void;
|
|
6
6
|
hideModal: () => void;
|
|
7
|
+
importCurl: (value: string) => void;
|
|
7
8
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
8
9
|
modelValue: boolean;
|
|
9
10
|
isReadonly: boolean;
|
|
10
11
|
}>>> & {
|
|
11
12
|
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
13
|
+
onImportCurl?: ((value: string) => any) | undefined;
|
|
12
14
|
onHideModal?: (() => any) | undefined;
|
|
13
15
|
}, {}, {}>;
|
|
14
16
|
export default _default;
|
|
@@ -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":";gBAkEc,OAAO;gBACP,OAAO;;;;;;gBADP,OAAO;gBACP,OAAO;;;;;;AAwLrB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./RequestSubpageHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ o(e, [["__scopeId", "data-v-3fe7f3a2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,48 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, openBlock as r, createElementBlock as d, createElementVNode as s, createVNode as a, createBlock as i, createCommentVNode as m, unref as p, pushScopeId as u, popScopeId as c } from "vue";
|
|
2
2
|
import f from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
3
|
import b from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
4
4
|
import g from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
5
5
|
import { ScalarIcon as h } from "@scalar/components";
|
|
6
|
-
const _ = (
|
|
6
|
+
const _ = (t) => (u("data-v-3fe7f3a2"), t = t(), c(), t), x = { class: "lg:min-h-header flex items-center w-full justify-center p-2 pt-1 lg:p-2 lg:p-1 flex-wrap t-app__top-container md:border-b-1/2" }, y = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, k = /* @__PURE__ */ _(() => /* @__PURE__ */ s("a", {
|
|
7
7
|
class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
|
|
8
8
|
href: "https://scalar.com/",
|
|
9
9
|
target: "_blank"
|
|
10
|
-
}, " Powered by Scalar.com ", -1)), V = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" },
|
|
10
|
+
}, " Powered by Scalar.com ", -1)), V = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, $ = /* @__PURE__ */ n({
|
|
11
11
|
__name: "RequestSubpageHeader",
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: { type: Boolean },
|
|
14
14
|
isReadonly: { type: Boolean }
|
|
15
15
|
},
|
|
16
|
-
emits: ["update:modelValue", "hideModal"],
|
|
17
|
-
setup(
|
|
18
|
-
return (e,
|
|
19
|
-
|
|
16
|
+
emits: ["update:modelValue", "hideModal", "importCurl"],
|
|
17
|
+
setup(t) {
|
|
18
|
+
return (e, o) => (r(), d("div", x, [
|
|
19
|
+
s("div", y, [
|
|
20
20
|
a(g, {
|
|
21
21
|
class: "gitbook-hidden",
|
|
22
22
|
modelValue: e.modelValue,
|
|
23
|
-
"onUpdate:modelValue":
|
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.$emit("update:modelValue", l))
|
|
24
24
|
}, null, 8, ["modelValue"]),
|
|
25
25
|
k
|
|
26
26
|
]),
|
|
27
|
-
a(f
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
a(f, {
|
|
28
|
+
onImportCurl: o[1] || (o[1] = (l) => e.$emit("importCurl", l))
|
|
29
|
+
}),
|
|
30
|
+
s("div", V, [
|
|
31
|
+
e.isReadonly ? m("", !0) : (r(), i(b, { key: 0 })),
|
|
32
|
+
e.isReadonly ? (r(), d("button", {
|
|
31
33
|
key: 1,
|
|
32
34
|
class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
|
|
33
35
|
type: "button",
|
|
34
|
-
onClick:
|
|
36
|
+
onClick: o[2] || (o[2] = (l) => e.$emit("hideModal"))
|
|
35
37
|
}, [
|
|
36
38
|
a(p(h), {
|
|
37
39
|
icon: "Close",
|
|
38
40
|
size: "lg",
|
|
39
41
|
thickness: "1.75"
|
|
40
42
|
})
|
|
41
|
-
])) :
|
|
43
|
+
])) : m("", !0)
|
|
42
44
|
])
|
|
43
45
|
]));
|
|
44
46
|
}
|
|
45
47
|
});
|
|
46
48
|
export {
|
|
47
|
-
|
|
49
|
+
$ as default
|
|
48
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":";WAyHS,MAAM;UACP,OAAO;aACJ;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE;;WAFtD,MAAM;UACP,OAAO;aACJ;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE;;AAiM/D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,85 +1,93 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as L, ref as U, computed as n, openBlock as s, createBlock as i, createSlots as V, withCtx as m, createTextVNode as w, toDisplayString as g, createElementBlock as j, createElementVNode as h, createCommentVNode as c, createVNode as C } from "vue";
|
|
2
2
|
import O from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
3
|
-
import T from "
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
3
|
+
import { extractFilename as T } from "../../../libs/extractAttachmentFilename.js";
|
|
4
|
+
import N from "whatwg-mimetype";
|
|
5
|
+
import S from "./ResponseBodyDownload.vue.js";
|
|
6
|
+
import P from "./ResponseBodyInfo.vue.js";
|
|
7
|
+
import $ from "./ResponseBodyPreview.vue.js";
|
|
8
|
+
import E from "./ResponseBodyRaw.vue.js";
|
|
9
|
+
import F from "./ResponseBodyToggle.vue.js";
|
|
10
|
+
import { mediaTypes as D } from "../consts/mediaTypes.js";
|
|
11
|
+
const I = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "mx-1 border-1/2 flex flex-col rounded bg-b-1"
|
|
13
|
-
},
|
|
14
|
+
}, J = { class: "flex justify-between items-center border-b-1/2 px-3 py-1.5" }, M = { class: "text-xxs leading-3 font-code" }, Z = /* @__PURE__ */ L({
|
|
14
15
|
__name: "ResponseBody",
|
|
15
16
|
props: {
|
|
16
17
|
title: {},
|
|
17
18
|
data: {},
|
|
18
19
|
headers: {}
|
|
19
20
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
21
|
+
setup(b) {
|
|
22
|
+
const t = b, _ = (e) => e instanceof Blob, d = U(!0), p = n(
|
|
22
23
|
() => {
|
|
23
24
|
var e;
|
|
24
|
-
return !!((e =
|
|
25
|
+
return !!((e = a.value) != null && e.raw && a.value.preview);
|
|
25
26
|
}
|
|
26
|
-
), B = n(() =>
|
|
27
|
-
var
|
|
28
|
-
const e = ((
|
|
29
|
-
return new
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
), B = n(() => d.value || !p.value), R = n(() => !d.value || !p.value), r = n(() => {
|
|
28
|
+
var o;
|
|
29
|
+
const e = ((o = t.headers.find((l) => l.name.toLowerCase() === "content-type")) == null ? void 0 : o.value) ?? "";
|
|
30
|
+
return new N(e);
|
|
31
|
+
}), k = n(() => {
|
|
32
|
+
var o;
|
|
33
|
+
const e = ((o = t.headers.find(
|
|
34
|
+
(l) => l.name.toLowerCase() === "content-disposition"
|
|
35
|
+
)) == null ? void 0 : o.value) ?? "";
|
|
36
|
+
return T(e);
|
|
37
|
+
}), a = n(() => D[r.value.essence]), u = n(() => _(t.data) ? URL.createObjectURL(t.data) : typeof t.data == "string" ? URL.createObjectURL(
|
|
38
|
+
new Blob([t.data], { type: r.value.toString() })
|
|
39
|
+
) : t.data instanceof Object && Object.keys(t.data).length ? URL.createObjectURL(
|
|
40
|
+
new Blob([JSON.stringify(t.data)], {
|
|
41
|
+
type: r.value.toString()
|
|
35
42
|
})
|
|
36
43
|
) : "");
|
|
37
|
-
return (e,
|
|
38
|
-
title:
|
|
44
|
+
return (e, o) => (s(), i(O, null, V({
|
|
45
|
+
title: m(() => [
|
|
39
46
|
w(g(e.title), 1)
|
|
40
47
|
]),
|
|
41
|
-
default:
|
|
42
|
-
var
|
|
48
|
+
default: m(() => {
|
|
49
|
+
var l, v, f, y;
|
|
43
50
|
return [
|
|
44
|
-
e.data ? (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
e.data ? (s(), j("div", I, [
|
|
52
|
+
h("div", J, [
|
|
53
|
+
h("span", M, g(r.value.essence), 1),
|
|
54
|
+
p.value ? (s(), i(F, {
|
|
48
55
|
key: 0,
|
|
49
|
-
modelValue:
|
|
50
|
-
"onUpdate:modelValue":
|
|
51
|
-
}, null, 8, ["modelValue"])) :
|
|
56
|
+
modelValue: d.value,
|
|
57
|
+
"onUpdate:modelValue": o[0] || (o[0] = (x) => d.value = x)
|
|
58
|
+
}, null, 8, ["modelValue"])) : c("", !0)
|
|
52
59
|
]),
|
|
53
|
-
(
|
|
54
|
-
key:
|
|
60
|
+
(l = a.value) != null && l.raw && R.value ? (s(), i(E, {
|
|
61
|
+
key: u.value,
|
|
55
62
|
content: e.data,
|
|
56
|
-
language:
|
|
57
|
-
}, null, 8, ["content", "language"])) :
|
|
58
|
-
(v =
|
|
59
|
-
key:
|
|
60
|
-
alpha:
|
|
61
|
-
mode:
|
|
62
|
-
src:
|
|
63
|
-
type:
|
|
64
|
-
}, null, 8, ["alpha", "mode", "src", "type"])) :
|
|
65
|
-
!((f =
|
|
66
|
-
default:
|
|
63
|
+
language: a.value.language
|
|
64
|
+
}, null, 8, ["content", "language"])) : c("", !0),
|
|
65
|
+
(v = a.value) != null && v.preview && B.value ? (s(), i($, {
|
|
66
|
+
key: u.value,
|
|
67
|
+
alpha: a.value.alpha,
|
|
68
|
+
mode: a.value.preview,
|
|
69
|
+
src: u.value,
|
|
70
|
+
type: r.value.essence
|
|
71
|
+
}, null, 8, ["alpha", "mode", "src", "type"])) : c("", !0),
|
|
72
|
+
!((f = a.value) != null && f.raw) && !((y = a.value) != null && y.preview) ? (s(), i(P, { key: 2 }, {
|
|
73
|
+
default: m(() => [
|
|
67
74
|
w(" Binary file ")
|
|
68
75
|
]),
|
|
69
76
|
_: 1
|
|
70
|
-
})) :
|
|
71
|
-
])) :
|
|
77
|
+
})) : c("", !0)
|
|
78
|
+
])) : c("", !0)
|
|
72
79
|
];
|
|
73
80
|
}),
|
|
74
81
|
_: 2
|
|
75
82
|
}, [
|
|
76
|
-
e.data &&
|
|
83
|
+
e.data && u.value ? {
|
|
77
84
|
name: "actions",
|
|
78
|
-
fn:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
85
|
+
fn: m(() => [
|
|
86
|
+
C(S, {
|
|
87
|
+
filename: k.value,
|
|
88
|
+
href: u.value,
|
|
89
|
+
type: r.value.essence
|
|
90
|
+
}, null, 8, ["filename", "href", "type"])
|
|
83
91
|
]),
|
|
84
92
|
key: "0"
|
|
85
93
|
} : void 0
|
|
@@ -87,5 +95,5 @@ const D = {
|
|
|
87
95
|
}
|
|
88
96
|
});
|
|
89
97
|
export {
|
|
90
|
-
|
|
98
|
+
Z as default
|
|
91
99
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
href: string;
|
|
3
3
|
type?: string;
|
|
4
|
+
filename?: string;
|
|
4
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
5
6
|
href: string;
|
|
6
7
|
type?: string;
|
|
8
|
+
filename?: string;
|
|
7
9
|
}>>>, {}, {}>;
|
|
8
10
|
export default _default;
|
|
9
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBodyDownload.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyDownload.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ResponseBodyDownload.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyDownload.vue"],"names":[],"mappings":";UAqCQ,MAAM;WACL,MAAM;eACF,MAAM;;UAFX,MAAM;WACL,MAAM;eACF,MAAM;;AAsEnB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as s, computed as
|
|
1
|
+
import { defineComponent as s, computed as a, openBlock as i, createElementBlock as l, withModifiers as p, createVNode as d, unref as c, createElementVNode as m } from "vue";
|
|
2
2
|
import { ScalarIcon as f } from "@scalar/components";
|
|
3
3
|
import { mediaTypes as u } from "../consts/mediaTypes.js";
|
|
4
4
|
const x = ["download", "href"], h = /* @__PURE__ */ m("span", null, "Download", -1), k = /* @__PURE__ */ s({
|
|
5
5
|
__name: "ResponseBodyDownload",
|
|
6
6
|
props: {
|
|
7
7
|
href: {},
|
|
8
|
-
type: {}
|
|
8
|
+
type: {},
|
|
9
|
+
filename: {}
|
|
9
10
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
)
|
|
17
|
-
return (e, o) => (d(), a("a", {
|
|
11
|
+
setup(t) {
|
|
12
|
+
const o = t, r = a(() => {
|
|
13
|
+
var e;
|
|
14
|
+
const n = ((e = u[o.type ?? ""]) == null ? void 0 : e.extension) ?? ".unknown";
|
|
15
|
+
return o.filename ? o.filename : `response${n}`;
|
|
16
|
+
});
|
|
17
|
+
return (n, e) => (i(), l("a", {
|
|
18
18
|
class: "flex gap-1 text-c-3 text-xxs no-underline items-center hover:bg-b-3 rounded py-0.5 px-1.5",
|
|
19
|
-
download:
|
|
20
|
-
href:
|
|
21
|
-
onClick:
|
|
19
|
+
download: `${r.value}`,
|
|
20
|
+
href: n.href,
|
|
21
|
+
onClick: e[0] || (e[0] = p(() => {
|
|
22
22
|
}, ["stop"]))
|
|
23
23
|
}, [
|
|
24
|
-
|
|
24
|
+
d(c(f), {
|
|
25
25
|
icon: "Download",
|
|
26
26
|
size: "xs"
|
|
27
27
|
}),
|
|
@@ -21,7 +21,7 @@ const f = (o) => (g("data-v-43fc1968"), o = o(), b(), o), V = { class: "relative
|
|
|
21
21
|
q.emit({ commandName: "Create Request" });
|
|
22
22
|
}, i = (l) => {
|
|
23
23
|
l.openCommandPaletteRequest && r();
|
|
24
|
-
}, x = "2.1.
|
|
24
|
+
}, x = "2.1.19";
|
|
25
25
|
return k(() => d.on(i)), R(() => d.off(i)), (l, m) => (a(), c("div", V, [
|
|
26
26
|
e("div", w, [
|
|
27
27
|
t(h).isReadOnly ? p("", !0) : (a(), c("div", E, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseLoadingOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseLoadingOverlay.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ResponseLoadingOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseLoadingOverlay.vue"],"names":[],"mappings":";AA0LA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseLoadingOverlay.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-156fbea7"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -4,7 +4,7 @@ import { cancelRequestBus as x } from "../../../libs/event-busses/cancel-request
|
|
|
4
4
|
import { requestStatusBus as B } from "../../../libs/event-busses/request-status-bus.js";
|
|
5
5
|
const L = {
|
|
6
6
|
key: 0,
|
|
7
|
-
class: "absolute inset-0 bg-b-1
|
|
7
|
+
class: "absolute inset-0 bg-b-1 flex flex-col gap-6 items-center justify-center"
|
|
8
8
|
}, N = /* @__PURE__ */ l({
|
|
9
9
|
__name: "ResponseLoadingOverlay",
|
|
10
10
|
setup(S) {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type DefineComponent } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=Settings.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Settings.vue"],"names":[],"mappings":"AA0DA,OAAO,EAAE,KAAK,eAAe,EAAO,MAAM,KAAK,CAAA;;AAuI/C,wBAKG"}
|