@scalar/api-client 2.3.30 → 2.3.31
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 +24 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +3 -3
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +4 -4
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +5 -5
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +5 -5
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +5 -5
- package/dist/components/DataTable/DataTableCell.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.js +2 -2
- package/dist/components/DataTable/DataTableHeader.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
- package/dist/components/DataTable/DataTableInputSelect.vue.js +5 -5
- package/dist/components/DataTable/DataTableRow.vue.js +2 -2
- package/dist/components/DataTable/DataTableText.vue.js +2 -2
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/EmptyState.vue2.js +2 -2
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +12 -12
- package/dist/components/Form/Form.vue.js +4 -4
- package/dist/components/Form/LabelInput.vue2.js +4 -4
- package/dist/components/HelpfulLink.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +3 -3
- package/dist/components/IconSelector.vue.js +5 -5
- package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +3 -3
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -2
- package/dist/components/ImportCollection/PrefetchError.vue.js +4 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +10 -10
- package/dist/components/OpenApiClientButton.vue2.js +4 -4
- package/dist/components/ScalarAsciiArt.vue2.js +3 -3
- package/dist/components/ScalarHotkey.vue.js +2 -2
- package/dist/components/SectionFilter.vue2.js +1 -1
- package/dist/components/SectionFilterButton.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.js +21 -21
- package/dist/components/Server/ServerDropdownItem.vue2.js +4 -4
- package/dist/components/Server/ServerSelector.vue.js +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +4 -4
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +2 -2
- package/dist/components/Server/index.js +6 -6
- package/dist/components/SideNav/DownloadAppButton.vue2.js +5 -5
- package/dist/components/SideNav/SideHelp.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue.js +5 -5
- package/dist/components/SideNav/SideNavGroup.vue.js +2 -2
- package/dist/components/SideNav/SideNavLink.vue.js +4 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.js +2 -2
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +4 -4
- package/dist/components/Sidebar/SidebarButton.vue.js +3 -3
- package/dist/components/Sidebar/SidebarList.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +20 -20
- package/dist/components/ViewLayout/ViewLayout.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/layouts/App/ApiClientApp.vue.js +10 -10
- package/dist/layouts/App/MainLayout.vue.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/index.js +5 -4
- package/dist/layouts/Modal/ApiClientModal.vue2.js +2 -2
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +2 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/router.js +4 -4
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/import-spec.js +3 -3
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +2 -2
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +37 -42
- package/dist/store/workspace.d.ts +2 -2
- package/dist/views/Collection/Collection.vue2.js +2 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +5 -5
- package/dist/views/Collection/CollectionCookies.vue2.js +2 -2
- package/dist/views/Collection/CollectionEnvironment.vue2.js +2 -2
- package/dist/views/Collection/CollectionInfoForm.vue2.js +2 -2
- package/dist/views/Collection/CollectionNavigation.vue.js +1 -1
- package/dist/views/Collection/CollectionOverview.vue2.js +3 -3
- package/dist/views/Collection/CollectionScripts.vue2.js +2 -2
- package/dist/views/Collection/CollectionServerForm.vue.js +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +3 -3
- package/dist/views/Collection/CollectionSettings.vue2.js +4 -4
- package/dist/views/Collection/CollectionSync.vue2.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +3 -3
- package/dist/views/Components/CodeSnippet/index.js +8 -8
- package/dist/views/Cookies/CookieForm.vue.js +2 -2
- package/dist/views/Cookies/CookieModal.vue2.js +2 -2
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +7 -7
- package/dist/views/Environment/EnvironmentColorModal.vue.js +2 -2
- package/dist/views/Environment/EnvironmentColors.vue.js +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +7 -7
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +10 -10
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +10 -10
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +11 -11
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +8 -8
- package/dist/views/Request/RequestSection/RequestParams.vue.js +13 -13
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +9 -9
- package/dist/views/Request/RequestSidebar.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItem.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +6 -6
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +15 -15
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +5 -5
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +3 -3
- package/dist/views/Settings/SettingsGeneral.vue.js +1 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.js +10 -10
- package/dist/views/Settings/components/SettingsSection.vue.js +4 -4
- package/package.json +18 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, ref as m, computed as y, watch as k,
|
|
1
|
+
import { defineComponent as b, ref as m, computed as y, watch as k, createElementBlock as s, openBlock as o, withModifiers as w, createCommentVNode as d, createBlock as x, createVNode as v, Fragment as S, renderList as g, normalizeClass as p, createElementVNode as h, toDisplayString as C, unref as a, withCtx as V } from "vue";
|
|
2
2
|
import { useModal as _ } from "@scalar/components";
|
|
3
3
|
import O from "./DeleteRequestAuthModal.vue.js";
|
|
4
4
|
import z from "./RequestAuthTab.vue.js";
|
|
@@ -43,28 +43,28 @@ const N = {
|
|
|
43
43
|
}, ["prevent"]))
|
|
44
44
|
}, [
|
|
45
45
|
e.selectedSchemeOptions.length > 1 ? (o(), s("div", N, [
|
|
46
|
-
(o(!0), s(
|
|
46
|
+
(o(!0), s(S, null, g(e.selectedSchemeOptions, (l, n) => (o(), s("div", {
|
|
47
47
|
key: l.id,
|
|
48
|
-
class:
|
|
48
|
+
class: p(["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
|
+
h("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
53
|
onClick: (D) => t.value = n
|
|
54
54
|
}, [
|
|
55
|
-
|
|
55
|
+
h("span", A, C(l.label), 1)
|
|
56
56
|
], 8, $),
|
|
57
|
-
t.value === n ? (o(), s("div", B)) :
|
|
57
|
+
t.value === n ? (o(), s("div", B)) : d("", !0)
|
|
58
58
|
], 2))), 128))
|
|
59
|
-
])) :
|
|
60
|
-
u.value.length ? (o(),
|
|
59
|
+
])) : d("", !0),
|
|
60
|
+
u.value.length ? (o(), x(a(M), {
|
|
61
61
|
key: 1,
|
|
62
|
-
class:
|
|
62
|
+
class: p(["flex-1", e.layout === "reference" && "border-0"]),
|
|
63
63
|
columns: [""],
|
|
64
64
|
presentational: ""
|
|
65
65
|
}, {
|
|
66
66
|
default: V(() => [
|
|
67
|
-
|
|
67
|
+
v(z, {
|
|
68
68
|
collection: e.collection,
|
|
69
69
|
envVariables: e.envVariables,
|
|
70
70
|
environment: e.environment,
|
|
@@ -76,7 +76,7 @@ const N = {
|
|
|
76
76
|
]),
|
|
77
77
|
_: 1
|
|
78
78
|
}, 8, ["class"])) : (o(), s("div", q, " No authentication selected ")),
|
|
79
|
-
|
|
79
|
+
v(O, {
|
|
80
80
|
scheme: f.value,
|
|
81
81
|
state: a(c),
|
|
82
82
|
onClose: r[0] || (r[0] = (l) => a(c).hide())
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, useId as m,
|
|
1
|
+
import { defineComponent as p, useId as m, createBlock as V, openBlock as f, mergeProps as c, unref as r, withCtx as s, renderSlot as u, createElementVNode as y } from "vue";
|
|
2
2
|
import b from "../../../../components/DataTable/DataTableInput.vue.js";
|
|
3
3
|
const v = ["for"], k = /* @__PURE__ */ p({
|
|
4
4
|
__name: "RequestAuthDataTableInput",
|
|
@@ -15,7 +15,7 @@ const v = ["for"], k = /* @__PURE__ */ p({
|
|
|
15
15
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
16
16
|
setup(i, { emit: d }) {
|
|
17
17
|
const e = i, a = d, l = m();
|
|
18
|
-
return (o, n) => (
|
|
18
|
+
return (o, n) => (f(), V(b, c({
|
|
19
19
|
id: r(l),
|
|
20
20
|
canAddCustomEnumValue: !e.readOnly,
|
|
21
21
|
containerClass: e.containerClass
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, computed as N, ref as P,
|
|
1
|
+
import { defineComponent as F, computed as N, ref as P, createElementBlock as n, openBlock as a, Fragment as p, renderList as g, createBlock as $, createCommentVNode as v, unref as d, normalizeClass as C, withCtx as l, createVNode as u, createTextVNode as y, toDisplayString as m, 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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ee, computed as h, ref as ne, watch as $,
|
|
1
|
+
import { defineComponent as ee, computed as h, ref as ne, watch as $, createBlock as g, openBlock as b, withCtx as m, createVNode as c, createCommentVNode as ae, unref as v, createElementVNode as k, toDisplayString as F, createElementBlock as j, Fragment as te, createTextVNode as H, nextTick as oe } from "vue";
|
|
2
2
|
import { ScalarListbox as X, ScalarButton as D, ScalarIcon as C } from "@scalar/components";
|
|
3
3
|
import { requestExampleParametersSchema as Y } from "@scalar/oas-utils/entities/spec";
|
|
4
4
|
import { canMethodHaveBody as le } from "@scalar/oas-utils/helpers";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as H, computed as a, ref as U,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as H, computed as a, ref as U, createElementBlock as j, openBlock as v, createVNode as i, withCtx as c, createElementVNode as x, createBlock as C, unref as r, toDisplayString as D, createTextVNode as N } from "vue";
|
|
2
|
+
import { ScalarCodeBlock as R, ScalarCombobox as T, ScalarButton as W, ScalarIcon as q } from "@scalar/components";
|
|
3
3
|
import { snippetz as z } from "@scalar/snippetz";
|
|
4
4
|
import I from "../../../components/DataTable/DataTable.vue.js";
|
|
5
5
|
import O from "../../../components/DataTable/DataTableRow.vue.js";
|
|
@@ -109,18 +109,18 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
|
|
|
109
109
|
defaultOpen: !1
|
|
110
110
|
}, {
|
|
111
111
|
title: c(() => e[0] || (e[0] = [
|
|
112
|
-
|
|
112
|
+
N("Code Snippet")
|
|
113
113
|
])),
|
|
114
114
|
actions: c(() => [
|
|
115
115
|
x("div", J, [
|
|
116
|
-
i(r(
|
|
116
|
+
i(r(T), {
|
|
117
117
|
modelValue: s.value,
|
|
118
118
|
options: y.value.options,
|
|
119
119
|
placement: "bottom-end",
|
|
120
120
|
"onUpdate:modelValue": B
|
|
121
121
|
}, {
|
|
122
122
|
default: c(() => [
|
|
123
|
-
i(r(
|
|
123
|
+
i(r(W), {
|
|
124
124
|
class: "text-c-1 hover:bg-b-3 py-0.75 flex h-full w-fit gap-1.5 px-1.5 font-normal",
|
|
125
125
|
fullWidth: "",
|
|
126
126
|
variant: "ghost"
|
|
@@ -128,8 +128,8 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
|
|
|
128
128
|
default: c(() => {
|
|
129
129
|
var l;
|
|
130
130
|
return [
|
|
131
|
-
x("span", null,
|
|
132
|
-
i(r(
|
|
131
|
+
x("span", null, D((l = s.value) == null ? void 0 : l.label), 1),
|
|
132
|
+
i(r(q), {
|
|
133
133
|
icon: "ChevronDown",
|
|
134
134
|
size: "md"
|
|
135
135
|
})
|
|
@@ -151,7 +151,7 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
|
|
|
151
151
|
i(O, null, {
|
|
152
152
|
default: c(() => [
|
|
153
153
|
x("div", L, [
|
|
154
|
-
g.value ? (v(), C(r(
|
|
154
|
+
g.value ? (v(), C(r(R), {
|
|
155
155
|
key: 0,
|
|
156
156
|
class: "px-3 py-1.5",
|
|
157
157
|
content: g.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, ref as h, computed as u, onMounted as z, nextTick as d, watch as A,
|
|
1
|
+
import { defineComponent as N, ref as h, computed as u, onMounted as z, nextTick as d, watch as A, createBlock as v, openBlock as f, withCtx as i, createElementVNode as r, createCommentVNode as P, createVNode as w, normalizeClass as B, unref as R, withModifiers as M, createTextVNode as V, toDisplayString as C } from "vue";
|
|
2
2
|
import { ScalarTooltip as W, ScalarButton as D } from "@scalar/components";
|
|
3
3
|
import { requestExampleParametersSchema as x } from "@scalar/oas-utils/entities/spec";
|
|
4
4
|
import G from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
@@ -91,30 +91,30 @@ const j = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
91
91
|
{ immediate: !0 }
|
|
92
92
|
);
|
|
93
93
|
const g = u(() => (t.readOnlyEntries ?? []).length > 0);
|
|
94
|
-
return (e, a) => (
|
|
94
|
+
return (e, a) => (f(), v(G, {
|
|
95
95
|
class: "group/params",
|
|
96
96
|
itemCount: O.value
|
|
97
97
|
}, {
|
|
98
98
|
title: i(() => [
|
|
99
|
-
|
|
99
|
+
V(C(e.title), 1)
|
|
100
100
|
]),
|
|
101
101
|
actions: i(() => [
|
|
102
102
|
r("div", j, [
|
|
103
|
-
S.value ? (
|
|
103
|
+
S.value ? (f(), v(R(W), {
|
|
104
104
|
key: 0,
|
|
105
105
|
side: "left",
|
|
106
106
|
sideOffset: 6
|
|
107
107
|
}, {
|
|
108
108
|
trigger: i(() => [
|
|
109
|
-
|
|
109
|
+
w(R(D), {
|
|
110
110
|
class: "pr-0.75 pl-1 transition-none",
|
|
111
111
|
size: "sm",
|
|
112
112
|
variant: "ghost",
|
|
113
|
-
onClick:
|
|
113
|
+
onClick: M(E, ["stop"])
|
|
114
114
|
}, {
|
|
115
115
|
default: i(() => [
|
|
116
|
-
a[0] || (a[0] =
|
|
117
|
-
r("span", F, "All " +
|
|
116
|
+
a[0] || (a[0] = V(" Clear ")),
|
|
117
|
+
r("span", F, "All " + C(e.title), 1)
|
|
118
118
|
]),
|
|
119
119
|
_: 1
|
|
120
120
|
})
|
|
@@ -127,7 +127,7 @@ const j = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
127
127
|
], -1)
|
|
128
128
|
])),
|
|
129
129
|
_: 1
|
|
130
|
-
})) :
|
|
130
|
+
})) : P("", !0)
|
|
131
131
|
])
|
|
132
132
|
]),
|
|
133
133
|
default: i(() => [
|
|
@@ -135,9 +135,9 @@ const j = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
135
135
|
ref_key: "tableWrapperRef",
|
|
136
136
|
ref: c
|
|
137
137
|
}, [
|
|
138
|
-
g.value ? (
|
|
138
|
+
g.value ? (f(), v(K, {
|
|
139
139
|
key: 0,
|
|
140
|
-
class:
|
|
140
|
+
class: B(["flex-1", {
|
|
141
141
|
"bg-mix-transparent bg-mix-amount-95 bg-c-3": g.value
|
|
142
142
|
}]),
|
|
143
143
|
columns: ["32px", "", ""],
|
|
@@ -149,8 +149,8 @@ const j = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
149
149
|
items: e.readOnlyEntries,
|
|
150
150
|
label: e.label,
|
|
151
151
|
workspace: e.workspace
|
|
152
|
-
}, null, 8, ["class", "envVariables", "environment", "invalidParams", "items", "label", "workspace"])) :
|
|
153
|
-
|
|
152
|
+
}, null, 8, ["class", "envVariables", "environment", "invalidParams", "items", "label", "workspace"])) : P("", !0),
|
|
153
|
+
w(K, {
|
|
154
154
|
class: "flex-1",
|
|
155
155
|
columns: ["32px", "", ""],
|
|
156
156
|
envVariables: e.envVariables,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as R, computed as $, watch as K,
|
|
1
|
+
import { defineComponent as R, computed as $, watch as K, createBlock as d, openBlock as h, withCtx as f, createCommentVNode as b, createTextVNode as x, toDisplayString as V } from "vue";
|
|
2
2
|
import { REGEX as C } from "@scalar/oas-utils/helpers";
|
|
3
3
|
import q from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
4
4
|
import E from "./RequestTable.vue.js";
|
|
@@ -69,14 +69,14 @@ const A = /* @__PURE__ */ R({
|
|
|
69
69
|
(e) => {
|
|
70
70
|
e && g(e);
|
|
71
71
|
}
|
|
72
|
-
), (e, r) => (
|
|
72
|
+
), (e, r) => (h(), d(q, {
|
|
73
73
|
itemCount: s.value.length
|
|
74
74
|
}, {
|
|
75
75
|
title: f(() => [
|
|
76
|
-
|
|
76
|
+
x(V(e.title), 1)
|
|
77
77
|
]),
|
|
78
78
|
default: f(() => [
|
|
79
|
-
s.value.length ? (
|
|
79
|
+
s.value.length ? (h(), d(E, {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: "flex-1",
|
|
82
82
|
columns: ["32px", "", ""],
|
|
@@ -87,7 +87,7 @@ const A = /* @__PURE__ */ R({
|
|
|
87
87
|
workspace: e.workspace,
|
|
88
88
|
onUpdateRow: v,
|
|
89
89
|
onDeleteRow: y
|
|
90
|
-
}, null, 8, ["envVariables", "environment", "invalidParams", "items", "workspace"])) :
|
|
90
|
+
}, null, 8, ["envVariables", "environment", "invalidParams", "items", "workspace"])) : b("", !0)
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
93
|
}, 8, ["itemCount"]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, computed as p, useId as A, ref as N, watch as I,
|
|
1
|
+
import { defineComponent as H, computed as p, useId as A, ref as N, watch as I, createBlock as d, openBlock as i, withCtx as v, createElementVNode as c, withDirectives as s, createCommentVNode as f, createVNode as t, unref as n, vShow as m, createElementBlock as y, toDisplayString as U } from "vue";
|
|
2
2
|
import { ScalarErrorBoundary as D } from "@scalar/components";
|
|
3
3
|
import { canMethodHaveBody as h, isDefined as K, REGEX as q } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import Q from "../../../components/SectionFilter.vue.js";
|
|
@@ -80,19 +80,19 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
80
80
|
}, {
|
|
81
81
|
title: v(() => [
|
|
82
82
|
c("div", G, [
|
|
83
|
-
n(u) !== "modal" ? (i(),
|
|
83
|
+
n(u) !== "modal" ? (i(), y("label", {
|
|
84
84
|
key: 0,
|
|
85
85
|
class: "pointer-events-auto absolute left-0 top-0 h-full w-full cursor-text opacity-0",
|
|
86
86
|
for: n(V)
|
|
87
|
-
}, null, 8, X)) :
|
|
88
|
-
n(u) !== "modal" ? (i(),
|
|
87
|
+
}, null, 8, X)) : f("", !0),
|
|
88
|
+
n(u) !== "modal" ? (i(), y("input", {
|
|
89
89
|
key: 1,
|
|
90
90
|
id: n(V),
|
|
91
91
|
class: "text-c-1 group-hover-input pl-1.25 md:-ml-1.25 pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded has-[:focus-visible]:outline",
|
|
92
92
|
placeholder: E(),
|
|
93
93
|
value: e.operation.summary,
|
|
94
94
|
onInput: C
|
|
95
|
-
}, null, 40, J)) : (i(),
|
|
95
|
+
}, null, 40, J)) : (i(), y("span", Y, U(e.operation.summary), 1))
|
|
96
96
|
]),
|
|
97
97
|
t(Q, {
|
|
98
98
|
modelValue: a.value,
|
|
@@ -126,7 +126,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
126
126
|
m,
|
|
127
127
|
!w.value && (a.value === "All" || a.value === "Auth")
|
|
128
128
|
]
|
|
129
|
-
]) :
|
|
129
|
+
]) : f("", !0),
|
|
130
130
|
s(t(F, {
|
|
131
131
|
id: r.value.Variables,
|
|
132
132
|
class: "request-section-content-path-params",
|
|
@@ -205,7 +205,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
205
205
|
role: a.value === "All" ? "none" : "tabpanel",
|
|
206
206
|
title: "Body",
|
|
207
207
|
workspace: e.workspace
|
|
208
|
-
}, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"])) :
|
|
208
|
+
}, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"])) : f("", !0),
|
|
209
209
|
o[1] || (o[1] = c("div", { class: "-my-0.25 flex flex-grow" }, null, -1)),
|
|
210
210
|
t(n(D), null, {
|
|
211
211
|
default: v(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _,
|
|
1
|
+
import { defineComponent as _, createBlock as p, openBlock as d, withCtx as n, createVNode as t, createElementBlock as f, createTextVNode as b, toDisplayString as c, Fragment as h, renderList as q, normalizeClass as v, unref as r, createCommentVNode as k, createElementVNode as i } from "vue";
|
|
2
2
|
import { ScalarTooltip as D, ScalarIcon as x, ScalarButton as B } from "@scalar/components";
|
|
3
3
|
import { ScalarIconTrash as E } from "@scalar/icons";
|
|
4
4
|
import { RouterLink as G } from "vue-router";
|
|
@@ -43,26 +43,26 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
43
43
|
default: n(() => [
|
|
44
44
|
t(w, null, {
|
|
45
45
|
default: n(() => [
|
|
46
|
-
|
|
46
|
+
b(c(e.label) + " Enabled", 1)
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
49
49
|
}),
|
|
50
50
|
t(w, null, {
|
|
51
51
|
default: n(() => [
|
|
52
|
-
|
|
52
|
+
b(c(e.label) + " Key", 1)
|
|
53
53
|
]),
|
|
54
54
|
_: 1
|
|
55
55
|
}),
|
|
56
56
|
t(w, null, {
|
|
57
57
|
default: n(() => [
|
|
58
|
-
|
|
58
|
+
b(c(e.label) + " Value", 1)
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
61
|
})
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
64
|
}),
|
|
65
|
-
(d(!0),
|
|
65
|
+
(d(!0), f(h, null, q(e.items, (l, u) => (d(), p(C, {
|
|
66
66
|
id: l.key,
|
|
67
67
|
key: u,
|
|
68
68
|
class: v({
|
|
@@ -189,7 +189,7 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
189
189
|
default: n(() => {
|
|
190
190
|
var a;
|
|
191
191
|
return [
|
|
192
|
-
l.file ? (d(),
|
|
192
|
+
l.file ? (d(), f(h, { key: 0 }, [
|
|
193
193
|
i("div", A, [
|
|
194
194
|
i("span", null, c((a = l.file) == null ? void 0 : a.name), 1)
|
|
195
195
|
]),
|
|
@@ -198,7 +198,7 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
198
198
|
type: "button",
|
|
199
199
|
onClick: (I) => s("removeFile", u)
|
|
200
200
|
}, " Delete ", 8, K)
|
|
201
|
-
], 64)) : (d(),
|
|
201
|
+
], 64)) : (d(), f("div", L, [
|
|
202
202
|
t(r(B), {
|
|
203
203
|
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
204
204
|
size: "sm",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, computed as c,
|
|
1
|
+
import { defineComponent as u, computed as c, createBlock as n, openBlock as t, unref as s, withCtx as m, createElementVNode as l, createElementBlock as i, createCommentVNode as a, toDisplayString as o } from "vue";
|
|
2
2
|
import { ScalarTooltip as g } from "@scalar/components";
|
|
3
3
|
import { ScalarIconWarning as f, ScalarIconInfo as y } from "@scalar/icons";
|
|
4
4
|
import { parameterIsInvalid as p } from "../libs/request.js";
|
|
@@ -43,14 +43,14 @@ const h = ["aria-label", "role"], v = { class: "w-content bg-b-1 text-xxs text-c
|
|
|
43
43
|
]),
|
|
44
44
|
content: m(() => [
|
|
45
45
|
l("div", v, [
|
|
46
|
-
r.value ? (t(), i("div", k,
|
|
47
|
-
e.item.type ? (t(), i("span", _,
|
|
48
|
-
e.item.format ? (t(), i("span", I,
|
|
49
|
-
e.item.minimum ? (t(), i("span", w, "min: " +
|
|
50
|
-
e.item.maximum ? (t(), i("span", x, "max: " +
|
|
51
|
-
e.item.default ? (t(), i("span", C, "default: " +
|
|
52
|
-
])) :
|
|
53
|
-
e.item.description && !r.value ? (t(), i("span", S,
|
|
46
|
+
r.value ? (t(), i("div", k, o(s(p)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), i("div", b, [
|
|
47
|
+
e.item.type ? (t(), i("span", _, o(e.item.type), 1)) : a("", !0),
|
|
48
|
+
e.item.format ? (t(), i("span", I, o(e.item.format), 1)) : a("", !0),
|
|
49
|
+
e.item.minimum ? (t(), i("span", w, "min: " + o(e.item.minimum), 1)) : a("", !0),
|
|
50
|
+
e.item.maximum ? (t(), i("span", x, "max: " + o(e.item.maximum), 1)) : a("", !0),
|
|
51
|
+
e.item.default ? (t(), i("span", C, "default: " + o(e.item.default), 1)) : a("", !0)
|
|
52
|
+
])) : a("", !0),
|
|
53
|
+
e.item.description && !r.value ? (t(), i("span", S, o(e.item.description), 1)) : a("", !0)
|
|
54
54
|
])
|
|
55
55
|
]),
|
|
56
56
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as ge, useId as Se, reactive as ke, ref as Re, watch as H, onMounted as ye, onBeforeUnmount as xe, computed as D,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as ge, useId as Se, reactive as ke, ref as Re, watch as H, onMounted as ye, onBeforeUnmount as xe, computed as D, createElementBlock as b, openBlock as r, Fragment as $, withDirectives as K, createBlock as u, createCommentVNode as p, createVNode as v, unref as t, normalizeClass as g, createSlots as we, withCtx as d, createElementVNode as n, createTextVNode as q, toDisplayString as B, withKeys as M, withModifiers as S, isRef as Ie, vShow as U, renderList as G, nextTick as Ce } from "vue";
|
|
2
|
+
import { ScalarButton as De, ScalarIcon as P, ScalarSearchInput as $e, ScalarSearchResultList as qe, ScalarSearchResultItem as Me } from "@scalar/components";
|
|
3
3
|
import { LibraryIcon as Pe } from "@scalar/icons/library";
|
|
4
4
|
import { useToasts as Te } from "@scalar/use-toasts";
|
|
5
5
|
import { useRouter as _e } from "vue-router";
|
|
@@ -158,7 +158,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
158
158
|
)
|
|
159
159
|
), he = D(() => i === "modal" && V.value ? [V.value] : c.value);
|
|
160
160
|
return (s, e) => (r(), b($, null, [
|
|
161
|
-
K(
|
|
161
|
+
K(v(t(je), {
|
|
162
162
|
class: g([t(T) ? "sidebar-active-width" : ""])
|
|
163
163
|
}, we({
|
|
164
164
|
content: d(() => [
|
|
@@ -166,9 +166,9 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
166
166
|
n("div", {
|
|
167
167
|
class: g(["size-8", { "xl:hidden": t(i) !== "modal" }])
|
|
168
168
|
}, null, 2),
|
|
169
|
-
t(i) !== "modal" ? (r(), u(t(Je), { key: 0 })) :
|
|
170
|
-
t(i) !== "modal" ? (r(), b("span", Ye, " / ")) :
|
|
171
|
-
t(i) !== "modal" ? (r(), u(Le, { key: 2 })) :
|
|
169
|
+
t(i) !== "modal" ? (r(), u(t(Je), { key: 0 })) : p("", !0),
|
|
170
|
+
t(i) !== "modal" ? (r(), b("span", Ye, " / ")) : p("", !0),
|
|
171
|
+
t(i) !== "modal" ? (r(), u(Le, { key: 2 })) : p("", !0),
|
|
172
172
|
n("button", {
|
|
173
173
|
"aria-pressed": m.value,
|
|
174
174
|
class: "ml-auto",
|
|
@@ -176,14 +176,14 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
176
176
|
onClick: ve
|
|
177
177
|
}, [
|
|
178
178
|
n("span", et, B(m.value ? "Hide" : "Show") + " search ", 1),
|
|
179
|
-
|
|
179
|
+
v(t(P), {
|
|
180
180
|
class: "text-c-3 hover:bg-b-2 p-1.75 max-h-8 max-w-8 rounded-lg text-sm",
|
|
181
181
|
icon: "Search"
|
|
182
182
|
})
|
|
183
183
|
], 8, Ze)
|
|
184
184
|
]),
|
|
185
185
|
K(n("div", tt, [
|
|
186
|
-
|
|
186
|
+
v(t($e), {
|
|
187
187
|
ref_key: "searchInputRef",
|
|
188
188
|
ref: C,
|
|
189
189
|
modelValue: t(h),
|
|
@@ -193,9 +193,9 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
193
193
|
sidebar: "",
|
|
194
194
|
onInput: t(ue),
|
|
195
195
|
onKeydown: [
|
|
196
|
-
e[1] || (e[1] =
|
|
197
|
-
e[2] || (e[2] =
|
|
198
|
-
e[3] || (e[3] =
|
|
196
|
+
e[1] || (e[1] = M(S((o) => t(z)("down"), ["stop"]), ["down"])),
|
|
197
|
+
e[2] || (e[2] = M(S((o) => t(de)(), ["stop"]), ["enter"])),
|
|
198
|
+
e[3] || (e[3] = M(S((o) => t(z)("up"), ["stop"]), ["up"]))
|
|
199
199
|
]
|
|
200
200
|
}, null, 8, ["modelValue", "aria-controls", "label", "onInput"])
|
|
201
201
|
], 512), [
|
|
@@ -215,7 +215,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
215
215
|
onDragover: e[7] || (e[7] = S(() => {
|
|
216
216
|
}, ["prevent"]))
|
|
217
217
|
}, [
|
|
218
|
-
t(h) ? (r(), u(t(
|
|
218
|
+
t(h) ? (r(), u(t(qe), {
|
|
219
219
|
key: 0,
|
|
220
220
|
id: t(O),
|
|
221
221
|
"aria-label": "Search Results",
|
|
@@ -223,7 +223,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
223
223
|
noResults: !t(w).length
|
|
224
224
|
}, {
|
|
225
225
|
default: d(() => [
|
|
226
|
-
(r(!0), b($, null, G(t(w), (o, a) => (r(), u(t(
|
|
226
|
+
(r(!0), b($, null, G(t(w), (o, a) => (r(), u(t(Me), {
|
|
227
227
|
id: `#search-input-${o.item.id}`,
|
|
228
228
|
key: o.refIndex,
|
|
229
229
|
ref_for: !0,
|
|
@@ -236,13 +236,13 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
236
236
|
}, {
|
|
237
237
|
addon: d(() => [
|
|
238
238
|
e[9] || (e[9] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
239
|
-
|
|
239
|
+
v(Ne, {
|
|
240
240
|
class: "font-bold",
|
|
241
241
|
method: o.item.httpVerb ?? "get"
|
|
242
242
|
}, null, 8, ["method"])
|
|
243
243
|
]),
|
|
244
244
|
default: d(() => [
|
|
245
|
-
|
|
245
|
+
q(B(o.item.title) + " ", 1)
|
|
246
246
|
]),
|
|
247
247
|
_: 2
|
|
248
248
|
}, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
|
|
@@ -280,7 +280,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
280
280
|
"rotate-90": t(Y)[o.uid]
|
|
281
281
|
})
|
|
282
282
|
}, [
|
|
283
|
-
|
|
283
|
+
v(t(P), {
|
|
284
284
|
class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
|
|
285
285
|
icon: "ChevronRight",
|
|
286
286
|
size: "md"
|
|
@@ -302,11 +302,11 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
302
302
|
}, [
|
|
303
303
|
y.value ? (r(), b("div", st, [
|
|
304
304
|
n("div", at, [
|
|
305
|
-
|
|
305
|
+
v(j, {
|
|
306
306
|
art: t(Ve),
|
|
307
307
|
class: "rabbitsit font-bold"
|
|
308
308
|
}, null, 8, ["art"]),
|
|
309
|
-
|
|
309
|
+
v(j, {
|
|
310
310
|
art: t(Ee),
|
|
311
311
|
class: "rabbitjump absolute left-0 top-0 font-bold"
|
|
312
312
|
}, null, 8, ["art"])
|
|
@@ -315,8 +315,8 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
315
315
|
n("b", { class: "font-medium" }, "Let's Get Started"),
|
|
316
316
|
n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
317
317
|
], -1))
|
|
318
|
-
])) :
|
|
319
|
-
t(i) !== "modal" ? (r(), u(t(
|
|
318
|
+
])) : p("", !0),
|
|
319
|
+
t(i) !== "modal" ? (r(), u(t(De), {
|
|
320
320
|
key: 1,
|
|
321
321
|
class: g(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
|
|
322
322
|
"flex opacity-100": y.value
|
|
@@ -324,20 +324,20 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
324
324
|
onClick: le
|
|
325
325
|
}, {
|
|
326
326
|
default: d(() => e[11] || (e[11] = [
|
|
327
|
-
|
|
327
|
+
q(" Import Collection ")
|
|
328
328
|
])),
|
|
329
329
|
_: 1
|
|
330
|
-
}, 8, ["class"])) :
|
|
330
|
+
}, 8, ["class"])) : p("", !0),
|
|
331
331
|
t(i) !== "modal" ? (r(), u(ze, {
|
|
332
332
|
key: 2,
|
|
333
333
|
click: t(R).commandPalette.emit,
|
|
334
334
|
hotkey: "K"
|
|
335
335
|
}, {
|
|
336
336
|
title: d(() => e[12] || (e[12] = [
|
|
337
|
-
|
|
337
|
+
q(" Add Item ")
|
|
338
338
|
])),
|
|
339
339
|
_: 1
|
|
340
|
-
}, 8, ["click"])) :
|
|
340
|
+
}, 8, ["click"])) : p("", !0)
|
|
341
341
|
], 2)
|
|
342
342
|
]),
|
|
343
343
|
_: 2
|
|
@@ -356,7 +356,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
356
356
|
onClearDrafts: pe,
|
|
357
357
|
onCloseMenu: e[8] || (e[8] = (o) => k.open = !1),
|
|
358
358
|
onToggleWatchMode: me
|
|
359
|
-
}, null, 8, ["menuItem"])) :
|
|
359
|
+
}, null, 8, ["menuItem"])) : p("", !0)
|
|
360
360
|
], 64));
|
|
361
361
|
}
|
|
362
362
|
});
|