@scalar/api-client 2.1.52 → 2.2.0
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 +22 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +35 -42
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +25 -24
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +32 -39
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServerItem.vue.js +10 -15
- 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 +48 -47
- package/dist/components/CodeInput/codeVariableWidget.d.ts +3 -2
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +15 -14
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +18 -23
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +27 -26
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +19 -20
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +19 -24
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +23 -22
- 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 +47 -46
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -28
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +127 -96
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +28 -27
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +14 -18
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -14
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +20 -19
- package/dist/components/SideNav/SideNavRouterLink.vue.js +9 -9
- 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 +20 -19
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/hooks/index.js +3 -2
- package/dist/hooks/useLayout.d.ts +2 -0
- package/dist/hooks/useLayout.d.ts.map +1 -1
- package/dist/hooks/useLayout.js +4 -3
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +38 -37
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +3 -3
- package/dist/layouts/App/create-api-client-app.d.ts +669 -1232
- 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 +24 -23
- package/dist/layouts/Modal/create-api-client-modal.d.ts +1382 -2508
- 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 +34 -33
- package/dist/layouts/Web/create-api-client-web.d.ts +669 -1232
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +673 -1236
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +91 -102
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request.d.ts +2 -3
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +127 -123
- package/dist/store/active-entities.d.ts +333 -0
- package/dist/store/active-entities.d.ts.map +1 -0
- package/dist/store/active-entities.js +97 -0
- package/dist/store/collections.d.ts +4 -274
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts +0 -54
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.js +4 -3
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +15 -15
- package/dist/store/security-schemes.d.ts +527 -317
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +33 -41
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store-context.d.ts +0 -3
- package/dist/store/store-context.d.ts.map +1 -1
- package/dist/store/store.d.ts +640 -5297
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +111 -189
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +14 -24
- package/dist/store/workspace.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 +14 -13
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +14 -13
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +3 -3
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +92 -92
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +96 -99
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +49 -46
- 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 +94 -100
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +60 -67
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -28
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +11 -10
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +24 -28
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +19 -18
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +72 -73
- 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 +111 -109
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +15 -16
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +14 -14
- 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 +23 -22
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +32 -31
- package/dist/views/Request/consts/new-auth-options.d.ts +16 -8
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.js +16 -8
- package/dist/views/Request/handle-drag.d.ts +2 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.js +23 -25
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +40 -39
- package/dist/views/Request/libs/auth.d.ts +1 -29
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +2 -9
- package/dist/views/Request/libs/index.js +6 -8
- package/dist/views/Request/libs/live-sync.d.ts +6 -5
- package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
- package/dist/views/Request/libs/live-sync.js +164 -185
- package/dist/views/Request/libs/oauth2.d.ts +6 -10
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +54 -69
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.js +14 -13
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +18 -17
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +218 -126
- package/dist/views/Settings/{SettingsGeneralMode.vue.d.ts → components/SettingsAppearance.vue.d.ts} +2 -2
- package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -0
- package/dist/views/Settings/components/SettingsAppearance.vue.js +74 -0
- package/dist/views/Settings/components/SettingsAppearance.vue2.js +4 -0
- package/dist/views/Settings/components/SettingsSection.vue.d.ts +24 -0
- package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +1 -0
- package/dist/views/Settings/components/SettingsSection.vue.js +24 -0
- package/dist/views/Settings/components/SettingsSection.vue2.js +4 -0
- package/package.json +8 -8
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +0 -16
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +0 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +0 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.js +0 -78
- package/dist/views/Settings/SettingsGeneralMode.vue2.js +0 -4
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as re, useCssVars as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as re, useCssVars as le, computed as f, ref as ae, resolveComponent as oe, openBlock as d, createElementBlock as w, normalizeClass as m, unref as n, createVNode as y, withCtx as c, createBlock as g, withModifiers as k, createElementVNode as o, toDisplayString as I, createCommentVNode as v, createTextVNode as j, renderSlot as ue, Fragment as de, renderList as pe } from "vue";
|
|
2
|
+
import { useActiveEntities as me } from "../../store/active-entities.js";
|
|
3
|
+
import { ScalarButton as U, ScalarIcon as x, ScalarTooltip as fe } from "@scalar/components";
|
|
4
|
+
import { Draggable as ce } from "@scalar/draggable";
|
|
5
|
+
import { RouterLink as ge } from "vue-router";
|
|
5
6
|
import { PathId as ve } from "../../routes.js";
|
|
6
|
-
import
|
|
7
|
-
import { useSidebar as
|
|
8
|
-
import { getModifiers as
|
|
9
|
-
import { useWorkspace as
|
|
10
|
-
const
|
|
7
|
+
import be from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
8
|
+
import { useSidebar as he } from "../../hooks/useSidebar.js";
|
|
9
|
+
import { getModifiers as ye } from "../../libs/hot-keys.js";
|
|
10
|
+
import { useWorkspace as xe } from "../../store/store.js";
|
|
11
|
+
const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relative" }, Ue = { class: "flex items-start" }, qe = ["aria-expanded"], De = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Ce = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Me = { class: "relative flex h-fit" }, Re = { 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" }, Te = { class: "flex items-center text-c-2" }, Ie = { class: "text-pretty break-all" }, Ee = { key: 2 }, B = "hover:bg-sidebar-active-b indent-padding-left", We = /* @__PURE__ */ re({
|
|
11
12
|
__name: "RequestSidebarItem",
|
|
12
13
|
props: {
|
|
13
14
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -17,30 +18,31 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
17
18
|
menuItem: {}
|
|
18
19
|
},
|
|
19
20
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
20
|
-
setup(
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
21
|
+
setup(A, { emit: V }) {
|
|
22
|
+
le((e) => ({
|
|
23
|
+
"65be547c": K.value,
|
|
24
|
+
"726e30bc": Q.value
|
|
24
25
|
}));
|
|
25
|
-
const s =
|
|
26
|
+
const s = A, W = V, {
|
|
26
27
|
activeCollection: F,
|
|
28
|
+
router: Y,
|
|
27
29
|
activeRequest: E,
|
|
28
|
-
activeRouterParams:
|
|
29
|
-
activeWorkspace:
|
|
30
|
+
activeRouterParams: H,
|
|
31
|
+
activeWorkspace: q
|
|
32
|
+
} = me(), {
|
|
30
33
|
collections: D,
|
|
31
|
-
tags:
|
|
32
|
-
isReadOnly:
|
|
34
|
+
tags: L,
|
|
35
|
+
isReadOnly: p,
|
|
33
36
|
requests: $,
|
|
34
|
-
requestExamples:
|
|
35
|
-
collectionMutators:
|
|
37
|
+
requestExamples: C,
|
|
38
|
+
collectionMutators: M,
|
|
36
39
|
tagMutators: z,
|
|
37
40
|
requestMutators: S,
|
|
38
41
|
requestExampleMutators: N,
|
|
39
|
-
router: L,
|
|
40
42
|
events: G
|
|
41
|
-
} =
|
|
42
|
-
var b,
|
|
43
|
-
const e = D[s.uid], t =
|
|
43
|
+
} = xe(), { collapsedSidebarFolders: R, toggleSidebarFolder: J } = he(), i = f(() => {
|
|
44
|
+
var b, l;
|
|
45
|
+
const e = D[s.uid], t = L[s.uid], r = $[s.uid], u = C[s.uid];
|
|
44
46
|
return e ? {
|
|
45
47
|
title: ((b = e.info) == null ? void 0 : b.title) ?? "Unknown title",
|
|
46
48
|
entity: e,
|
|
@@ -50,24 +52,24 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
50
52
|
documentUrl: e.documentUrl,
|
|
51
53
|
watchMode: e.watchMode,
|
|
52
54
|
warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
|
|
53
|
-
edit: (
|
|
54
|
-
|
|
55
|
+
edit: (a, h) => {
|
|
56
|
+
M.edit(e.uid, "info.title", a), h && M.edit(e.uid, "x-scalar-icon", h);
|
|
55
57
|
},
|
|
56
|
-
delete: () =>
|
|
58
|
+
delete: () => M.delete(e, q.value)
|
|
57
59
|
} : t ? {
|
|
58
60
|
title: t.name,
|
|
59
61
|
entity: t,
|
|
60
62
|
resourceTitle: "Tag",
|
|
61
63
|
children: t.children,
|
|
62
64
|
warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
|
|
63
|
-
edit: (
|
|
65
|
+
edit: (a) => z.edit(t.uid, "name", a),
|
|
64
66
|
delete: () => z.delete(t, s.parentUids[0])
|
|
65
67
|
} : r ? {
|
|
66
68
|
title: r.summary ?? [r.method, r.path].join(" - "),
|
|
67
69
|
link: {
|
|
68
70
|
name: "request",
|
|
69
71
|
params: {
|
|
70
|
-
workspace:
|
|
72
|
+
workspace: q.value.uid,
|
|
71
73
|
request: r.uid
|
|
72
74
|
}
|
|
73
75
|
},
|
|
@@ -76,45 +78,45 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
76
78
|
resourceTitle: "Request",
|
|
77
79
|
warning: "This cannot be undone. You’re about to delete the request.",
|
|
78
80
|
children: r.examples,
|
|
79
|
-
edit: (
|
|
81
|
+
edit: (a) => S.edit(r.uid, "summary", a),
|
|
80
82
|
delete: () => S.delete(r, s.parentUids[0])
|
|
81
83
|
} : {
|
|
82
84
|
title: u.name,
|
|
83
85
|
link: {
|
|
84
86
|
name: "request.examples",
|
|
85
87
|
params: {
|
|
86
|
-
workspace:
|
|
88
|
+
workspace: q.value.uid,
|
|
87
89
|
request: u.requestUid,
|
|
88
90
|
examples: u.uid
|
|
89
91
|
}
|
|
90
92
|
},
|
|
91
|
-
method: (
|
|
93
|
+
method: (l = $[u.requestUid]) == null ? void 0 : l.method,
|
|
92
94
|
entity: u,
|
|
93
95
|
resourceTitle: "Example",
|
|
94
96
|
warning: "This cannot be undone. You’re about to delete the example from the request.",
|
|
95
97
|
children: [],
|
|
96
|
-
edit: (
|
|
98
|
+
edit: (a) => N.edit(u.uid, "name", a),
|
|
97
99
|
delete: () => N.delete(u)
|
|
98
100
|
};
|
|
99
|
-
}), O =
|
|
101
|
+
}), O = f(
|
|
100
102
|
() => i.value.entity.type === "collection" && i.value.title === "Drafts"
|
|
101
|
-
), K =
|
|
103
|
+
), K = f(() => s.parentUids.length ? p ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "12px"), Q = f(() => s.parentUids.length ? p ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "0px"), X = f(
|
|
102
104
|
() => {
|
|
103
105
|
var e;
|
|
104
|
-
return
|
|
106
|
+
return R[s.uid] || ((e = E.value) == null ? void 0 : e.uid) === s.uid && i.value.entity.examples.length > 1;
|
|
105
107
|
}
|
|
106
|
-
), Z =
|
|
108
|
+
), Z = f(
|
|
107
109
|
() => {
|
|
108
110
|
var e;
|
|
109
|
-
return
|
|
111
|
+
return H.value[ve.Request] === "default" && ((e = E.value) == null ? void 0 : e.uid) === s.uid;
|
|
110
112
|
}
|
|
111
|
-
), T =
|
|
113
|
+
), T = ae(null), P = f(() => {
|
|
112
114
|
let e = 0.5, t = 0.5;
|
|
113
115
|
if (!T.value) return { ceiling: e, floor: t };
|
|
114
116
|
const { draggingItem: r } = T.value;
|
|
115
117
|
return !D[r == null ? void 0 : r.id] && i.value.entity.type === "collection" ? (e = 1, t = 0) : i.value.entity.type === "tag" && (e = 0.8, t = 0.2), { ceiling: e, floor: t };
|
|
116
|
-
}), _ = (e, t) => !(
|
|
117
|
-
e && (
|
|
118
|
+
}), _ = (e, t) => !(p || C[t.id] || D[e.id]), ee = (e, t) => {
|
|
119
|
+
e && (ye(["default"]).some((b) => e[b]) ? W("newTab", t.title || "", t.entity.uid) : t.link && Y.push(t.link));
|
|
118
120
|
};
|
|
119
121
|
function te() {
|
|
120
122
|
G.commandPalette.emit({
|
|
@@ -125,18 +127,18 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
125
127
|
}
|
|
126
128
|
});
|
|
127
129
|
}
|
|
128
|
-
const ie =
|
|
130
|
+
const ie = f(() => {
|
|
129
131
|
const { uid: e, watchModeStatus: t } = F.value || {};
|
|
130
132
|
return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
|
|
131
|
-
}), ne =
|
|
133
|
+
}), ne = f(() => i.value.title == "Drafts" && !p && i.value.children.length > 0);
|
|
132
134
|
return (e, t) => {
|
|
133
135
|
const r = oe("RequestSidebarItem", !0);
|
|
134
|
-
return d(),
|
|
135
|
-
class:
|
|
136
|
-
n(
|
|
136
|
+
return d(), w("li", {
|
|
137
|
+
class: m(["relative flex flex-row", [
|
|
138
|
+
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" : ""
|
|
137
139
|
]])
|
|
138
140
|
}, [
|
|
139
|
-
y(n(
|
|
141
|
+
y(n(ce), {
|
|
140
142
|
id: i.value.entity.uid,
|
|
141
143
|
ref_key: "draggableRef",
|
|
142
144
|
ref: T,
|
|
@@ -151,40 +153,40 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
151
153
|
default: c(() => {
|
|
152
154
|
var u, b;
|
|
153
155
|
return [
|
|
154
|
-
i.value.link ? (d(),
|
|
156
|
+
i.value.link ? (d(), g(n(ge), {
|
|
155
157
|
key: 0,
|
|
156
158
|
class: "group no-underline",
|
|
157
159
|
to: i.value.link,
|
|
158
|
-
onClick: t[1] || (t[1] =
|
|
159
|
-
(
|
|
160
|
+
onClick: t[1] || (t[1] = k(
|
|
161
|
+
(l) => ee(l, i.value),
|
|
160
162
|
["prevent"]
|
|
161
163
|
))
|
|
162
164
|
}, {
|
|
163
|
-
default: c(({ isExactActive:
|
|
164
|
-
var
|
|
165
|
+
default: c(({ isExactActive: l }) => {
|
|
166
|
+
var a, h;
|
|
165
167
|
return [
|
|
166
168
|
o("div", {
|
|
167
|
-
class:
|
|
169
|
+
class: m(["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
170
|
B,
|
|
169
|
-
|
|
171
|
+
l || Z.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
170
172
|
]])
|
|
171
173
|
}, [
|
|
172
174
|
o("span", {
|
|
173
|
-
class:
|
|
174
|
-
"editable-sidebar-hover-item": !n(
|
|
175
|
+
class: m(["line-clamp-3 font-medium w-full pl-2 word-break-break-word", {
|
|
176
|
+
"editable-sidebar-hover-item": !n(p)
|
|
175
177
|
}])
|
|
176
178
|
}, I(i.value.title), 3),
|
|
177
|
-
o("div",
|
|
178
|
-
o("div",
|
|
179
|
-
n(
|
|
179
|
+
o("div", we, [
|
|
180
|
+
o("div", ke, [
|
|
181
|
+
n(p) ? v("", !0) : (d(), g(n(U), {
|
|
180
182
|
key: 0,
|
|
181
|
-
class:
|
|
182
|
-
flex: ((h = (
|
|
183
|
+
class: m(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
|
|
184
|
+
flex: ((h = (a = e.menuItem) == null ? void 0 : a.item) == null ? void 0 : h.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
183
185
|
}]),
|
|
184
186
|
size: "sm",
|
|
185
187
|
type: "button",
|
|
186
188
|
variant: "ghost",
|
|
187
|
-
onClick: t[0] || (t[0] =
|
|
189
|
+
onClick: t[0] || (t[0] = k(
|
|
188
190
|
(se) => e.$emit("openMenu", {
|
|
189
191
|
item: i.value,
|
|
190
192
|
parentUids: e.parentUids,
|
|
@@ -203,32 +205,32 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
203
205
|
_: 1
|
|
204
206
|
}, 8, ["class"]))
|
|
205
207
|
]),
|
|
206
|
-
o("span",
|
|
208
|
+
o("span", Ue, [
|
|
207
209
|
t[10] || (t[10] = j(" ")),
|
|
208
210
|
t[11] || (t[11] = o("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
209
|
-
i.value.method ? (d(),
|
|
211
|
+
i.value.method ? (d(), g(n(be), {
|
|
210
212
|
key: 0,
|
|
211
213
|
class: "font-bold",
|
|
212
214
|
method: i.value.method
|
|
213
|
-
}, null, 8, ["method"])) :
|
|
215
|
+
}, null, 8, ["method"])) : v("", !0)
|
|
214
216
|
])
|
|
215
217
|
])
|
|
216
218
|
], 2)
|
|
217
219
|
];
|
|
218
220
|
}),
|
|
219
221
|
_: 1
|
|
220
|
-
}, 8, ["to"])) : !n(
|
|
222
|
+
}, 8, ["to"])) : !n(p) || e.parentUids.length ? (d(), w("button", {
|
|
221
223
|
key: 1,
|
|
222
|
-
"aria-expanded": n(
|
|
223
|
-
class:
|
|
224
|
+
"aria-expanded": n(R)[i.value.entity.uid],
|
|
225
|
+
class: m(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", B]),
|
|
224
226
|
type: "button",
|
|
225
|
-
onClick: t[4] || (t[4] = (
|
|
227
|
+
onClick: t[4] || (t[4] = (l) => n(J)(i.value.entity.uid))
|
|
226
228
|
}, [
|
|
227
|
-
o("span",
|
|
229
|
+
o("span", De, [
|
|
228
230
|
ue(e.$slots, "leftIcon", {}, () => [
|
|
229
231
|
o("div", {
|
|
230
|
-
class:
|
|
231
|
-
"rotate-90": n(
|
|
232
|
+
class: m({
|
|
233
|
+
"rotate-90": n(R)[i.value.entity.uid]
|
|
232
234
|
})
|
|
233
235
|
}, [
|
|
234
236
|
y(n(x), {
|
|
@@ -241,26 +243,26 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
241
243
|
], !0),
|
|
242
244
|
t[12] || (t[12] = j(" "))
|
|
243
245
|
]),
|
|
244
|
-
o("div",
|
|
246
|
+
o("div", Ce, [
|
|
245
247
|
o("span", {
|
|
246
|
-
class:
|
|
247
|
-
"editable-sidebar-hover-item": !n(
|
|
248
|
+
class: m(["line-clamp-3 font-medium text-left w-full word-break-break-word", {
|
|
249
|
+
"editable-sidebar-hover-item": !n(p)
|
|
248
250
|
}])
|
|
249
251
|
}, I(i.value.title), 3),
|
|
250
|
-
o("div",
|
|
251
|
-
!n(
|
|
252
|
+
o("div", Me, [
|
|
253
|
+
!n(p) && !O.value ? (d(), g(n(U), {
|
|
252
254
|
key: 0,
|
|
253
|
-
class:
|
|
255
|
+
class: m(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
|
|
254
256
|
flex: ((u = e.menuItem.item) == null ? void 0 : u.entity.uid) === i.value.entity.uid && e.menuItem.open,
|
|
255
257
|
"right-5": i.value.watchMode
|
|
256
258
|
}]),
|
|
257
259
|
size: "sm",
|
|
258
260
|
variant: "ghost",
|
|
259
|
-
onClick: t[2] || (t[2] =
|
|
260
|
-
(
|
|
261
|
+
onClick: t[2] || (t[2] = k(
|
|
262
|
+
(l) => e.$emit("openMenu", {
|
|
261
263
|
item: i.value,
|
|
262
264
|
parentUids: e.parentUids,
|
|
263
|
-
targetRef:
|
|
265
|
+
targetRef: l.currentTarget.parentNode,
|
|
264
266
|
open: !0
|
|
265
267
|
}),
|
|
266
268
|
["stop", "prevent"]
|
|
@@ -273,20 +275,20 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
273
275
|
})
|
|
274
276
|
]),
|
|
275
277
|
_: 1
|
|
276
|
-
}, 8, ["class"])) :
|
|
277
|
-
O.value && ne.value ? (d(),
|
|
278
|
+
}, 8, ["class"])) : v("", !0),
|
|
279
|
+
O.value && ne.value ? (d(), g(n(U), {
|
|
278
280
|
key: 1,
|
|
279
|
-
class:
|
|
281
|
+
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", {
|
|
280
282
|
flex: ((b = e.menuItem.item) == null ? void 0 : b.entity.uid) === i.value.entity.uid && e.menuItem.open,
|
|
281
283
|
"right-5": i.value.watchMode
|
|
282
284
|
}]),
|
|
283
285
|
size: "sm",
|
|
284
286
|
variant: "ghost",
|
|
285
|
-
onClick: t[3] || (t[3] =
|
|
286
|
-
(
|
|
287
|
+
onClick: t[3] || (t[3] = k(
|
|
288
|
+
(l) => e.$emit("openMenu", {
|
|
287
289
|
item: i.value,
|
|
288
290
|
parentUids: e.parentUids,
|
|
289
|
-
targetRef:
|
|
291
|
+
targetRef: l.currentTarget.parentNode,
|
|
290
292
|
open: !0
|
|
291
293
|
}),
|
|
292
294
|
["stop", "prevent"]
|
|
@@ -299,50 +301,50 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
299
301
|
})
|
|
300
302
|
]),
|
|
301
303
|
_: 1
|
|
302
|
-
}, 8, ["class"])) :
|
|
303
|
-
i.value.watchMode ? (d(),
|
|
304
|
+
}, 8, ["class"])) : v("", !0),
|
|
305
|
+
i.value.watchMode ? (d(), g(n(fe), {
|
|
304
306
|
key: 2,
|
|
305
307
|
side: "right",
|
|
306
308
|
sideOffset: 12
|
|
307
309
|
}, {
|
|
308
310
|
trigger: c(() => [
|
|
309
311
|
y(n(x), {
|
|
310
|
-
class:
|
|
312
|
+
class: m(["text-sm", ie.value]),
|
|
311
313
|
icon: "Watch",
|
|
312
314
|
size: "sm",
|
|
313
315
|
thickness: "2.5"
|
|
314
316
|
}, null, 8, ["class"])
|
|
315
317
|
]),
|
|
316
318
|
content: c(() => [
|
|
317
|
-
o("div",
|
|
318
|
-
o("div",
|
|
319
|
-
o("p",
|
|
319
|
+
o("div", Re, [
|
|
320
|
+
o("div", Te, [
|
|
321
|
+
o("p", Ie, " Watching: " + I(i.value.documentUrl), 1)
|
|
320
322
|
])
|
|
321
323
|
])
|
|
322
324
|
]),
|
|
323
325
|
_: 1
|
|
324
|
-
})) :
|
|
326
|
+
})) : v("", !0),
|
|
325
327
|
t[13] || (t[13] = o("span", null, " ", -1))
|
|
326
328
|
])
|
|
327
329
|
])
|
|
328
|
-
], 8,
|
|
329
|
-
X.value ? (d(),
|
|
330
|
-
(d(!0),
|
|
331
|
-
key:
|
|
332
|
-
isDraggable: !n(
|
|
330
|
+
], 8, qe)) : v("", !0),
|
|
331
|
+
X.value ? (d(), w("ul", Ee, [
|
|
332
|
+
(d(!0), w(de, null, pe(i.value.children, (l) => (d(), g(r, {
|
|
333
|
+
key: l,
|
|
334
|
+
isDraggable: !n(C)[l],
|
|
333
335
|
isDroppable: _,
|
|
334
336
|
menuItem: e.menuItem,
|
|
335
337
|
parentUids: [...e.parentUids, e.uid],
|
|
336
|
-
uid:
|
|
337
|
-
onNewTab: t[5] || (t[5] = (
|
|
338
|
-
onOnDragEnd: t[6] || (t[6] = (...
|
|
339
|
-
onOpenMenu: t[7] || (t[7] = (
|
|
338
|
+
uid: l,
|
|
339
|
+
onNewTab: t[5] || (t[5] = (a, h) => e.$emit("newTab", a, h)),
|
|
340
|
+
onOnDragEnd: t[6] || (t[6] = (...a) => e.$emit("onDragEnd", ...a)),
|
|
341
|
+
onOpenMenu: t[7] || (t[7] = (a) => e.$emit("openMenu", a))
|
|
340
342
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
341
|
-
i.value.children.length === 0 ? (d(),
|
|
343
|
+
i.value.children.length === 0 ? (d(), g(n(U), {
|
|
342
344
|
key: 0,
|
|
343
|
-
class:
|
|
345
|
+
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" : ""]),
|
|
344
346
|
variant: "ghost",
|
|
345
|
-
onClick: t[8] || (t[8] = (
|
|
347
|
+
onClick: t[8] || (t[8] = (l) => te())
|
|
346
348
|
}, {
|
|
347
349
|
default: c(() => [
|
|
348
350
|
y(n(x), {
|
|
@@ -353,8 +355,8 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
353
355
|
t[14] || (t[14] = o("span", null, "Add Request", -1))
|
|
354
356
|
]),
|
|
355
357
|
_: 1
|
|
356
|
-
}, 8, ["class"])) :
|
|
357
|
-
])) :
|
|
358
|
+
}, 8, ["class"])) : v("", !0)
|
|
359
|
+
])) : v("", !0)
|
|
358
360
|
];
|
|
359
361
|
}),
|
|
360
362
|
_: 3
|
|
@@ -364,5 +366,5 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
|
|
|
364
366
|
}
|
|
365
367
|
});
|
|
366
368
|
export {
|
|
367
|
-
|
|
369
|
+
We as default
|
|
368
370
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AA2QA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAa5D,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,eAAe,CAAA;CAAE,CAAC;;;;;;;;;;AAsiBjD,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./RequestSidebarItemMenu.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(e, [["__scopeId", "data-v-722cfbe4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -2,28 +2,27 @@ import { defineComponent as J, ref as O, watch as Q, onMounted as X, onBeforeUnm
|
|
|
2
2
|
import T from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
3
3
|
import te from "../../components/Sidebar/Actions/EditSidebarListCollection.vue.js";
|
|
4
4
|
import ne from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { useActiveEntities as le } from "../../store/active-entities.js";
|
|
6
|
+
import { createInitialRequest as ie } from "../../store/requests.js";
|
|
7
|
+
import { useModal as W, ScalarDropdown as ae, ScalarDropdownItem as g, ScalarIcon as w, ScalarModal as b } from "@scalar/components";
|
|
8
|
+
import { useRouter as se } from "vue-router";
|
|
8
9
|
import { PathId as A } from "../../routes.js";
|
|
9
|
-
import { useWorkspace as
|
|
10
|
-
const
|
|
10
|
+
import { useWorkspace as oe } from "../../store/store.js";
|
|
11
|
+
const ge = /* @__PURE__ */ J({
|
|
11
12
|
__name: "RequestSidebarItemMenu",
|
|
12
13
|
props: {
|
|
13
14
|
menuItem: {}
|
|
14
15
|
},
|
|
15
16
|
emits: ["closeMenu", "toggleWatchMode", "clearDrafts"],
|
|
16
17
|
setup(B, { emit: U }) {
|
|
17
|
-
const r = B, C = U, { replace: $ } =
|
|
18
|
+
const r = B, C = U, { replace: $ } = se(), {
|
|
18
19
|
activeWorkspace: y,
|
|
19
20
|
activeRouterParams: x,
|
|
20
|
-
events: V,
|
|
21
|
-
requestMutators: L,
|
|
22
21
|
activeWorkspaceCollections: E,
|
|
23
|
-
activeWorkspaceRequests:
|
|
24
|
-
} =
|
|
22
|
+
activeWorkspaceRequests: V
|
|
23
|
+
} = le(), { events: L, requestMutators: P } = oe(), p = W(), D = W(), M = W(), K = () => {
|
|
25
24
|
var e;
|
|
26
|
-
return
|
|
25
|
+
return L.commandPalette.emit({
|
|
27
26
|
commandName: "Add Example",
|
|
28
27
|
metaData: {
|
|
29
28
|
itemUid: (e = r.menuItem.item) == null ? void 0 : e.entity.uid
|
|
@@ -34,14 +33,14 @@ const ve = /* @__PURE__ */ J({
|
|
|
34
33
|
(a = r.menuItem.item) == null || a.edit(e, t), p.hide();
|
|
35
34
|
}, F = () => {
|
|
36
35
|
var e, t, a;
|
|
37
|
-
if ((e = r.menuItem.item) == null || e.delete(), !
|
|
38
|
-
const { request: f } =
|
|
36
|
+
if ((e = r.menuItem.item) == null || e.delete(), !V.value.length) {
|
|
37
|
+
const { request: f } = ie(), i = E.value.find(
|
|
39
38
|
(o) => {
|
|
40
39
|
var l;
|
|
41
40
|
return ((l = o.info) == null ? void 0 : l.title) === "Drafts";
|
|
42
41
|
}
|
|
43
42
|
);
|
|
44
|
-
i && (
|
|
43
|
+
i && (P.add(f, i.uid), $(`/workspace/${y.value.uid}/request/${f.uid}`));
|
|
45
44
|
}
|
|
46
45
|
if (x.value[A.Request] === ((t = r.menuItem.item) == null ? void 0 : t.entity.uid) && $(`/workspace/${y.value.uid}/request/default`), x.value[A.Examples] === ((a = r.menuItem.item) == null ? void 0 : a.entity.uid) && $(`/workspace/${y.value}/request/default`), E.value[0]) {
|
|
47
46
|
const f = E.value[0].requests[0];
|
|
@@ -66,7 +65,7 @@ const ve = /* @__PURE__ */ J({
|
|
|
66
65
|
return (e, t) => {
|
|
67
66
|
var a, f;
|
|
68
67
|
return s(), h(q, null, [
|
|
69
|
-
e.menuItem.targetRef && e.menuItem.open ? (s(), d(n(
|
|
68
|
+
e.menuItem.targetRef && e.menuItem.open ? (s(), d(n(ae), {
|
|
70
69
|
key: 0,
|
|
71
70
|
static: "",
|
|
72
71
|
targetRef: e.menuItem.targetRef,
|
|
@@ -238,5 +237,5 @@ const ve = /* @__PURE__ */ J({
|
|
|
238
237
|
}
|
|
239
238
|
});
|
|
240
239
|
export {
|
|
241
|
-
|
|
240
|
+
ge as default
|
|
242
241
|
};
|
|
@@ -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-1fc78ac0"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as l, createElementBlock as a, createElementVNode as
|
|
1
|
+
import { defineComponent as y, openBlock as l, createElementBlock as a, createElementVNode as r, createVNode as s, normalizeClass as c, unref as t, createBlock as d, createCommentVNode as i } from "vue";
|
|
2
2
|
import k from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
3
|
import C from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
4
4
|
import x from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
5
|
+
import { useActiveEntities as v } from "../../store/active-entities.js";
|
|
5
6
|
import { ScalarIcon as g } from "@scalar/components";
|
|
6
7
|
import V from "./components/WorkspaceDropdown.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import { useWorkspace as w } from "../../store/store.js";
|
|
8
|
+
import w from "../../components/OpenApiClientButton.vue.js";
|
|
9
9
|
import { useLayout as h } from "../../hooks/useLayout.js";
|
|
10
10
|
const $ = { 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" }, B = { 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" }, R = { 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" }, H = /* @__PURE__ */ y({
|
|
11
11
|
__name: "RequestSubpageHeader",
|
|
@@ -15,11 +15,11 @@ const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2
|
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:modelValue", "hideModal", "importCurl"],
|
|
17
17
|
setup(S) {
|
|
18
|
-
const { activeCollection: m } =
|
|
18
|
+
const { activeCollection: m } = v(), { layout: b } = h();
|
|
19
19
|
return (o, e) => {
|
|
20
20
|
var p, u, f;
|
|
21
21
|
return l(), a("div", $, [
|
|
22
|
-
|
|
22
|
+
r("div", B, [
|
|
23
23
|
s(x, {
|
|
24
24
|
class: c(["gitbook-hidden", [
|
|
25
25
|
"xl:hidden",
|
|
@@ -27,21 +27,21 @@ const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2
|
|
|
27
27
|
{ "!flex": t(b) === "modal" }
|
|
28
28
|
]]),
|
|
29
29
|
modelValue: o.modelValue,
|
|
30
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
30
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => o.$emit("update:modelValue", n))
|
|
31
31
|
}, null, 8, ["class", "modelValue"]),
|
|
32
32
|
o.isReadonly ? i("", !0) : (l(), d(t(V), { key: 0 })),
|
|
33
|
-
e[4] || (e[4] =
|
|
33
|
+
e[4] || (e[4] = r("a", {
|
|
34
34
|
class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
|
|
35
35
|
href: "https://scalar.com/",
|
|
36
36
|
target: "_blank"
|
|
37
37
|
}, " Powered by Scalar.com ", -1))
|
|
38
38
|
]),
|
|
39
39
|
s(k, {
|
|
40
|
-
onImportCurl: e[1] || (e[1] = (
|
|
40
|
+
onImportCurl: e[1] || (e[1] = (n) => o.$emit("importCurl", n))
|
|
41
41
|
}),
|
|
42
|
-
|
|
42
|
+
r("div", R, [
|
|
43
43
|
o.isReadonly ? i("", !0) : (l(), d(C, { key: 0 })),
|
|
44
|
-
o.isReadonly && ((p = t(m)) != null && p.documentUrl) ? (l(), d(t(
|
|
44
|
+
o.isReadonly && ((p = t(m)) != null && p.documentUrl) ? (l(), d(t(w), {
|
|
45
45
|
key: 1,
|
|
46
46
|
buttonSource: "modal",
|
|
47
47
|
class: "gitbook-hidden !w-fit lg:-mr-1",
|
|
@@ -52,27 +52,27 @@ const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2
|
|
|
52
52
|
key: 2,
|
|
53
53
|
class: "app-exit-button p-2 rounded-full fixed right-2 top-2 gitbook-hidden",
|
|
54
54
|
type: "button",
|
|
55
|
-
onClick: e[2] || (e[2] = (
|
|
55
|
+
onClick: e[2] || (e[2] = (n) => o.$emit("hideModal"))
|
|
56
56
|
}, [
|
|
57
57
|
s(t(g), {
|
|
58
58
|
icon: "Close",
|
|
59
59
|
size: "lg",
|
|
60
60
|
thickness: "2"
|
|
61
61
|
}),
|
|
62
|
-
e[5] || (e[5] =
|
|
62
|
+
e[5] || (e[5] = r("span", { class: "sr-only" }, "Close Client", -1))
|
|
63
63
|
])) : i("", !0),
|
|
64
64
|
o.isReadonly ? (l(), a("button", {
|
|
65
65
|
key: 3,
|
|
66
66
|
class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5 gitbook-show",
|
|
67
67
|
type: "button",
|
|
68
|
-
onClick: e[3] || (e[3] = (
|
|
68
|
+
onClick: e[3] || (e[3] = (n) => o.$emit("hideModal"))
|
|
69
69
|
}, [
|
|
70
70
|
s(t(g), {
|
|
71
71
|
icon: "Close",
|
|
72
72
|
size: "md",
|
|
73
73
|
thickness: "1.75"
|
|
74
74
|
}),
|
|
75
|
-
e[6] || (e[6] =
|
|
75
|
+
e[6] || (e[6] = r("span", { class: "sr-only" }, "Close Client", -1))
|
|
76
76
|
])) : i("", !0)
|
|
77
77
|
])
|
|
78
78
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";AA6XA,wBAMG"}
|