@scalar/api-client 2.3.19 → 2.3.20
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 +28 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +132 -120
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +138 -125
- package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -1
- package/dist/components/ImportCollection/utils/import-collection.js +17 -14
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +16 -19
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +10 -8
- package/dist/layouts/Modal/create-api-client-modal.d.ts +32 -38
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +16 -19
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +16 -19
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +1 -1
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +1 -1
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +7 -6
- package/dist/store/store.d.ts +16 -19
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +10 -10
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.js +2 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +22 -19
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.js +1 -1
- package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +11 -11
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +29 -30
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -32
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +129 -126
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItem.vue2.js +235 -241
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +12 -12
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
- package/dist/views/Request/hooks/useOpenApiWatcher.js +34 -34
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +2 -0
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionAuthentication.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionAuthentication.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CollectionAuthentication.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionAuthentication.vue"],"names":[],"mappings":";AAgPA,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CollectionAuthentication.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e76fc233"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarToggle as
|
|
3
|
-
import { useActiveEntities as
|
|
4
|
-
import { useWorkspace as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as v, openBlock as r, createElementBlock as h, createElementVNode as o, createVNode as x, unref as e, createBlock as y, normalizeClass as S, createCommentVNode as b } from "vue";
|
|
2
|
+
import { ScalarToggle as C } from "@scalar/components";
|
|
3
|
+
import { useActiveEntities as _ } from "../../store/active-entities.js";
|
|
4
|
+
import { useWorkspace as V } from "../../store/store.js";
|
|
5
|
+
import g from "../Request/RequestSection/RequestAuth/RequestAuth.vue.js";
|
|
6
|
+
const k = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, w = { class: "flex flex-col gap-4" }, A = { class: "bg-b-1 flex items-center justify-between gap-4 text-sm" }, W = /* @__PURE__ */ v({
|
|
7
7
|
__name: "CollectionAuthentication",
|
|
8
|
-
setup(
|
|
8
|
+
setup(E) {
|
|
9
9
|
const {
|
|
10
10
|
activeCollection: t,
|
|
11
11
|
activeEnvVariables: u,
|
|
12
12
|
activeEnvironment: m,
|
|
13
13
|
activeServer: d,
|
|
14
14
|
activeWorkspace: i
|
|
15
|
-
} =
|
|
15
|
+
} = _(), { collectionMutators: p } = V(), f = () => {
|
|
16
16
|
var c;
|
|
17
|
-
(c = t.value) != null && c.uid &&
|
|
17
|
+
(c = t.value) != null && c.uid && p.edit(
|
|
18
18
|
t.value.uid,
|
|
19
19
|
"useCollectionSecurity",
|
|
20
20
|
!t.value.useCollectionSecurity
|
|
@@ -22,36 +22,39 @@ const g = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, k = { cla
|
|
|
22
22
|
};
|
|
23
23
|
return (c, l) => {
|
|
24
24
|
var n, s, a;
|
|
25
|
-
return r(),
|
|
26
|
-
o("div",
|
|
25
|
+
return r(), h("div", k, [
|
|
26
|
+
o("div", w, [
|
|
27
27
|
l[1] || (l[1] = o("div", { class: "flex h-8 items-center" }, [
|
|
28
28
|
o("h3", { class: "font-bold" }, "Authenticate with the API once")
|
|
29
29
|
], -1)),
|
|
30
|
-
o("div",
|
|
30
|
+
o("div", A, [
|
|
31
31
|
l[0] || (l[0] = o("p", { class: "text-c-2 flex flex-1 text-balance" }, " Don’t want to set up the authentication for each request? Enable this option to set the authentication once for the whole collection. ", -1)),
|
|
32
|
-
x(e(
|
|
32
|
+
x(e(C), {
|
|
33
33
|
class: "w-4",
|
|
34
34
|
modelValue: ((n = e(t)) == null ? void 0 : n.useCollectionSecurity) ?? !1,
|
|
35
|
-
"onUpdate:modelValue":
|
|
35
|
+
"onUpdate:modelValue": f
|
|
36
36
|
}, null, 8, ["modelValue"])
|
|
37
37
|
]),
|
|
38
|
-
|
|
38
|
+
e(t) && e(i) ? (r(), y(e(g), {
|
|
39
39
|
key: 0,
|
|
40
|
-
class:
|
|
40
|
+
class: S([
|
|
41
|
+
"scalar-collection-auth",
|
|
42
|
+
!((s = e(t)) != null && s.useCollectionSecurity) && "pointer-events-none opacity-50 mix-blend-luminosity"
|
|
43
|
+
]),
|
|
41
44
|
collection: e(t),
|
|
42
45
|
envVariables: e(u),
|
|
43
46
|
environment: e(m),
|
|
44
|
-
layout: "
|
|
47
|
+
layout: "client",
|
|
45
48
|
selectedSecuritySchemeUids: ((a = e(t)) == null ? void 0 : a.selectedSecuritySchemeUids) ?? [],
|
|
46
49
|
server: e(d),
|
|
47
50
|
title: "Authentication",
|
|
48
51
|
workspace: e(i)
|
|
49
|
-
}, null, 8, ["collection", "envVariables", "environment", "selectedSecuritySchemeUids", "server", "workspace"])) :
|
|
52
|
+
}, null, 8, ["class", "collection", "envVariables", "environment", "selectedSecuritySchemeUids", "server", "workspace"])) : b("", !0)
|
|
50
53
|
])
|
|
51
54
|
]);
|
|
52
55
|
};
|
|
53
56
|
}
|
|
54
57
|
});
|
|
55
58
|
export {
|
|
56
|
-
|
|
59
|
+
W as default
|
|
57
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionSettings.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CollectionSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionSettings.vue"],"names":[],"mappings":";AAweA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CollectionSettings.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e94b489c"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -5,7 +5,7 @@ import B from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js"
|
|
|
5
5
|
import { useActiveEntities as E } from "../../store/active-entities.js";
|
|
6
6
|
import { PathId as k } from "../../routes.js";
|
|
7
7
|
import { useWorkspace as I } from "../../store/store.js";
|
|
8
|
-
const $ = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, L = { class: "flex flex-col gap-2" }, O = { class: "bg-b-2 rounded-lg border text-sm" }, P = { class: "bg-b-1
|
|
8
|
+
const $ = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, L = { class: "flex flex-col gap-2" }, O = { class: "bg-b-2 rounded-lg border text-sm" }, P = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, R = { class: "text-c-1 flex items-center overflow-x-auto whitespace-nowrap border-t py-1.5" }, j = { class: "flex items-center" }, z = ["href"], F = { class: "flex flex-col gap-4" }, Z = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, te = /* @__PURE__ */ D({
|
|
9
9
|
__name: "CollectionSettings",
|
|
10
10
|
setup(q) {
|
|
11
11
|
const { activeCollection: o, activeWorkspace: a, activeWorkspaceCollections: C } = E(), { collectionMutators: m } = I(), { replace: y } = A(), i = S();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Collection/components/MarkdownInput.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"MarkdownInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Collection/components/MarkdownInput.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;AAuSF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./MarkdownInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-27b2f04b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as g, ref as
|
|
2
|
-
import { ScalarButton as c, ScalarIcon as b, ScalarMarkdown as
|
|
1
|
+
import { defineComponent as g, ref as p, watch as w, nextTick as x, openBlock as o, createElementBlock as i, createElementVNode as n, createBlock as u, unref as s, withCtx as v, createVNode as d, createCommentVNode as a, Fragment as f } from "vue";
|
|
2
|
+
import { ScalarButton as c, ScalarIcon as b, ScalarMarkdown as h } from "@scalar/components";
|
|
3
3
|
import y from "../../../components/CodeInput/CodeInput.vue.js";
|
|
4
|
-
const z = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "flex min-h-8 items-center justify-between gap-2 pl-1.5" }, I = { class: "has-[:focus-visible]:bg-b-1 z-1 group relative flex flex-col rounded-lg" }, B = { class: "h-full min-h-[calc(1rem*4)]" }, $ = {
|
|
4
|
+
const z = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "flex min-h-8 items-center justify-between gap-2 pl-1.5" }, I = { class: "has-[:focus-visible]:bg-b-1 z-1 group relative flex flex-col rounded-lg" }, B = { class: "flex h-full min-h-[calc(1rem*4)] flex-col" }, $ = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4"
|
|
7
7
|
}, D = /* @__PURE__ */ g({
|
|
@@ -14,11 +14,11 @@ const z = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:modelValue"],
|
|
16
16
|
setup(E, { emit: k }) {
|
|
17
|
-
const V = k, t =
|
|
17
|
+
const V = k, t = p("preview"), m = p(null);
|
|
18
18
|
return w(t, (l) => {
|
|
19
|
-
l === "edit" &&
|
|
19
|
+
l === "edit" && x(() => {
|
|
20
20
|
var e;
|
|
21
|
-
(e =
|
|
21
|
+
(e = m.value) == null || e.focus();
|
|
22
22
|
});
|
|
23
23
|
}), (l, e) => (o(), i("div", z, [
|
|
24
24
|
n("div", C, [
|
|
@@ -45,10 +45,10 @@ const z = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
|
|
|
45
45
|
n("div", I, [
|
|
46
46
|
n("div", B, [
|
|
47
47
|
t.value === "preview" ? (o(), i(f, { key: 0 }, [
|
|
48
|
-
l.modelValue ? (o(), i(f, { key: 0 }, [
|
|
49
|
-
l.modelValue ? (o(), u(s(
|
|
48
|
+
l.modelValue && l.modelValue.trim().length ? (o(), i(f, { key: 0 }, [
|
|
49
|
+
l.modelValue ? (o(), u(s(h), {
|
|
50
50
|
key: 0,
|
|
51
|
-
class: "hover:border-b-3 h-full rounded border border-transparent p-1.5",
|
|
51
|
+
class: "hover:border-b-3 h-full flex-1 rounded border border-transparent p-1.5",
|
|
52
52
|
value: l.modelValue,
|
|
53
53
|
withImages: "",
|
|
54
54
|
onDblclick: e[1] || (e[1] = (r) => t.value = "edit")
|
|
@@ -76,8 +76,8 @@ const z = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
|
|
|
76
76
|
t.value === "edit" ? (o(), u(y, {
|
|
77
77
|
key: 1,
|
|
78
78
|
ref_key: "codeInputRef",
|
|
79
|
-
ref:
|
|
80
|
-
class: "h-full border px-0.5 py-0",
|
|
79
|
+
ref: m,
|
|
80
|
+
class: "h-full flex-1 border px-0.5 py-0",
|
|
81
81
|
envVariables: l.envVariables,
|
|
82
82
|
environment: l.environment,
|
|
83
83
|
modelValue: l.modelValue,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AAgNA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAgNF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuthDataTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9f1d3e60"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as b, ref as
|
|
2
|
-
import { useModal as
|
|
1
|
+
import { defineComponent as b, ref as m, computed as y, watch as k, openBlock as o, createElementBlock as s, withModifiers as w, Fragment as x, renderList as S, normalizeClass as d, createElementVNode as v, toDisplayString as g, createCommentVNode as p, createBlock as C, unref as a, withCtx as V, createVNode as h } from "vue";
|
|
2
|
+
import { useModal as _ } from "@scalar/components";
|
|
3
3
|
import O from "./DeleteRequestAuthModal.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
4
|
+
import z from "./RequestAuthTab.vue.js";
|
|
5
|
+
import M from "../../../../components/DataTable/DataTable.vue.js";
|
|
6
|
+
const N = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "flex flex-wrap gap-x-2.5 overflow-hidden border-t px-3"
|
|
8
|
+
class: "box-content flex h-8 flex-wrap gap-x-2.5 overflow-hidden border-t px-3"
|
|
9
9
|
}, $ = ["onClick"], A = { class: "relative z-10 whitespace-nowrap font-medium" }, B = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "z-1 absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 h-px w-full -translate-x-1/2 bg-current"
|
|
12
12
|
}, q = {
|
|
13
13
|
key: 2,
|
|
14
|
-
class: "text-c-3 bg-b-1 flex min-h-
|
|
14
|
+
class: "text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t px-4 text-sm"
|
|
15
15
|
}, F = /* @__PURE__ */ b({
|
|
16
16
|
__name: "RequestAuthDataTable",
|
|
17
17
|
props: {
|
|
@@ -23,54 +23,53 @@ const _ = {
|
|
|
23
23
|
server: {},
|
|
24
24
|
workspace: {}
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
26
|
+
setup(i) {
|
|
27
|
+
const c = _(), f = m(
|
|
28
28
|
null
|
|
29
|
-
),
|
|
30
|
-
const e =
|
|
29
|
+
), t = m(0), u = y(() => {
|
|
30
|
+
const e = i.selectedSchemeOptions[t.value];
|
|
31
31
|
if (!e)
|
|
32
32
|
return [];
|
|
33
|
-
const
|
|
34
|
-
return
|
|
33
|
+
const r = e == null ? void 0 : e.id.split(",");
|
|
34
|
+
return r.length > 1 ? r : [e.id];
|
|
35
35
|
});
|
|
36
36
|
return k(
|
|
37
|
-
() =>
|
|
37
|
+
() => i.selectedSchemeOptions,
|
|
38
38
|
(e) => {
|
|
39
|
-
e[
|
|
39
|
+
e[t.value] || (t.value = Math.max(0, t.value - 1));
|
|
40
40
|
}
|
|
41
|
-
), (e,
|
|
42
|
-
onSubmit:
|
|
41
|
+
), (e, r) => (o(), s("form", {
|
|
42
|
+
onSubmit: r[1] || (r[1] = w(() => {
|
|
43
43
|
}, ["prevent"]))
|
|
44
44
|
}, [
|
|
45
|
-
e.selectedSchemeOptions.length > 1 ? (o(), s("div",
|
|
45
|
+
e.selectedSchemeOptions.length > 1 ? (o(), s("div", N, [
|
|
46
46
|
(o(!0), s(x, null, S(e.selectedSchemeOptions, (l, n) => (o(), s("div", {
|
|
47
47
|
key: l.id,
|
|
48
|
-
class:
|
|
48
|
+
class: d(["z-1 relative -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [t.value === n ? "text-c-1" : "text-c-3"]])
|
|
49
49
|
}, [
|
|
50
|
-
|
|
50
|
+
v("button", {
|
|
51
51
|
class: "floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",
|
|
52
52
|
type: "button",
|
|
53
|
-
onClick: (D) =>
|
|
53
|
+
onClick: (D) => t.value = n
|
|
54
54
|
}, [
|
|
55
|
-
|
|
55
|
+
v("span", A, g(l.label), 1)
|
|
56
56
|
], 8, $),
|
|
57
|
-
t
|
|
58
|
-
r.value === n ? (o(), s("div", B)) : p("", !0)
|
|
57
|
+
t.value === n ? (o(), s("div", B)) : p("", !0)
|
|
59
58
|
], 2))), 128))
|
|
60
59
|
])) : p("", !0),
|
|
61
|
-
|
|
60
|
+
u.value.length ? (o(), C(a(M), {
|
|
62
61
|
key: 1,
|
|
63
|
-
class:
|
|
62
|
+
class: d(["flex-1", e.layout === "reference" && "border-0"]),
|
|
64
63
|
columns: [""],
|
|
65
64
|
presentational: ""
|
|
66
65
|
}, {
|
|
67
66
|
default: V(() => [
|
|
68
|
-
h(
|
|
67
|
+
h(z, {
|
|
69
68
|
collection: e.collection,
|
|
70
69
|
envVariables: e.envVariables,
|
|
71
70
|
environment: e.environment,
|
|
72
71
|
layout: e.layout,
|
|
73
|
-
securitySchemeUids:
|
|
72
|
+
securitySchemeUids: u.value,
|
|
74
73
|
server: e.server,
|
|
75
74
|
workspace: e.workspace
|
|
76
75
|
}, null, 8, ["collection", "envVariables", "environment", "layout", "securitySchemeUids", "server", "workspace"])
|
|
@@ -79,8 +78,8 @@ const _ = {
|
|
|
79
78
|
}, 8, ["class"])) : (o(), s("div", q, " No authentication selected ")),
|
|
80
79
|
h(O, {
|
|
81
80
|
scheme: f.value,
|
|
82
|
-
state:
|
|
83
|
-
onClose:
|
|
81
|
+
state: a(c),
|
|
82
|
+
onClose: r[0] || (r[0] = (l) => a(c).hide())
|
|
84
83
|
}, null, 8, ["scheme", "state"])
|
|
85
84
|
], 32));
|
|
86
85
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAuaF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuthTab.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ a(t, [["__scopeId", "data-v-10acaca1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, computed as N, ref as P, openBlock as
|
|
1
|
+
import { defineComponent as F, computed as N, ref as P, openBlock as a, createElementBlock as n, Fragment as p, renderList as g, createBlock as $, unref as d, normalizeClass as C, withCtx as l, createVNode as u, createTextVNode as y, toDisplayString as m, createCommentVNode as v, mergeProps as V, createElementVNode as T, capitalize as _ } from "vue";
|
|
2
2
|
import { useWorkspace as j } from "../../../../store/store.js";
|
|
3
3
|
import q from "./OAuth2.vue.js";
|
|
4
4
|
import w from "./RequestAuthDataTableInput.vue.js";
|
|
@@ -9,7 +9,7 @@ const R = {
|
|
|
9
9
|
class: "flex min-h-8 border-t text-sm"
|
|
10
10
|
}, z = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, L = ["onClick"], M = { class: "relative z-10" }, Q = {
|
|
11
11
|
key: 5,
|
|
12
|
-
class: "text-c-3 bg-b-1 flex min-h-
|
|
12
|
+
class: "text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t px-4 text-sm"
|
|
13
13
|
}, J = /* @__PURE__ */ F({
|
|
14
14
|
__name: "RequestAuthTab",
|
|
15
15
|
props: {
|
|
@@ -40,20 +40,20 @@ const R = {
|
|
|
40
40
|
envVariables: c.envVariables,
|
|
41
41
|
workspace: c.workspace
|
|
42
42
|
};
|
|
43
|
-
return (t, r) => (
|
|
43
|
+
return (t, r) => (a(!0), n(p, null, g(U.value, ({ scheme: e }) => (a(), n(p, {
|
|
44
44
|
key: e == null ? void 0 : e.uid
|
|
45
45
|
}, [
|
|
46
|
-
U.value.length > 1 ? (
|
|
46
|
+
U.value.length > 1 ? (a(), $(d(s), {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: C({
|
|
49
49
|
"request-example-references-header": t.layout === "reference"
|
|
50
50
|
})
|
|
51
51
|
}, {
|
|
52
|
-
default:
|
|
52
|
+
default: l(() => [
|
|
53
53
|
u(d(S), {
|
|
54
54
|
class: C(["text-c-2 flex items-center pl-3", t.layout === "reference" && "border-b"])
|
|
55
55
|
}, {
|
|
56
|
-
default:
|
|
56
|
+
default: l(() => [
|
|
57
57
|
y(m(K(e)), 1)
|
|
58
58
|
]),
|
|
59
59
|
_: 2
|
|
@@ -61,10 +61,10 @@ const R = {
|
|
|
61
61
|
]),
|
|
62
62
|
_: 2
|
|
63
63
|
}, 1032, ["class"])) : v("", !0),
|
|
64
|
-
e != null && e.description && U.value.length <= 1 ? (
|
|
65
|
-
default:
|
|
64
|
+
e != null && e.description && U.value.length <= 1 ? (a(), $(d(s), { key: 1 }, {
|
|
65
|
+
default: l(() => [
|
|
66
66
|
u(d(S), { class: "text-c-2 flex items-center overflow-auto whitespace-nowrap pl-3" }, {
|
|
67
|
-
default:
|
|
67
|
+
default: l(() => [
|
|
68
68
|
y(m(e.description), 1)
|
|
69
69
|
]),
|
|
70
70
|
_: 2
|
|
@@ -72,9 +72,9 @@ const R = {
|
|
|
72
72
|
]),
|
|
73
73
|
_: 2
|
|
74
74
|
}, 1024)) : v("", !0),
|
|
75
|
-
(e == null ? void 0 : e.type) === "http" ? (
|
|
76
|
-
e.scheme === "bearer" ? (
|
|
77
|
-
default:
|
|
75
|
+
(e == null ? void 0 : e.type) === "http" ? (a(), n(p, { key: 2 }, [
|
|
76
|
+
e.scheme === "bearer" ? (a(), $(d(s), { key: 0 }, {
|
|
77
|
+
default: l(() => [
|
|
78
78
|
u(w, V({ ref_for: !0 }, b, {
|
|
79
79
|
containerClass: t.layout === "reference" && "border-t",
|
|
80
80
|
modelValue: e.token,
|
|
@@ -82,16 +82,16 @@ const R = {
|
|
|
82
82
|
type: "password",
|
|
83
83
|
"onUpdate:modelValue": (o) => k(e.uid, "token", o)
|
|
84
84
|
}), {
|
|
85
|
-
default:
|
|
85
|
+
default: l(() => r[0] || (r[0] = [
|
|
86
86
|
y(" Bearer Token ")
|
|
87
87
|
])),
|
|
88
88
|
_: 2
|
|
89
89
|
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
90
90
|
]),
|
|
91
91
|
_: 2
|
|
92
|
-
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (
|
|
92
|
+
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (a(), n(p, { key: 1 }, [
|
|
93
93
|
u(d(s), null, {
|
|
94
|
-
default:
|
|
94
|
+
default: l(() => [
|
|
95
95
|
u(w, V({ ref_for: !0 }, b, {
|
|
96
96
|
class: "text-c-2",
|
|
97
97
|
containerClass: t.layout === "reference" && "auth-blend-required border-t",
|
|
@@ -100,7 +100,7 @@ const R = {
|
|
|
100
100
|
required: "",
|
|
101
101
|
"onUpdate:modelValue": (o) => k(e.uid, "username", o)
|
|
102
102
|
}), {
|
|
103
|
-
default:
|
|
103
|
+
default: l(() => r[1] || (r[1] = [
|
|
104
104
|
y(" Username ")
|
|
105
105
|
])),
|
|
106
106
|
_: 2
|
|
@@ -109,14 +109,14 @@ const R = {
|
|
|
109
109
|
_: 2
|
|
110
110
|
}, 1024),
|
|
111
111
|
u(d(s), null, {
|
|
112
|
-
default:
|
|
112
|
+
default: l(() => [
|
|
113
113
|
u(w, V({ ref_for: !0 }, b, {
|
|
114
114
|
modelValue: e.password,
|
|
115
115
|
placeholder: "********",
|
|
116
116
|
type: "password",
|
|
117
117
|
"onUpdate:modelValue": (o) => k(e.uid, "password", o)
|
|
118
118
|
}), {
|
|
119
|
-
default:
|
|
119
|
+
default: l(() => r[2] || (r[2] = [
|
|
120
120
|
y(" Password ")
|
|
121
121
|
])),
|
|
122
122
|
_: 2
|
|
@@ -125,16 +125,16 @@ const R = {
|
|
|
125
125
|
_: 2
|
|
126
126
|
}, 1024)
|
|
127
127
|
], 64)) : v("", !0)
|
|
128
|
-
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (
|
|
128
|
+
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (a(), n(p, { key: 3 }, [
|
|
129
129
|
u(d(s), null, {
|
|
130
|
-
default:
|
|
130
|
+
default: l(() => [
|
|
131
131
|
u(w, V({ ref_for: !0 }, b, {
|
|
132
132
|
containerClass: t.layout === "reference" && "border-t",
|
|
133
133
|
modelValue: e.name,
|
|
134
134
|
placeholder: "api-key",
|
|
135
135
|
"onUpdate:modelValue": (o) => k(e.uid, "name", o)
|
|
136
136
|
}), {
|
|
137
|
-
default:
|
|
137
|
+
default: l(() => r[3] || (r[3] = [
|
|
138
138
|
y(" Name ")
|
|
139
139
|
])),
|
|
140
140
|
_: 2
|
|
@@ -143,13 +143,14 @@ const R = {
|
|
|
143
143
|
_: 2
|
|
144
144
|
}, 1024),
|
|
145
145
|
u(d(s), null, {
|
|
146
|
-
default:
|
|
146
|
+
default: l(() => [
|
|
147
147
|
u(w, V({ ref_for: !0 }, b, {
|
|
148
148
|
modelValue: e.value,
|
|
149
149
|
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
150
|
+
type: "password",
|
|
150
151
|
"onUpdate:modelValue": (o) => k(e.uid, "value", o)
|
|
151
152
|
}), {
|
|
152
|
-
default:
|
|
153
|
+
default: l(() => r[4] || (r[4] = [
|
|
153
154
|
y(" Value ")
|
|
154
155
|
])),
|
|
155
156
|
_: 2
|
|
@@ -157,16 +158,16 @@ const R = {
|
|
|
157
158
|
]),
|
|
158
159
|
_: 2
|
|
159
160
|
}, 1024)
|
|
160
|
-
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (
|
|
161
|
+
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (a(), n(p, { key: 4 }, [
|
|
161
162
|
u(d(s), null, {
|
|
162
|
-
default:
|
|
163
|
-
Object.keys(e.flows).length > 1 ? (
|
|
163
|
+
default: l(() => [
|
|
164
|
+
Object.keys(e.flows).length > 1 ? (a(), n("div", R, [
|
|
164
165
|
T("div", z, [
|
|
165
|
-
(
|
|
166
|
+
(a(!0), n(p, null, g(e == null ? void 0 : e.flows, (o, f, x) => (a(), n("button", {
|
|
166
167
|
key: f,
|
|
167
168
|
class: C(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium", {
|
|
168
|
-
"!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (i.value === f ||
|
|
169
|
-
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (i.value === f ||
|
|
169
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (i.value === f || x === 0 && !i.value),
|
|
170
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (i.value === f || x === 0 && !i.value)
|
|
170
171
|
}]),
|
|
171
172
|
type: "button",
|
|
172
173
|
onClick: (D) => i.value = f
|
|
@@ -178,8 +179,8 @@ const R = {
|
|
|
178
179
|
]),
|
|
179
180
|
_: 2
|
|
180
181
|
}, 1024),
|
|
181
|
-
(
|
|
182
|
-
i.value === f ||
|
|
182
|
+
(a(!0), n(p, null, g(e == null ? void 0 : e.flows, (o, f, x) => (a(), n(p, { key: f }, [
|
|
183
|
+
i.value === f || x === 0 && !i.value ? (a(), $(q, V({
|
|
183
184
|
key: 0,
|
|
184
185
|
ref_for: !0
|
|
185
186
|
}, b, {
|
|
@@ -190,7 +191,7 @@ const R = {
|
|
|
190
191
|
workspace: t.workspace
|
|
191
192
|
}), null, 16, ["collection", "flow", "scheme", "server", "workspace"])) : v("", !0)
|
|
192
193
|
], 64))), 128))
|
|
193
|
-
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (
|
|
194
|
+
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (a(), n("div", Q, " Coming soon ")) : v("", !0)
|
|
194
195
|
], 64))), 128));
|
|
195
196
|
}
|
|
196
197
|
});
|
|
@@ -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":"AA4nBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAarE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAM1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA26BJ,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-20d48d32"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|