@scalar/api-client 2.2.22 → 2.2.23
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 +10 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +69 -70
- package/dist/components/AddressBar/AddressBarServer.vue.js +26 -26
- 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 +46 -46
- package/dist/components/CodeInput/codeVariableWidget.d.ts +4 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +42 -38
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +25 -24
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +64 -55
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +110 -106
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +38 -37
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +52 -49
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +46 -43
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +40 -39
- package/dist/components/ImportCollection/ImportNowButton.vue.js +44 -42
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +76 -69
- package/dist/components/ScalarAsciiArt.vue.js +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +22 -19
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +57 -49
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.js +22 -19
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +38 -36
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +71 -64
- package/dist/layouts/App/ApiClientApp.vue.js +4 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +22 -19
- package/dist/layouts/Web/ApiClientWeb.vue.js +4 -1
- package/dist/libs/create-client.d.ts +10 -10
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +42 -36
- package/dist/libs/extractAttachmentFilename.d.ts +3 -0
- package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.js +7 -7
- package/dist/libs/importers/curl.d.ts.map +1 -1
- package/dist/libs/importers/curl.js +18 -18
- package/dist/libs/normalize-headers.d.ts.map +1 -1
- package/dist/libs/normalize-headers.js +2 -2
- package/dist/libs/parse-curl.js +39 -36
- package/dist/store/active-entities.d.ts +4 -4
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +88 -86
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +29 -29
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/request-example.js +27 -23
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/requests.js +94 -77
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +27 -27
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/servers.js +18 -18
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/tags.js +35 -33
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +14 -9
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +39 -37
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +94 -89
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +121 -119
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +28 -25
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +38 -37
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +76 -73
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +80 -80
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +192 -178
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +80 -73
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +50 -48
- 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 +149 -144
- 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 +168 -150
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +80 -80
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +166 -156
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.js +37 -31
- package/dist/views/Request/hooks/useOpenApiWatcher.js +27 -27
- package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
- package/dist/views/Request/libs/live-sync.js +147 -130
- package/dist/views/Request/types/sidebar-item.d.ts +4 -1
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.js +38 -35
- package/dist/views/Servers/Servers.vue2.js +38 -35
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +15 -15
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +206 -174
- package/package.json +8 -8
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as a, ref as c, openBlock as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as a, ref as c, openBlock as o, createBlock as n, withCtx as r, createVNode as m, resolveDynamicComponent as i, createCommentVNode as l } from "vue";
|
|
2
|
+
import s from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
3
|
+
import p from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
4
|
+
import f from "./SettingsGeneral.vue.js";
|
|
5
|
+
const y = /* @__PURE__ */ a({
|
|
6
6
|
__name: "Settings",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
7
|
+
setup(u) {
|
|
8
|
+
const e = {
|
|
9
9
|
general: {
|
|
10
|
-
component:
|
|
10
|
+
component: f,
|
|
11
11
|
title: "general"
|
|
12
12
|
}
|
|
13
|
-
},
|
|
14
|
-
return (_,
|
|
15
|
-
default:
|
|
16
|
-
|
|
17
|
-
default:
|
|
18
|
-
|
|
13
|
+
}, t = c("general");
|
|
14
|
+
return (_, d) => (o(), n(s, null, {
|
|
15
|
+
default: r(() => [
|
|
16
|
+
m(p, { class: "flex-1" }, {
|
|
17
|
+
default: r(() => [
|
|
18
|
+
e[t.value] ? (o(), n(i(e[t.value].component), { key: 0 })) : l("", !0)
|
|
19
19
|
]),
|
|
20
20
|
_: 1
|
|
21
21
|
})
|
|
@@ -25,5 +25,5 @@ const v = /* @__PURE__ */ a({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
y as default
|
|
29
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AAu3BA,wBAMG"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useActiveEntities as
|
|
4
|
-
import { ScalarButton as
|
|
5
|
-
import { themeLabels as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useWorkspace as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as L, openBlock as c, createElementBlock as U, createElementVNode as r, createVNode as a, withCtx as l, createTextVNode as i, unref as e, normalizeClass as p, createBlock as m, createCommentVNode as b, toDisplayString as j, Fragment as $, renderList as T, normalizeStyle as S } from "vue";
|
|
2
|
+
import N from "../../components/ImportCollection/IntegrationLogo.vue.js";
|
|
3
|
+
import { useActiveEntities as R } from "../../store/active-entities.js";
|
|
4
|
+
import { ScalarButton as g, ScalarIcon as y } from "@scalar/components";
|
|
5
|
+
import { themeLabels as B } from "@scalar/themes";
|
|
6
|
+
import V from "./components/SettingsAppearance.vue.js";
|
|
7
|
+
import _ from "./components/SettingsSection.vue.js";
|
|
8
|
+
import { useWorkspace as W } from "../../store/store.js";
|
|
9
|
+
const F = { class: "bg-b-1 w-full h-full overflow-auto" }, O = { class: "px-5 py-5 max-w-[720px] ml-auto mr-auto w-full" }, P = { class: "flex flex-col gap-8" }, D = { class: "flex flex-col gap-2" }, G = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, q = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, H = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, 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 justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, K = { class: "flex items-center gap-1" }, Q = { class: "grid grid-cols-2 gap-2" }, Z = { class: "flex items-center gap-2" }, I = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, ee = { class: "flex items-center gap-1" }, te = { class: "rounded-xl size-7" }, h = "https://proxy.scalar.com", fe = /* @__PURE__ */ L({
|
|
10
10
|
__name: "SettingsGeneral",
|
|
11
|
-
setup(
|
|
12
|
-
const { activeWorkspace: o } =
|
|
11
|
+
setup(re) {
|
|
12
|
+
const { activeWorkspace: o } = R(), { proxyUrl: x, workspaceMutators: v } = W(), A = [
|
|
13
13
|
"default",
|
|
14
14
|
"alternate",
|
|
15
15
|
// 'moon',
|
|
@@ -20,7 +20,7 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
|
|
|
20
20
|
"kepler"
|
|
21
21
|
// 'mars',
|
|
22
22
|
// 'deepSpace',
|
|
23
|
-
],
|
|
23
|
+
], E = ["elysiajs", "fastify"], C = (w) => ({
|
|
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,16 +32,17 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { 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
|
-
})[
|
|
36
|
-
|
|
35
|
+
})[w] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, z = (w) => {
|
|
36
|
+
var t;
|
|
37
|
+
v.edit(((t = o.value) == null ? void 0 : t.uid) ?? "", "themeId", w);
|
|
37
38
|
};
|
|
38
|
-
return (
|
|
39
|
-
r("div",
|
|
40
|
-
r("div",
|
|
39
|
+
return (w, t) => (c(), U("div", F, [
|
|
40
|
+
r("div", O, [
|
|
41
|
+
r("div", P, [
|
|
41
42
|
t[13] || (t[13] = r("div", null, [
|
|
42
43
|
r("h2", { class: "font-bold text-xl mt-10" }, "Settings")
|
|
43
44
|
], -1)),
|
|
44
|
-
|
|
45
|
+
a(_, null, {
|
|
45
46
|
title: l(() => t[3] || (t[3] = [
|
|
46
47
|
i("CORS Proxy")
|
|
47
48
|
])),
|
|
@@ -60,78 +61,97 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
|
|
|
60
61
|
}, " source code on GitHub ", -1),
|
|
61
62
|
i(" . ")
|
|
62
63
|
])),
|
|
63
|
-
default: l(() =>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
e(o).
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
class: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2",
|
|
92
|
-
variant: "primary",
|
|
93
|
-
onClick: t[1] || (t[1] = (s) => e(x).edit(
|
|
94
|
-
e(o).uid,
|
|
95
|
-
"proxyUrl",
|
|
96
|
-
e(u)
|
|
97
|
-
))
|
|
98
|
-
}, {
|
|
99
|
-
default: l(() => [
|
|
100
|
-
r("div", O, [
|
|
101
|
-
e(o).proxyUrl === e(u) ? (a(), d(e(m), {
|
|
102
|
-
key: 0,
|
|
103
|
-
icon: "Checkmark",
|
|
104
|
-
size: "xs",
|
|
105
|
-
thickness: "3.5"
|
|
106
|
-
})) : f("", !0)
|
|
64
|
+
default: l(() => {
|
|
65
|
+
var s, d, n, f;
|
|
66
|
+
return [
|
|
67
|
+
r("div", D, [
|
|
68
|
+
a(e(g), {
|
|
69
|
+
class: p(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2", {
|
|
70
|
+
"bg-b-2 text-c-1": ((s = e(o)) == null ? void 0 : s.proxyUrl) === h
|
|
71
|
+
}]),
|
|
72
|
+
variant: ((d = e(o)) == null ? void 0 : d.proxyUrl) === h ? "primary" : "secondary",
|
|
73
|
+
onClick: t[0] || (t[0] = (k) => {
|
|
74
|
+
var u;
|
|
75
|
+
return e(v).edit(
|
|
76
|
+
((u = e(o)) == null ? void 0 : u.uid) ?? "",
|
|
77
|
+
"proxyUrl",
|
|
78
|
+
h
|
|
79
|
+
);
|
|
80
|
+
})
|
|
81
|
+
}, {
|
|
82
|
+
default: l(() => [
|
|
83
|
+
r("div", G, [
|
|
84
|
+
e(o).proxyUrl === h ? (c(), m(e(y), {
|
|
85
|
+
key: 0,
|
|
86
|
+
icon: "Checkmark",
|
|
87
|
+
size: "xs",
|
|
88
|
+
thickness: "3.5"
|
|
89
|
+
})) : b("", !0)
|
|
90
|
+
]),
|
|
91
|
+
t[5] || (t[5] = i(" Use proxy.scalar.com (default) "))
|
|
107
92
|
]),
|
|
108
|
-
|
|
109
|
-
]),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, ["class", "variant"]),
|
|
95
|
+
e(x) && e(x) !== h ? (c(), m(e(g), {
|
|
96
|
+
key: 0,
|
|
97
|
+
class: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2",
|
|
98
|
+
variant: "primary",
|
|
99
|
+
onClick: t[1] || (t[1] = (k) => {
|
|
100
|
+
var u;
|
|
101
|
+
return e(v).edit(
|
|
102
|
+
((u = e(o)) == null ? void 0 : u.uid) ?? "",
|
|
103
|
+
"proxyUrl",
|
|
104
|
+
e(x)
|
|
105
|
+
);
|
|
106
|
+
})
|
|
107
|
+
}, {
|
|
108
|
+
default: l(() => [
|
|
109
|
+
r("div", q, [
|
|
110
|
+
e(o).proxyUrl === e(x) ? (c(), m(e(y), {
|
|
111
|
+
key: 0,
|
|
112
|
+
icon: "Checkmark",
|
|
113
|
+
size: "xs",
|
|
114
|
+
thickness: "3.5"
|
|
115
|
+
})) : b("", !0)
|
|
116
|
+
]),
|
|
117
|
+
i(" Use custom proxy (" + j(e(x)) + ") ", 1)
|
|
125
118
|
]),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
119
|
+
_: 1
|
|
120
|
+
})) : b("", !0),
|
|
121
|
+
a(e(g), {
|
|
122
|
+
class: p(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2", { "bg-b-2 text-c-1": !((n = e(o)) != null && n.proxyUrl) }]),
|
|
123
|
+
variant: (f = e(o)) != null && f.proxyUrl ? "secondary" : "primary",
|
|
124
|
+
onClick: t[2] || (t[2] = (k) => {
|
|
125
|
+
var u;
|
|
126
|
+
return e(v).edit(
|
|
127
|
+
((u = e(o)) == null ? void 0 : u.uid) ?? "",
|
|
128
|
+
"proxyUrl",
|
|
129
|
+
""
|
|
130
|
+
);
|
|
131
|
+
})
|
|
132
|
+
}, {
|
|
133
|
+
default: l(() => {
|
|
134
|
+
var k;
|
|
135
|
+
return [
|
|
136
|
+
r("div", H, [
|
|
137
|
+
(k = e(o)) != null && k.proxyUrl ? b("", !0) : (c(), m(e(y), {
|
|
138
|
+
key: 0,
|
|
139
|
+
icon: "Checkmark",
|
|
140
|
+
size: "xs",
|
|
141
|
+
thickness: "3.5"
|
|
142
|
+
}))
|
|
143
|
+
]),
|
|
144
|
+
t[6] || (t[6] = i(" Skip the proxy "))
|
|
145
|
+
];
|
|
146
|
+
}),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["class", "variant"])
|
|
149
|
+
])
|
|
150
|
+
];
|
|
151
|
+
}),
|
|
132
152
|
_: 1
|
|
133
153
|
}),
|
|
134
|
-
|
|
154
|
+
a(_, null, {
|
|
135
155
|
title: l(() => t[7] || (t[7] = [
|
|
136
156
|
i("Themes")
|
|
137
157
|
])),
|
|
@@ -139,63 +159,69 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
|
|
|
139
159
|
i(" We’ve got a whole rainbow of themes for you to play with: ")
|
|
140
160
|
])),
|
|
141
161
|
default: l(() => [
|
|
142
|
-
r("div",
|
|
143
|
-
r("div",
|
|
144
|
-
(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
r("div", M, [
|
|
163
|
+
r("div", X, [
|
|
164
|
+
(c(), U($, null, T(A, (s) => {
|
|
165
|
+
var d;
|
|
166
|
+
return a(e(g), {
|
|
167
|
+
key: s,
|
|
168
|
+
class: p(["px-2 flex items-center justify-between gap-2 text-c-1 border-1/2", [
|
|
169
|
+
((d = e(o)) == null ? void 0 : d.themeId) === s ? "bg-b-2" : "bg-b-1"
|
|
170
|
+
]]),
|
|
171
|
+
variant: "ghost",
|
|
172
|
+
onClick: (n) => z(s)
|
|
173
|
+
}, {
|
|
174
|
+
default: l(() => {
|
|
175
|
+
var n, f;
|
|
176
|
+
return [
|
|
177
|
+
r("div", Y, [
|
|
178
|
+
r("div", {
|
|
179
|
+
class: p(["flex items-center justify-center w-5 h-5 rounded-full border-2 border-c-3", {
|
|
180
|
+
"bg-primary": ((n = e(o)) == null ? void 0 : n.themeId) === s
|
|
181
|
+
}])
|
|
182
|
+
}, [
|
|
183
|
+
r("div", J, [
|
|
184
|
+
((f = e(o)) == null ? void 0 : f.themeId) === s ? (c(), m(e(y), {
|
|
185
|
+
key: 0,
|
|
186
|
+
icon: "Checkmark",
|
|
187
|
+
size: "xs",
|
|
188
|
+
thickness: "3.5"
|
|
189
|
+
})) : b("", !0)
|
|
190
|
+
])
|
|
191
|
+
], 2),
|
|
192
|
+
i(" " + j(e(B)[s]), 1)
|
|
193
|
+
]),
|
|
194
|
+
r("div", K, [
|
|
195
|
+
r("span", {
|
|
196
|
+
class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
|
|
197
|
+
style: S({
|
|
198
|
+
backgroundColor: C(s).light
|
|
199
|
+
})
|
|
200
|
+
}, null, 4),
|
|
201
|
+
r("span", {
|
|
202
|
+
class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
|
|
203
|
+
style: S({
|
|
204
|
+
backgroundColor: C(s).dark
|
|
205
|
+
})
|
|
206
|
+
}, null, 4),
|
|
207
|
+
r("span", {
|
|
208
|
+
class: "inline-block w-5 h-5 rounded-full border-c-3",
|
|
209
|
+
style: S({
|
|
210
|
+
backgroundColor: C(s).accent
|
|
211
|
+
})
|
|
212
|
+
}, null, 4)
|
|
166
213
|
])
|
|
167
|
-
]
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
|
|
173
|
-
style: w({
|
|
174
|
-
backgroundColor: y(s).light
|
|
175
|
-
})
|
|
176
|
-
}, null, 4),
|
|
177
|
-
r("span", {
|
|
178
|
-
class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
|
|
179
|
-
style: w({
|
|
180
|
-
backgroundColor: y(s).dark
|
|
181
|
-
})
|
|
182
|
-
}, null, 4),
|
|
183
|
-
r("span", {
|
|
184
|
-
class: "inline-block w-5 h-5 rounded-full border-c-3",
|
|
185
|
-
style: w({
|
|
186
|
-
backgroundColor: y(s).accent
|
|
187
|
-
})
|
|
188
|
-
}, null, 4)
|
|
189
|
-
])
|
|
190
|
-
]),
|
|
191
|
-
_: 2
|
|
192
|
-
}, 1032, ["class", "onClick"])), 64))
|
|
214
|
+
];
|
|
215
|
+
}),
|
|
216
|
+
_: 2
|
|
217
|
+
}, 1032, ["class", "onClick"]);
|
|
218
|
+
}), 64))
|
|
193
219
|
])
|
|
194
220
|
])
|
|
195
221
|
]),
|
|
196
222
|
_: 1
|
|
197
223
|
}),
|
|
198
|
-
|
|
224
|
+
a(_, null, {
|
|
199
225
|
title: l(() => t[9] || (t[9] = [
|
|
200
226
|
i("Framework Themes")
|
|
201
227
|
])),
|
|
@@ -203,46 +229,52 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
|
|
|
203
229
|
i(" Are you a real fan? Show your support by using your favorite framework’s theme! ")
|
|
204
230
|
])),
|
|
205
231
|
default: l(() => [
|
|
206
|
-
r("div",
|
|
207
|
-
(
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
232
|
+
r("div", Q, [
|
|
233
|
+
(c(), U($, null, T(E, (s) => {
|
|
234
|
+
var d;
|
|
235
|
+
return a(e(g), {
|
|
236
|
+
key: s,
|
|
237
|
+
class: p(["px-2 flex items-center justify-between gap-2 text-c-1 border-1/2", [
|
|
238
|
+
((d = e(o)) == null ? void 0 : d.themeId) === s ? "bg-b-2" : "bg-b-1"
|
|
239
|
+
]]),
|
|
240
|
+
variant: "ghost",
|
|
241
|
+
onClick: (n) => z(s)
|
|
242
|
+
}, {
|
|
243
|
+
default: l(() => {
|
|
244
|
+
var n, f;
|
|
245
|
+
return [
|
|
246
|
+
r("div", Z, [
|
|
247
|
+
r("div", {
|
|
248
|
+
class: p(["flex items-center justify-center w-5 h-5 rounded-full border-2 border-c-3", {
|
|
249
|
+
"bg-primary": ((n = e(o)) == null ? void 0 : n.themeId) === s
|
|
250
|
+
}])
|
|
251
|
+
}, [
|
|
252
|
+
r("div", I, [
|
|
253
|
+
((f = e(o)) == null ? void 0 : f.themeId) === s ? (c(), m(e(y), {
|
|
254
|
+
key: 0,
|
|
255
|
+
icon: "Checkmark",
|
|
256
|
+
size: "xs",
|
|
257
|
+
thickness: "3.5"
|
|
258
|
+
})) : b("", !0)
|
|
259
|
+
])
|
|
260
|
+
], 2),
|
|
261
|
+
i(" " + j(e(B)[s]), 1)
|
|
262
|
+
]),
|
|
263
|
+
r("div", ee, [
|
|
264
|
+
r("div", te, [
|
|
265
|
+
a(N, { integration: s }, null, 8, ["integration"])
|
|
266
|
+
])
|
|
229
267
|
])
|
|
230
|
-
]
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
n(B, { integration: s }, null, 8, ["integration"])
|
|
236
|
-
])
|
|
237
|
-
])
|
|
238
|
-
]),
|
|
239
|
-
_: 2
|
|
240
|
-
}, 1032, ["class", "onClick"])), 64))
|
|
268
|
+
];
|
|
269
|
+
}),
|
|
270
|
+
_: 2
|
|
271
|
+
}, 1032, ["class", "onClick"]);
|
|
272
|
+
}), 64))
|
|
241
273
|
])
|
|
242
274
|
]),
|
|
243
275
|
_: 1
|
|
244
276
|
}),
|
|
245
|
-
|
|
277
|
+
a(_, null, {
|
|
246
278
|
title: l(() => t[11] || (t[11] = [
|
|
247
279
|
i("Appearance")
|
|
248
280
|
])),
|
|
@@ -250,7 +282,7 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
|
|
|
250
282
|
i(" Choose between light, dark, or system-based appearance for your workspace. ")
|
|
251
283
|
])),
|
|
252
284
|
default: l(() => [
|
|
253
|
-
|
|
285
|
+
a(V)
|
|
254
286
|
]),
|
|
255
287
|
_: 1
|
|
256
288
|
})
|
|
@@ -260,5 +292,5 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
|
|
|
260
292
|
}
|
|
261
293
|
});
|
|
262
294
|
export {
|
|
263
|
-
|
|
295
|
+
fe as default
|
|
264
296
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2.
|
|
21
|
+
"version": "2.2.23",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -171,19 +171,19 @@
|
|
|
171
171
|
"zod": "^3.23.8",
|
|
172
172
|
"@scalar/components": "0.13.10",
|
|
173
173
|
"@scalar/draggable": "0.1.8",
|
|
174
|
+
"@scalar/import": "0.2.12",
|
|
174
175
|
"@scalar/icons": "0.1.2",
|
|
175
|
-
"@scalar/oas-utils": "0.2.
|
|
176
|
-
"@scalar/object-utils": "1.1.12",
|
|
177
|
-
"@scalar/import": "0.2.11",
|
|
176
|
+
"@scalar/oas-utils": "0.2.92",
|
|
178
177
|
"@scalar/openapi-parser": "0.10.2",
|
|
179
178
|
"@scalar/openapi-types": "0.1.5",
|
|
180
|
-
"@scalar/
|
|
181
|
-
"@scalar/types": "0.0.25",
|
|
179
|
+
"@scalar/object-utils": "1.1.12",
|
|
182
180
|
"@scalar/themes": "0.9.58",
|
|
181
|
+
"@scalar/postman-to-openapi": "0.1.15",
|
|
183
182
|
"@scalar/use-codemirror": "0.11.54",
|
|
184
|
-
"@scalar/use-toasts": "0.7.7",
|
|
185
183
|
"@scalar/use-hooks": "0.1.11",
|
|
186
|
-
"@scalar/
|
|
184
|
+
"@scalar/types": "0.0.25",
|
|
185
|
+
"@scalar/use-tooltip": "1.0.4",
|
|
186
|
+
"@scalar/use-toasts": "0.7.7"
|
|
187
187
|
},
|
|
188
188
|
"devDependencies": {
|
|
189
189
|
"@types/js-cookie": "^3.0.6",
|