@scalar/api-client 2.2.48 → 2.2.50
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 +41 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +15 -3
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +102 -94
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +54 -58
- package/dist/components/CodeInput/CodeInput.vue.d.ts +9 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +95 -93
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +1 -3
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -22
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +13 -13
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +54 -49
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +9 -9
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +11 -8
- package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -0
- 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 +36 -30
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -15
- package/dist/components/Form/Form.vue.d.ts +3 -1
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +30 -25
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +41 -41
- package/dist/components/ImportCollection/ImportNowButton.vue.js +24 -24
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +13 -13
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +19 -19
- package/dist/layouts/App/create-api-client-app.d.ts +387 -477
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +774 -954
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +387 -477
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +390 -479
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +3 -15
- package/dist/libs/env-helpers.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +7 -7
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +3 -1
- package/dist/libs/hot-keys.d.ts.map +1 -1
- package/dist/libs/hot-keys.js +11 -15
- package/dist/libs/hot-keys.test.d.ts +2 -0
- package/dist/libs/hot-keys.test.d.ts.map +1 -0
- package/dist/libs/index.js +27 -26
- package/dist/libs/send-request/build-request-security.d.ts +1 -1
- package/dist/libs/send-request/build-request-security.js +19 -16
- package/dist/libs/send-request/create-request-operation.test.d.ts +10 -10
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.js +37 -34
- package/dist/store/active-entities.d.ts +58 -67
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +61 -74
- package/dist/store/collections.d.ts +90 -90
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +4 -17
- package/dist/store/cookies.d.ts +14 -14
- package/dist/store/environment.d.ts +19 -18
- package/dist/store/environment.d.ts.map +1 -1
- package/dist/store/environment.js +2 -8
- package/dist/store/import-spec.d.ts +16 -106
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +9 -14
- package/dist/store/request-example.d.ts +25 -25
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/request-example.js +15 -20
- package/dist/store/requests.d.ts +84 -84
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/requests.js +17 -40
- package/dist/store/router-params.d.ts +13 -11
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +5 -5
- package/dist/store/security-schemes.d.ts +58 -58
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +1 -3
- package/dist/store/servers.d.ts +17 -17
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/servers.js +2 -9
- package/dist/store/store.d.ts +387 -477
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +2 -4
- package/dist/store/tags.d.ts +28 -28
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/tags.js +19 -34
- package/dist/store/workspace.d.ts +36 -36
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +1 -5
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +18 -18
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +24 -24
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +140 -132
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +2 -2
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +15 -15
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +160 -141
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -7
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +6 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +99 -95
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +70 -64
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +40 -34
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +6 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +32 -26
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +93 -85
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +9 -0
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +214 -244
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +10 -1
- 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 +77 -80
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +89 -96
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +10 -2
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +59 -66
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +11 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +176 -155
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +6 -0
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +97 -100
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +31 -22
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +2 -2
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/getting-started.js +11 -13
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +50 -48
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +38 -44
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +10 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +77 -69
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +4 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +41 -39
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +56 -52
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +68 -68
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.d.ts +1 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.js +38 -55
- package/dist/views/Request/libs/auth.d.ts +2 -2
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +28 -29
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +42 -65
- package/dist/views/Request/libs/request.d.ts +5 -0
- package/dist/views/Request/libs/request.d.ts.map +1 -1
- package/dist/views/Request/libs/request.js +37 -2
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +10 -34
- package/dist/views/Servers/ServerForm.vue.d.ts +1 -8
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.js +21 -22
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +73 -81
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +118 -134
- package/package.json +14 -14
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import R from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as P, openBlock as d, createElementBlock as S, createElementVNode as r, createVNode as c, withCtx as n, createTextVNode as a, unref as e, normalizeClass as f, createBlock as m, createCommentVNode as b, toDisplayString as z, Fragment as B, renderList as A, normalizeStyle as $ } from "vue";
|
|
2
|
+
import { cva as R, ScalarButton as y, cx as v, ScalarIcon as h } from "@scalar/components";
|
|
3
|
+
import { themeLabels as E } from "@scalar/themes";
|
|
4
|
+
import V from "../../components/ImportCollection/IntegrationLogo.vue.js";
|
|
5
|
+
import { useActiveEntities as W } from "../../store/active-entities.js";
|
|
6
6
|
import F from "./components/SettingsAppearance.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import C from "./components/SettingsSection.vue.js";
|
|
8
8
|
import { useWorkspace as O } from "../../store/store.js";
|
|
9
|
-
const
|
|
9
|
+
const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto mr-auto w-full max-w-[720px] px-5 py-5" }, q = { class: "flex flex-col gap-8" }, H = { class: "flex flex-col gap-2" }, M = { class: "flex flex-col gap-2" }, X = { class: "grid grid-cols-2 gap-2" }, Y = { class: "flex items-center gap-2" }, J = { class: "flex items-center gap-1" }, K = { class: "grid grid-cols-2 gap-2" }, Q = { class: "flex items-center gap-2" }, Z = { class: "flex items-center gap-1" }, I = { class: "size-7 rounded-xl" }, w = "https://proxy.scalar.com", ce = /* @__PURE__ */ P({
|
|
10
10
|
__name: "SettingsGeneral",
|
|
11
|
-
setup(
|
|
12
|
-
const { activeWorkspace: o } =
|
|
11
|
+
setup(ee) {
|
|
12
|
+
const { activeWorkspace: o } = W(), { proxyUrl: k, workspaceMutators: j } = O(), L = [
|
|
13
13
|
"default",
|
|
14
14
|
"alternate",
|
|
15
15
|
// 'moon',
|
|
@@ -20,7 +20,7 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
|
|
|
20
20
|
"kepler"
|
|
21
21
|
// 'mars',
|
|
22
22
|
// 'deepSpace',
|
|
23
|
-
],
|
|
23
|
+
], N = ["elysiajs", "fastify"], _ = (x) => ({
|
|
24
24
|
default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
|
|
25
25
|
alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
|
|
26
26
|
moon: { light: "#ccc9b3", dark: "#313332", accent: "#645b0f" },
|
|
@@ -32,10 +32,10 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
|
|
|
32
32
|
mars: { light: "#f2efe8", dark: "#321116", accent: "#c75549" },
|
|
33
33
|
deepSpace: { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
|
|
34
34
|
none: { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }
|
|
35
|
-
})[
|
|
35
|
+
})[x] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, T = (x) => {
|
|
36
36
|
var t;
|
|
37
|
-
|
|
38
|
-
},
|
|
37
|
+
return j.edit((t = o.value) == null ? void 0 : t.uid, "themeId", x);
|
|
38
|
+
}, g = R({
|
|
39
39
|
base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border-1/2",
|
|
40
40
|
variants: {
|
|
41
41
|
active: {
|
|
@@ -43,16 +43,19 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
|
|
|
43
43
|
false: "bg-b-1 hover:bg-b-2"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
}), U = (x) => {
|
|
47
|
+
var t;
|
|
48
|
+
return j.edit((t = o.value) == null ? void 0 : t.uid, "proxyUrl", x);
|
|
49
|
+
};
|
|
50
|
+
return (x, t) => (d(), S("div", D, [
|
|
51
|
+
r("div", G, [
|
|
52
|
+
r("div", q, [
|
|
53
|
+
t[15] || (t[15] = r("div", null, [
|
|
54
|
+
r("h2", { class: "mt-10 text-xl font-bold" }, "Settings")
|
|
52
55
|
], -1)),
|
|
53
|
-
|
|
56
|
+
c(C, null, {
|
|
54
57
|
title: n(() => t[3] || (t[3] = [
|
|
55
|
-
a("CORS Proxy")
|
|
58
|
+
a(" CORS Proxy ")
|
|
56
59
|
])),
|
|
57
60
|
description: n(() => t[4] || (t[4] = [
|
|
58
61
|
a(" Browsers block cross-origin requests for security. We provide a public proxy to "),
|
|
@@ -70,112 +73,93 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
|
|
|
70
73
|
a(" . ")
|
|
71
74
|
])),
|
|
72
75
|
default: n(() => {
|
|
73
|
-
var s,
|
|
76
|
+
var s, u, i;
|
|
74
77
|
return [
|
|
75
|
-
r("div",
|
|
76
|
-
|
|
77
|
-
class:
|
|
78
|
-
e(
|
|
79
|
-
e(
|
|
80
|
-
active: ((s = e(o)) == null ? void 0 : s.proxyUrl) ===
|
|
78
|
+
r("div", H, [
|
|
79
|
+
c(e(y), {
|
|
80
|
+
class: f(
|
|
81
|
+
e(v)(
|
|
82
|
+
e(g)({
|
|
83
|
+
active: ((s = e(o)) == null ? void 0 : s.proxyUrl) === w
|
|
81
84
|
})
|
|
82
85
|
)
|
|
83
86
|
),
|
|
84
|
-
onClick: t[0] || (t[0] = (l) =>
|
|
85
|
-
var i;
|
|
86
|
-
return e(w).edit(
|
|
87
|
-
((i = e(o)) == null ? void 0 : i.uid) ?? "",
|
|
88
|
-
"proxyUrl",
|
|
89
|
-
v
|
|
90
|
-
);
|
|
91
|
-
})
|
|
87
|
+
onClick: t[0] || (t[0] = (l) => U(w))
|
|
92
88
|
}, {
|
|
93
89
|
default: n(() => {
|
|
94
|
-
var l;
|
|
90
|
+
var l, p;
|
|
95
91
|
return [
|
|
92
|
+
t[5] || (t[5] = a(' "> ')),
|
|
96
93
|
r("div", {
|
|
97
|
-
class:
|
|
98
|
-
"bg-c-accent
|
|
94
|
+
class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
95
|
+
"bg-c-accent text-b-1 border-transparent": ((l = e(o)) == null ? void 0 : l.proxyUrl) === w
|
|
99
96
|
}])
|
|
100
97
|
}, [
|
|
101
|
-
e(o).proxyUrl ===
|
|
98
|
+
((p = e(o)) == null ? void 0 : p.proxyUrl) === w ? (d(), m(e(h), {
|
|
102
99
|
key: 0,
|
|
103
100
|
icon: "Checkmark",
|
|
104
101
|
size: "xs",
|
|
105
102
|
thickness: "3.5"
|
|
106
|
-
})) :
|
|
103
|
+
})) : b("", !0)
|
|
107
104
|
], 2),
|
|
108
|
-
t[
|
|
105
|
+
t[6] || (t[6] = a(" Use proxy.scalar.com (default) "))
|
|
109
106
|
];
|
|
110
107
|
}),
|
|
111
108
|
_: 1
|
|
112
109
|
}, 8, ["class"]),
|
|
113
|
-
e(k) && e(k) !==
|
|
110
|
+
e(k) && e(k) !== w ? (d(), m(e(y), {
|
|
114
111
|
key: 0,
|
|
115
|
-
class:
|
|
116
|
-
e(
|
|
117
|
-
e(
|
|
118
|
-
active: ((
|
|
112
|
+
class: f(
|
|
113
|
+
e(v)(
|
|
114
|
+
e(g)({
|
|
115
|
+
active: ((u = e(o)) == null ? void 0 : u.proxyUrl) === e(k)
|
|
119
116
|
})
|
|
120
117
|
)
|
|
121
118
|
),
|
|
122
|
-
onClick: t[1] || (t[1] = (l) =>
|
|
123
|
-
var i;
|
|
124
|
-
return e(w).edit(
|
|
125
|
-
((i = e(o)) == null ? void 0 : i.uid) ?? "",
|
|
126
|
-
"proxyUrl",
|
|
127
|
-
e(k)
|
|
128
|
-
);
|
|
129
|
-
})
|
|
119
|
+
onClick: t[1] || (t[1] = (l) => U(e(k)))
|
|
130
120
|
}, {
|
|
131
121
|
default: n(() => {
|
|
132
|
-
var l;
|
|
122
|
+
var l, p;
|
|
133
123
|
return [
|
|
124
|
+
t[7] || (t[7] = a(' "> ')),
|
|
134
125
|
r("div", {
|
|
135
|
-
class:
|
|
136
|
-
"bg-c-accent
|
|
126
|
+
class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
127
|
+
"bg-c-accent text-b-1 border-transparent": ((l = e(o)) == null ? void 0 : l.proxyUrl) === e(k)
|
|
137
128
|
}])
|
|
138
129
|
}, [
|
|
139
|
-
e(o).proxyUrl === e(k) ? (
|
|
130
|
+
((p = e(o)) == null ? void 0 : p.proxyUrl) === e(k) ? (d(), m(e(h), {
|
|
140
131
|
key: 0,
|
|
141
132
|
icon: "Checkmark",
|
|
142
133
|
size: "xs",
|
|
143
134
|
thickness: "3.5"
|
|
144
|
-
})) :
|
|
135
|
+
})) : b("", !0)
|
|
145
136
|
], 2),
|
|
146
137
|
a(" Use custom proxy (" + z(e(k)) + ") ", 1)
|
|
147
138
|
];
|
|
148
139
|
}),
|
|
149
140
|
_: 1
|
|
150
|
-
}, 8, ["class"])) :
|
|
151
|
-
|
|
152
|
-
class:
|
|
153
|
-
onClick: t[2] || (t[2] = (l) =>
|
|
154
|
-
var i;
|
|
155
|
-
return e(w).edit(
|
|
156
|
-
((i = e(o)) == null ? void 0 : i.uid) ?? "",
|
|
157
|
-
"proxyUrl",
|
|
158
|
-
""
|
|
159
|
-
);
|
|
160
|
-
})
|
|
141
|
+
}, 8, ["class"])) : b("", !0),
|
|
142
|
+
c(e(y), {
|
|
143
|
+
class: f(e(v)(e(g)({ active: !((i = e(o)) != null && i.proxyUrl) }))),
|
|
144
|
+
onClick: t[2] || (t[2] = (l) => U(void 0))
|
|
161
145
|
}, {
|
|
162
146
|
default: n(() => {
|
|
163
|
-
var l,
|
|
147
|
+
var l, p;
|
|
164
148
|
return [
|
|
165
149
|
r("div", {
|
|
166
|
-
class:
|
|
167
|
-
"flex items-center justify-center
|
|
168
|
-
!((l = e(o)) != null && l.proxyUrl) && "bg-c-accent
|
|
150
|
+
class: f([
|
|
151
|
+
"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",
|
|
152
|
+
!((l = e(o)) != null && l.proxyUrl) && "bg-c-accent text-b-1 border-transparent"
|
|
169
153
|
])
|
|
170
154
|
}, [
|
|
171
|
-
(
|
|
155
|
+
(p = e(o)) != null && p.proxyUrl ? b("", !0) : (d(), m(e(h), {
|
|
172
156
|
key: 0,
|
|
173
157
|
icon: "Checkmark",
|
|
174
158
|
size: "xs",
|
|
175
159
|
thickness: "3.5"
|
|
176
160
|
}))
|
|
177
161
|
], 2),
|
|
178
|
-
t[
|
|
162
|
+
t[8] || (t[8] = a(" Skip the proxy "))
|
|
179
163
|
];
|
|
180
164
|
}),
|
|
181
165
|
_: 1
|
|
@@ -185,64 +169,64 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
|
|
|
185
169
|
}),
|
|
186
170
|
_: 1
|
|
187
171
|
}),
|
|
188
|
-
|
|
189
|
-
title: n(() => t[
|
|
190
|
-
a("Themes")
|
|
172
|
+
c(C, null, {
|
|
173
|
+
title: n(() => t[9] || (t[9] = [
|
|
174
|
+
a(" Themes ")
|
|
191
175
|
])),
|
|
192
|
-
description: n(() => t[
|
|
176
|
+
description: n(() => t[10] || (t[10] = [
|
|
193
177
|
a(" We’ve got a whole rainbow of themes for you to play with: ")
|
|
194
178
|
])),
|
|
195
179
|
default: n(() => [
|
|
196
|
-
r("div",
|
|
197
|
-
r("div",
|
|
198
|
-
(
|
|
199
|
-
var
|
|
200
|
-
return
|
|
180
|
+
r("div", M, [
|
|
181
|
+
r("div", X, [
|
|
182
|
+
(d(), S(B, null, A(L, (s) => {
|
|
183
|
+
var u;
|
|
184
|
+
return c(e(y), {
|
|
201
185
|
key: s,
|
|
202
|
-
class:
|
|
203
|
-
e(
|
|
204
|
-
e(
|
|
205
|
-
active: ((
|
|
186
|
+
class: f(
|
|
187
|
+
e(v)(
|
|
188
|
+
e(g)({
|
|
189
|
+
active: ((u = e(o)) == null ? void 0 : u.themeId) === s
|
|
206
190
|
})
|
|
207
191
|
)
|
|
208
192
|
),
|
|
209
|
-
onClick: (
|
|
193
|
+
onClick: (i) => T(s)
|
|
210
194
|
}, {
|
|
211
195
|
default: n(() => {
|
|
212
|
-
var
|
|
196
|
+
var i, l;
|
|
213
197
|
return [
|
|
214
|
-
r("div",
|
|
198
|
+
r("div", Y, [
|
|
215
199
|
r("div", {
|
|
216
|
-
class:
|
|
217
|
-
"bg-c-accent
|
|
200
|
+
class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
201
|
+
"bg-c-accent text-b-1 border-transparent": ((i = e(o)) == null ? void 0 : i.themeId) === s
|
|
218
202
|
}])
|
|
219
203
|
}, [
|
|
220
|
-
((l = e(o)) == null ? void 0 : l.themeId) === s ? (
|
|
204
|
+
((l = e(o)) == null ? void 0 : l.themeId) === s ? (d(), m(e(h), {
|
|
221
205
|
key: 0,
|
|
222
206
|
icon: "Checkmark",
|
|
223
207
|
size: "xs",
|
|
224
208
|
thickness: "3.5"
|
|
225
|
-
})) :
|
|
209
|
+
})) : b("", !0)
|
|
226
210
|
], 2),
|
|
227
|
-
a(" " + z(e(
|
|
211
|
+
a(" " + z(e(E)[s]), 1)
|
|
228
212
|
]),
|
|
229
|
-
r("div",
|
|
213
|
+
r("div", J, [
|
|
230
214
|
r("span", {
|
|
231
|
-
class: "inline-block
|
|
215
|
+
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
232
216
|
style: $({
|
|
233
|
-
backgroundColor:
|
|
217
|
+
backgroundColor: _(s).light
|
|
234
218
|
})
|
|
235
219
|
}, null, 4),
|
|
236
220
|
r("span", {
|
|
237
|
-
class: "inline-block
|
|
221
|
+
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
238
222
|
style: $({
|
|
239
|
-
backgroundColor:
|
|
223
|
+
backgroundColor: _(s).dark
|
|
240
224
|
})
|
|
241
225
|
}, null, 4),
|
|
242
226
|
r("span", {
|
|
243
|
-
class: "inline-block
|
|
227
|
+
class: "border-c-3 inline-block h-5 w-5 rounded-full",
|
|
244
228
|
style: $({
|
|
245
|
-
backgroundColor:
|
|
229
|
+
backgroundColor: _(s).accent
|
|
246
230
|
})
|
|
247
231
|
}, null, 4)
|
|
248
232
|
])
|
|
@@ -256,49 +240,49 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
|
|
|
256
240
|
]),
|
|
257
241
|
_: 1
|
|
258
242
|
}),
|
|
259
|
-
|
|
260
|
-
title: n(() => t[
|
|
261
|
-
a("Framework Themes")
|
|
243
|
+
c(C, null, {
|
|
244
|
+
title: n(() => t[11] || (t[11] = [
|
|
245
|
+
a(" Framework Themes ")
|
|
262
246
|
])),
|
|
263
|
-
description: n(() => t[
|
|
247
|
+
description: n(() => t[12] || (t[12] = [
|
|
264
248
|
a(" Are you a real fan? Show your support by using your favorite framework’s theme! ")
|
|
265
249
|
])),
|
|
266
250
|
default: n(() => [
|
|
267
|
-
r("div",
|
|
268
|
-
(
|
|
269
|
-
var
|
|
270
|
-
return
|
|
251
|
+
r("div", K, [
|
|
252
|
+
(d(), S(B, null, A(N, (s) => {
|
|
253
|
+
var u;
|
|
254
|
+
return c(e(y), {
|
|
271
255
|
key: s,
|
|
272
|
-
class:
|
|
273
|
-
e(
|
|
274
|
-
e(
|
|
275
|
-
active: ((
|
|
256
|
+
class: f(
|
|
257
|
+
e(v)(
|
|
258
|
+
e(g)({
|
|
259
|
+
active: ((u = e(o)) == null ? void 0 : u.themeId) === s
|
|
276
260
|
})
|
|
277
261
|
)
|
|
278
262
|
),
|
|
279
|
-
onClick: (
|
|
263
|
+
onClick: (i) => T(s)
|
|
280
264
|
}, {
|
|
281
265
|
default: n(() => {
|
|
282
|
-
var
|
|
266
|
+
var i, l;
|
|
283
267
|
return [
|
|
284
|
-
r("div",
|
|
268
|
+
r("div", Q, [
|
|
285
269
|
r("div", {
|
|
286
|
-
class:
|
|
287
|
-
"bg-c-accent
|
|
270
|
+
class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
271
|
+
"bg-c-accent text-b-1 border-transparent": ((i = e(o)) == null ? void 0 : i.themeId) === s
|
|
288
272
|
}])
|
|
289
273
|
}, [
|
|
290
|
-
((l = e(o)) == null ? void 0 : l.themeId) === s ? (
|
|
274
|
+
((l = e(o)) == null ? void 0 : l.themeId) === s ? (d(), m(e(h), {
|
|
291
275
|
key: 0,
|
|
292
276
|
icon: "Checkmark",
|
|
293
277
|
size: "xs",
|
|
294
278
|
thickness: "3.5"
|
|
295
|
-
})) :
|
|
279
|
+
})) : b("", !0)
|
|
296
280
|
], 2),
|
|
297
|
-
a(" " + z(e(
|
|
281
|
+
a(" " + z(e(E)[s]), 1)
|
|
298
282
|
]),
|
|
299
|
-
r("div",
|
|
300
|
-
r("div",
|
|
301
|
-
|
|
283
|
+
r("div", Z, [
|
|
284
|
+
r("div", I, [
|
|
285
|
+
c(V, { integration: s }, null, 8, ["integration"])
|
|
302
286
|
])
|
|
303
287
|
])
|
|
304
288
|
];
|
|
@@ -310,15 +294,15 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
|
|
|
310
294
|
]),
|
|
311
295
|
_: 1
|
|
312
296
|
}),
|
|
313
|
-
|
|
314
|
-
title: n(() => t[
|
|
315
|
-
a("Appearance")
|
|
297
|
+
c(C, null, {
|
|
298
|
+
title: n(() => t[13] || (t[13] = [
|
|
299
|
+
a(" Appearance ")
|
|
316
300
|
])),
|
|
317
|
-
description: n(() => t[
|
|
301
|
+
description: n(() => t[14] || (t[14] = [
|
|
318
302
|
a(" Choose between light, dark, or system-based appearance for your workspace. ")
|
|
319
303
|
])),
|
|
320
304
|
default: n(() => [
|
|
321
|
-
|
|
305
|
+
c(F)
|
|
322
306
|
]),
|
|
323
307
|
_: 1
|
|
324
308
|
})
|
|
@@ -328,5 +312,5 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
|
|
|
328
312
|
}
|
|
329
313
|
});
|
|
330
314
|
export {
|
|
331
|
-
|
|
315
|
+
ce as default
|
|
332
316
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2.
|
|
21
|
+
"version": "2.2.50",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -193,22 +193,22 @@
|
|
|
193
193
|
"whatwg-mimetype": "^4.0.0",
|
|
194
194
|
"yaml": "^2.4.5",
|
|
195
195
|
"zod": "^3.23.8",
|
|
196
|
-
"@scalar/components": "0.13.24",
|
|
197
196
|
"@scalar/draggable": "0.1.10",
|
|
197
|
+
"@scalar/components": "0.13.25",
|
|
198
198
|
"@scalar/icons": "0.1.3",
|
|
199
|
-
"@scalar/import": "0.2.
|
|
199
|
+
"@scalar/import": "0.2.27",
|
|
200
|
+
"@scalar/oas-utils": "0.2.107",
|
|
200
201
|
"@scalar/object-utils": "1.1.13",
|
|
201
|
-
"@scalar/openapi-parser": "0.10.
|
|
202
|
-
"@scalar/
|
|
203
|
-
"@scalar/openapi
|
|
204
|
-
"@scalar/
|
|
205
|
-
"@scalar/themes": "0.9.
|
|
206
|
-
"@scalar/
|
|
207
|
-
"@scalar/use-codemirror": "0.11.
|
|
202
|
+
"@scalar/openapi-parser": "0.10.8",
|
|
203
|
+
"@scalar/openapi-types": "0.1.8",
|
|
204
|
+
"@scalar/postman-to-openapi": "0.1.30",
|
|
205
|
+
"@scalar/snippetz": "0.2.14",
|
|
206
|
+
"@scalar/themes": "0.9.68",
|
|
207
|
+
"@scalar/types": "0.0.34",
|
|
208
|
+
"@scalar/use-codemirror": "0.11.70",
|
|
208
209
|
"@scalar/use-toasts": "0.7.9",
|
|
209
|
-
"@scalar/
|
|
210
|
-
"@scalar/use-tooltip": "1.0.6"
|
|
211
|
-
"@scalar/use-hooks": "0.1.21"
|
|
210
|
+
"@scalar/use-hooks": "0.1.22",
|
|
211
|
+
"@scalar/use-tooltip": "1.0.6"
|
|
212
212
|
},
|
|
213
213
|
"devDependencies": {
|
|
214
214
|
"@types/shell-quote": "^1.7.5",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"vite": "^5.4.10",
|
|
225
225
|
"vite-svg-loader": "^5.1.0",
|
|
226
226
|
"vitest": "^1.6.0",
|
|
227
|
-
"@scalar/build-tooling": "0.1.
|
|
227
|
+
"@scalar/build-tooling": "0.1.14",
|
|
228
228
|
"@scalar/galaxy": "0.2.20"
|
|
229
229
|
},
|
|
230
230
|
"scripts": {
|