@scalar/api-client 2.4.4 → 2.5.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 +34 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +94 -96
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +3 -3
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +6 -6
- 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 +22 -22
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +15 -15
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
- package/dist/components/DataTable/DataTableText.vue.js +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +1 -1
- package/dist/components/Form/Form.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +5 -5
- package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
- package/dist/components/ScalarHotkey.vue.js +7 -7
- package/dist/components/SectionFilter.vue.js +2 -2
- package/dist/components/SectionFilter.vue2.js +1 -1
- package/dist/components/SectionFilterButton.vue.js +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +3 -3
- package/dist/components/Server/ServerSelector.vue.js +13 -13
- package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue.js +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +2 -2
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +1 -1
- 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 +3 -3
- package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -15
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +16 -16
- 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 +1 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +3 -3
- package/dist/layouts/Modal/create-api-client-modal.d.ts +32 -32
- 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/create-api-client-web.d.ts +16 -16
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +16 -16
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +13 -13
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +5 -3
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/store.d.ts +16 -16
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue2.js +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.js +2 -2
- package/dist/views/Collection/CollectionInfoForm.vue2.js +2 -2
- package/dist/views/Collection/CollectionNavigation.vue.js +2 -2
- package/dist/views/Collection/CollectionServers.vue2.js +2 -2
- package/dist/views/Collection/CollectionSettings.vue.js +1 -1
- package/dist/views/Collection/CollectionSettings.vue2.js +4 -4
- package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +7 -7
- package/dist/views/Environment/Environment.vue2.js +3 -3
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +3 -3
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +5 -5
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +15 -17
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +2 -2
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +8 -8
- package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
- package/dist/views/Request/RequestSubpageHeader.vue2.js +2 -2
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +1 -1
- 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 +15 -15
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +2 -2
- package/dist/views/Settings/components/SettingsAppearance.vue.js +1 -1
- package/package.json +15 -17
- package/dist/tailwind/desktop-variants.d.ts +0 -18
- package/dist/tailwind/desktop-variants.d.ts.map +0 -1
|
@@ -145,7 +145,7 @@ const ie = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, ce = { c
|
|
|
145
145
|
}, Q(o.name), 9, me)
|
|
146
146
|
]),
|
|
147
147
|
c(t(w), {
|
|
148
|
-
class: "hover:bg-b-3 hover:text-c-1 p-1.25
|
|
148
|
+
class: "hover:bg-b-3 hover:text-c-1 h-fit p-1.25",
|
|
149
149
|
variant: "ghost",
|
|
150
150
|
onClick: (a) => j(o.name)
|
|
151
151
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionInfoForm.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionInfoForm.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CollectionInfoForm.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionInfoForm.vue"],"names":[],"mappings":";AA0RA,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CollectionInfoForm.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-faabb883"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -5,7 +5,7 @@ import g from "../../components/Form/LabelInput.vue.js";
|
|
|
5
5
|
import k from "../../components/IconSelector.vue.js";
|
|
6
6
|
import { useActiveEntities as B } from "../../store/active-entities.js";
|
|
7
7
|
import { useWorkspace as E } from "../../store/store.js";
|
|
8
|
-
const N = ["aria-label"], U = { class: "ml-1.25
|
|
8
|
+
const N = ["aria-label"], U = { class: "group relative ml-1.25" }, S = /* @__PURE__ */ b({
|
|
9
9
|
__name: "CollectionInfoForm",
|
|
10
10
|
setup(L) {
|
|
11
11
|
const { activeCollection: e } = B(), { collectionMutators: l } = E(), n = p(
|
|
@@ -29,7 +29,7 @@ const N = ["aria-label"], U = { class: "ml-1.25 group relative" }, S = /* @__PUR
|
|
|
29
29
|
});
|
|
30
30
|
return (t, r) => (h(), v("div", {
|
|
31
31
|
"aria-label": `Collection: ${u.value.title}`,
|
|
32
|
-
class: "mx-auto flex h-fit w-full flex-col gap-2 pb-3
|
|
32
|
+
class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
|
|
33
33
|
}, [
|
|
34
34
|
a(k, {
|
|
35
35
|
modelValue: n.value,
|
|
@@ -7,7 +7,7 @@ import { useActiveEntities as L } from "../../store/active-entities.js";
|
|
|
7
7
|
const R = { class: "bg-b-1 sticky -top-[104px] z-10 mx-auto w-full" }, V = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "flex max-w-40 items-center"
|
|
10
|
-
}, A = { class: "text-c-1 mr-[6.25px] hidden overflow-hidden text-ellipsis whitespace-nowrap
|
|
10
|
+
}, A = { class: "text-c-1 mr-[6.25px] hidden overflow-hidden px-2 font-medium text-ellipsis whitespace-nowrap md:block" }, G = /* @__PURE__ */ b({
|
|
11
11
|
__name: "CollectionNavigation",
|
|
12
12
|
props: {
|
|
13
13
|
isSticky: { type: Boolean }
|
|
@@ -115,7 +115,7 @@ const R = { class: "bg-b-1 sticky -top-[104px] z-10 mx-auto w-full" }, V = {
|
|
|
115
115
|
}, [
|
|
116
116
|
(r(!0), m(g, null, C(h.value, ({ to: c, displayName: y }, w) => (r(), N(o(z), {
|
|
117
117
|
key: w,
|
|
118
|
-
class: "-ml-2 flex h-10 cursor-pointer items-center
|
|
118
|
+
class: "-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",
|
|
119
119
|
to: c
|
|
120
120
|
}, {
|
|
121
121
|
default: S(() => {
|
|
@@ -5,7 +5,7 @@ import V from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js"
|
|
|
5
5
|
import { useActiveEntities as E } from "../../store/active-entities.js";
|
|
6
6
|
import L from "./CollectionServerForm.vue.js";
|
|
7
7
|
import { useWorkspace as P } from "../../store/store.js";
|
|
8
|
-
const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, F = { class: "flex flex-col gap-4" }, O = { class: "rounded-lg border" }, R = { class: "bg-b-2 flex items-start justify-between rounded-t-lg py-1 pl-3
|
|
8
|
+
const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, F = { class: "flex flex-col gap-4" }, O = { class: "rounded-lg border" }, R = { class: "bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm" }, W = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "self-center"
|
|
11
11
|
}, Y = { class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4" }, te = /* @__PURE__ */ y({
|
|
@@ -43,7 +43,7 @@ const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, F = { cla
|
|
|
43
43
|
class: "self-center"
|
|
44
44
|
}, null, 8, ["value"])) : (o(), u("span", W, "Server " + I(k + 1), 1)),
|
|
45
45
|
n(e(p), {
|
|
46
|
-
class: "hover:bg-b-3 hover:text-c-1 p-1.25
|
|
46
|
+
class: "hover:bg-b-3 hover:text-c-1 h-fit p-1.25",
|
|
47
47
|
variant: "ghost",
|
|
48
48
|
onClick: (G) => b(r.uid)
|
|
49
49
|
}, {
|
|
@@ -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-5170f3be"]]);
|
|
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 flex items-center justify-between gap-4 rounded-t-lg p-3" }, R = { class: "text-c-1 flex items-center overflow-x-auto
|
|
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 border-t py-1.5 whitespace-nowrap" }, 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();
|
|
@@ -54,7 +54,7 @@ const $ = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, L = { cla
|
|
|
54
54
|
t("div", R, [
|
|
55
55
|
t("div", j, [
|
|
56
56
|
(v = l(o)) != null && v.documentUrl ? (c(), d(u, { key: 0 }, [
|
|
57
|
-
e[3] || (e[3] = t("span", { class: "bg-b-2 sticky left-0 pl-3
|
|
57
|
+
e[3] || (e[3] = t("span", { class: "bg-b-2 sticky left-0 pr-2 pl-3" }, "Source", -1)),
|
|
58
58
|
t("a", {
|
|
59
59
|
class: "text-c-2 group rounded pr-3 no-underline hover:underline",
|
|
60
60
|
href: l(o).documentUrl,
|
|
@@ -68,7 +68,7 @@ const $ = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, L = { cla
|
|
|
68
68
|
], 8, z)
|
|
69
69
|
], 64)) : (c(), d(u, { key: 1 }, [
|
|
70
70
|
s(l(_), {
|
|
71
|
-
class: "text-c-2 ml-3
|
|
71
|
+
class: "text-c-2 mr-2 ml-3 w-4",
|
|
72
72
|
icon: "NotAllowed",
|
|
73
73
|
size: "sm"
|
|
74
74
|
}),
|
|
@@ -86,7 +86,7 @@ const $ = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, L = { cla
|
|
|
86
86
|
t("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")
|
|
87
87
|
], -1)),
|
|
88
88
|
s(l(T), {
|
|
89
|
-
class: "custom-scroll h-8 gap-1.5
|
|
89
|
+
class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
|
|
90
90
|
variant: "danger",
|
|
91
91
|
onClick: e[0] || (e[0] = (r) => l(i).show())
|
|
92
92
|
}, {
|
|
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1d968b50"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, ref as p, watch as w, nextTick as x, createElementBlock as i, openBlock as o, createElementVNode as n, createBlock as u, createCommentVNode as a, unref as s, withCtx as v, createVNode as d, Fragment as f } from "vue";
|
|
2
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
|
|
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 group relative z-1 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
|
-
}, D = /* @__PURE__ */
|
|
7
|
+
}, D = /* @__PURE__ */ V({
|
|
8
8
|
__name: "MarkdownInput",
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: {},
|
|
@@ -14,7 +14,7 @@ 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
|
|
17
|
+
const g = k, t = p("preview"), m = p(null);
|
|
18
18
|
return w(t, (l) => {
|
|
19
19
|
l === "edit" && x(() => {
|
|
20
20
|
var e;
|
|
@@ -48,12 +48,12 @@ const z = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
|
|
|
48
48
|
l.modelValue && l.modelValue.trim().length ? (o(), i(f, { key: 0 }, [
|
|
49
49
|
l.modelValue ? (o(), u(s(h), {
|
|
50
50
|
key: 0,
|
|
51
|
-
class: "
|
|
51
|
+
class: "h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
|
|
52
52
|
value: l.modelValue,
|
|
53
53
|
withImages: "",
|
|
54
54
|
onDblclick: e[1] || (e[1] = (r) => t.value = "edit")
|
|
55
55
|
}, null, 8, ["value"])) : a("", !0),
|
|
56
|
-
e[7] || (e[7] = n("div", { class: "brightness-lifted
|
|
56
|
+
e[7] || (e[7] = n("div", { class: "brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden" }, null, -1))
|
|
57
57
|
], 64)) : (o(), i("div", $, [
|
|
58
58
|
d(s(c), {
|
|
59
59
|
class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
|
|
@@ -83,7 +83,7 @@ const z = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
|
|
|
83
83
|
modelValue: l.modelValue,
|
|
84
84
|
workspace: l.workspace,
|
|
85
85
|
onBlur: e[3] || (e[3] = (r) => t.value = "preview"),
|
|
86
|
-
"onUpdate:modelValue": e[4] || (e[4] = (r) =>
|
|
86
|
+
"onUpdate:modelValue": e[4] || (e[4] = (r) => g("update:modelValue", r))
|
|
87
87
|
}, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : a("", !0)
|
|
88
88
|
])
|
|
89
89
|
])
|
|
@@ -261,7 +261,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
261
261
|
class: "gap-1/2 flex flex-col"
|
|
262
262
|
}, [
|
|
263
263
|
b("button", {
|
|
264
|
-
class: "hover:bg-b-2 group flex w-full items-center gap-1.5
|
|
264
|
+
class: "hover:bg-b-2 group flex w-full items-center gap-1.5 rounded p-1.5 text-left text-sm font-medium break-words",
|
|
265
265
|
type: "button",
|
|
266
266
|
onClick: (a) => l(w)(n.uid)
|
|
267
267
|
}, [
|
|
@@ -286,7 +286,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
286
286
|
], 8, Le),
|
|
287
287
|
xe(b("div", {
|
|
288
288
|
class: G({
|
|
289
|
-
"before:bg-border
|
|
289
|
+
"before:bg-border relative mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-3 before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(n["x-scalar-environments"] || {}).length > 0
|
|
290
290
|
})
|
|
291
291
|
}, [
|
|
292
292
|
(f(!0), O(L, null, K(n["x-scalar-environments"], (a, r) => (f(), _(P, {
|
|
@@ -363,7 +363,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
363
363
|
default: c(() => [
|
|
364
364
|
s.value && l(p) ? (f(), _(Ie, {
|
|
365
365
|
key: 0,
|
|
366
|
-
class: "py-2 pl-px
|
|
366
|
+
class: "py-2 pr-2 pl-px md:px-4",
|
|
367
367
|
envVariables: l(q),
|
|
368
368
|
environment: l(F),
|
|
369
369
|
isCopyable: "",
|
|
@@ -8,7 +8,7 @@ import { parseEnvVariables as _ } from "../../libs/environment-parser.js";
|
|
|
8
8
|
const M = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "gap-1/2 flex flex-col"
|
|
11
|
-
}, Q = ["onClick"], $ = { class: "flex items-center gap-2 whitespace-nowrap" }, H = { class: "w-20 overflow-hidden text-ellipsis whitespace-nowrap
|
|
11
|
+
}, Q = ["onClick"], $ = { class: "flex items-center gap-2 whitespace-nowrap" }, H = { class: "w-20 overflow-hidden text-right text-ellipsis whitespace-nowrap" }, ne = /* @__PURE__ */ R({
|
|
12
12
|
__name: "EnvironmentVariableDropdown",
|
|
13
13
|
props: {
|
|
14
14
|
query: {},
|
|
@@ -75,7 +75,7 @@ const M = {
|
|
|
75
75
|
c("div", {
|
|
76
76
|
ref_key: "dropdownRef",
|
|
77
77
|
ref: p,
|
|
78
|
-
class: "
|
|
78
|
+
class: "custom-scroll fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75",
|
|
79
79
|
style: b(N.value)
|
|
80
80
|
}, [
|
|
81
81
|
i.value.length ? (r(), u("ul", M, [
|
|
@@ -115,7 +115,7 @@ const M = {
|
|
|
115
115
|
]),
|
|
116
116
|
_: 1
|
|
117
117
|
})) : y("", !0),
|
|
118
|
-
o[1] || (o[1] = c("div", { class: "
|
|
118
|
+
o[1] || (o[1] = c("div", { class: "bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg" }, null, -1))
|
|
119
119
|
], 4)
|
|
120
120
|
]),
|
|
121
121
|
_: 1
|
|
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cbe958dd"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -50,7 +50,7 @@ const O = { class: "flex h-full" }, T = {
|
|
|
50
50
|
return (o, t) => e(r) && e(i) ? (s(), f("div", {
|
|
51
51
|
key: 0,
|
|
52
52
|
class: k(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
|
|
53
|
-
"!
|
|
53
|
+
"!mr-0 !mb-0 !border-0": e(h) === "modal"
|
|
54
54
|
}])
|
|
55
55
|
}, [
|
|
56
56
|
P("div", O, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestRoot.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-8a88f90a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -86,14 +86,14 @@ const ye = { class: "flex h-full" }, qe = { class: "flex h-full flex-1 flex-col"
|
|
|
86
86
|
ref_key: "element",
|
|
87
87
|
ref: j,
|
|
88
88
|
class: V(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
|
|
89
|
-
"!
|
|
89
|
+
"!mr-0 !mb-0 !border-0": r(v) === "modal"
|
|
90
90
|
}])
|
|
91
91
|
}, [
|
|
92
92
|
r(y) ? (d(), B(le, {
|
|
93
93
|
key: 0,
|
|
94
94
|
modelValue: r(s),
|
|
95
95
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => ee(s) ? s.value = o : null),
|
|
96
|
-
class: V(["absolute left-3
|
|
96
|
+
class: V(["absolute top-2 left-3 z-50", [
|
|
97
97
|
{ hidden: r(s) },
|
|
98
98
|
{ "xl:!flex": !r(s) },
|
|
99
99
|
{ "!flex": r(v) === "modal" }
|
|
@@ -8,7 +8,7 @@ import R from "./OAuthScopesInput.vue.js";
|
|
|
8
8
|
import p from "./RequestAuthDataTableInput.vue.js";
|
|
9
9
|
import f from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
10
10
|
import { authorizeOauth2 as F } from "../../libs/oauth2.js";
|
|
11
|
-
const I = { class: "
|
|
11
|
+
const I = { class: "flex h-8 items-center justify-end gap-2 border-t" }, N = { class: "flex h-8 w-full items-center justify-end border-t" }, Y = /* @__PURE__ */ z({
|
|
12
12
|
__name: "OAuth2",
|
|
13
13
|
props: {
|
|
14
14
|
collection: {},
|
|
@@ -4,7 +4,7 @@ import { ScalarButton as I, ScalarIcon as R } from "@scalar/components";
|
|
|
4
4
|
import D from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
5
5
|
import L from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
6
6
|
import M from "../../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
7
|
-
const P = { class: "flex h-fit w-full" }, U = { class: "flex-1" }, q = { class: "gap-1.75
|
|
7
|
+
const P = { class: "flex h-fit w-full" }, U = { class: "flex-1" }, q = { class: "flex items-center gap-1.75" }, G = {
|
|
8
8
|
class: "grid auto-rows-auto",
|
|
9
9
|
style: { gridTemplateColumns: "1fr auto" }
|
|
10
10
|
}, H = { key: 0 }, J = { class: "font-code text-xs" }, ee = /* @__PURE__ */ j({
|
|
@@ -56,7 +56,7 @@ const P = { class: "flex h-fit w-full" }, U = { class: "flex-1" }, q = { class:
|
|
|
56
56
|
return [
|
|
57
57
|
i(o(E), {
|
|
58
58
|
class: N([
|
|
59
|
-
"group/scopes-accordion hover:text-c-1
|
|
59
|
+
"group/scopes-accordion hover:text-c-1 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pr-2.25 pl-3 text-left",
|
|
60
60
|
(((w = (n = e.flow) == null ? void 0 : n.selectedScopes) == null ? void 0 : w.length) || 0) > 0 ? "text-c-1" : "text-c-3"
|
|
61
61
|
])
|
|
62
62
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuth.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-583b887d"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -142,7 +142,7 @@ const ne = ["id"], se = { class: "-mx-1 flex flex-1" }, re = { class: "text-c-1"
|
|
|
142
142
|
ref_key: "comboboxButtonRef",
|
|
143
143
|
ref: R,
|
|
144
144
|
"aria-describedby": i(q),
|
|
145
|
-
class: "hover:bg-b-3 text-c-1 hover:text-c-1
|
|
145
|
+
class: "hover:bg-b-3 text-c-1 hover:text-c-1 h-fit px-1.5 py-0.25 font-normal",
|
|
146
146
|
fullWidth: "",
|
|
147
147
|
variant: "ghost"
|
|
148
148
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuthDataTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const f = /* @__PURE__ */
|
|
3
|
+
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f5c66331"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -3,9 +3,9 @@ import { useModal as V } from "@scalar/components";
|
|
|
3
3
|
import O from "./DeleteRequestAuthModal.vue.js";
|
|
4
4
|
import z from "./RequestAuthTab.vue.js";
|
|
5
5
|
import B from "../../../../components/DataTable/DataTable.vue.js";
|
|
6
|
-
const M = ["onClick"], N = { class: "relative z-10 whitespace-nowrap
|
|
6
|
+
const M = ["onClick"], N = { class: "relative z-10 font-medium whitespace-nowrap" }, $ = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "
|
|
8
|
+
class: "absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 z-1 h-px w-full -translate-x-1/2 bg-current"
|
|
9
9
|
}, j = /* @__PURE__ */ b({
|
|
10
10
|
__name: "RequestAuthDataTable",
|
|
11
11
|
props: {
|
|
@@ -43,7 +43,7 @@ const M = ["onClick"], N = { class: "relative z-10 whitespace-nowrap font-medium
|
|
|
43
43
|
}, [
|
|
44
44
|
(o(!0), l(S, null, x(e.selectedSchemeOptions, (n, a) => (o(), l("div", {
|
|
45
45
|
key: n.id,
|
|
46
|
-
class: s(["z-1
|
|
46
|
+
class: s(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [t.value === a ? "text-c-1" : "text-c-3"]])
|
|
47
47
|
}, [
|
|
48
48
|
v("button", {
|
|
49
49
|
class: "floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuthTab.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0b76c94b"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -100,7 +100,7 @@ const Q = {
|
|
|
100
100
|
}, {
|
|
101
101
|
default: n(() => [
|
|
102
102
|
u(d(q), {
|
|
103
|
-
class: "auth-description
|
|
103
|
+
class: "auth-description bg-b-1 text-c-2 outline-b-3 top-0 z-1 line-clamp-1 h-full w-full px-3 py-1.5 group-hover/auth:line-clamp-none",
|
|
104
104
|
value: e.description
|
|
105
105
|
}, null, 8, ["value"])
|
|
106
106
|
]),
|
|
@@ -231,7 +231,7 @@ const Q = {
|
|
|
231
231
|
], 64))), 128))
|
|
232
232
|
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (l(), i("div", {
|
|
233
233
|
key: 5,
|
|
234
|
-
class: g(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-b-0
|
|
234
|
+
class: g(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-sm", { "rounded-b-lg": t.layout === "reference" }])
|
|
235
235
|
}, " Coming soon ", 2)) : v("", !0)
|
|
236
236
|
], 64))), 128));
|
|
237
237
|
}
|
|
@@ -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
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4d8238b9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -12,11 +12,11 @@ import { useWorkspace as ue } from "../../../store/store.js";
|
|
|
12
12
|
import { useFileDialog as K } from "../../../hooks/useFileDialog.js";
|
|
13
13
|
const me = {
|
|
14
14
|
key: 0,
|
|
15
|
-
class: "
|
|
15
|
+
class: "text-c-3 flex min-h-10 w-full items-center justify-center border-t p-2 text-sm"
|
|
16
16
|
}, ce = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "flex items-center justify-center overflow-hidden border-t p-1.5"
|
|
19
|
-
}, fe = { class: "text-c-2 w-full max-w-full overflow-hidden
|
|
19
|
+
}, fe = { class: "text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap" }, Ue = /* @__PURE__ */ ee({
|
|
20
20
|
__name: "RequestBody",
|
|
21
21
|
props: {
|
|
22
22
|
example: {},
|
|
@@ -385,7 +385,7 @@ const me = {
|
|
|
385
385
|
key: 2,
|
|
386
386
|
ref_key: "tableWrapperRef",
|
|
387
387
|
ref: B,
|
|
388
|
-
class: "!m-0 rounded-t-none border-
|
|
388
|
+
class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
|
|
389
389
|
columns: ["32px", "", "", "104px"],
|
|
390
390
|
envVariables: e.envVariables,
|
|
391
391
|
environment: e.environment,
|
|
@@ -401,7 +401,7 @@ const me = {
|
|
|
401
401
|
key: 3,
|
|
402
402
|
ref_key: "tableWrapperRef",
|
|
403
403
|
ref: B,
|
|
404
|
-
class: "!m-0 rounded-t-none border-
|
|
404
|
+
class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
|
|
405
405
|
columns: ["32px", "", "", "104px"],
|
|
406
406
|
envVariables: e.envVariables,
|
|
407
407
|
environment: e.environment,
|
|
@@ -415,7 +415,7 @@ const me = {
|
|
|
415
415
|
onUploadFile: W
|
|
416
416
|
}, null, 8, ["envVariables", "environment", "items", "workspace"])) : (b(), g(ie, {
|
|
417
417
|
key: 4,
|
|
418
|
-
class: "border-t
|
|
418
|
+
class: "border-t px-1",
|
|
419
419
|
content: "",
|
|
420
420
|
envVariables: e.envVariables,
|
|
421
421
|
environment: e.environment,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestCodeExample.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-92438804"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -115,7 +115,7 @@ const F = { class: "w-full" }, G = { class: "-mx-1 flex flex-1" }, J = { class:
|
|
|
115
115
|
}, {
|
|
116
116
|
default: c(() => [
|
|
117
117
|
i(r(z), {
|
|
118
|
-
class: "text-c-1 hover:bg-b-3
|
|
118
|
+
class: "text-c-1 hover:bg-b-3 flex h-full w-fit gap-1.5 px-1.5 py-0.75 font-normal",
|
|
119
119
|
fullWidth: "",
|
|
120
120
|
variant: "ghost"
|
|
121
121
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AAiPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAIlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,eAAe,CAAC,EAAE;QAChB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,OAAO,CAAA;QAChB,KAAK,EAAE,gBAAgB,CAAA;KACxB,EAAE,CAAA;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AAkVF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as S, computed as m, onMounted as N, nextTick as p, ref as
|
|
2
|
-
import { ScalarTooltip as
|
|
1
|
+
import { defineComponent as S, computed as m, onMounted as N, nextTick as p, ref as A, watch as B, createBlock as d, openBlock as v, withCtx as i, createElementVNode as f, createCommentVNode as k, createVNode as g, normalizeClass as M, unref as P, withModifiers as W, createTextVNode as R, toDisplayString as w } from "vue";
|
|
2
|
+
import { ScalarTooltip as z, ScalarButton as D } from "@scalar/components";
|
|
3
3
|
import { requestExampleParametersSchema as V } from "@scalar/oas-utils/entities/spec";
|
|
4
|
-
import
|
|
4
|
+
import x from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
5
5
|
import C from "./RequestTable.vue.js";
|
|
6
6
|
import { useWorkspace as G } from "../../../store/store.js";
|
|
7
7
|
const U = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100" }, j = { class: "sr-only" }, I = /* @__PURE__ */ S({
|
|
@@ -27,7 +27,7 @@ const U = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
27
27
|
const o = () => {
|
|
28
28
|
const e = V.parse({ enabled: !1 }), a = [...n.value, e];
|
|
29
29
|
s.edit(t.example.uid, `parameters.${t.paramKey}`, a);
|
|
30
|
-
}, u =
|
|
30
|
+
}, u = A(null), K = (e, a, r) => {
|
|
31
31
|
const c = n.value;
|
|
32
32
|
if (c.length > e) {
|
|
33
33
|
const l = [...c];
|
|
@@ -41,10 +41,10 @@ const U = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
41
41
|
} else {
|
|
42
42
|
const l = [V.parse({ [a]: r })];
|
|
43
43
|
s.edit(t.example.uid, `parameters.${t.paramKey}`, l), p(() => {
|
|
44
|
-
var
|
|
44
|
+
var h;
|
|
45
45
|
if (!u.value)
|
|
46
46
|
return;
|
|
47
|
-
(
|
|
47
|
+
(h = u.value.querySelectorAll("input")[a === "key" ? 0 : 1]) == null || h.focus();
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
e === c.length - 1 && o();
|
|
@@ -81,7 +81,7 @@ const U = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
81
81
|
const T = m(
|
|
82
82
|
() => n.value.filter((e) => e.key || e.value).length
|
|
83
83
|
), O = m(() => n.value.length > 1);
|
|
84
|
-
|
|
84
|
+
B(
|
|
85
85
|
() => t.example,
|
|
86
86
|
(e, a) => {
|
|
87
87
|
e !== a && y();
|
|
@@ -89,7 +89,7 @@ const U = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
89
89
|
{ immediate: !0 }
|
|
90
90
|
);
|
|
91
91
|
const b = m(() => (t.readOnlyEntries ?? []).length > 0);
|
|
92
|
-
return (e, a) => (v(), d(
|
|
92
|
+
return (e, a) => (v(), d(x, {
|
|
93
93
|
class: "group/params",
|
|
94
94
|
itemCount: T.value
|
|
95
95
|
}, {
|
|
@@ -98,17 +98,17 @@ const U = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
98
98
|
]),
|
|
99
99
|
actions: i(() => [
|
|
100
100
|
f("div", U, [
|
|
101
|
-
O.value ? (v(), d(P(
|
|
101
|
+
O.value ? (v(), d(P(z), {
|
|
102
102
|
key: 0,
|
|
103
103
|
content: "Clear optional parameters",
|
|
104
104
|
placement: "left"
|
|
105
105
|
}, {
|
|
106
106
|
default: i(() => [
|
|
107
|
-
|
|
107
|
+
g(P(D), {
|
|
108
108
|
class: "pr-0.75 pl-1 transition-none",
|
|
109
109
|
size: "sm",
|
|
110
110
|
variant: "ghost",
|
|
111
|
-
onClick:
|
|
111
|
+
onClick: W(q, ["stop"])
|
|
112
112
|
}, {
|
|
113
113
|
default: i(() => [
|
|
114
114
|
a[0] || (a[0] = R(" Clear ")),
|
|
@@ -118,7 +118,7 @@ const U = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
118
118
|
})
|
|
119
119
|
]),
|
|
120
120
|
_: 1
|
|
121
|
-
})) :
|
|
121
|
+
})) : k("", !0)
|
|
122
122
|
])
|
|
123
123
|
]),
|
|
124
124
|
default: i(() => [
|
|
@@ -128,9 +128,7 @@ const U = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
128
128
|
}, [
|
|
129
129
|
b.value ? (v(), d(C, {
|
|
130
130
|
key: 0,
|
|
131
|
-
class:
|
|
132
|
-
"bg-mix-transparent bg-mix-amount-95 bg-c-3": b.value
|
|
133
|
-
}]),
|
|
131
|
+
class: M(["flex-1", { "bg-c-3/5": b.value }]),
|
|
134
132
|
columns: ["32px", "", ""],
|
|
135
133
|
envVariables: e.envVariables,
|
|
136
134
|
environment: e.environment,
|
|
@@ -140,8 +138,8 @@ const U = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
140
138
|
items: e.readOnlyEntries,
|
|
141
139
|
label: e.label,
|
|
142
140
|
workspace: e.workspace
|
|
143
|
-
}, null, 8, ["class", "envVariables", "environment", "invalidParams", "items", "label", "workspace"])) :
|
|
144
|
-
|
|
141
|
+
}, null, 8, ["class", "envVariables", "environment", "invalidParams", "items", "label", "workspace"])) : k("", !0),
|
|
142
|
+
g(C, {
|
|
145
143
|
class: "flex-1",
|
|
146
144
|
columns: ["32px", "", ""],
|
|
147
145
|
envVariables: e.envVariables,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSection.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-26a349d9"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -84,13 +84,13 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
84
84
|
y("div", _, [
|
|
85
85
|
r(d) !== "modal" ? (n(), f("label", {
|
|
86
86
|
key: 0,
|
|
87
|
-
class: "pointer-events-auto absolute
|
|
87
|
+
class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
|
|
88
88
|
for: r(q)
|
|
89
89
|
}, null, 8, ee)) : h("", !0),
|
|
90
90
|
r(d) !== "modal" ? (n(), f("input", {
|
|
91
91
|
key: 1,
|
|
92
92
|
id: r(q),
|
|
93
|
-
class: "text-c-1 group-hover-input
|
|
93
|
+
class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
|
|
94
94
|
placeholder: H(),
|
|
95
95
|
value: e.operation.summary,
|
|
96
96
|
onInput: O
|