@scalar/api-client 2.3.30 → 2.3.32
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 +36 -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/style.css +1 -1
- 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.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +16 -14
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +3 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +74 -31
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +3 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +8 -6
- 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.vue.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +56 -61
- 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.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +23 -22
- 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/consts/mediaTypes.d.ts.map +1 -1
- package/dist/views/Request/consts/mediaTypes.js +1 -0
- 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 +19 -19
|
@@ -1,70 +1,64 @@
|
|
|
1
|
-
import { defineComponent as H, computed as a, ref as U,
|
|
2
|
-
import {
|
|
3
|
-
import { snippetz as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as H, computed as a, ref as U, createElementBlock as j, openBlock as y, 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 T, ScalarCombobox as W, ScalarButton as z, ScalarIcon as I } from "@scalar/components";
|
|
3
|
+
import { snippetz as O } from "@scalar/snippetz";
|
|
4
|
+
import R from "../../../components/DataTable/DataTable.vue.js";
|
|
5
|
+
import q from "../../../components/DataTable/DataTableRow.vue.js";
|
|
6
6
|
import M from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import A from "
|
|
9
|
-
|
|
10
|
-
const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class: "bg-b-1 flex items-center justify-center overflow-hidden border-t" }, ne = /* @__PURE__ */ H({
|
|
7
|
+
import P from "../../Components/CodeSnippet/CodeSnippet.vue.js";
|
|
8
|
+
import { useWorkspace as A } from "../../../store/store.js";
|
|
9
|
+
const F = { class: "w-full" }, G = { class: "-mx-1 flex flex-1" }, J = { class: "bg-b-1 flex items-center justify-center overflow-hidden border-t" }, le = /* @__PURE__ */ H({
|
|
11
10
|
__name: "RequestCodeExample",
|
|
12
11
|
props: {
|
|
13
12
|
collection: {},
|
|
14
13
|
example: {},
|
|
15
14
|
operation: {},
|
|
16
15
|
server: {},
|
|
17
|
-
workspace: {}
|
|
16
|
+
workspace: {},
|
|
17
|
+
environment: {}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
var b, K,
|
|
21
|
-
const { securitySchemes: k, workspaceMutators: w } =
|
|
19
|
+
setup(o) {
|
|
20
|
+
var b, K, h, S;
|
|
21
|
+
const { securitySchemes: k, workspaceMutators: w } = A(), f = a(() => {
|
|
22
22
|
var t, e, l;
|
|
23
23
|
return d.value.targetKey === "custom" && ((t = u.value) == null ? void 0 : t.some(
|
|
24
|
-
(
|
|
24
|
+
(n) => n.lang === d.value.clientKey
|
|
25
25
|
)) ? d.value : {
|
|
26
|
-
targetKey: ((e =
|
|
27
|
-
clientKey: ((l =
|
|
26
|
+
targetKey: ((e = o.workspace.selectedHttpClient) == null ? void 0 : e.targetKey) ?? "js",
|
|
27
|
+
clientKey: ((l = o.workspace.selectedHttpClient) == null ? void 0 : l.clientKey) ?? "fetch"
|
|
28
28
|
};
|
|
29
29
|
}), u = a(
|
|
30
|
-
() =>
|
|
30
|
+
() => o.operation["x-codeSamples"] || o.operation["x-code-samples"] || o.operation["x-custom-examples"]
|
|
31
31
|
), d = U(
|
|
32
32
|
(b = u.value) != null && b.length ? {
|
|
33
33
|
targetKey: "custom",
|
|
34
34
|
clientKey: (K = u.value[0]) == null ? void 0 : K.lang
|
|
35
35
|
} : {
|
|
36
|
-
targetKey: ((
|
|
37
|
-
clientKey: ((
|
|
36
|
+
targetKey: ((h = o.workspace.selectedHttpClient) == null ? void 0 : h.targetKey) ?? "js",
|
|
37
|
+
clientKey: ((S = o.workspace.selectedHttpClient) == null ? void 0 : S.clientKey) ?? "fetch"
|
|
38
38
|
}
|
|
39
|
-
), $ = a(
|
|
40
|
-
() =>
|
|
41
|
-
|
|
42
|
-
n.
|
|
43
|
-
|
|
44
|
-
)
|
|
45
|
-
), y = a(() => {
|
|
46
|
-
const t = {}, e = z().clients().map((o) => ({
|
|
47
|
-
label: o.title,
|
|
48
|
-
options: o.clients.map((p) => (t[`${o.key},${p.client}`] = p.title, {
|
|
49
|
-
id: `${o.key},${p.client}`,
|
|
39
|
+
), $ = a(() => (o.operation.selectedSecuritySchemeUids || o.collection.selectedSecuritySchemeUids || []).flat().map((e) => k[e]).filter((e) => !!e)), v = a(() => {
|
|
40
|
+
const t = {}, e = O().clients().map((n) => ({
|
|
41
|
+
label: n.title,
|
|
42
|
+
options: n.clients.map((p) => (t[`${n.key},${p.client}`] = p.title, {
|
|
43
|
+
id: `${n.key},${p.client}`,
|
|
50
44
|
label: p.title
|
|
51
45
|
}))
|
|
52
|
-
})), l = (
|
|
53
|
-
id: `custom,${
|
|
54
|
-
label:
|
|
46
|
+
})), l = (o.operation["x-codeSamples"] || o.operation["x-code-samples"] || o.operation["x-custom-examples"] || []).map((n) => ({
|
|
47
|
+
id: `custom,${n.lang}`,
|
|
48
|
+
label: n.label || n.lang
|
|
55
49
|
})), m = l.length > 0 ? [
|
|
56
50
|
{
|
|
57
51
|
id: "customExamples",
|
|
58
52
|
label: "Code Examples",
|
|
59
|
-
options: l.map((
|
|
60
|
-
id:
|
|
61
|
-
label:
|
|
53
|
+
options: l.map((n) => ({
|
|
54
|
+
id: n.id,
|
|
55
|
+
label: n.label ?? n.id
|
|
62
56
|
}))
|
|
63
57
|
},
|
|
64
58
|
...e
|
|
65
59
|
] : e;
|
|
66
|
-
return l.forEach((
|
|
67
|
-
t[
|
|
60
|
+
return l.forEach((n) => {
|
|
61
|
+
t[n.id] = n.label ?? n.id;
|
|
68
62
|
}), {
|
|
69
63
|
options: m,
|
|
70
64
|
dict: t
|
|
@@ -75,24 +69,24 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
|
|
|
75
69
|
const l = `custom,${t.clientKey}`;
|
|
76
70
|
return {
|
|
77
71
|
id: l,
|
|
78
|
-
label:
|
|
72
|
+
label: v.value.dict[l] ?? "Unknown"
|
|
79
73
|
};
|
|
80
74
|
}
|
|
81
75
|
const e = `${t.targetKey},${t.clientKey}`;
|
|
82
76
|
return {
|
|
83
77
|
id: e,
|
|
84
|
-
label:
|
|
78
|
+
label: v.value.dict[e] ?? "Unknown"
|
|
85
79
|
};
|
|
86
80
|
}), E = a(
|
|
87
81
|
() => f.value.targetKey
|
|
88
|
-
),
|
|
82
|
+
), B = a(
|
|
89
83
|
() => f.value.clientKey
|
|
90
|
-
),
|
|
84
|
+
), V = ({ id: t }) => {
|
|
91
85
|
const [e, l] = t.split(",");
|
|
92
86
|
!e || !l || (d.value = {
|
|
93
87
|
targetKey: e,
|
|
94
88
|
clientKey: l
|
|
95
|
-
}, e !== "custom" && w.edit(
|
|
89
|
+
}, e !== "custom" && w.edit(o.workspace.uid, "selectedHttpClient", {
|
|
96
90
|
targetKey: e,
|
|
97
91
|
clientKey: l
|
|
98
92
|
}));
|
|
@@ -103,24 +97,24 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
|
|
|
103
97
|
const t = s.value.id.split(",")[1], e = (l = u.value) == null ? void 0 : l.find((m) => m.lang === t);
|
|
104
98
|
return e == null ? void 0 : e.source;
|
|
105
99
|
});
|
|
106
|
-
return (t, e) => (
|
|
100
|
+
return (t, e) => (y(), j("div", F, [
|
|
107
101
|
i(M, {
|
|
108
102
|
class: "group/preview w-full border-b-0",
|
|
109
103
|
defaultOpen: !1
|
|
110
104
|
}, {
|
|
111
105
|
title: c(() => e[0] || (e[0] = [
|
|
112
|
-
|
|
106
|
+
N("Code Snippet")
|
|
113
107
|
])),
|
|
114
108
|
actions: c(() => [
|
|
115
|
-
x("div",
|
|
116
|
-
i(r(
|
|
109
|
+
x("div", G, [
|
|
110
|
+
i(r(W), {
|
|
117
111
|
modelValue: s.value,
|
|
118
|
-
options:
|
|
112
|
+
options: v.value.options,
|
|
119
113
|
placement: "bottom-end",
|
|
120
|
-
"onUpdate:modelValue":
|
|
114
|
+
"onUpdate:modelValue": V
|
|
121
115
|
}, {
|
|
122
116
|
default: c(() => [
|
|
123
|
-
i(r(
|
|
117
|
+
i(r(z), {
|
|
124
118
|
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
119
|
fullWidth: "",
|
|
126
120
|
variant: "ghost"
|
|
@@ -128,8 +122,8 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
|
|
|
128
122
|
default: c(() => {
|
|
129
123
|
var l;
|
|
130
124
|
return [
|
|
131
|
-
x("span", null,
|
|
132
|
-
i(r(
|
|
125
|
+
x("span", null, D((l = s.value) == null ? void 0 : l.label), 1),
|
|
126
|
+
i(r(I), {
|
|
133
127
|
icon: "ChevronDown",
|
|
134
128
|
size: "md"
|
|
135
129
|
})
|
|
@@ -143,29 +137,30 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
|
|
|
143
137
|
])
|
|
144
138
|
]),
|
|
145
139
|
default: c(() => [
|
|
146
|
-
i(
|
|
140
|
+
i(R, {
|
|
147
141
|
columns: [""],
|
|
148
142
|
presentational: ""
|
|
149
143
|
}, {
|
|
150
144
|
default: c(() => [
|
|
151
|
-
i(
|
|
145
|
+
i(q, null, {
|
|
152
146
|
default: c(() => [
|
|
153
|
-
x("div",
|
|
154
|
-
g.value ? (
|
|
147
|
+
x("div", J, [
|
|
148
|
+
g.value ? (y(), C(r(T), {
|
|
155
149
|
key: 0,
|
|
156
150
|
class: "px-3 py-1.5",
|
|
157
151
|
content: g.value,
|
|
158
152
|
lang: s.value.id.split(",")[1] ?? "plaintext"
|
|
159
|
-
}, null, 8, ["content", "lang"])) : (
|
|
153
|
+
}, null, 8, ["content", "lang"])) : (y(), C(r(P), {
|
|
160
154
|
key: 1,
|
|
161
155
|
class: "px-3 py-1.5",
|
|
162
|
-
client:
|
|
156
|
+
client: B.value,
|
|
163
157
|
example: t.example,
|
|
164
158
|
operation: t.operation,
|
|
165
159
|
securitySchemes: $.value,
|
|
166
160
|
server: t.server,
|
|
167
|
-
target: E.value
|
|
168
|
-
|
|
161
|
+
target: E.value,
|
|
162
|
+
environment: t.environment
|
|
163
|
+
}, null, 8, ["client", "example", "operation", "securitySchemes", "server", "target", "environment"]))
|
|
169
164
|
])
|
|
170
165
|
]),
|
|
171
166
|
_: 1
|
|
@@ -180,5 +175,5 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
|
|
|
180
175
|
}
|
|
181
176
|
});
|
|
182
177
|
export {
|
|
183
|
-
|
|
178
|
+
le as default
|
|
184
179
|
};
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AAiUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AASrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAoVF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./RequestSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const p = /* @__PURE__ */ o
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-83e16b0b"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
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 v, openBlock as i, withCtx as d, 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
|
-
import { canMethodHaveBody as
|
|
3
|
+
import { canMethodHaveBody as b, isDefined as K, REGEX as q } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import Q from "../../../components/SectionFilter.vue.js";
|
|
5
5
|
import $ from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
6
6
|
import { matchesDomain as L } from "../../../libs/send-request/set-request-cookies.js";
|
|
7
7
|
import j from "./RequestBody.vue.js";
|
|
8
|
-
import
|
|
8
|
+
import h from "./RequestParams.vue.js";
|
|
9
9
|
import F from "./RequestPathParams.vue.js";
|
|
10
10
|
import M from "./RequestAuth/RequestAuth.vue.js";
|
|
11
11
|
import T from "./RequestCodeExample.vue.js";
|
|
@@ -37,7 +37,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
37
37
|
"Body"
|
|
38
38
|
], { requestMutators: S, cookies: g, securitySchemes: B } = W(), { layout: u } = z(), k = p(() => {
|
|
39
39
|
const e = /* @__PURE__ */ new Set(["All", ...P]);
|
|
40
|
-
return l.example.parameters.path.length || e.delete("Variables"),
|
|
40
|
+
return l.example.parameters.path.length || e.delete("Variables"), b(l.operation.method ?? "get") || e.delete("Body"), w.value && e.delete("Auth"), [...e];
|
|
41
41
|
}), r = p(
|
|
42
42
|
() => Object.fromEntries(
|
|
43
43
|
k.value.map((e) => [e, A()])
|
|
@@ -51,7 +51,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
51
51
|
I(
|
|
52
52
|
() => l.operation,
|
|
53
53
|
(e) => {
|
|
54
|
-
a.value === "Body" && e && !
|
|
54
|
+
a.value === "Body" && e && !b(e.method) && (a.value = "All");
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
const C = (e) => {
|
|
@@ -75,24 +75,24 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
75
75
|
enabled: !0
|
|
76
76
|
}))
|
|
77
77
|
), E = () => l.operation.summary ? l.operation.summary : l.operation.path.replace(q.PROTOCOL, "") ? l.operation.path.replace(q.PROTOCOL, "") : "Request Name", V = A();
|
|
78
|
-
return (e, o) => (i(),
|
|
78
|
+
return (e, o) => (i(), v($, {
|
|
79
79
|
"aria-label": `Request: ${e.operation.summary}`
|
|
80
80
|
}, {
|
|
81
|
-
title:
|
|
81
|
+
title: d(() => [
|
|
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,
|
|
@@ -101,13 +101,13 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
101
101
|
filters: k.value
|
|
102
102
|
}, null, 8, ["modelValue", "filterIds", "filters"])
|
|
103
103
|
]),
|
|
104
|
-
default:
|
|
104
|
+
default: d(() => [
|
|
105
105
|
c("div", {
|
|
106
106
|
id: r.value.All,
|
|
107
107
|
class: "request-section-content custom-scroll relative flex flex-1 flex-col divide-y",
|
|
108
108
|
role: a.value === "All" ? "tabpanel" : "none"
|
|
109
109
|
}, [
|
|
110
|
-
e.collection && e.workspace && (n(u) !== "modal" || Object.keys(n(B) ?? {}).length) ? s((i(),
|
|
110
|
+
e.collection && e.workspace && (n(u) !== "modal" || Object.keys(n(B) ?? {}).length) ? s((i(), v(M, {
|
|
111
111
|
key: 0,
|
|
112
112
|
id: r.value.Auth,
|
|
113
113
|
class: "request-section-content-auth border-b-0",
|
|
@@ -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",
|
|
@@ -145,7 +145,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
145
145
|
(a.value === "All" || a.value === "Variables") && e.example.parameters.path.length
|
|
146
146
|
]
|
|
147
147
|
]),
|
|
148
|
-
s(t(
|
|
148
|
+
s(t(h, {
|
|
149
149
|
id: r.value.Cookies,
|
|
150
150
|
class: "request-section-content-cookies",
|
|
151
151
|
envVariables: e.envVariables,
|
|
@@ -162,7 +162,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
162
162
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "readOnlyEntries", "role", "workspace"]), [
|
|
163
163
|
[m, a.value === "All" || a.value === "Cookies"]
|
|
164
164
|
]),
|
|
165
|
-
s(t(
|
|
165
|
+
s(t(h, {
|
|
166
166
|
id: r.value.Headers,
|
|
167
167
|
class: "request-section-content-headers",
|
|
168
168
|
envVariables: e.envVariables,
|
|
@@ -178,7 +178,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
178
178
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
|
|
179
179
|
[m, a.value === "All" || a.value === "Headers"]
|
|
180
180
|
]),
|
|
181
|
-
s(t(
|
|
181
|
+
s(t(h, {
|
|
182
182
|
id: r.value.Query,
|
|
183
183
|
class: "request-section-content-query",
|
|
184
184
|
envVariables: e.envVariables,
|
|
@@ -194,7 +194,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
194
194
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
|
|
195
195
|
[m, a.value === "All" || a.value === "Query"]
|
|
196
196
|
]),
|
|
197
|
-
e.operation.method && (a.value === "All" || a.value === "Body") && n(
|
|
197
|
+
e.operation.method && (a.value === "All" || a.value === "Body") && n(b)(e.operation.method) ? (i(), v(j, {
|
|
198
198
|
key: 1,
|
|
199
199
|
id: r.value.Body,
|
|
200
200
|
class: "request-section-content-body",
|
|
@@ -205,18 +205,19 @@ 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
|
-
default:
|
|
211
|
+
default: d(() => [
|
|
212
212
|
t(T, {
|
|
213
213
|
class: "request-section-content-code-example",
|
|
214
214
|
collection: e.collection,
|
|
215
215
|
example: e.example,
|
|
216
216
|
operation: e.operation,
|
|
217
217
|
server: e.server,
|
|
218
|
-
workspace: e.workspace
|
|
219
|
-
|
|
218
|
+
workspace: e.workspace,
|
|
219
|
+
environment: e.envVariables
|
|
220
|
+
}, null, 8, ["collection", "example", "operation", "server", "workspace", "environment"])
|
|
220
221
|
]),
|
|
221
222
|
_: 1
|
|
222
223
|
})
|
|
@@ -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
|