@scalar/api-client 2.1.45 → 2.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +66 -58
- 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 +40 -39
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +32 -26
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +14 -9
- 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 +15 -10
- package/dist/components/ContextBar.vue.d.ts +1 -1
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +30 -19
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +10 -10
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -18
- package/dist/components/Form/Form.vue.js +15 -15
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +2 -2
- package/dist/components/ImportCollection/DropEventListener.vue.js +6 -6
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -21
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +87 -74
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -13
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +2 -2
- package/dist/components/ImportCollection/PasteEventListener.vue.js +5 -5
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +2 -2
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +10 -5
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +43 -33
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +31 -21
- package/dist/components/Search/useSearch.d.ts +2 -0
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +25 -24
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts +3 -0
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -0
- package/dist/components/SideNav/DownloadAppButton.vue.js +7 -0
- package/dist/components/SideNav/DownloadAppButton.vue2.js +33 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideHelp.vue.js +55 -53
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +82 -5
- package/dist/components/SideNav/SideNav.vue2.js +2 -72
- package/dist/components/{SubpageHeader.vue.d.ts → SideNav/SideNavGroup.vue.d.ts} +3 -3
- package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavGroup.vue.js +16 -0
- package/dist/components/SideNav/SideNavGroup.vue2.js +4 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts +5 -5
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +31 -34
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +25 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.js +29 -0
- package/dist/components/SideNav/SideNavRouterLink.vue2.js +4 -0
- package/dist/components/Sidebar/SidebarButton.vue.d.ts +1 -4
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +17 -17
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +16 -15
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +14 -14
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +31 -31
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +13 -21
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useLayout.d.ts +13 -0
- package/dist/hooks/useLayout.d.ts.map +1 -0
- package/dist/hooks/useLayout.js +7 -0
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +37 -37
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +21 -13
- package/dist/layouts/App/create-api-client-app.d.ts +28 -28
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +10 -8
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +3 -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 +37 -25
- package/dist/layouts/Modal/create-api-client-modal.d.ts +56 -56
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +8 -7
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +30 -30
- package/dist/layouts/Web/create-api-client-web.d.ts +28 -28
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +9 -7
- package/dist/libs/create-client.d.ts +35 -29
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +55 -42
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/router.d.ts +4 -41
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +18 -149
- package/dist/routes.d.ts +150 -0
- package/dist/routes.d.ts.map +1 -0
- package/dist/routes.js +182 -0
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.js +1 -1
- package/dist/store/security-schemes.d.ts +4 -4
- package/dist/store/store.d.ts +56 -56
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +90 -90
- 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/CookieRaw.vue.js +10 -10
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +52 -53
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +79 -80
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +20 -15
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +146 -108
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -52
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +102 -97
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +44 -40
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +152 -134
- 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 +129 -115
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -6
- 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 +36 -34
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +13 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -2
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +32 -33
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +61 -55
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +32 -25
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +102 -70
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +60 -50
- package/dist/views/Request/types/sidebar-item.d.ts +2 -1
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +12 -7
- package/package.json +10 -8
- package/dist/components/SubpageHeader.vue.d.ts.map +0 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as ne, useCssVars as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as ne, useCssVars as se, computed as c, ref as re, resolveComponent as le, openBlock as p, createElementBlock as k, normalizeClass as f, unref as n, createVNode as h, withCtx as g, createBlock as b, withModifiers as M, createElementVNode as a, toDisplayString as T, createCommentVNode as v, createTextVNode as P, renderSlot as ae, Fragment as oe, renderList as ue } from "vue";
|
|
2
|
+
import { ScalarButton as I, ScalarIcon as y, ScalarTooltip as de } from "@scalar/components";
|
|
3
|
+
import { Draggable as pe } from "@scalar/draggable";
|
|
4
|
+
import { RouterLink as fe } from "vue-router";
|
|
5
|
+
import { PathId as me } from "../../routes.js";
|
|
6
6
|
import ce from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
7
7
|
import { useSidebar as ge } from "../../hooks/useSidebar.js";
|
|
8
|
-
import { getModifiers as
|
|
9
|
-
import { useWorkspace as
|
|
10
|
-
const he = { class: "flex flex-row gap-1 items-center" },
|
|
8
|
+
import { getModifiers as be } from "../../libs/hot-keys.js";
|
|
9
|
+
import { useWorkspace as ve } from "../../store/store.js";
|
|
10
|
+
const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relative" }, xe = { class: "flex items-start" }, we = ["aria-expanded"], ke = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Ue = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, qe = { class: "relative flex h-fit" }, De = { 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" }, Ce = { class: "flex items-center text-c-2" }, Re = { class: "text-pretty break-all" }, Me = { key: 2 }, j = "hover:bg-sidebar-active-b indent-padding-left", je = /* @__PURE__ */ ne({
|
|
11
11
|
__name: "RequestSidebarItem",
|
|
12
12
|
props: {
|
|
13
13
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -17,32 +17,32 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
|
|
|
17
17
|
menuItem: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
20
|
-
setup(
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
20
|
+
setup(B, { emit: V }) {
|
|
21
|
+
se((e) => ({
|
|
22
|
+
"9b98f448": K.value,
|
|
23
|
+
"27ad5b3c": Q.value
|
|
24
24
|
}));
|
|
25
|
-
const
|
|
25
|
+
const s = B, W = V, {
|
|
26
26
|
activeCollection: A,
|
|
27
|
-
activeRequest:
|
|
27
|
+
activeRequest: E,
|
|
28
28
|
activeRouterParams: F,
|
|
29
|
-
activeWorkspace:
|
|
29
|
+
activeWorkspace: x,
|
|
30
30
|
collections: U,
|
|
31
31
|
tags: Y,
|
|
32
32
|
isReadOnly: m,
|
|
33
|
-
requests:
|
|
33
|
+
requests: $,
|
|
34
34
|
requestExamples: q,
|
|
35
35
|
collectionMutators: D,
|
|
36
|
-
tagMutators:
|
|
37
|
-
requestMutators:
|
|
38
|
-
requestExampleMutators:
|
|
36
|
+
tagMutators: S,
|
|
37
|
+
requestMutators: z,
|
|
38
|
+
requestExampleMutators: N,
|
|
39
39
|
router: H,
|
|
40
40
|
events: L
|
|
41
|
-
} =
|
|
42
|
-
var
|
|
43
|
-
const e = U[
|
|
41
|
+
} = ve(), { collapsedSidebarFolders: C, toggleSidebarFolder: G } = ge(), i = c(() => {
|
|
42
|
+
var l, d;
|
|
43
|
+
const e = U[s.uid], t = Y[s.uid], r = $[s.uid], o = q[s.uid];
|
|
44
44
|
return e ? {
|
|
45
|
-
title: ((
|
|
45
|
+
title: ((l = e.info) == null ? void 0 : l.title) ?? "Unknown title",
|
|
46
46
|
entity: e,
|
|
47
47
|
resourceTitle: "Collection",
|
|
48
48
|
children: e.children,
|
|
@@ -50,65 +50,78 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
|
|
|
50
50
|
documentUrl: e.documentUrl,
|
|
51
51
|
watchMode: e.watchMode,
|
|
52
52
|
warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
|
|
53
|
-
edit: (
|
|
54
|
-
D.edit(e.uid, "info.title",
|
|
53
|
+
edit: (u, w) => {
|
|
54
|
+
D.edit(e.uid, "info.title", u), w && D.edit(e.uid, "x-scalar-icon", w);
|
|
55
55
|
},
|
|
56
|
-
delete: () => D.delete(e,
|
|
56
|
+
delete: () => D.delete(e, x.value)
|
|
57
57
|
} : t ? {
|
|
58
58
|
title: t.name,
|
|
59
59
|
entity: t,
|
|
60
60
|
resourceTitle: "Tag",
|
|
61
61
|
children: t.children,
|
|
62
62
|
warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
|
|
63
|
-
edit: (
|
|
64
|
-
delete: () =>
|
|
65
|
-
} :
|
|
66
|
-
title:
|
|
67
|
-
link:
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
edit: (u) => S.edit(t.uid, "name", u),
|
|
64
|
+
delete: () => S.delete(t, s.parentUids[0])
|
|
65
|
+
} : r ? {
|
|
66
|
+
title: r.summary ?? [r.method, r.path].join(" - "),
|
|
67
|
+
link: {
|
|
68
|
+
name: "request",
|
|
69
|
+
params: {
|
|
70
|
+
workspace: x.value.uid,
|
|
71
|
+
request: r.uid
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
method: r.method,
|
|
75
|
+
entity: r,
|
|
70
76
|
resourceTitle: "Request",
|
|
71
77
|
warning: "This cannot be undone. You’re about to delete the request.",
|
|
72
|
-
children:
|
|
73
|
-
edit: (
|
|
74
|
-
delete: () =>
|
|
78
|
+
children: r.examples,
|
|
79
|
+
edit: (u) => z.edit(r.uid, "summary", u),
|
|
80
|
+
delete: () => z.delete(r, s.parentUids[0])
|
|
75
81
|
} : {
|
|
76
82
|
title: o.name,
|
|
77
|
-
link:
|
|
78
|
-
|
|
83
|
+
link: {
|
|
84
|
+
name: "request.examples",
|
|
85
|
+
params: {
|
|
86
|
+
workspace: x.value.uid,
|
|
87
|
+
request: o.requestUid,
|
|
88
|
+
examples: o.uid
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
method: (d = $[o.requestUid]) == null ? void 0 : d.method,
|
|
79
92
|
entity: o,
|
|
80
93
|
resourceTitle: "Example",
|
|
81
94
|
warning: "This cannot be undone. You’re about to delete the example from the request.",
|
|
82
95
|
children: [],
|
|
83
|
-
edit: (
|
|
84
|
-
delete: () =>
|
|
96
|
+
edit: (u) => N.edit(o.uid, "name", u),
|
|
97
|
+
delete: () => N.delete(o)
|
|
85
98
|
};
|
|
86
99
|
}), J = c(
|
|
87
100
|
() => i.value.entity.type === "collection" && i.value.title === "Drafts"
|
|
88
|
-
), K = c(() =>
|
|
101
|
+
), K = c(() => s.parentUids.length ? m.value ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "12px"), Q = c(() => s.parentUids.length ? m.value ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "0px"), X = c(
|
|
89
102
|
() => {
|
|
90
103
|
var e;
|
|
91
|
-
return
|
|
104
|
+
return C[s.uid] || ((e = E.value) == null ? void 0 : e.uid) === s.uid && i.value.entity.examples.length > 1;
|
|
92
105
|
}
|
|
93
106
|
), Z = c(
|
|
94
107
|
() => {
|
|
95
108
|
var e;
|
|
96
|
-
return F.value[
|
|
109
|
+
return F.value[me.Request] === "default" && ((e = E.value) == null ? void 0 : e.uid) === s.uid;
|
|
97
110
|
}
|
|
98
|
-
),
|
|
111
|
+
), R = re(null), O = c(() => {
|
|
99
112
|
let e = 0.5, t = 0.5;
|
|
100
|
-
if (!
|
|
101
|
-
const { draggingItem:
|
|
102
|
-
return !U[
|
|
103
|
-
}), _ = (e, t) => !(
|
|
104
|
-
e && (
|
|
113
|
+
if (!R.value) return { ceiling: e, floor: t };
|
|
114
|
+
const { draggingItem: r } = R.value;
|
|
115
|
+
return !U[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 };
|
|
116
|
+
}), _ = (e, t) => !(x.value.isReadOnly || q[t.id] || U[e.id]), ee = (e, t) => {
|
|
117
|
+
e && (be(["default"]).some((l) => e[l]) ? W("newTab", t.title || "", t.entity.uid) : t.link && H.push(t.link));
|
|
105
118
|
};
|
|
106
119
|
function te() {
|
|
107
120
|
L.commandPalette.emit({
|
|
108
121
|
commandName: "Create Request",
|
|
109
122
|
metaData: {
|
|
110
|
-
itemUid:
|
|
111
|
-
parentUid:
|
|
123
|
+
itemUid: s.uid,
|
|
124
|
+
parentUid: s.parentUids[0]
|
|
112
125
|
}
|
|
113
126
|
});
|
|
114
127
|
}
|
|
@@ -117,16 +130,16 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
|
|
|
117
130
|
return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
|
|
118
131
|
});
|
|
119
132
|
return (e, t) => {
|
|
120
|
-
const
|
|
121
|
-
return p(), k("
|
|
133
|
+
const r = le("RequestSidebarItem", !0);
|
|
134
|
+
return p(), k("li", {
|
|
122
135
|
class: f(["relative flex flex-row", [
|
|
123
136
|
n(m) && e.parentUids.length > 1 || !n(m) && 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" : ""
|
|
124
137
|
]])
|
|
125
138
|
}, [
|
|
126
|
-
h(n(
|
|
139
|
+
h(n(pe), {
|
|
127
140
|
id: i.value.entity.uid,
|
|
128
141
|
ref_key: "draggableRef",
|
|
129
|
-
ref:
|
|
142
|
+
ref: R,
|
|
130
143
|
ceiling: O.value.ceiling,
|
|
131
144
|
class: "flex flex-1 flex-col gap-[.5px] text-sm",
|
|
132
145
|
floor: O.value.floor,
|
|
@@ -138,41 +151,40 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
|
|
|
138
151
|
default: g(() => {
|
|
139
152
|
var o;
|
|
140
153
|
return [
|
|
141
|
-
i.value.link ? (p(),
|
|
154
|
+
i.value.link ? (p(), b(n(fe), {
|
|
142
155
|
key: 0,
|
|
143
|
-
class: "no-underline",
|
|
156
|
+
class: "group no-underline",
|
|
144
157
|
to: i.value.link,
|
|
145
|
-
onClick: t[1] || (t[1] =
|
|
146
|
-
(
|
|
158
|
+
onClick: t[1] || (t[1] = M(
|
|
159
|
+
(l) => ee(l, i.value),
|
|
147
160
|
["prevent"]
|
|
148
161
|
))
|
|
149
162
|
}, {
|
|
150
|
-
default: g(({ isExactActive:
|
|
151
|
-
var
|
|
163
|
+
default: g(({ isExactActive: l }) => {
|
|
164
|
+
var d, u;
|
|
152
165
|
return [
|
|
153
166
|
a("div", {
|
|
154
|
-
class: f(["
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
]])
|
|
158
|
-
tabindex: "0"
|
|
167
|
+
class: f(["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", [
|
|
168
|
+
j,
|
|
169
|
+
l || Z.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
170
|
+
]])
|
|
159
171
|
}, [
|
|
160
172
|
a("span", {
|
|
161
173
|
class: f(["line-clamp-3 font-medium w-full pl-2 word-break-break-word", {
|
|
162
174
|
"editable-sidebar-hover-item": !n(m)
|
|
163
175
|
}])
|
|
164
|
-
},
|
|
176
|
+
}, T(i.value.title), 3),
|
|
165
177
|
a("div", he, [
|
|
166
|
-
a("div",
|
|
167
|
-
n(m) ?
|
|
178
|
+
a("div", ye, [
|
|
179
|
+
n(m) ? v("", !0) : (p(), b(n(I), {
|
|
168
180
|
key: 0,
|
|
169
|
-
class: f(["px-0.5 py-0 hover:bg-b-3
|
|
170
|
-
flex: ((
|
|
181
|
+
class: f(["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 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
|
|
182
|
+
flex: ((u = (d = e.menuItem) == null ? void 0 : d.item) == null ? void 0 : u.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
171
183
|
}]),
|
|
172
184
|
size: "sm",
|
|
173
185
|
type: "button",
|
|
174
186
|
variant: "ghost",
|
|
175
|
-
onClick: t[0] || (t[0] =
|
|
187
|
+
onClick: t[0] || (t[0] = M(
|
|
176
188
|
(w) => e.$emit("openMenu", {
|
|
177
189
|
item: i.value,
|
|
178
190
|
parentUids: e.parentUids,
|
|
@@ -183,7 +195,7 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
|
|
|
183
195
|
))
|
|
184
196
|
}, {
|
|
185
197
|
default: g(() => [
|
|
186
|
-
h(n(
|
|
198
|
+
h(n(y), {
|
|
187
199
|
icon: "Ellipses",
|
|
188
200
|
size: "sm"
|
|
189
201
|
})
|
|
@@ -191,13 +203,14 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
|
|
|
191
203
|
_: 1
|
|
192
204
|
}, 8, ["class"]))
|
|
193
205
|
]),
|
|
194
|
-
a("span",
|
|
195
|
-
t[9] || (t[9] =
|
|
196
|
-
|
|
206
|
+
a("span", xe, [
|
|
207
|
+
t[9] || (t[9] = P(" ")),
|
|
208
|
+
t[10] || (t[10] = a("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
209
|
+
i.value.method ? (p(), b(n(ce), {
|
|
197
210
|
key: 0,
|
|
198
211
|
class: "font-bold",
|
|
199
212
|
method: i.value.method
|
|
200
|
-
}, null, 8, ["method"])) :
|
|
213
|
+
}, null, 8, ["method"])) : v("", !0)
|
|
201
214
|
])
|
|
202
215
|
])
|
|
203
216
|
], 2)
|
|
@@ -206,18 +219,19 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
|
|
|
206
219
|
_: 1
|
|
207
220
|
}, 8, ["to"])) : !n(m) || e.parentUids.length ? (p(), k("button", {
|
|
208
221
|
key: 1,
|
|
209
|
-
|
|
222
|
+
"aria-expanded": n(C)[i.value.entity.uid],
|
|
223
|
+
class: f(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", j]),
|
|
210
224
|
type: "button",
|
|
211
|
-
onClick: t[3] || (t[3] = (
|
|
225
|
+
onClick: t[3] || (t[3] = (l) => n(G)(i.value.entity.uid))
|
|
212
226
|
}, [
|
|
213
|
-
a("span",
|
|
227
|
+
a("span", ke, [
|
|
214
228
|
ae(e.$slots, "leftIcon", {}, () => [
|
|
215
229
|
a("div", {
|
|
216
230
|
class: f({
|
|
217
|
-
"rotate-90": n(
|
|
231
|
+
"rotate-90": n(C)[i.value.entity.uid]
|
|
218
232
|
})
|
|
219
233
|
}, [
|
|
220
|
-
h(n(
|
|
234
|
+
h(n(y), {
|
|
221
235
|
class: "text-c-3 text-sm",
|
|
222
236
|
icon: "ChevronRight",
|
|
223
237
|
size: "sm",
|
|
@@ -225,48 +239,48 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
|
|
|
225
239
|
})
|
|
226
240
|
], 2)
|
|
227
241
|
], !0),
|
|
228
|
-
t[
|
|
242
|
+
t[11] || (t[11] = P(" "))
|
|
229
243
|
]),
|
|
230
|
-
a("div",
|
|
244
|
+
a("div", Ue, [
|
|
231
245
|
a("span", {
|
|
232
246
|
class: f(["line-clamp-3 font-medium text-left w-full word-break-break-word", {
|
|
233
247
|
"editable-sidebar-hover-item": !n(m)
|
|
234
248
|
}])
|
|
235
|
-
},
|
|
236
|
-
a("div",
|
|
237
|
-
!n(m) && !J.value ? (p(),
|
|
249
|
+
}, T(i.value.title), 3),
|
|
250
|
+
a("div", qe, [
|
|
251
|
+
!n(m) && !J.value ? (p(), b(n(I), {
|
|
238
252
|
key: 0,
|
|
239
|
-
class: f(["px-0.5 py-0 hover:bg-b-3
|
|
253
|
+
class: f(["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 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
|
|
240
254
|
flex: ((o = e.menuItem.item) == null ? void 0 : o.entity.uid) === i.value.entity.uid && e.menuItem.open,
|
|
241
255
|
"right-5": i.value.watchMode
|
|
242
256
|
}]),
|
|
243
257
|
size: "sm",
|
|
244
258
|
variant: "ghost",
|
|
245
|
-
onClick: t[2] || (t[2] =
|
|
246
|
-
(
|
|
259
|
+
onClick: t[2] || (t[2] = M(
|
|
260
|
+
(l) => e.$emit("openMenu", {
|
|
247
261
|
item: i.value,
|
|
248
262
|
parentUids: e.parentUids,
|
|
249
|
-
targetRef:
|
|
263
|
+
targetRef: l.currentTarget.parentNode,
|
|
250
264
|
open: !0
|
|
251
265
|
}),
|
|
252
266
|
["stop", "prevent"]
|
|
253
267
|
))
|
|
254
268
|
}, {
|
|
255
269
|
default: g(() => [
|
|
256
|
-
h(n(
|
|
270
|
+
h(n(y), {
|
|
257
271
|
icon: "Ellipses",
|
|
258
272
|
size: "sm"
|
|
259
273
|
})
|
|
260
274
|
]),
|
|
261
275
|
_: 1
|
|
262
|
-
}, 8, ["class"])) :
|
|
263
|
-
i.value.watchMode ? (p(),
|
|
276
|
+
}, 8, ["class"])) : v("", !0),
|
|
277
|
+
i.value.watchMode ? (p(), b(n(de), {
|
|
264
278
|
key: 1,
|
|
265
279
|
side: "right",
|
|
266
280
|
sideOffset: 12
|
|
267
281
|
}, {
|
|
268
282
|
trigger: g(() => [
|
|
269
|
-
h(n(
|
|
283
|
+
h(n(y), {
|
|
270
284
|
class: f(["text-sm", ie.value]),
|
|
271
285
|
icon: "Watch",
|
|
272
286
|
size: "sm",
|
|
@@ -274,47 +288,47 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
|
|
|
274
288
|
}, null, 8, ["class"])
|
|
275
289
|
]),
|
|
276
290
|
content: g(() => [
|
|
277
|
-
a("div",
|
|
278
|
-
a("div",
|
|
279
|
-
a("p",
|
|
291
|
+
a("div", De, [
|
|
292
|
+
a("div", Ce, [
|
|
293
|
+
a("p", Re, " Watching: " + T(i.value.documentUrl), 1)
|
|
280
294
|
])
|
|
281
295
|
])
|
|
282
296
|
]),
|
|
283
297
|
_: 1
|
|
284
|
-
})) :
|
|
285
|
-
t[
|
|
298
|
+
})) : v("", !0),
|
|
299
|
+
t[12] || (t[12] = a("span", null, " ", -1))
|
|
286
300
|
])
|
|
287
301
|
])
|
|
288
|
-
])) :
|
|
289
|
-
X.value ? (p(), k("
|
|
290
|
-
(p(!0), k(oe, null,
|
|
291
|
-
key:
|
|
292
|
-
isDraggable: !n(q)[
|
|
302
|
+
], 8, we)) : v("", !0),
|
|
303
|
+
X.value ? (p(), k("ul", Me, [
|
|
304
|
+
(p(!0), k(oe, null, ue(i.value.children, (l) => (p(), b(r, {
|
|
305
|
+
key: l,
|
|
306
|
+
isDraggable: !n(q)[l],
|
|
293
307
|
isDroppable: _,
|
|
294
308
|
menuItem: e.menuItem,
|
|
295
309
|
parentUids: [...e.parentUids, e.uid],
|
|
296
|
-
uid:
|
|
297
|
-
onNewTab: t[4] || (t[4] = (
|
|
298
|
-
onOnDragEnd: t[5] || (t[5] = (...
|
|
299
|
-
onOpenMenu: t[6] || (t[6] = (
|
|
310
|
+
uid: l,
|
|
311
|
+
onNewTab: t[4] || (t[4] = (d, u) => e.$emit("newTab", d, u)),
|
|
312
|
+
onOnDragEnd: t[5] || (t[5] = (...d) => e.$emit("onDragEnd", ...d)),
|
|
313
|
+
onOpenMenu: t[6] || (t[6] = (d) => e.$emit("openMenu", d))
|
|
300
314
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
301
|
-
i.value.children.length === 0 ? (p(),
|
|
315
|
+
i.value.children.length === 0 ? (p(), b(n(I), {
|
|
302
316
|
key: 0,
|
|
303
317
|
class: f(["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" : ""]),
|
|
304
318
|
variant: "ghost",
|
|
305
|
-
onClick: t[7] || (t[7] = (
|
|
319
|
+
onClick: t[7] || (t[7] = (l) => te())
|
|
306
320
|
}, {
|
|
307
321
|
default: g(() => [
|
|
308
|
-
h(n(
|
|
322
|
+
h(n(y), {
|
|
309
323
|
class: "ml-0.5 h-2.5 w-2.5",
|
|
310
324
|
icon: "Add",
|
|
311
325
|
thickness: "3"
|
|
312
326
|
}),
|
|
313
|
-
t[
|
|
327
|
+
t[13] || (t[13] = a("span", null, "Add Request", -1))
|
|
314
328
|
]),
|
|
315
329
|
_: 1
|
|
316
|
-
}, 8, ["class"])) :
|
|
317
|
-
])) :
|
|
330
|
+
}, 8, ["class"])) : v("", !0)
|
|
331
|
+
])) : v("", !0)
|
|
318
332
|
];
|
|
319
333
|
}),
|
|
320
334
|
_: 3
|
|
@@ -2,9 +2,9 @@ import { defineComponent as L, ref as P, watch as K, onMounted as F, onBeforeUnm
|
|
|
2
2
|
import J from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
3
3
|
import O from "../../components/Sidebar/Actions/EditSidebarListCollection.vue.js";
|
|
4
4
|
import Q from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
5
|
-
import {
|
|
6
|
-
import { useModal as z, ScalarDropdown as X, ScalarDropdownItem as g, ScalarIcon as v, ScalarModal as S } from "@scalar/components";
|
|
5
|
+
import { useModal as b, ScalarDropdown as X, ScalarDropdownItem as g, ScalarIcon as v, ScalarModal as z } from "@scalar/components";
|
|
7
6
|
import { useRouter as Y } from "vue-router";
|
|
7
|
+
import { PathId as S } from "../../routes.js";
|
|
8
8
|
import { useWorkspace as Z } from "../../store/store.js";
|
|
9
9
|
const ae = /* @__PURE__ */ L({
|
|
10
10
|
__name: "RequestSidebarItemMenu",
|
|
@@ -13,7 +13,7 @@ const ae = /* @__PURE__ */ L({
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["closeMenu", "toggleWatchMode"],
|
|
15
15
|
setup(q, { emit: x }) {
|
|
16
|
-
const a = q, $ = x, { replace: E } = Y(), { activeWorkspace: h, activeRouterParams: C, events: B } = Z(), d =
|
|
16
|
+
const a = q, $ = x, { replace: E } = Y(), { activeWorkspace: h, activeRouterParams: C, events: B } = Z(), d = b(), I = b(), T = () => {
|
|
17
17
|
var e;
|
|
18
18
|
return B.commandPalette.emit({
|
|
19
19
|
commandName: "Add Example",
|
|
@@ -26,7 +26,7 @@ const ae = /* @__PURE__ */ L({
|
|
|
26
26
|
(m = a.menuItem.item) == null || m.edit(e, t), d.hide();
|
|
27
27
|
}, U = () => {
|
|
28
28
|
var e, t, m;
|
|
29
|
-
(e = a.menuItem.item) == null || e.delete(), C.value[
|
|
29
|
+
(e = a.menuItem.item) == null || e.delete(), C.value[S.Request] === ((t = a.menuItem.item) == null ? void 0 : t.entity.uid) && E(`/workspace/${h.value.uid}/request/default`), C.value[S.Examples] === ((m = a.menuItem.item) == null ? void 0 : m.entity.uid) && E(`/workspace/${h.value}/request/default`), I.hide();
|
|
30
30
|
}, f = P(null);
|
|
31
31
|
K([() => a.menuItem.open, f], async ([e]) => {
|
|
32
32
|
var t, m;
|
|
@@ -132,7 +132,7 @@ const ae = /* @__PURE__ */ L({
|
|
|
132
132
|
}),
|
|
133
133
|
_: 1
|
|
134
134
|
}, 8, ["targetRef"])) : M("", !0),
|
|
135
|
-
o(n(
|
|
135
|
+
o(n(z), {
|
|
136
136
|
size: "xxs",
|
|
137
137
|
state: n(I),
|
|
138
138
|
title: `Delete ${(m = e.menuItem.item) == null ? void 0 : m.resourceTitle}`
|
|
@@ -150,7 +150,7 @@ const ae = /* @__PURE__ */ L({
|
|
|
150
150
|
}),
|
|
151
151
|
_: 1
|
|
152
152
|
}, 8, ["state", "title"]),
|
|
153
|
-
o(n(
|
|
153
|
+
o(n(z), {
|
|
154
154
|
size: "xxs",
|
|
155
155
|
state: n(d),
|
|
156
156
|
title: `Edit ${(W = e.menuItem.item) == null ? void 0 : W.resourceTitle}`
|
|
@@ -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":"AAuGA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;;;AA4OF,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-d570aee1"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,77 +1,79 @@
|
|
|
1
|
-
import { defineComponent as b, openBlock as l, createElementBlock as
|
|
1
|
+
import { defineComponent as b, openBlock as l, createElementBlock as d, createElementVNode as n, createVNode as s, createBlock as a, unref as t, createCommentVNode as i } from "vue";
|
|
2
2
|
import c from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import y from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
4
|
+
import k from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
5
5
|
import { ScalarIcon as g } from "@scalar/components";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useWorkspace as
|
|
9
|
-
const
|
|
6
|
+
import C from "./components/WorkspaceDropdown.vue.js";
|
|
7
|
+
import v from "../../components/OpenApiClientButton.vue.js";
|
|
8
|
+
import { useWorkspace as w } from "../../store/store.js";
|
|
9
|
+
const V = { class: "lg:min-h-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, x = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, $ = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, A = /* @__PURE__ */ b({
|
|
10
10
|
__name: "RequestSubpageHeader",
|
|
11
11
|
props: {
|
|
12
12
|
modelValue: { type: Boolean },
|
|
13
13
|
isReadonly: { type: Boolean }
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:modelValue", "hideModal", "importCurl"],
|
|
16
|
-
setup(
|
|
17
|
-
const { activeCollection: m } =
|
|
18
|
-
return (
|
|
16
|
+
setup(h) {
|
|
17
|
+
const { activeCollection: m } = w();
|
|
18
|
+
return (o, e) => {
|
|
19
19
|
var p, u, f;
|
|
20
|
-
return l(),
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
return l(), d("div", V, [
|
|
21
|
+
n("div", x, [
|
|
22
|
+
s(k, {
|
|
23
23
|
class: "gitbook-hidden",
|
|
24
|
-
modelValue:
|
|
25
|
-
"onUpdate:modelValue":
|
|
24
|
+
modelValue: o.modelValue,
|
|
25
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => o.$emit("update:modelValue", r))
|
|
26
26
|
}, null, 8, ["modelValue"]),
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
o.isReadonly ? i("", !0) : (l(), a(t(C), { key: 0 })),
|
|
28
|
+
e[4] || (e[4] = n("a", {
|
|
29
29
|
class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
|
|
30
30
|
href: "https://scalar.com/",
|
|
31
31
|
target: "_blank"
|
|
32
32
|
}, " Powered by Scalar.com ", -1))
|
|
33
33
|
]),
|
|
34
|
-
|
|
35
|
-
onImportCurl:
|
|
34
|
+
s(c, {
|
|
35
|
+
onImportCurl: e[1] || (e[1] = (r) => o.$emit("importCurl", r))
|
|
36
36
|
}),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
n("div", $, [
|
|
38
|
+
o.isReadonly ? i("", !0) : (l(), a(y, { key: 0 })),
|
|
39
|
+
o.isReadonly && ((p = t(m)) != null && p.documentUrl) ? (l(), a(t(v), {
|
|
40
40
|
key: 1,
|
|
41
41
|
buttonSource: "modal",
|
|
42
42
|
class: "gitbook-hidden !w-fit lg:-mr-1",
|
|
43
43
|
integration: (u = t(m)) == null ? void 0 : u.integration,
|
|
44
44
|
url: (f = t(m)) == null ? void 0 : f.documentUrl
|
|
45
|
-
}, null, 8, ["integration", "url"])) :
|
|
46
|
-
|
|
45
|
+
}, null, 8, ["integration", "url"])) : i("", !0),
|
|
46
|
+
o.isReadonly ? (l(), d("button", {
|
|
47
47
|
key: 2,
|
|
48
48
|
class: "app-exit-button p-2 rounded-full fixed right-2 top-2 gitbook-hidden",
|
|
49
49
|
type: "button",
|
|
50
|
-
onClick:
|
|
50
|
+
onClick: e[2] || (e[2] = (r) => o.$emit("hideModal"))
|
|
51
51
|
}, [
|
|
52
|
-
|
|
52
|
+
s(t(g), {
|
|
53
53
|
icon: "Close",
|
|
54
54
|
size: "lg",
|
|
55
55
|
thickness: "2"
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
}),
|
|
57
|
+
e[5] || (e[5] = n("span", { class: "sr-only" }, "Close Client", -1))
|
|
58
|
+
])) : i("", !0),
|
|
59
|
+
o.isReadonly ? (l(), d("button", {
|
|
59
60
|
key: 3,
|
|
60
61
|
class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5 gitbook-show",
|
|
61
62
|
type: "button",
|
|
62
|
-
onClick:
|
|
63
|
+
onClick: e[3] || (e[3] = (r) => o.$emit("hideModal"))
|
|
63
64
|
}, [
|
|
64
|
-
|
|
65
|
+
s(t(g), {
|
|
65
66
|
icon: "Close",
|
|
66
67
|
size: "md",
|
|
67
68
|
thickness: "1.75"
|
|
68
|
-
})
|
|
69
|
-
|
|
69
|
+
}),
|
|
70
|
+
e[6] || (e[6] = n("span", { class: "sr-only" }, "Close Client", -1))
|
|
71
|
+
])) : i("", !0)
|
|
70
72
|
])
|
|
71
73
|
]);
|
|
72
74
|
};
|
|
73
75
|
}
|
|
74
76
|
});
|
|
75
77
|
export {
|
|
76
|
-
|
|
78
|
+
A as default
|
|
77
79
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"AAwHA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"AAwHA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAmMF,wBAOG"}
|