@scalar/api-client 2.1.51 → 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 +47 -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 +16 -15
- 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/IconSelector.vue.js +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/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +37 -39
- 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 +670 -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 +1384 -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 +670 -1232
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +675 -1236
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +100 -95
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request.d.ts +3 -7
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +126 -119
- package/dist/libs/string-template.d.ts.map +1 -1
- package/dist/libs/string-template.js +23 -22
- 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 +94 -94
- 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/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +27 -27
- 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 +74 -75
- 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/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +35 -15
- 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 +12 -12
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CookieForm.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/CookieForm.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CookieForm.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/CookieForm.vue"],"names":[],"mappings":";AA2KA,wBAMG"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as p, computed as u, openBlock as d, createBlock as m, withCtx as k, createElementVNode as
|
|
1
|
+
import { defineComponent as p, computed as u, openBlock as d, createBlock as m, withCtx as k, createElementVNode as t } from "vue";
|
|
2
2
|
import v from "../../components/Form/Form.vue.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { useActiveEntities as f } from "../../store/active-entities.js";
|
|
4
|
+
import { useWorkspace as h } from "../../store/store.js";
|
|
5
|
+
const y = { class: "flex items-center pointer-events-none" }, _ = ["value"], F = /* @__PURE__ */ p({
|
|
5
6
|
__name: "CookieForm",
|
|
6
|
-
setup(
|
|
7
|
-
const {
|
|
7
|
+
setup(b) {
|
|
8
|
+
const { activeCookieId: o } = f(), { cookies: n, cookieMutators: i } = h(), s = [
|
|
8
9
|
{ label: "Key", key: "key", placeholder: "Username" },
|
|
9
10
|
{ label: "Value", key: "value", placeholder: "123" },
|
|
10
11
|
{ label: "Domain", key: "domain", placeholder: "scalar.com" },
|
|
@@ -12,29 +13,29 @@ const h = { class: "flex items-center pointer-events-none" }, y = ["value"], w =
|
|
|
12
13
|
{ label: "Expires", key: "expires", placeholder: "Tomorrow" },
|
|
13
14
|
{ label: "Secure", key: "secure", placeholder: "True/False" },
|
|
14
15
|
{ label: "HttpOnly", key: "httpOnly", placeholder: "True/False" }
|
|
15
|
-
],
|
|
16
|
+
], l = u(
|
|
16
17
|
() => n[o.value] || {}
|
|
17
18
|
), a = (r, e) => {
|
|
18
19
|
o.value && i.edit(o.value, r, e);
|
|
19
20
|
};
|
|
20
21
|
return (r, e) => (d(), m(v, {
|
|
21
|
-
data:
|
|
22
|
+
data: l.value,
|
|
22
23
|
onUpdate: a,
|
|
23
24
|
options: s
|
|
24
25
|
}, {
|
|
25
26
|
title: k(() => [
|
|
26
|
-
|
|
27
|
-
e[1] || (e[1] =
|
|
27
|
+
t("div", y, [
|
|
28
|
+
e[1] || (e[1] = t("label", {
|
|
28
29
|
class: "absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text",
|
|
29
30
|
for: "cookiename"
|
|
30
31
|
}, null, -1)),
|
|
31
|
-
|
|
32
|
+
t("input", {
|
|
32
33
|
id: "cookiename",
|
|
33
34
|
class: "md:pl-1 outline-none border-0 text-c-2 rounded pointer-events-auto relative w-full",
|
|
34
35
|
placeholder: "Cookie Name",
|
|
35
|
-
value:
|
|
36
|
+
value: l.value.name,
|
|
36
37
|
onInput: e[0] || (e[0] = (c) => a("name", c.target.value))
|
|
37
|
-
}, null, 40,
|
|
38
|
+
}, null, 40, _)
|
|
38
39
|
])
|
|
39
40
|
]),
|
|
40
41
|
_: 1
|
|
@@ -42,5 +43,5 @@ const h = { class: "flex items-center pointer-events-none" }, y = ["value"], w =
|
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
F as default
|
|
46
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CookieRaw.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/CookieRaw.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CookieRaw.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/CookieRaw.vue"],"names":[],"mappings":";AA+GA,wBAMG"}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { defineComponent as p, openBlock as r, createBlock as n, withCtx as i, createElementVNode as s, unref as e, createCommentVNode as a } from "vue";
|
|
2
|
+
import l from "../../components/CodeInput/CodeInput.vue.js";
|
|
3
|
+
import u from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
|
+
import { useActiveEntities as c } from "../../store/active-entities.js";
|
|
5
|
+
import { useWorkspace as f } from "../../store/store.js";
|
|
6
|
+
const y = /* @__PURE__ */ p({
|
|
6
7
|
__name: "CookieRaw",
|
|
7
8
|
setup(d) {
|
|
8
|
-
const {
|
|
9
|
-
return (
|
|
10
|
-
title:
|
|
11
|
-
|
|
9
|
+
const { activeCookieId: o } = c(), { cookies: m } = f();
|
|
10
|
+
return (k, t) => (r(), n(u, null, {
|
|
11
|
+
title: i(() => t[0] || (t[0] = [
|
|
12
|
+
s("span", null, "Raw Cookie String", -1)
|
|
12
13
|
])),
|
|
13
|
-
default:
|
|
14
|
-
e(o) && e(
|
|
14
|
+
default: i(() => [
|
|
15
|
+
e(o) && e(m)[e(o)] ? (r(), n(l, {
|
|
15
16
|
key: 0,
|
|
16
17
|
class: "pl-px pr-2 md:px-2 py-2.5",
|
|
17
18
|
lineNumbers: "",
|
|
18
19
|
modelValue: ""
|
|
19
|
-
})) :
|
|
20
|
+
})) : a("", !0)
|
|
20
21
|
]),
|
|
21
22
|
_: 1
|
|
22
23
|
}));
|
|
23
24
|
}
|
|
24
25
|
});
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
y as default
|
|
27
28
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActiveEntitiesStore } from '../../store/active-entities.js';
|
|
2
2
|
import type { Router } from 'vue-router';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
query: string;
|
|
5
|
-
activeEnvironment:
|
|
6
|
-
activeEnvVariables:
|
|
5
|
+
activeEnvironment: ActiveEntitiesStore['activeEnvironment'];
|
|
6
|
+
activeEnvVariables: ActiveEntitiesStore['activeEnvVariables'];
|
|
7
7
|
router: Router;
|
|
8
8
|
dropdownPosition?: {
|
|
9
9
|
left: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAyKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAKlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;IAC3D,kBAAkB,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;IAC7D,MAAM,EAAE,MAAM,CAAA;IAEd,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAkEiC,IAAI,GAAG,MAAM;;;;;;;AAiNhD,wBASG"}
|
|
@@ -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":";;cAmQ8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAyXjD,wBAMG"}
|
|
@@ -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-c1de4550"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,149 +1,149 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { importCurlCommand as
|
|
1
|
+
import { defineComponent as K, ref as R, computed as B, watch as P, onMounted as X, onBeforeUnmount as Y, openBlock as b, createElementBlock as Z, Fragment as _, createElementVNode as ee, normalizeClass as N, unref as s, createVNode as d, withCtx as O, createBlock as g, createCommentVNode as I } from "vue";
|
|
2
|
+
import te from "../../components/ImportCurl/ImportCurlModal.vue.js";
|
|
3
|
+
import oe from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
4
|
+
import re from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
5
|
+
import { importCurlCommand as se } from "../../libs/importers/curl.js";
|
|
6
6
|
import { createRequestOperation as ue } from "../../libs/send-request.js";
|
|
7
|
+
import { useActiveEntities as ae } from "../../store/active-entities.js";
|
|
7
8
|
import le from "./RequestSection/RequestSection.vue.js";
|
|
8
9
|
import ne from "./RequestSubpageHeader.vue.js";
|
|
9
10
|
import ie from "./ResponseSection/ResponseSection.vue.js";
|
|
10
11
|
import { useOpenApiWatcher as me } from "./hooks/useOpenApiWatcher.js";
|
|
11
12
|
import { safeJSON as ce } from "@scalar/object-utils/parse";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
13
|
+
import { useBreakpoints as de } from "@scalar/use-hooks/useBreakpoints";
|
|
14
|
+
import { useToasts as ve } from "@scalar/use-toasts";
|
|
14
15
|
import { useRouter as pe } from "vue-router";
|
|
15
16
|
import fe from "./RequestSidebar.vue.js";
|
|
16
|
-
import { ERRORS as
|
|
17
|
-
import { useWorkspace as
|
|
18
|
-
const
|
|
17
|
+
import { ERRORS as Se } from "../../libs/errors.js";
|
|
18
|
+
import { useWorkspace as ye } from "../../store/store.js";
|
|
19
|
+
const He = /* @__PURE__ */ K({
|
|
19
20
|
__name: "Request",
|
|
20
21
|
emits: ["newTab"],
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
activeEnvironment: T,
|
|
22
|
+
setup(Re) {
|
|
23
|
+
const T = ye(), { toast: w } = ve(), {
|
|
24
|
+
activeCollection: x,
|
|
25
|
+
activeExample: v,
|
|
26
|
+
activeEnvironment: M,
|
|
27
27
|
activeRequest: q,
|
|
28
|
-
activeWorkspace:
|
|
29
|
-
activeServer: A
|
|
28
|
+
activeWorkspace: a,
|
|
29
|
+
activeServer: A
|
|
30
|
+
} = ae(), {
|
|
30
31
|
cookies: H,
|
|
31
|
-
isReadOnly:
|
|
32
|
-
modalState:
|
|
33
|
-
requestHistory:
|
|
34
|
-
securitySchemes:
|
|
35
|
-
requestMutators:
|
|
36
|
-
serverMutators:
|
|
37
|
-
servers:
|
|
38
|
-
events:
|
|
39
|
-
} =
|
|
40
|
-
() =>
|
|
32
|
+
isReadOnly: l,
|
|
33
|
+
modalState: n,
|
|
34
|
+
requestHistory: k,
|
|
35
|
+
securitySchemes: L,
|
|
36
|
+
requestMutators: $,
|
|
37
|
+
serverMutators: W,
|
|
38
|
+
servers: j,
|
|
39
|
+
events: p
|
|
40
|
+
} = T, u = R(!l), E = R(), e = R(), h = R(""), D = pe(), F = B(
|
|
41
|
+
() => k.findLast((o) => {
|
|
41
42
|
var t;
|
|
42
|
-
return o.request.uid === ((t =
|
|
43
|
+
return o.request.uid === ((t = v.value) == null ? void 0 : t.uid);
|
|
43
44
|
})
|
|
44
|
-
),
|
|
45
|
-
|
|
46
|
-
const U =
|
|
45
|
+
), { mediaQueries: Q } = de();
|
|
46
|
+
P(Q.md, (o) => u.value = o);
|
|
47
|
+
const U = B(
|
|
47
48
|
() => {
|
|
48
49
|
var o, t;
|
|
49
|
-
return (
|
|
50
|
+
return (l ? (o = x.value) == null ? void 0 : o.selectedSecuritySchemeUids : (t = q.value) == null ? void 0 : t.selectedSecuritySchemeUids) ?? [];
|
|
50
51
|
}
|
|
51
|
-
),
|
|
52
|
-
var
|
|
53
|
-
if (!q.value || !
|
|
52
|
+
), C = async () => {
|
|
53
|
+
var S;
|
|
54
|
+
if (!q.value || !v.value || !x.value)
|
|
54
55
|
return;
|
|
55
|
-
const o = ce.parse(((
|
|
56
|
+
const o = ce.parse(((S = M.value) == null ? void 0 : S.value) || "{}");
|
|
56
57
|
o.error && console.error("INVALID ENVIRONMENT!");
|
|
57
|
-
const t = o.error || typeof o.data != "object" ? {} : o.data ?? {}, r =
|
|
58
|
-
auth: S.value.auth,
|
|
58
|
+
const t = o.error || typeof o.data != "object" ? {} : o.data ?? {}, r = a.value.cookies.map((y) => H[y]), [i, m] = ue({
|
|
59
59
|
request: q.value,
|
|
60
|
-
example:
|
|
60
|
+
example: v.value,
|
|
61
61
|
selectedSecuritySchemeUids: U.value,
|
|
62
|
-
proxy:
|
|
62
|
+
proxy: a.value.proxyUrl ?? "",
|
|
63
63
|
environment: t,
|
|
64
64
|
globalCookies: r,
|
|
65
|
-
status:
|
|
66
|
-
securitySchemes:
|
|
65
|
+
status: p.requestStatus,
|
|
66
|
+
securitySchemes: L,
|
|
67
67
|
server: A.value
|
|
68
68
|
});
|
|
69
|
-
if (
|
|
70
|
-
|
|
69
|
+
if (i) {
|
|
70
|
+
w(i.message, "error");
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
const [
|
|
75
|
-
|
|
76
|
-
},
|
|
73
|
+
E.value = m.controller;
|
|
74
|
+
const [c, f] = await m.sendRequest();
|
|
75
|
+
c ? w(c.message, "error") : k.push(f);
|
|
76
|
+
}, z = async () => {
|
|
77
77
|
var o;
|
|
78
|
-
return (o =
|
|
78
|
+
return (o = E.value) == null ? void 0 : o.abort(Se.REQUEST_ABORTED);
|
|
79
79
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}), me(),
|
|
83
|
-
function
|
|
84
|
-
var r,
|
|
80
|
+
X(() => {
|
|
81
|
+
p.executeRequest.on(C), p.cancelRequest.on(z);
|
|
82
|
+
}), me(), Y(() => p.executeRequest.off(C));
|
|
83
|
+
function J({ requestName: o }) {
|
|
84
|
+
var r, i, m, c;
|
|
85
85
|
if (!e.value) return;
|
|
86
86
|
if (e.value.servers) {
|
|
87
|
-
const
|
|
88
|
-
(
|
|
89
|
-
var y,
|
|
90
|
-
return
|
|
87
|
+
const f = Object.values(j).find(
|
|
88
|
+
(S) => {
|
|
89
|
+
var y, V;
|
|
90
|
+
return S.url === ((V = (y = e == null ? void 0 : e.value) == null ? void 0 : y.servers) == null ? void 0 : V[0]);
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
|
-
|
|
93
|
+
f ? h.value = f.uid : h.value = W.add(
|
|
94
94
|
{ url: e.value.servers[0] },
|
|
95
|
-
|
|
95
|
+
a.value.collections[0]
|
|
96
96
|
).uid;
|
|
97
97
|
}
|
|
98
|
-
const t =
|
|
98
|
+
const t = $.add(
|
|
99
99
|
{
|
|
100
100
|
summary: o,
|
|
101
101
|
path: (r = e == null ? void 0 : e.value) == null ? void 0 : r.path,
|
|
102
|
-
method: (
|
|
103
|
-
parameters: (
|
|
102
|
+
method: (i = e == null ? void 0 : e.value) == null ? void 0 : i.method,
|
|
103
|
+
parameters: (m = e == null ? void 0 : e.value) == null ? void 0 : m.parameters,
|
|
104
104
|
selectedServerUid: h.value,
|
|
105
|
-
requestBody: (
|
|
105
|
+
requestBody: (c = e == null ? void 0 : e.value) == null ? void 0 : c.requestBody
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
a.value.collections[0]
|
|
108
108
|
);
|
|
109
|
-
t &&
|
|
110
|
-
`/workspace/${
|
|
111
|
-
),
|
|
109
|
+
t && D.push(
|
|
110
|
+
`/workspace/${a.value.uid}/request/${t.uid}`
|
|
111
|
+
), n.hide();
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
e.value =
|
|
113
|
+
function G(o) {
|
|
114
|
+
e.value = se(o), n.show();
|
|
115
115
|
}
|
|
116
|
-
return (o, t) => (
|
|
117
|
-
|
|
118
|
-
class:
|
|
119
|
-
"!mr-0 !mb-0 !border-0":
|
|
116
|
+
return (o, t) => (b(), Z(_, null, [
|
|
117
|
+
ee("div", {
|
|
118
|
+
class: N(["flex flex-1 flex-col pt-0 h-full bg-b-1 relative overflow-hidden", {
|
|
119
|
+
"!mr-0 !mb-0 !border-0": s(l)
|
|
120
120
|
}])
|
|
121
121
|
}, [
|
|
122
|
-
|
|
122
|
+
d(ne, {
|
|
123
123
|
modelValue: u.value,
|
|
124
124
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => u.value = r),
|
|
125
|
-
isReadonly:
|
|
126
|
-
onHideModal: t[1] || (t[1] = () =>
|
|
127
|
-
onImportCurl:
|
|
125
|
+
isReadonly: s(l),
|
|
126
|
+
onHideModal: t[1] || (t[1] = () => s(n).hide()),
|
|
127
|
+
onImportCurl: G
|
|
128
128
|
}, null, 8, ["modelValue", "isReadonly"]),
|
|
129
|
-
|
|
130
|
-
default:
|
|
131
|
-
|
|
132
|
-
isReadonly:
|
|
129
|
+
d(oe, null, {
|
|
130
|
+
default: O(() => [
|
|
131
|
+
d(fe, {
|
|
132
|
+
isReadonly: s(l),
|
|
133
133
|
showSidebar: u.value,
|
|
134
134
|
onNewTab: t[2] || (t[2] = (r) => o.$emit("newTab", r)),
|
|
135
135
|
"onUpdate:showSidebar": t[3] || (t[3] = (r) => u.value = r)
|
|
136
136
|
}, null, 8, ["isReadonly", "showSidebar"]),
|
|
137
|
-
|
|
137
|
+
s(v) ? (b(), g(re, {
|
|
138
138
|
key: 0,
|
|
139
|
-
class:
|
|
139
|
+
class: N(["flex-1", [u.value ? "sidebar-active-hide-layout" : ""]])
|
|
140
140
|
}, {
|
|
141
|
-
default:
|
|
141
|
+
default: O(() => {
|
|
142
142
|
var r;
|
|
143
143
|
return [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
response: (r =
|
|
144
|
+
d(le, { selectedSecuritySchemeUids: U.value }, null, 8, ["selectedSecuritySchemeUids"]),
|
|
145
|
+
d(ie, {
|
|
146
|
+
response: (r = F.value) == null ? void 0 : r.response
|
|
147
147
|
}, null, 8, ["response"])
|
|
148
148
|
];
|
|
149
149
|
}),
|
|
@@ -153,16 +153,16 @@ const Ae = /* @__PURE__ */ P({
|
|
|
153
153
|
_: 1
|
|
154
154
|
})
|
|
155
155
|
], 2),
|
|
156
|
-
e.value ? (
|
|
156
|
+
e.value ? (b(), g(te, {
|
|
157
157
|
key: 0,
|
|
158
158
|
parsedCurl: e.value,
|
|
159
|
-
state:
|
|
160
|
-
onClose: t[4] || (t[4] = (r) =>
|
|
161
|
-
onImportCurl:
|
|
159
|
+
state: s(n),
|
|
160
|
+
onClose: t[4] || (t[4] = (r) => s(n).hide()),
|
|
161
|
+
onImportCurl: J
|
|
162
162
|
}, null, 8, ["parsedCurl", "state"])) : I("", !0)
|
|
163
163
|
], 64));
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
export {
|
|
167
|
-
|
|
167
|
+
He as default
|
|
168
168
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Oauth2Flow, type SecuritySchemeOauth2 } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
example: SecuritySchemeOauth2ExampleValue;
|
|
4
3
|
scheme: SecuritySchemeOauth2;
|
|
4
|
+
flow: Oauth2Flow;
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAwOA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,oBAAoB,EAE1B,MAAM,iCAAiC,CAAA;AAOxC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC;;AAudF,wBAMG"}
|