@scalar/api-client 2.0.26 → 2.0.28
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 +27 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +48 -46
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +28 -42
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchModal.vue.js +2 -2
- package/dist/components/Search/SearchModal.vue2.js +78 -75
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +20 -0
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarToggle.vue.js +48 -0
- package/dist/components/Sidebar/SidebarToggle.vue2.js +4 -0
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/index.js +7 -6
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/createApiClientApp.js +5 -5
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/api-client-modal.d.ts +38 -2
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/api-client-modal.js +52 -42
- package/dist/layouts/Modal/index.js +5 -4
- package/dist/store/workspace.d.ts +2 -2
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +94 -92
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +1 -1
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +32 -30
- 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 +105 -101
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +19 -19
- 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 +155 -125
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +0 -5
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +24 -113
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/package.json +6 -8
|
@@ -1,52 +1,54 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { ScalarButton as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as y, computed as k, openBlock as n, createElementBlock as o, Fragment as w, renderList as C, createElementVNode as s, normalizeClass as E, createTextVNode as c, toDisplayString as u, createBlock as V, unref as a, withCtx as B, createVNode as z } from "vue";
|
|
2
|
+
import { useWorkspace as I } from "../../store/workspace.js";
|
|
3
|
+
import { ScalarButton as N, ScalarIcon as S } from "@scalar/components";
|
|
4
|
+
import $ from "fuse.js";
|
|
5
5
|
import { useRouter as j } from "vue-router";
|
|
6
6
|
const q = {
|
|
7
7
|
id: "env-dialog",
|
|
8
8
|
class: "z-10 w-60 rounded border bg-b-1 p-1",
|
|
9
9
|
open: !0,
|
|
10
10
|
tabindex: "0"
|
|
11
|
-
},
|
|
11
|
+
}, A = { key: 0 }, D = ["onClick"], F = { class: "flex items-center gap-1.5 whitespace-nowrap" }, L = { class: "w-20 overflow-hidden text-ellipsis text-right" }, H = /* @__PURE__ */ y({
|
|
12
12
|
__name: "EnvironmentVariableDropdown",
|
|
13
13
|
props: {
|
|
14
14
|
query: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["select"],
|
|
17
17
|
setup(d, { emit: p }) {
|
|
18
|
-
const m = d, f = p, { activeParsedEnvironments:
|
|
18
|
+
const m = d, f = p, { activeParsedEnvironments: l, environments: v } = I(), g = j(), h = new $(l.value, {
|
|
19
19
|
keys: ["key", "value"]
|
|
20
|
-
}),
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
23
|
-
return
|
|
24
|
-
const
|
|
25
|
-
return
|
|
26
|
-
}), _ = (
|
|
27
|
-
f("select",
|
|
28
|
-
};
|
|
29
|
-
return (
|
|
30
|
-
|
|
31
|
-
(
|
|
32
|
-
key:
|
|
20
|
+
}), i = k(() => {
|
|
21
|
+
const e = m.query;
|
|
22
|
+
if (!e)
|
|
23
|
+
return l.value.slice(-4);
|
|
24
|
+
const r = h.search(e);
|
|
25
|
+
return r.length > 0 ? r.map((t) => t.item) : [];
|
|
26
|
+
}), _ = (e) => {
|
|
27
|
+
f("select", e);
|
|
28
|
+
}, x = (e) => "_scalarEnvId" in e ? `bg-${v[e._scalarEnvId].color}` : "bg-grey";
|
|
29
|
+
return (e, r) => (n(), o("dialog", q, [
|
|
30
|
+
i.value.length ? (n(), o("ul", A, [
|
|
31
|
+
(n(!0), o(w, null, C(i.value, (t, b) => (n(), o("li", {
|
|
32
|
+
key: b,
|
|
33
33
|
class: "font-code text-3xs hover:bg-b-2 flex cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150",
|
|
34
|
-
onClick: (
|
|
34
|
+
onClick: (P) => _(t.key)
|
|
35
35
|
}, [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
s("div", F, [
|
|
37
|
+
s("span", {
|
|
38
|
+
class: E(["h-2.5 w-2.5 min-w-2.5 rounded-full", x(t)])
|
|
39
|
+
}, null, 2),
|
|
40
|
+
c(" " + u(t.key), 1)
|
|
39
41
|
]),
|
|
40
|
-
|
|
41
|
-
], 8,
|
|
42
|
-
])) : (
|
|
42
|
+
s("span", L, u(t.value), 1)
|
|
43
|
+
], 8, D))), 128))
|
|
44
|
+
])) : (n(), V(a(N), {
|
|
43
45
|
key: 1,
|
|
44
46
|
class: "font-code text-3xs hover:bg-b-2 flex h-7 w-full justify-start gap-2 px-2 transition-colors duration-150",
|
|
45
47
|
variant: "secondary",
|
|
46
|
-
onClick:
|
|
48
|
+
onClick: r[0] || (r[0] = (t) => a(g).push("/environment"))
|
|
47
49
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
50
|
+
default: B(() => [
|
|
51
|
+
z(a(S), {
|
|
50
52
|
class: "w-2",
|
|
51
53
|
icon: "Add",
|
|
52
54
|
size: "xs"
|
|
@@ -59,5 +61,5 @@ const q = {
|
|
|
59
61
|
}
|
|
60
62
|
});
|
|
61
63
|
export {
|
|
62
|
-
|
|
64
|
+
H as default
|
|
63
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";AA4gCA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Request.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-945c36e9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,50 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as F, ref as P, onMounted as A, onBeforeUnmount as H, openBlock as f, createElementBlock as y, Fragment as O, createElementVNode as n, normalizeClass as _, createVNode as r, unref as e, createCommentVNode as w, withCtx as m, withDirectives as J, createSlots as K, withModifiers as D, renderList as Q, createBlock as k, createTextVNode as B, vShow as G, pushScopeId as X, popScopeId as Y } from "vue";
|
|
2
|
+
import Z from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
|
+
import ee from "../../components/Search/SearchButton.vue.js";
|
|
4
|
+
import te from "../../components/Search/SearchModal.vue.js";
|
|
5
|
+
import oe from "../../components/Sidebar/SidebarButton.vue.js";
|
|
6
|
+
import re from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
7
|
+
import se from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
8
|
+
import ae from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
9
|
+
import { commandPaletteBus as le } from "../../libs/eventBusses/command-palette.js";
|
|
10
|
+
import { useWorkspace as ne } from "../../store/workspace.js";
|
|
11
|
+
import ie from "./RequestSection/RequestSection.vue.js";
|
|
11
12
|
/* empty css */
|
|
12
|
-
import
|
|
13
|
-
import { useModal as
|
|
14
|
-
import { REQUEST_METHODS as
|
|
15
|
-
import { isMacOS as
|
|
16
|
-
import { useMagicKeys as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
13
|
+
import ce from "./ResponseSection/ResponseSection.vue.js";
|
|
14
|
+
import { useModal as ue, ScalarIcon as S } from "@scalar/components";
|
|
15
|
+
import { REQUEST_METHODS as me } from "@scalar/oas-utils/helpers";
|
|
16
|
+
import { isMacOS as E } from "@scalar/use-tooltip";
|
|
17
|
+
import { useMagicKeys as de, useEventListener as pe } from "@vueuse/core";
|
|
18
|
+
import fe from "./RequestSidebarItem.vue.js";
|
|
19
|
+
import ve from "../../components/Sidebar/Sidebar.vue.js";
|
|
19
20
|
/* empty css */
|
|
20
|
-
import
|
|
21
|
-
import { useSidebar as
|
|
22
|
-
import { sendRequest as
|
|
23
|
-
import { executeRequestBus as
|
|
24
|
-
const
|
|
21
|
+
import ge from "./components/WorkspaceDropdown.vue.js";
|
|
22
|
+
import { useSidebar as he } from "../../hooks/useSidebar.js";
|
|
23
|
+
import { sendRequest as xe } from "../../libs/sendRequest.js";
|
|
24
|
+
import { executeRequestBus as q } from "../../libs/eventBusses/executeRequestBus.js";
|
|
25
|
+
const be = (h) => (X("data-v-945c36e9"), h = h(), Y(), h), _e = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container" }, ye = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, we = /* @__PURE__ */ be(() => /* @__PURE__ */ n("div", { class: "text-c-2 text-sm font-medium gitbook-show pl-2" }, [
|
|
26
|
+
/* @__PURE__ */ B(" Powered by "),
|
|
27
|
+
/* @__PURE__ */ n("a", {
|
|
28
|
+
class: "hover:text-c-1",
|
|
29
|
+
href: "https://scalar.com/",
|
|
30
|
+
target: "_blank"
|
|
31
|
+
}, "Scalar.com")
|
|
32
|
+
], -1)), ke = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, Ke = /* @__PURE__ */ F({
|
|
25
33
|
__name: "Request",
|
|
26
|
-
setup(
|
|
27
|
-
var
|
|
34
|
+
setup(h) {
|
|
35
|
+
var R;
|
|
28
36
|
const {
|
|
29
|
-
activeExample:
|
|
30
|
-
activeRequest:
|
|
31
|
-
activeSecurityScheme:
|
|
32
|
-
activeWorkspaceServers:
|
|
37
|
+
activeExample: x,
|
|
38
|
+
activeRequest: l,
|
|
39
|
+
activeSecurityScheme: M,
|
|
40
|
+
activeWorkspaceServers: I,
|
|
33
41
|
activeWorkspace: i,
|
|
34
|
-
environments:
|
|
42
|
+
environments: V,
|
|
35
43
|
requestMutators: $,
|
|
36
|
-
activeWorkspaceCollections:
|
|
37
|
-
modalState:
|
|
38
|
-
} =
|
|
44
|
+
activeWorkspaceCollections: N,
|
|
45
|
+
modalState: U
|
|
46
|
+
} = ne(), { collapsedSidebarFolders: z } = he(), v = ue(), c = P(!((R = i.value) != null && R.isReadOnly)), C = async () => {
|
|
39
47
|
var g;
|
|
40
|
-
if (!
|
|
48
|
+
if (!l.value || !x.value) {
|
|
41
49
|
console.warn(
|
|
42
50
|
"There is no request active at the moment. Please select one then try again."
|
|
43
51
|
);
|
|
44
52
|
return;
|
|
45
53
|
}
|
|
46
|
-
let s =
|
|
47
|
-
const o = Object.values(
|
|
54
|
+
let s = x.value.url;
|
|
55
|
+
const o = Object.values(V).reduce(
|
|
48
56
|
(d, p) => {
|
|
49
57
|
try {
|
|
50
58
|
return { ...d, ...JSON.parse(p.raw) };
|
|
@@ -54,19 +62,19 @@ const ve = { class: "lg:min-h-header flex items-center w-full justify-center p-1
|
|
|
54
62
|
},
|
|
55
63
|
{}
|
|
56
64
|
), t = /\{\{(.*?)\}\}/g;
|
|
57
|
-
s = s.replace(t, (d, p) => (
|
|
58
|
-
if (
|
|
65
|
+
s = s.replace(t, (d, p) => (I.value.forEach((j) => {
|
|
66
|
+
if (j.url === p)
|
|
59
67
|
return p;
|
|
60
68
|
}), o[p] || p));
|
|
61
|
-
const { request: a, response: u } = await
|
|
62
|
-
|
|
63
|
-
|
|
69
|
+
const { request: a, response: u } = await xe(
|
|
70
|
+
l.value,
|
|
71
|
+
x.value,
|
|
64
72
|
s,
|
|
65
|
-
|
|
73
|
+
M.value,
|
|
66
74
|
(g = i.value) == null ? void 0 : g.proxyUrl
|
|
67
75
|
);
|
|
68
|
-
a && u ? $.edit(
|
|
69
|
-
...
|
|
76
|
+
a && u ? $.edit(l.value.uid, "history", [
|
|
77
|
+
...l.value.history,
|
|
70
78
|
{
|
|
71
79
|
request: a,
|
|
72
80
|
response: u,
|
|
@@ -74,87 +82,83 @@ const ve = { class: "lg:min-h-header flex items-center w-full justify-center p-1
|
|
|
74
82
|
}
|
|
75
83
|
]) : console.warn("No response or request was returned");
|
|
76
84
|
};
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
(
|
|
85
|
+
A(() => q.on(C)), H(() => q.off(C));
|
|
86
|
+
const L = (s, o, t, a) => {
|
|
87
|
+
}, T = () => le.emit(), b = de();
|
|
88
|
+
pe(document, "keydown", (s) => {
|
|
89
|
+
(E() ? b.meta.value : b.ctrl.value) && s.key === "b" && (c.value = !c.value), (E() ? b.meta.value : b.ctrl.value) && s.key === "k" && (v.open ? v.hide() : v.show());
|
|
82
90
|
});
|
|
83
|
-
const
|
|
84
|
-
if (!
|
|
85
|
-
const { method: s } =
|
|
86
|
-
return
|
|
91
|
+
const W = () => {
|
|
92
|
+
if (!l.value) return "";
|
|
93
|
+
const { method: s } = l.value;
|
|
94
|
+
return me[s].backgroundColor;
|
|
87
95
|
};
|
|
88
|
-
return (s, o) => (f(),
|
|
89
|
-
|
|
90
|
-
class:
|
|
96
|
+
return (s, o) => (f(), y(O, null, [
|
|
97
|
+
n("div", {
|
|
98
|
+
class: _(["flex flex-1 flex-col rounded-lg rounded-b-none rounded-r-none pt-0 h-full client-wrapper-bg-color", W()])
|
|
91
99
|
}, [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}, [
|
|
99
|
-
|
|
100
|
-
icon: l.value ? "SideBarOpen" : "SideBarClosed",
|
|
101
|
-
size: "sm"
|
|
102
|
-
}, null, 8, ["icon"])
|
|
103
|
-
])
|
|
100
|
+
n("div", _e, [
|
|
101
|
+
n("div", ye, [
|
|
102
|
+
r(re, {
|
|
103
|
+
modelValue: c.value,
|
|
104
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => c.value = t),
|
|
105
|
+
class: "gitbook-hidden"
|
|
106
|
+
}, null, 8, ["modelValue"]),
|
|
107
|
+
we
|
|
104
108
|
]),
|
|
105
|
-
r(
|
|
106
|
-
|
|
107
|
-
e(i).isReadOnly ? (f(),
|
|
109
|
+
r(Z),
|
|
110
|
+
n("div", ke, [
|
|
111
|
+
e(i).isReadOnly ? (f(), y("button", {
|
|
108
112
|
key: 0,
|
|
109
113
|
class: "text-c-3 hover:bg-b-3 active:text-c-1 p-2 rounded",
|
|
110
114
|
type: "button",
|
|
111
|
-
onClick: o[1] || (o[1] = (t) => e(
|
|
115
|
+
onClick: o[1] || (o[1] = (t) => e(U).hide())
|
|
112
116
|
}, [
|
|
113
|
-
r(e(
|
|
117
|
+
r(e(S), {
|
|
114
118
|
icon: "Close",
|
|
115
119
|
size: "lg",
|
|
116
120
|
thickness: "1.75"
|
|
117
121
|
})
|
|
118
|
-
])) :
|
|
122
|
+
])) : w("", !0)
|
|
119
123
|
])
|
|
120
124
|
]),
|
|
121
|
-
r(
|
|
125
|
+
r(se, null, {
|
|
122
126
|
default: m(() => [
|
|
123
|
-
|
|
124
|
-
class:
|
|
125
|
-
},
|
|
127
|
+
J(r(e(ve), {
|
|
128
|
+
class: _([c.value ? "sidebar-active-width" : ""])
|
|
129
|
+
}, K({
|
|
126
130
|
content: m(() => [
|
|
127
|
-
r(
|
|
131
|
+
r(ee, {
|
|
128
132
|
onOpenSearchModal: o[2] || (o[2] = (t) => e(v).show())
|
|
129
133
|
}),
|
|
130
|
-
|
|
134
|
+
n("div", {
|
|
131
135
|
class: "custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-12 pt-2.5",
|
|
132
|
-
onDragenter: o[3] || (o[3] =
|
|
136
|
+
onDragenter: o[3] || (o[3] = D(() => {
|
|
133
137
|
}, ["prevent"])),
|
|
134
|
-
onDragover: o[4] || (o[4] =
|
|
138
|
+
onDragover: o[4] || (o[4] = D(() => {
|
|
135
139
|
}, ["prevent"]))
|
|
136
140
|
}, [
|
|
137
|
-
(f(!0),
|
|
141
|
+
(f(!0), y(O, null, Q(e(N), (t, a) => (f(), k(fe, {
|
|
138
142
|
key: t.uid,
|
|
139
143
|
isDraggable: !e(i).isReadOnly,
|
|
140
144
|
isDroppable: !e(i).isReadOnly,
|
|
141
145
|
item: t,
|
|
142
146
|
parentUids: [],
|
|
143
|
-
onOnDragEnd: (...u) =>
|
|
147
|
+
onOnDragEnd: (...u) => L(t, a, ...u)
|
|
144
148
|
}, {
|
|
145
149
|
leftIcon: m(() => [
|
|
146
|
-
r(e(
|
|
150
|
+
r(e(S), {
|
|
147
151
|
class: "text-sidebar-c-2 text-sm group-hover:hidden",
|
|
148
152
|
icon: "CodeFolder",
|
|
149
153
|
size: "sm",
|
|
150
154
|
thickness: "2"
|
|
151
155
|
}),
|
|
152
|
-
|
|
153
|
-
class:
|
|
154
|
-
"rotate-90": e(
|
|
156
|
+
n("div", {
|
|
157
|
+
class: _({
|
|
158
|
+
"rotate-90": e(z)[t.uid]
|
|
155
159
|
})
|
|
156
160
|
}, [
|
|
157
|
-
r(e(
|
|
161
|
+
r(e(S), {
|
|
158
162
|
class: "text-c-3 hidden text-sm group-hover:block",
|
|
159
163
|
icon: "ChevronRight",
|
|
160
164
|
size: "sm"
|
|
@@ -166,12 +170,12 @@ const ve = { class: "lg:min-h-header flex items-center w-full justify-center p-1
|
|
|
166
170
|
], 32)
|
|
167
171
|
]),
|
|
168
172
|
button: m(() => [
|
|
169
|
-
e(i).isReadOnly ?
|
|
173
|
+
e(i).isReadOnly ? w("", !0) : (f(), k(oe, {
|
|
170
174
|
key: 0,
|
|
171
|
-
click:
|
|
175
|
+
click: T
|
|
172
176
|
}, {
|
|
173
177
|
title: m(() => [
|
|
174
|
-
|
|
178
|
+
B("Add Item")
|
|
175
179
|
]),
|
|
176
180
|
_: 1
|
|
177
181
|
}))
|
|
@@ -181,36 +185,36 @@ const ve = { class: "lg:min-h-header flex items-center w-full justify-center p-1
|
|
|
181
185
|
e(i).isReadOnly ? void 0 : {
|
|
182
186
|
name: "header",
|
|
183
187
|
fn: m(() => [
|
|
184
|
-
r(e(
|
|
188
|
+
r(e(ge))
|
|
185
189
|
]),
|
|
186
190
|
key: "0"
|
|
187
191
|
}
|
|
188
192
|
]), 1032, ["class"]), [
|
|
189
|
-
[
|
|
193
|
+
[G, c.value]
|
|
190
194
|
]),
|
|
191
|
-
e(
|
|
195
|
+
e(x) ? (f(), k(ae, {
|
|
192
196
|
key: 0,
|
|
193
|
-
class:
|
|
197
|
+
class: _(["flex-1", [c.value ? "sidebar-active-hide-layout" : ""]])
|
|
194
198
|
}, {
|
|
195
199
|
default: m(() => {
|
|
196
200
|
var t, a, u, g, d;
|
|
197
201
|
return [
|
|
198
|
-
r(
|
|
199
|
-
r(
|
|
200
|
-
response: (d = (g = (t = e(
|
|
202
|
+
r(ie),
|
|
203
|
+
r(ce, {
|
|
204
|
+
response: (d = (g = (t = e(l)) == null ? void 0 : t.history) == null ? void 0 : g[((u = (a = e(l)) == null ? void 0 : a.history) == null ? void 0 : u.length) - 1]) == null ? void 0 : d.response
|
|
201
205
|
}, null, 8, ["response"])
|
|
202
206
|
];
|
|
203
207
|
}),
|
|
204
208
|
_: 1
|
|
205
|
-
}, 8, ["class"])) :
|
|
209
|
+
}, 8, ["class"])) : w("", !0)
|
|
206
210
|
]),
|
|
207
211
|
_: 1
|
|
208
212
|
})
|
|
209
213
|
], 2),
|
|
210
|
-
r(
|
|
214
|
+
r(te, { modalState: e(v) }, null, 8, ["modalState"])
|
|
211
215
|
], 64));
|
|
212
216
|
}
|
|
213
217
|
});
|
|
214
218
|
export {
|
|
215
|
-
|
|
219
|
+
Ke as default
|
|
216
220
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuth.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuth.vue"],"names":[],"mappings":";WAkPS,MAAM;;WAAN,MAAM;;AAkdf,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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, computed as k, openBlock as d, createBlock as
|
|
1
|
+
import { defineComponent as T, computed as k, openBlock as d, createBlock as v, withCtx as s, createElementVNode as f, toDisplayString as x, createVNode as r, unref as l, createTextVNode as y, createElementBlock as N, Fragment as U, createCommentVNode as B, capitalize as w } from "vue";
|
|
2
2
|
import D from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
3
3
|
import { useWorkspace as O } from "../../../store/workspace.js";
|
|
4
4
|
import _ from "./RequestAuthDataTableInput.vue.js";
|
|
@@ -38,16 +38,16 @@ const q = { class: "flex gap-1" }, z = { class: "flex h-8 items-center" }, L = /
|
|
|
38
38
|
const e = Object.keys(t);
|
|
39
39
|
return e.length === 0 ? { id: "none", label: "None" } : e.flatMap((o) => {
|
|
40
40
|
const n = $[o];
|
|
41
|
-
return (n == null ? void 0 : n.type) === "oauth2" ? Object.keys(n.flows).map((
|
|
41
|
+
return (n == null ? void 0 : n.type) === "oauth2" ? Object.keys(n.flows).map((i) => ({
|
|
42
42
|
// Since ID's must be unique, we also store the uid and flowKey separately
|
|
43
|
-
id: `${o}${
|
|
44
|
-
label: `${E(
|
|
45
|
-
flowKey:
|
|
43
|
+
id: `${o}${i}`,
|
|
44
|
+
label: `${E(i)} (${o})`,
|
|
45
|
+
flowKey: i,
|
|
46
46
|
uid: o
|
|
47
47
|
})) : { id: o, label: M(o) };
|
|
48
48
|
});
|
|
49
49
|
})
|
|
50
|
-
),
|
|
50
|
+
), c = k({
|
|
51
51
|
// Grab the selected OR first security scheme
|
|
52
52
|
get: () => {
|
|
53
53
|
var e, o;
|
|
@@ -74,7 +74,7 @@ const q = { class: "flex gap-1" }, z = { class: "flex h-8 items-center" }, L = /
|
|
|
74
74
|
e
|
|
75
75
|
);
|
|
76
76
|
};
|
|
77
|
-
return (t, e) => (d(),
|
|
77
|
+
return (t, e) => (d(), v(D, {
|
|
78
78
|
class: "group/params",
|
|
79
79
|
itemCount: h.value.length
|
|
80
80
|
}, {
|
|
@@ -88,15 +88,15 @@ const q = { class: "flex gap-1" }, z = { class: "flex h-8 items-center" }, L = /
|
|
|
88
88
|
columns: [""]
|
|
89
89
|
}, {
|
|
90
90
|
default: s(() => {
|
|
91
|
-
var o, n,
|
|
91
|
+
var o, n, i, b;
|
|
92
92
|
return [
|
|
93
93
|
r(l(p), null, {
|
|
94
94
|
default: s(() => [
|
|
95
95
|
r(l(K), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
|
|
96
96
|
default: s(() => [
|
|
97
97
|
r(l(W), {
|
|
98
|
-
modelValue:
|
|
99
|
-
"onUpdate:modelValue": e[0] || (e[0] = (u) =>
|
|
98
|
+
modelValue: c.value,
|
|
99
|
+
"onUpdate:modelValue": e[0] || (e[0] = (u) => c.value = u),
|
|
100
100
|
class: "text-xs w-full left-2",
|
|
101
101
|
fullWidth: "",
|
|
102
102
|
options: h.value,
|
|
@@ -113,7 +113,7 @@ const q = { class: "flex gap-1" }, z = { class: "flex h-8 items-center" }, L = /
|
|
|
113
113
|
return [
|
|
114
114
|
f("div", z, [
|
|
115
115
|
L,
|
|
116
|
-
f("span", F, x((u =
|
|
116
|
+
f("span", F, x((u = c.value) == null ? void 0 : u.label), 1),
|
|
117
117
|
r(l(A), {
|
|
118
118
|
icon: "ChevronDown",
|
|
119
119
|
size: "xs"
|
|
@@ -132,7 +132,7 @@ const q = { class: "flex gap-1" }, z = { class: "flex h-8 items-center" }, L = /
|
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
134
134
|
}),
|
|
135
|
-
((o = l(a)) == null ? void 0 : o.scheme.type) === "http" && l(a).scheme.scheme === "bearer" ? (d(),
|
|
135
|
+
((o = l(a)) == null ? void 0 : o.scheme.type) === "http" && l(a).scheme.scheme === "bearer" ? (d(), v(l(p), { key: 0 }, {
|
|
136
136
|
default: s(() => [
|
|
137
137
|
r(_, {
|
|
138
138
|
id: "http-bearer-token",
|
|
@@ -142,7 +142,7 @@ const q = { class: "flex gap-1" }, z = { class: "flex h-8 items-center" }, L = /
|
|
|
142
142
|
"onUpdate:modelValue": e[1] || (e[1] = (u) => m("value", u))
|
|
143
143
|
}, {
|
|
144
144
|
default: s(() => [
|
|
145
|
-
|
|
145
|
+
y(" Bearer Token ")
|
|
146
146
|
]),
|
|
147
147
|
_: 1
|
|
148
148
|
}, 8, ["modelValue"])
|
|
@@ -159,7 +159,7 @@ const q = { class: "flex gap-1" }, z = { class: "flex h-8 items-center" }, L = /
|
|
|
159
159
|
"onUpdate:modelValue": e[2] || (e[2] = (u) => m("value", u))
|
|
160
160
|
}, {
|
|
161
161
|
default: s(() => [
|
|
162
|
-
|
|
162
|
+
y(" Username ")
|
|
163
163
|
]),
|
|
164
164
|
_: 1
|
|
165
165
|
}, 8, ["modelValue"])
|
|
@@ -176,14 +176,14 @@ const q = { class: "flex gap-1" }, z = { class: "flex h-8 items-center" }, L = /
|
|
|
176
176
|
"onUpdate:modelValue": e[3] || (e[3] = (u) => m("secondValue", u))
|
|
177
177
|
}, {
|
|
178
178
|
default: s(() => [
|
|
179
|
-
|
|
179
|
+
y(" Password ")
|
|
180
180
|
]),
|
|
181
181
|
_: 1
|
|
182
182
|
}, 8, ["modelValue"])
|
|
183
183
|
]),
|
|
184
184
|
_: 1
|
|
185
185
|
})
|
|
186
|
-
], 64)) : ((
|
|
186
|
+
], 64)) : ((i = l(a)) == null ? void 0 : i.scheme.type) === "apiKey" ? (d(), v(l(p), { key: 2 }, {
|
|
187
187
|
default: s(() => [
|
|
188
188
|
r(_, {
|
|
189
189
|
id: `api-key-${l(a).scheme.name}`,
|
|
@@ -193,16 +193,16 @@ const q = { class: "flex gap-1" }, z = { class: "flex h-8 items-center" }, L = /
|
|
|
193
193
|
"onUpdate:modelValue": e[4] || (e[4] = (u) => m("value", u))
|
|
194
194
|
}, {
|
|
195
195
|
default: s(() => [
|
|
196
|
-
|
|
196
|
+
y(x(l(a).scheme.name), 1)
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
199
|
}, 8, ["id", "modelValue"])
|
|
200
200
|
]),
|
|
201
201
|
_: 1
|
|
202
|
-
})) : ((b = l(a)) == null ? void 0 : b.scheme.type) === "oauth2" && "uid" in
|
|
202
|
+
})) : ((b = l(a)) == null ? void 0 : b.scheme.type) === "oauth2" && c.value && "uid" in c.value && l(a).flow ? (d(), v(l(R), {
|
|
203
203
|
key: 3,
|
|
204
204
|
activeScheme: l(a),
|
|
205
|
-
schemeModel:
|
|
205
|
+
schemeModel: c.value,
|
|
206
206
|
updateScheme: m
|
|
207
207
|
}, null, 8, ["activeScheme", "schemeModel"])) : B("", !0)
|
|
208
208
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuthDataTableInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA8EA,iBAAS,cAAc;qBAiGO,GAAG;kBACN,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;QA9Ib,MAAM;WACH,MAAM;qBACI,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;;;;;;;;;;QALd,MAAM;WACH,MAAM;qBACI,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;;;;;;;;;;cAFP,OAAO;cAEP,OAAO;MAgJpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":";WA4dS,MAAM;WACN,MAAM;eACF,GAAG,EAAE;;WAFT,MAAM;WACN,MAAM;eACF,GAAG,EAAE;;AAqzBlB,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"}
|