@scalar/api-client 2.5.31 → 2.5.33
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 +33 -0
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +120 -128
- package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +57 -63
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +143 -150
- package/dist/components/CodeInput/codeVariableWidget.js +70 -75
- package/dist/components/CommandPalette/CommandActionInput.vue.js +17 -19
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -27
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +53 -55
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +129 -133
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +84 -98
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +64 -74
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +5 -11
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +164 -183
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue2.js +31 -31
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -2
- package/dist/components/EmptyState.vue.js +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +75 -84
- package/dist/components/Form/LabelInput.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue2.js +11 -11
- package/dist/components/ImportCollection/DropEventListener.vue.js +42 -44
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -23
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +141 -149
- package/dist/components/ImportCollection/ImportCollectionModal.vue3.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +22 -23
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +12 -13
- package/dist/components/ImportCollection/PasteEventListener.vue.js +11 -12
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +69 -76
- package/dist/components/ImportCollection/utils/get-openapi-version.js +8 -8
- package/dist/components/ImportCollection/utils/import-collection.js +14 -14
- package/dist/components/OpenApiClientButton.vue.js +1 -1
- package/dist/components/OpenApiClientButton.vue2.js +10 -10
- package/dist/components/ScalarAsciiArt.vue.js +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +19 -22
- package/dist/components/Search/useSearch.js +51 -61
- package/dist/components/SectionFilter.vue.js +1 -1
- package/dist/components/SectionFilter.vue2.js +26 -29
- package/dist/components/Server/ServerDropdown.vue.js +70 -96
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +57 -67
- package/dist/components/Server/ServerSelector.vue.js +44 -55
- package/dist/components/Server/ServerVariablesForm.vue.js +36 -42
- package/dist/components/Server/ServerVariablesSelect.vue.js +6 -6
- package/dist/components/SideNav/DownloadAppButton.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue.js +68 -74
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue.js +107 -122
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/hooks/useFileDialog.js +12 -12
- package/dist/hooks/useResponseBody.js +14 -16
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/layouts/App/ApiClientApp.vue.js +50 -56
- package/dist/layouts/App/ApiClientApp.vue3.js +1 -1
- package/dist/layouts/App/create-api-client-app.js +19 -20
- package/dist/layouts/App/index.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue2.js +18 -21
- package/dist/layouts/Web/ApiClientWeb.vue.js +45 -51
- package/dist/layouts/Web/ApiClientWeb.vue3.js +1 -1
- package/dist/layouts/Web/create-api-client-web.js +19 -20
- package/dist/layouts/Web/index.js +1 -1
- package/dist/libs/create-client.js +102 -109
- package/dist/libs/env-helpers.js +3 -3
- package/dist/libs/event-bus.js +15 -15
- package/dist/libs/extractAttachmentFilename.js +5 -6
- package/dist/libs/find-request.js +9 -10
- package/dist/libs/get-request-uid-by-path-method.js +12 -12
- package/dist/libs/getOpenApiDocumentDetails.js +7 -7
- package/dist/libs/importers/curl.js +3 -3
- package/dist/libs/normalize-headers.js +9 -10
- package/dist/libs/postman.js +15 -17
- package/dist/libs/send-request/build-request-security.js +9 -10
- package/dist/libs/send-request/create-fetch-body.js +11 -12
- package/dist/libs/send-request/create-fetch-query-params.js +13 -13
- package/dist/libs/send-request/create-request-operation.js +83 -84
- package/dist/libs/send-request/decode-buffer.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.js +12 -12
- package/dist/libs/string-template.js +21 -21
- package/dist/libs/validate-parameters.js +5 -8
- package/dist/plugins/plugin-manager.js +11 -17
- package/dist/store/active-entities.js +90 -117
- package/dist/store/collections.js +41 -42
- package/dist/store/import-spec.js +25 -26
- package/dist/store/request-example.js +20 -24
- package/dist/store/requests.js +63 -81
- package/dist/store/router-params.js +7 -7
- package/dist/store/security-schemes.js +35 -36
- package/dist/store/store.js +2 -2
- package/dist/store/tags.js +20 -21
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue2.js +21 -22
- package/dist/views/Collection/CollectionAuthentication.vue.js +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue2.js +43 -47
- package/dist/views/Collection/CollectionEnvironment.vue.js +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue2.js +196 -207
- package/dist/views/Collection/CollectionInfoForm.vue.js +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue2.js +34 -41
- package/dist/views/Collection/CollectionNavigation.vue.js +116 -125
- package/dist/views/Collection/CollectionOverview.vue2.js +22 -25
- package/dist/views/Collection/CollectionServerForm.vue.js +39 -45
- package/dist/views/Collection/CollectionServers.vue2.js +88 -98
- package/dist/views/Collection/CollectionSettings.vue.js +1 -1
- package/dist/views/Collection/CollectionSettings.vue2.js +101 -108
- package/dist/views/Collection/components/EnvironmentForm.vue.js +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +141 -145
- package/dist/views/Collection/components/MarkdownInput.vue.js +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -2
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +15 -15
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +15 -16
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +61 -64
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +9 -10
- package/dist/views/Cookies/CookieModal.vue.js +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +90 -93
- package/dist/views/Environment/Environment.vue2.js +267 -295
- package/dist/views/Environment/EnvironmentModal.vue.js +63 -70
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -42
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +60 -67
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +78 -89
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +37 -44
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -45
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +111 -127
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +120 -139
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +97 -97
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +287 -310
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +86 -94
- package/dist/views/Request/RequestSection/RequestParams.vue.js +37 -38
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +36 -38
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +28 -31
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +49 -52
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +16 -16
- package/dist/views/Request/RequestSection/helpers/getting-started.js +7 -11
- package/dist/views/Request/RequestSection/helpers/update-scheme.js +7 -8
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +199 -211
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +332 -349
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +210 -240
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +38 -41
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +58 -64
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -2
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +20 -23
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +29 -30
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +38 -41
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +28 -29
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +128 -140
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +116 -124
- package/dist/views/Request/consts/mediaTypes.js +2 -3
- package/dist/views/Request/handle-drag.js +24 -28
- package/dist/views/Request/hooks/useOpenApiWatcher.js +26 -33
- package/dist/views/Request/libs/auth.js +37 -43
- package/dist/views/Request/libs/oauth2.js +30 -32
- package/dist/views/Request/libs/watch-mode.js +100 -103
- package/dist/views/Settings/SettingsGeneral.vue.js +206 -236
- package/package.json +22 -22
- package/dist/components/AddressBar/AddressBar.vue3.js +0 -4
- package/dist/components/AddressBar/AddressBarHistory.vue3.js +0 -4
- package/dist/components/CodeInput/CodeInput.vue3.js +0 -4
- package/dist/components/CodeInput/CodeInput.vue4.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue3.js +0 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue3.js +0 -4
- package/dist/components/DataTable/DataTableInput.vue3.js +0 -4
- package/dist/components/EmptyState.vue3.js +0 -4
- package/dist/components/Form/LabelInput.vue3.js +0 -4
- package/dist/components/HttpMethod/HttpMethod.vue3.js +0 -4
- package/dist/components/ImportCollection/ImportCollectionModal.vue2.js +0 -4
- package/dist/components/OpenApiClientButton.vue3.js +0 -4
- package/dist/components/ScalarAsciiArt.vue3.js +0 -4
- package/dist/components/SectionFilter.vue3.js +0 -4
- package/dist/components/Server/ServerDropdownItem.vue3.js +0 -4
- package/dist/components/SideNav/DownloadAppButton.vue3.js +0 -4
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue3.js +0 -4
- package/dist/components/Sidebar/Sidebar.vue3.js +0 -4
- package/dist/components/Sidebar/SidebarListElement.vue3.js +0 -4
- package/dist/components/Sidebar/SidebarListElement.vue4.js +0 -4
- package/dist/components/TopNav/TopNavItem.vue3.js +0 -4
- package/dist/layouts/App/ApiClientApp.vue2.js +0 -4
- package/dist/layouts/Modal/ApiClientModal.vue3.js +0 -4
- package/dist/layouts/Web/ApiClientWeb.vue2.js +0 -4
- package/dist/style.css.js +0 -4
- package/dist/views/Collection/CollectionAuthentication.vue3.js +0 -4
- package/dist/views/Collection/CollectionEnvironment.vue3.js +0 -4
- package/dist/views/Collection/CollectionInfoForm.vue3.js +0 -4
- package/dist/views/Collection/CollectionSettings.vue3.js +0 -4
- package/dist/views/Collection/components/EnvironmentForm.vue3.js +0 -4
- package/dist/views/Collection/components/MarkdownInput.vue3.js +0 -4
- package/dist/views/Cookies/CookieModal.vue3.js +0 -4
- package/dist/views/Request/Request.vue3.js +0 -4
- package/dist/views/Request/RequestRoot.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestBody.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestCodeExample.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestSection.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestTable.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue3.js +0 -4
- package/dist/views/Request/RequestSidebar.vue3.js +0 -4
- package/dist/views/Request/RequestSidebarItem.vue3.js +0 -4
- package/dist/views/Request/RequestSidebarItem.vue4.js +0 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue3.js +0 -4
- package/dist/views/Request/RequestSubpageHeader.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBody.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseSection.vue3.js +0 -4
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cva as
|
|
3
|
-
import { themeLabels as
|
|
4
|
-
import
|
|
5
|
-
import { useActiveEntities as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useWorkspace as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as E, createElementBlock as _, openBlock as c, createElementVNode as r, createVNode as a, withCtx as l, createBlock as u, createCommentVNode as p, unref as e, normalizeClass as i, createTextVNode as n, toDisplayString as w, Fragment as z, renderList as $, normalizeStyle as C } from "vue";
|
|
2
|
+
import { cva as L, ScalarButton as x, cx as m, ScalarIcon as b } from "@scalar/components";
|
|
3
|
+
import { themeLabels as j } from "@scalar/themes";
|
|
4
|
+
import N from "../../components/ImportCollection/IntegrationLogo.vue.js";
|
|
5
|
+
import { useActiveEntities as P } from "../../store/active-entities.js";
|
|
6
|
+
import R from "./components/SettingsAppearance.vue.js";
|
|
7
|
+
import y from "./components/SettingsSection.vue.js";
|
|
8
|
+
import { useWorkspace as V } from "../../store/store.js";
|
|
9
|
+
const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto ml-auto w-full max-w-[720px] px-5 py-5" }, O = { class: "flex flex-col gap-8" }, D = { class: "flex flex-col gap-2" }, G = { class: "flex flex-col gap-2" }, q = { class: "grid grid-cols-2 gap-2" }, H = { class: "flex items-center gap-2" }, M = { class: "flex items-center gap-1" }, X = { class: "grid grid-cols-2 gap-2" }, Y = { class: "flex items-center gap-2" }, J = { class: "flex items-center gap-1" }, K = { class: "size-7 rounded-xl" }, g = "https://proxy.scalar.com", ne = /* @__PURE__ */ E({
|
|
10
10
|
__name: "SettingsGeneral",
|
|
11
|
-
setup(
|
|
12
|
-
const { activeWorkspace: o } =
|
|
11
|
+
setup(Q) {
|
|
12
|
+
const { activeWorkspace: o } = P(), { proxyUrl: f, workspaceMutators: U } = V(), T = [
|
|
13
13
|
"default",
|
|
14
14
|
"alternate",
|
|
15
15
|
// 'moon',
|
|
@@ -21,7 +21,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
|
|
|
21
21
|
// 'mars',
|
|
22
22
|
// 'deepSpace',
|
|
23
23
|
// 'laserwave',
|
|
24
|
-
],
|
|
24
|
+
], B = ["elysiajs", "fastify"], v = (d) => ({
|
|
25
25
|
default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
|
|
26
26
|
alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
|
|
27
27
|
moon: { light: "#ccc9b3", dark: "#313332", accent: "#645b0f" },
|
|
@@ -34,10 +34,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
|
|
|
34
34
|
deepSpace: { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
|
|
35
35
|
laserwave: { light: "#f4f2f7", dark: "#27212e", accent: "#ed78c2" },
|
|
36
36
|
none: { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }
|
|
37
|
-
})[
|
|
38
|
-
var t;
|
|
39
|
-
return j.edit((t = o.value) == null ? void 0 : t.uid, "themeId", x);
|
|
40
|
-
}, g = R({
|
|
37
|
+
})[d] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, S = (d) => U.edit(o.value?.uid, "themeId", d), k = L({
|
|
41
38
|
base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",
|
|
42
39
|
variants: {
|
|
43
40
|
active: {
|
|
@@ -45,266 +42,239 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
|
|
|
45
42
|
false: "bg-b-1 hover:bg-b-2"
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
|
-
}),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return (x, t) => (d(), S("div", D, [
|
|
53
|
-
r("div", G, [
|
|
54
|
-
r("div", q, [
|
|
45
|
+
}), h = (d) => U.edit(o.value?.uid, "proxyUrl", d);
|
|
46
|
+
return (d, t) => (c(), _("div", W, [
|
|
47
|
+
r("div", F, [
|
|
48
|
+
r("div", O, [
|
|
55
49
|
t[13] || (t[13] = r("div", null, [
|
|
56
50
|
r("h2", { class: "mt-10 text-xl font-bold" }, "Settings")
|
|
57
51
|
], -1)),
|
|
58
|
-
|
|
59
|
-
title:
|
|
60
|
-
|
|
52
|
+
a(y, null, {
|
|
53
|
+
title: l(() => t[3] || (t[3] = [
|
|
54
|
+
n(" CORS Proxy ")
|
|
61
55
|
])),
|
|
62
|
-
description:
|
|
63
|
-
|
|
56
|
+
description: l(() => t[4] || (t[4] = [
|
|
57
|
+
n(" Browsers block cross-origin requests for security. We provide a public proxy to "),
|
|
64
58
|
r("a", {
|
|
65
59
|
class: "hover:text-c-1 underline-offset-2",
|
|
66
60
|
href: "https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",
|
|
67
61
|
target: "_blank"
|
|
68
62
|
}, " bypass CORS issues ", -1),
|
|
69
|
-
|
|
63
|
+
n(" . Check the "),
|
|
70
64
|
r("a", {
|
|
71
65
|
class: "hover:text-c-1 underline-offset-2",
|
|
72
66
|
href: "https://github.com/scalar/scalar/tree/main/examples/proxy-server",
|
|
73
67
|
target: "_blank"
|
|
74
68
|
}, " source code on GitHub ", -1),
|
|
75
|
-
|
|
69
|
+
n(" . ")
|
|
76
70
|
])),
|
|
77
|
-
default:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
71
|
+
default: l(() => [
|
|
72
|
+
r("div", D, [
|
|
73
|
+
a(e(x), {
|
|
74
|
+
class: i(
|
|
75
|
+
e(m)(
|
|
76
|
+
e(k)({
|
|
77
|
+
active: e(o)?.proxyUrl === g
|
|
78
|
+
})
|
|
79
|
+
)
|
|
80
|
+
),
|
|
81
|
+
onClick: t[0] || (t[0] = (s) => h(g))
|
|
82
|
+
}, {
|
|
83
|
+
default: l(() => [
|
|
84
|
+
r("div", {
|
|
85
|
+
class: i(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
86
|
+
"bg-c-accent text-b-1 border-transparent": e(o)?.proxyUrl === g
|
|
87
|
+
}])
|
|
88
|
+
}, [
|
|
89
|
+
e(o)?.proxyUrl === g ? (c(), u(e(b), {
|
|
90
|
+
key: 0,
|
|
91
|
+
icon: "Checkmark",
|
|
92
|
+
size: "xs",
|
|
93
|
+
thickness: "3.5"
|
|
94
|
+
})) : p("", !0)
|
|
95
|
+
], 2),
|
|
96
|
+
t[5] || (t[5] = n(" Use proxy.scalar.com (default) "))
|
|
97
|
+
]),
|
|
98
|
+
_: 1,
|
|
99
|
+
__: [5]
|
|
100
|
+
}, 8, ["class"]),
|
|
101
|
+
e(f) && e(f) !== g ? (c(), u(e(x), {
|
|
102
|
+
key: 0,
|
|
103
|
+
class: i(
|
|
104
|
+
e(m)(
|
|
105
|
+
e(k)({
|
|
106
|
+
active: e(o)?.proxyUrl === e(f)
|
|
107
|
+
})
|
|
108
|
+
)
|
|
109
|
+
),
|
|
110
|
+
onClick: t[1] || (t[1] = (s) => h(e(f)))
|
|
111
|
+
}, {
|
|
112
|
+
default: l(() => [
|
|
113
|
+
r("div", {
|
|
114
|
+
class: i(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
115
|
+
"bg-c-accent text-b-1 border-transparent": e(o)?.proxyUrl === e(f)
|
|
116
|
+
}])
|
|
117
|
+
}, [
|
|
118
|
+
e(o)?.proxyUrl === e(f) ? (c(), u(e(b), {
|
|
119
|
+
key: 0,
|
|
120
|
+
icon: "Checkmark",
|
|
121
|
+
size: "xs",
|
|
122
|
+
thickness: "3.5"
|
|
123
|
+
})) : p("", !0)
|
|
124
|
+
], 2),
|
|
125
|
+
n(" Use custom proxy (" + w(e(f)) + ") ", 1)
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}, 8, ["class"])) : p("", !0),
|
|
129
|
+
a(e(x), {
|
|
130
|
+
class: i(e(m)(e(k)({ active: !e(o)?.proxyUrl }))),
|
|
131
|
+
onClick: t[2] || (t[2] = (s) => h(void 0))
|
|
132
|
+
}, {
|
|
133
|
+
default: l(() => [
|
|
134
|
+
r("div", {
|
|
135
|
+
class: i([
|
|
136
|
+
"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",
|
|
137
|
+
!e(o)?.proxyUrl && "bg-c-accent text-b-1 border-transparent"
|
|
138
|
+
])
|
|
139
|
+
}, [
|
|
140
|
+
e(o)?.proxyUrl ? p("", !0) : (c(), u(e(b), {
|
|
141
|
+
key: 0,
|
|
142
|
+
icon: "Checkmark",
|
|
143
|
+
size: "xs",
|
|
144
|
+
thickness: "3.5"
|
|
145
|
+
}))
|
|
146
|
+
], 2),
|
|
147
|
+
t[6] || (t[6] = n(" Skip the proxy "))
|
|
148
|
+
]),
|
|
149
|
+
_: 1,
|
|
150
|
+
__: [6]
|
|
151
|
+
}, 8, ["class"])
|
|
152
|
+
])
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}),
|
|
156
|
+
a(y, null, {
|
|
157
|
+
title: l(() => t[7] || (t[7] = [
|
|
158
|
+
n(" Themes ")
|
|
159
|
+
])),
|
|
160
|
+
description: l(() => t[8] || (t[8] = [
|
|
161
|
+
n(" We've got a whole rainbow of themes for you to play with: ")
|
|
162
|
+
])),
|
|
163
|
+
default: l(() => [
|
|
164
|
+
r("div", G, [
|
|
165
|
+
r("div", q, [
|
|
166
|
+
(c(), _(z, null, $(T, (s) => a(e(x), {
|
|
167
|
+
key: s,
|
|
168
|
+
class: i(
|
|
169
|
+
e(m)(
|
|
170
|
+
e(k)({
|
|
171
|
+
active: e(o)?.themeId === s
|
|
118
172
|
})
|
|
119
173
|
)
|
|
120
174
|
),
|
|
121
|
-
onClick:
|
|
175
|
+
onClick: (A) => S(s)
|
|
122
176
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
|
|
125
|
-
return [
|
|
177
|
+
default: l(() => [
|
|
178
|
+
r("div", H, [
|
|
126
179
|
r("div", {
|
|
127
|
-
class:
|
|
128
|
-
"bg-c-accent text-b-1 border-transparent":
|
|
180
|
+
class: i(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
181
|
+
"bg-c-accent text-b-1 border-transparent": e(o)?.themeId === s
|
|
129
182
|
}])
|
|
130
183
|
}, [
|
|
131
|
-
|
|
184
|
+
e(o)?.themeId === s ? (c(), u(e(b), {
|
|
132
185
|
key: 0,
|
|
133
186
|
icon: "Checkmark",
|
|
134
187
|
size: "xs",
|
|
135
188
|
thickness: "3.5"
|
|
136
|
-
})) :
|
|
189
|
+
})) : p("", !0)
|
|
137
190
|
], 2),
|
|
138
|
-
|
|
139
|
-
]
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
key: 0,
|
|
158
|
-
icon: "Checkmark",
|
|
159
|
-
size: "xs",
|
|
160
|
-
thickness: "3.5"
|
|
161
|
-
}))
|
|
162
|
-
], 2),
|
|
163
|
-
t[6] || (t[6] = a(" Skip the proxy "))
|
|
164
|
-
];
|
|
165
|
-
}),
|
|
166
|
-
_: 1,
|
|
167
|
-
__: [6]
|
|
168
|
-
}, 8, ["class"])
|
|
169
|
-
])
|
|
170
|
-
];
|
|
171
|
-
}),
|
|
172
|
-
_: 1
|
|
173
|
-
}),
|
|
174
|
-
c(w, null, {
|
|
175
|
-
title: n(() => t[7] || (t[7] = [
|
|
176
|
-
a(" Themes ")
|
|
177
|
-
])),
|
|
178
|
-
description: n(() => t[8] || (t[8] = [
|
|
179
|
-
a(" We've got a whole rainbow of themes for you to play with: ")
|
|
180
|
-
])),
|
|
181
|
-
default: n(() => [
|
|
182
|
-
r("div", M, [
|
|
183
|
-
r("div", X, [
|
|
184
|
-
(d(), S(B, null, A(L, (s) => {
|
|
185
|
-
var u;
|
|
186
|
-
return c(e(y), {
|
|
187
|
-
key: s,
|
|
188
|
-
class: f(
|
|
189
|
-
e(v)(
|
|
190
|
-
e(g)({
|
|
191
|
-
active: ((u = e(o)) == null ? void 0 : u.themeId) === s
|
|
191
|
+
n(" " + w(e(j)[s]), 1)
|
|
192
|
+
]),
|
|
193
|
+
r("div", M, [
|
|
194
|
+
r("span", {
|
|
195
|
+
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
196
|
+
style: C({
|
|
197
|
+
backgroundColor: v(s).light
|
|
198
|
+
})
|
|
199
|
+
}, null, 4),
|
|
200
|
+
r("span", {
|
|
201
|
+
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
202
|
+
style: C({
|
|
203
|
+
backgroundColor: v(s).dark
|
|
204
|
+
})
|
|
205
|
+
}, null, 4),
|
|
206
|
+
r("span", {
|
|
207
|
+
class: "border-c-3 inline-block h-5 w-5 rounded-full",
|
|
208
|
+
style: C({
|
|
209
|
+
backgroundColor: v(s).accent
|
|
192
210
|
})
|
|
193
|
-
)
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
var i, l;
|
|
199
|
-
return [
|
|
200
|
-
r("div", Y, [
|
|
201
|
-
r("div", {
|
|
202
|
-
class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
203
|
-
"bg-c-accent text-b-1 border-transparent": ((i = e(o)) == null ? void 0 : i.themeId) === s
|
|
204
|
-
}])
|
|
205
|
-
}, [
|
|
206
|
-
((l = e(o)) == null ? void 0 : l.themeId) === s ? (d(), m(e(h), {
|
|
207
|
-
key: 0,
|
|
208
|
-
icon: "Checkmark",
|
|
209
|
-
size: "xs",
|
|
210
|
-
thickness: "3.5"
|
|
211
|
-
})) : b("", !0)
|
|
212
|
-
], 2),
|
|
213
|
-
a(" " + z(e(E)[s]), 1)
|
|
214
|
-
]),
|
|
215
|
-
r("div", J, [
|
|
216
|
-
r("span", {
|
|
217
|
-
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
218
|
-
style: $({
|
|
219
|
-
backgroundColor: C(s).light
|
|
220
|
-
})
|
|
221
|
-
}, null, 4),
|
|
222
|
-
r("span", {
|
|
223
|
-
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
224
|
-
style: $({
|
|
225
|
-
backgroundColor: C(s).dark
|
|
226
|
-
})
|
|
227
|
-
}, null, 4),
|
|
228
|
-
r("span", {
|
|
229
|
-
class: "border-c-3 inline-block h-5 w-5 rounded-full",
|
|
230
|
-
style: $({
|
|
231
|
-
backgroundColor: C(s).accent
|
|
232
|
-
})
|
|
233
|
-
}, null, 4)
|
|
234
|
-
])
|
|
235
|
-
];
|
|
236
|
-
}),
|
|
237
|
-
_: 2
|
|
238
|
-
}, 1032, ["class", "onClick"]);
|
|
239
|
-
}), 64))
|
|
211
|
+
}, null, 4)
|
|
212
|
+
])
|
|
213
|
+
]),
|
|
214
|
+
_: 2
|
|
215
|
+
}, 1032, ["class", "onClick"])), 64))
|
|
240
216
|
])
|
|
241
217
|
])
|
|
242
218
|
]),
|
|
243
219
|
_: 1
|
|
244
220
|
}),
|
|
245
|
-
|
|
246
|
-
title:
|
|
247
|
-
|
|
221
|
+
a(y, null, {
|
|
222
|
+
title: l(() => t[9] || (t[9] = [
|
|
223
|
+
n(" Framework Themes ")
|
|
248
224
|
])),
|
|
249
|
-
description:
|
|
250
|
-
|
|
225
|
+
description: l(() => t[10] || (t[10] = [
|
|
226
|
+
n(" Are you a real fan? Show your support by using your favorite framework's theme! ")
|
|
251
227
|
])),
|
|
252
|
-
default:
|
|
253
|
-
r("div",
|
|
254
|
-
(
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
])
|
|
290
|
-
];
|
|
291
|
-
}),
|
|
292
|
-
_: 2
|
|
293
|
-
}, 1032, ["class", "onClick"]);
|
|
294
|
-
}), 64))
|
|
228
|
+
default: l(() => [
|
|
229
|
+
r("div", X, [
|
|
230
|
+
(c(), _(z, null, $(B, (s) => a(e(x), {
|
|
231
|
+
key: s,
|
|
232
|
+
class: i(
|
|
233
|
+
e(m)(
|
|
234
|
+
e(k)({
|
|
235
|
+
active: e(o)?.themeId === s
|
|
236
|
+
})
|
|
237
|
+
)
|
|
238
|
+
),
|
|
239
|
+
onClick: (A) => S(s)
|
|
240
|
+
}, {
|
|
241
|
+
default: l(() => [
|
|
242
|
+
r("div", Y, [
|
|
243
|
+
r("div", {
|
|
244
|
+
class: i(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
245
|
+
"bg-c-accent text-b-1 border-transparent": e(o)?.themeId === s
|
|
246
|
+
}])
|
|
247
|
+
}, [
|
|
248
|
+
e(o)?.themeId === s ? (c(), u(e(b), {
|
|
249
|
+
key: 0,
|
|
250
|
+
icon: "Checkmark",
|
|
251
|
+
size: "xs",
|
|
252
|
+
thickness: "3.5"
|
|
253
|
+
})) : p("", !0)
|
|
254
|
+
], 2),
|
|
255
|
+
n(" " + w(e(j)[s]), 1)
|
|
256
|
+
]),
|
|
257
|
+
r("div", J, [
|
|
258
|
+
r("div", K, [
|
|
259
|
+
a(N, { integration: s }, null, 8, ["integration"])
|
|
260
|
+
])
|
|
261
|
+
])
|
|
262
|
+
]),
|
|
263
|
+
_: 2
|
|
264
|
+
}, 1032, ["class", "onClick"])), 64))
|
|
295
265
|
])
|
|
296
266
|
]),
|
|
297
267
|
_: 1
|
|
298
268
|
}),
|
|
299
|
-
|
|
300
|
-
title:
|
|
301
|
-
|
|
269
|
+
a(y, null, {
|
|
270
|
+
title: l(() => t[11] || (t[11] = [
|
|
271
|
+
n(" Appearance ")
|
|
302
272
|
])),
|
|
303
|
-
description:
|
|
304
|
-
|
|
273
|
+
description: l(() => t[12] || (t[12] = [
|
|
274
|
+
n(" Choose between light, dark, or system-based appearance for your workspace. ")
|
|
305
275
|
])),
|
|
306
|
-
default:
|
|
307
|
-
|
|
276
|
+
default: l(() => [
|
|
277
|
+
a(R)
|
|
308
278
|
]),
|
|
309
279
|
_: 1
|
|
310
280
|
})
|
|
@@ -314,5 +284,5 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
|
|
|
314
284
|
}
|
|
315
285
|
});
|
|
316
286
|
export {
|
|
317
|
-
|
|
287
|
+
ne as default
|
|
318
288
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.5.
|
|
21
|
+
"version": "2.5.33",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -188,10 +188,10 @@
|
|
|
188
188
|
"module": "dist/index.js",
|
|
189
189
|
"dependencies": {
|
|
190
190
|
"@headlessui/tailwindcss": "^0.2.2",
|
|
191
|
-
"@headlessui/vue": "
|
|
191
|
+
"@headlessui/vue": "1.7.23",
|
|
192
192
|
"@types/har-format": "^1.2.15",
|
|
193
|
-
"@vueuse/core": "
|
|
194
|
-
"@vueuse/integrations": "
|
|
193
|
+
"@vueuse/core": "13.9.0",
|
|
194
|
+
"@vueuse/integrations": "13.9.0",
|
|
195
195
|
"focus-trap": "^7",
|
|
196
196
|
"fuse.js": "^7.1.0",
|
|
197
197
|
"js-base64": "^3.7.8",
|
|
@@ -206,38 +206,38 @@
|
|
|
206
206
|
"whatwg-mimetype": "^4.0.0",
|
|
207
207
|
"yaml": "2.8.0",
|
|
208
208
|
"zod": "3.24.1",
|
|
209
|
-
"@scalar/
|
|
210
|
-
"@scalar/components": "0.14.32",
|
|
211
|
-
"@scalar/helpers": "0.0.10",
|
|
209
|
+
"@scalar/components": "0.14.34",
|
|
212
210
|
"@scalar/draggable": "0.2.0",
|
|
211
|
+
"@scalar/helpers": "0.0.11",
|
|
213
212
|
"@scalar/icons": "0.4.7",
|
|
214
|
-
"@scalar/
|
|
215
|
-
"@scalar/import": "0.4.
|
|
213
|
+
"@scalar/analytics-client": "1.0.0",
|
|
214
|
+
"@scalar/import": "0.4.24",
|
|
215
|
+
"@scalar/oas-utils": "0.4.29",
|
|
216
|
+
"@scalar/object-utils": "1.2.7",
|
|
217
|
+
"@scalar/openapi-parser": "0.20.6",
|
|
216
218
|
"@scalar/openapi-types": "0.3.7",
|
|
217
|
-
"@scalar/
|
|
218
|
-
"@scalar/
|
|
219
|
-
"@scalar/postman-to-openapi": "0.3.30",
|
|
220
|
-
"@scalar/snippetz": "0.4.9",
|
|
221
|
-
"@scalar/themes": "0.13.16",
|
|
219
|
+
"@scalar/postman-to-openapi": "0.3.32",
|
|
220
|
+
"@scalar/themes": "0.13.17",
|
|
222
221
|
"@scalar/types": "0.2.15",
|
|
223
|
-
"@scalar/
|
|
224
|
-
"@scalar/use-codemirror": "0.12.
|
|
222
|
+
"@scalar/snippetz": "0.4.9",
|
|
223
|
+
"@scalar/use-codemirror": "0.12.35",
|
|
225
224
|
"@scalar/use-toasts": "0.8.0",
|
|
226
|
-
"@scalar/
|
|
225
|
+
"@scalar/use-hooks": "0.2.5",
|
|
226
|
+
"@scalar/workspace-store": "0.15.6"
|
|
227
227
|
},
|
|
228
228
|
"devDependencies": {
|
|
229
229
|
"@tailwindcss/vite": "^4.1.7",
|
|
230
230
|
"@types/shell-quote": "^1.7.5",
|
|
231
231
|
"@types/whatwg-mimetype": "^3.0.2",
|
|
232
|
-
"@vitejs/plugin-vue": "
|
|
232
|
+
"@vitejs/plugin-vue": "6.0.1",
|
|
233
233
|
"@vue/test-utils": "^2.4.1",
|
|
234
234
|
"jsdom": "^22.1.0",
|
|
235
235
|
"tailwindcss": "^4.1.7",
|
|
236
|
-
"vite": "
|
|
236
|
+
"vite": "7.1.5",
|
|
237
237
|
"vite-svg-loader": "^5.1.0",
|
|
238
|
-
"vitest": "
|
|
239
|
-
"@scalar/
|
|
240
|
-
"@scalar/
|
|
238
|
+
"vitest": "3.2.4",
|
|
239
|
+
"@scalar/galaxy": "0.5.8",
|
|
240
|
+
"@scalar/build-tooling": "0.2.7"
|
|
241
241
|
},
|
|
242
242
|
"scripts": {
|
|
243
243
|
"build": "scalar-build-vite",
|