@scalar/api-client 2.1.25 → 2.1.26
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 +9 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +5 -5
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +42 -42
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +56 -54
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +23 -18
- package/dist/style.css +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +15 -45
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +135 -102
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.js +76 -68
- package/package.json +8 -8
|
@@ -13,7 +13,7 @@ const N = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, q = { cl
|
|
|
13
13
|
s.commandPalette.emit({ commandName: "Create Request" });
|
|
14
14
|
}, c = (n) => {
|
|
15
15
|
n != null && n.openCommandPaletteRequest && m();
|
|
16
|
-
}, x = "2.1.
|
|
16
|
+
}, x = "2.1.26";
|
|
17
17
|
return k(() => s.hotKeys.on(c)), R(() => s.hotKeys.off(c)), (n, e) => (r(), l("div", N, [
|
|
18
18
|
t("div", q, [
|
|
19
19
|
o(f).isReadOnly ? p("", !0) : (r(), l("div", v, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Settings.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Settings.vue"],"names":[],"mappings":"AAgCA,OAAO,EAAE,KAAK,eAAe,EAAO,MAAM,KAAK,CAAA;;AAiF/C,wBAKG"}
|
|
@@ -1,51 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import y from "./SettingsGeneral.vue.js";
|
|
7
|
-
import C from "../../components/Sidebar/Sidebar.vue.js";
|
|
8
|
-
const L = { class: "flex-1" }, T = /* @__PURE__ */ i({
|
|
1
|
+
import { defineComponent as a, ref as c, openBlock as e, createBlock as t, withCtx as o, createVNode as i, resolveDynamicComponent as m } from "vue";
|
|
2
|
+
import l from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
3
|
+
import s from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
4
|
+
import p from "./SettingsGeneral.vue.js";
|
|
5
|
+
const v = /* @__PURE__ */ a({
|
|
9
6
|
__name: "Settings",
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
7
|
+
setup(f) {
|
|
8
|
+
const n = {
|
|
12
9
|
general: {
|
|
13
|
-
component:
|
|
10
|
+
component: p,
|
|
14
11
|
title: "general"
|
|
15
12
|
}
|
|
16
|
-
},
|
|
17
|
-
return (
|
|
18
|
-
default:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
o(b, null, {
|
|
23
|
-
default: e(() => [
|
|
24
|
-
(a(), f(p, null, u(l, (t) => o(S, {
|
|
25
|
-
key: t.title,
|
|
26
|
-
class: "text-xs capitalize",
|
|
27
|
-
isCopyable: !1,
|
|
28
|
-
isDeletable: !1,
|
|
29
|
-
variable: {
|
|
30
|
-
uid: t.title,
|
|
31
|
-
name: t.title
|
|
32
|
-
}
|
|
33
|
-
}, {
|
|
34
|
-
default: e(() => [
|
|
35
|
-
_(d(t.title), 1)
|
|
36
|
-
]),
|
|
37
|
-
_: 2
|
|
38
|
-
}, 1032, ["variable"])), 64))
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
})
|
|
42
|
-
])
|
|
43
|
-
]),
|
|
44
|
-
_: 1
|
|
45
|
-
}),
|
|
46
|
-
o(v, { class: "flex-1" }, {
|
|
47
|
-
default: e(() => [
|
|
48
|
-
(a(), r(x(l[n.value].component)))
|
|
13
|
+
}, r = c("general");
|
|
14
|
+
return (_, u) => (e(), t(l, null, {
|
|
15
|
+
default: o(() => [
|
|
16
|
+
i(s, { class: "flex-1" }, {
|
|
17
|
+
default: o(() => [
|
|
18
|
+
(e(), t(m(n[r.value].component)))
|
|
49
19
|
]),
|
|
50
20
|
_: 1
|
|
51
21
|
})
|
|
@@ -55,5 +25,5 @@ const L = { class: "flex-1" }, T = /* @__PURE__ */ i({
|
|
|
55
25
|
}
|
|
56
26
|
});
|
|
57
27
|
export {
|
|
58
|
-
|
|
28
|
+
v as default
|
|
59
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":";AA+lBA,wBAKG"}
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import B from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
8
|
-
import { ScalarDropdown as T, ScalarDropdownItem as U, ScalarIcon as _, ScalarButton as I } from "@scalar/components";
|
|
9
|
-
import { themeLabels as h } from "@scalar/themes";
|
|
10
|
-
import N from "./SettingsGeneralMode.vue.js";
|
|
11
|
-
import { useWorkspace as W } from "../../store/store.js";
|
|
12
|
-
const j = { class: "flex flex-col p-2" }, E = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, Y = /* @__PURE__ */ v({
|
|
1
|
+
import { defineComponent as C, openBlock as a, createElementBlock as x, createElementVNode as e, createTextVNode as o, createVNode as i, unref as l, normalizeClass as d, withCtx as u, createBlock as p, createCommentVNode as b, Fragment as _, renderList as S, toDisplayString as j, normalizeStyle as m } from "vue";
|
|
2
|
+
import { ScalarButton as k, ScalarIcon as g } from "@scalar/components";
|
|
3
|
+
import { themeLabels as z } from "@scalar/themes";
|
|
4
|
+
import B from "./SettingsGeneralMode.vue.js";
|
|
5
|
+
import { useWorkspace as E } from "../../store/store.js";
|
|
6
|
+
const N = { class: "bg-b-1 w-full h-full overflow-auto" }, P = { class: "flex flex-col px-5 py-5 max-w-[720px] ml-auto mr-auto w-full" }, T = { class: "gap-2 mt-4 mb-8 flex flex-col" }, V = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, $ = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, D = { class: "flex flex-col gap-2" }, L = { class: "grid grid-cols-2 gap-2" }, U = { class: "flex items-center gap-2" }, W = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, F = { class: "flex items-center gap-1" }, J = /* @__PURE__ */ C({
|
|
13
7
|
__name: "SettingsGeneral",
|
|
14
8
|
setup(G) {
|
|
15
|
-
const { activeWorkspace:
|
|
16
|
-
i.value ? c("") : c("https://proxy.scalar.com");
|
|
17
|
-
}, g = [
|
|
9
|
+
const { activeWorkspace: n, workspaceMutators: y, proxyUrl: s, setProxyUrl: h } = E(), v = [
|
|
18
10
|
"default",
|
|
19
11
|
"alternate",
|
|
20
12
|
"moon",
|
|
@@ -25,100 +17,141 @@ const j = { class: "flex flex-col p-2" }, E = { class: "font-medium m-0 text-sm
|
|
|
25
17
|
"kepler",
|
|
26
18
|
"mars",
|
|
27
19
|
"deepSpace"
|
|
28
|
-
],
|
|
29
|
-
|
|
20
|
+
], f = (c) => ({
|
|
21
|
+
default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
|
|
22
|
+
alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
|
|
23
|
+
moon: { light: "#ccc9b3", dark: "#313332", accent: "#645b0f" },
|
|
24
|
+
purple: { light: "#f5f6f8", dark: "#22252b", accent: "#5469d4" },
|
|
25
|
+
solarized: { light: "#fdf6e3", dark: "#00212b", accent: "#007acc" },
|
|
26
|
+
bluePlanet: { light: "#f0f2f5", dark: "#000e23", accent: "#e0e2e6" },
|
|
27
|
+
saturn: { light: "#e4e4df", dark: "#2c2c30", accent: "#1763a6" },
|
|
28
|
+
kepler: { light: "#f6f6f6", dark: "#0d0f1e", accent: "#7070ff" },
|
|
29
|
+
mars: { light: "#f2efe8", dark: "#321116", accent: "#c75549" },
|
|
30
|
+
deepSpace: { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
|
|
31
|
+
none: { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }
|
|
32
|
+
})[c] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, w = (c) => {
|
|
33
|
+
y.edit(n.value.uid, "themeId", c);
|
|
30
34
|
};
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
e(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
return (c, t) => (a(), x("div", N, [
|
|
36
|
+
e("div", P, [
|
|
37
|
+
e("div", null, [
|
|
38
|
+
e("div", null, [
|
|
39
|
+
t[4] || (t[4] = e("h2", { class: "font-bold text-xl mb-5 mt-10" }, "Settings", -1)),
|
|
40
|
+
t[5] || (t[5] = e("h3", { class: "font-bold mb-1" }, "Scalar Proxy", -1)),
|
|
41
|
+
t[6] || (t[6] = e("p", { class: "text-c-2 mb-2" }, [
|
|
42
|
+
o(" Enable Scalar's "),
|
|
43
|
+
e("a", {
|
|
44
|
+
class: "hover:text-c-1",
|
|
45
|
+
href: "https://github.com/scalar/scalar/tree/main/packages/api-client-proxy",
|
|
46
|
+
target: "_blank"
|
|
47
|
+
}, "open source"),
|
|
48
|
+
o(" proxy to deal with CORS issues. ")
|
|
49
|
+
], -1)),
|
|
50
|
+
e("div", T, [
|
|
51
|
+
i(l(k), {
|
|
52
|
+
class: d(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-2", { "bg-b-1 shadow-border-1/2 text-c-1": l(s) }]),
|
|
53
|
+
variant: l(s) ? "primary" : "secondary",
|
|
54
|
+
onClick: t[0] || (t[0] = (r) => l(h)("https://proxy.scalar.com"))
|
|
55
|
+
}, {
|
|
56
|
+
default: u(() => [
|
|
57
|
+
e("div", V, [
|
|
58
|
+
l(s) ? (a(), p(l(g), {
|
|
59
|
+
key: 0,
|
|
60
|
+
icon: "Checkmark",
|
|
61
|
+
size: "xs",
|
|
62
|
+
thickness: "3.5"
|
|
63
|
+
})) : b("", !0)
|
|
64
|
+
]),
|
|
65
|
+
t[2] || (t[2] = o(" Enable "))
|
|
47
66
|
]),
|
|
48
67
|
_: 1
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
66
|
-
l(r).themeId === o ? "bg-blue text-b-1" : "text-transparent"
|
|
67
|
-
])
|
|
68
|
-
}, [
|
|
69
|
-
e(l(_), {
|
|
70
|
-
class: "size-2.5",
|
|
71
|
-
icon: "Checkmark",
|
|
72
|
-
thickness: "3.5"
|
|
73
|
-
})
|
|
74
|
-
], 2),
|
|
75
|
-
a(" " + p(l(h)[o]), 1)
|
|
76
|
-
]),
|
|
77
|
-
_: 2
|
|
78
|
-
}, 1032, ["onClick"])), 64))
|
|
79
|
-
]),
|
|
80
|
-
default: t(() => [
|
|
81
|
-
e(l(I), {
|
|
82
|
-
class: "font-normal h-full justify-start py-1.5 px-1.5 text-c-1 hover:bg-b-2 w-fit",
|
|
83
|
-
fullWidth: "",
|
|
84
|
-
variant: "ghost"
|
|
85
|
-
}, {
|
|
86
|
-
default: t(() => [
|
|
87
|
-
s("h2", E, [
|
|
88
|
-
a(p(l(h)[l(r).themeId]) + " ", 1),
|
|
89
|
-
e(l(_), {
|
|
90
|
-
class: "size-2.5",
|
|
91
|
-
icon: "ChevronDown",
|
|
92
|
-
thickness: "3.5"
|
|
93
|
-
})
|
|
94
|
-
])
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
})
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
})
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
})
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
}),
|
|
107
|
-
e(n, null, {
|
|
108
|
-
default: t(() => [
|
|
109
|
-
e(N)
|
|
68
|
+
}, 8, ["class", "variant"]),
|
|
69
|
+
i(l(k), {
|
|
70
|
+
class: d(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-2", { "bg-b-1 shadow-border-1/2 text-c-1": !l(s) }]),
|
|
71
|
+
variant: l(s) ? "secondary" : "primary",
|
|
72
|
+
onClick: t[1] || (t[1] = (r) => l(h)(""))
|
|
73
|
+
}, {
|
|
74
|
+
default: u(() => [
|
|
75
|
+
e("div", $, [
|
|
76
|
+
l(s) ? b("", !0) : (a(), p(l(g), {
|
|
77
|
+
key: 0,
|
|
78
|
+
icon: "Checkmark",
|
|
79
|
+
size: "xs",
|
|
80
|
+
thickness: "3.5"
|
|
81
|
+
}))
|
|
82
|
+
]),
|
|
83
|
+
t[3] || (t[3] = o(" Disable "))
|
|
110
84
|
]),
|
|
111
85
|
_: 1
|
|
112
|
-
})
|
|
113
|
-
])
|
|
114
|
-
|
|
115
|
-
|
|
86
|
+
}, 8, ["class", "variant"])
|
|
87
|
+
])
|
|
88
|
+
]),
|
|
89
|
+
e("div", null, [
|
|
90
|
+
t[7] || (t[7] = e("h3", { class: "font-bold mb-1" }, "Theme", -1)),
|
|
91
|
+
t[8] || (t[8] = e("p", { class: "text-c-2 mb-4" }, "Set the theme for your workspace.", -1)),
|
|
92
|
+
e("div", D, [
|
|
93
|
+
e("div", L, [
|
|
94
|
+
(a(), x(_, null, S(v, (r) => i(l(k), {
|
|
95
|
+
key: r,
|
|
96
|
+
class: d(["px-2", [
|
|
97
|
+
"flex items-center justify-between gap-2 text-c-1",
|
|
98
|
+
l(n).themeId === r ? "bg-b-1 shadow-border-1/2" : "bg-b-2"
|
|
99
|
+
]]),
|
|
100
|
+
variant: "ghost",
|
|
101
|
+
onClick: (M) => w(r)
|
|
102
|
+
}, {
|
|
103
|
+
default: u(() => [
|
|
104
|
+
e("div", U, [
|
|
105
|
+
e("div", {
|
|
106
|
+
class: d(["flex items-center justify-center w-5 h-5 rounded-full border-2 border-c-3", {
|
|
107
|
+
"bg-primary": l(n).themeId === r
|
|
108
|
+
}])
|
|
109
|
+
}, [
|
|
110
|
+
e("div", W, [
|
|
111
|
+
l(n).themeId === r ? (a(), p(l(g), {
|
|
112
|
+
key: 0,
|
|
113
|
+
icon: "Checkmark",
|
|
114
|
+
size: "xs",
|
|
115
|
+
thickness: "3.5"
|
|
116
|
+
})) : b("", !0)
|
|
117
|
+
])
|
|
118
|
+
], 2),
|
|
119
|
+
o(" " + j(l(z)[r]), 1)
|
|
120
|
+
]),
|
|
121
|
+
e("div", F, [
|
|
122
|
+
e("span", {
|
|
123
|
+
class: "inline-block shadow-border-1/2 w-5 h-5 rounded-full border-c-3 -mr-3",
|
|
124
|
+
style: m({
|
|
125
|
+
backgroundColor: f(r).light
|
|
126
|
+
})
|
|
127
|
+
}, null, 4),
|
|
128
|
+
e("span", {
|
|
129
|
+
class: "inline-block shadow-border-1/2 w-5 h-5 rounded-full border-c-3 -mr-3",
|
|
130
|
+
style: m({
|
|
131
|
+
backgroundColor: f(r).dark
|
|
132
|
+
})
|
|
133
|
+
}, null, 4),
|
|
134
|
+
e("span", {
|
|
135
|
+
class: "inline-block shadow-border-1/2 w-5 h-5 rounded-full border-c-3",
|
|
136
|
+
style: m({
|
|
137
|
+
backgroundColor: f(r).accent
|
|
138
|
+
})
|
|
139
|
+
}, null, 4)
|
|
140
|
+
])
|
|
141
|
+
]),
|
|
142
|
+
_: 2
|
|
143
|
+
}, 1032, ["class", "onClick"])), 64))
|
|
144
|
+
])
|
|
145
|
+
])
|
|
146
|
+
]),
|
|
147
|
+
e("div", null, [
|
|
148
|
+
i(B)
|
|
149
|
+
])
|
|
116
150
|
])
|
|
117
|
-
])
|
|
118
|
-
|
|
119
|
-
}));
|
|
151
|
+
])
|
|
152
|
+
]));
|
|
120
153
|
}
|
|
121
154
|
});
|
|
122
155
|
export {
|
|
123
|
-
|
|
156
|
+
J as default
|
|
124
157
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsGeneralMode.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneralMode.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SettingsGeneralMode.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneralMode.vue"],"names":[],"mappings":";AAqYA,wBAKG"}
|
|
@@ -1,78 +1,86 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import g from "../../components/DataTable/DataTableText.vue.js";
|
|
4
|
-
import { ScalarDropdown as h, ScalarDropdownItem as i, ScalarButton as x, ScalarIcon as y } from "@scalar/components";
|
|
1
|
+
import { defineComponent as g, ref as h, openBlock as o, createElementBlock as v, Fragment as y, createElementVNode as s, createVNode as a, unref as r, normalizeClass as n, withCtx as c, createBlock as d, createCommentVNode as u, createTextVNode as i } from "vue";
|
|
2
|
+
import { ScalarButton as f, ScalarIcon as m } from "@scalar/components";
|
|
5
3
|
import { useDarkModeState as w } from "../../hooks/useDarkModeState.js";
|
|
6
|
-
const C = { class: "
|
|
4
|
+
const S = { class: "flex flex-col gap-2" }, C = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, M = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, D = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, B = /* @__PURE__ */ g({
|
|
7
5
|
__name: "SettingsGeneralMode",
|
|
8
|
-
setup(
|
|
9
|
-
const { colorMode:
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
6
|
+
setup(_) {
|
|
7
|
+
const { colorMode: k, setDarkMode: l } = w(), e = h("System Preference");
|
|
8
|
+
k.value === "system" ? e.value = "System Preference" : k.value === "dark" ? e.value = "Dark" : e.value = "Light";
|
|
9
|
+
const p = () => {
|
|
10
|
+
l(null), e.value = "System Preference";
|
|
11
|
+
}, b = () => {
|
|
12
|
+
l(!1), e.value = "Light";
|
|
13
|
+
}, x = () => {
|
|
14
|
+
l(!0), e.value = "Dark";
|
|
17
15
|
};
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
])),
|
|
38
|
-
_: 1
|
|
39
|
-
}),
|
|
40
|
-
e(l(i), {
|
|
41
|
-
onClick: a(c, ["stop"])
|
|
42
|
-
}, {
|
|
43
|
-
default: o(() => r[2] || (r[2] = [
|
|
44
|
-
n(" Dark Mode ")
|
|
45
|
-
])),
|
|
46
|
-
_: 1
|
|
47
|
-
})
|
|
16
|
+
return (P, t) => (o(), v(y, null, [
|
|
17
|
+
t[3] || (t[3] = s("h3", { class: "font-bold mb-1 mt-8" }, "Appearance", -1)),
|
|
18
|
+
t[4] || (t[4] = s("p", { class: "text-c-2 mb-4" }, "Set light or dark mode for your workspace.", -1)),
|
|
19
|
+
s("div", S, [
|
|
20
|
+
a(r(f), {
|
|
21
|
+
class: n([
|
|
22
|
+
"w-full shadow-none text-c-1 justify-start pl-2 gap-2",
|
|
23
|
+
e.value === "System Preference" ? "bg-b-1 shadow-border-1/2 text-c-1" : "bg-b-2"
|
|
24
|
+
]),
|
|
25
|
+
onClick: p
|
|
26
|
+
}, {
|
|
27
|
+
default: c(() => [
|
|
28
|
+
s("div", C, [
|
|
29
|
+
e.value === "System Preference" ? (o(), d(r(m), {
|
|
30
|
+
key: 0,
|
|
31
|
+
icon: "Checkmark",
|
|
32
|
+
size: "xs",
|
|
33
|
+
thickness: "3.5"
|
|
34
|
+
})) : u("", !0)
|
|
48
35
|
]),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
36
|
+
t[0] || (t[0] = i(" System Preference "))
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}, 8, ["class"]),
|
|
40
|
+
a(r(f), {
|
|
41
|
+
class: n([
|
|
42
|
+
"w-full shadow-none text-c-1 justify-start pl-2 gap-2",
|
|
43
|
+
e.value === "Light" ? "bg-b-1 shadow-border-1/2 text-c-1" : "bg-b-2"
|
|
44
|
+
]),
|
|
45
|
+
onClick: b
|
|
46
|
+
}, {
|
|
47
|
+
default: c(() => [
|
|
48
|
+
s("div", M, [
|
|
49
|
+
e.value === "Light" ? (o(), d(r(m), {
|
|
50
|
+
key: 0,
|
|
51
|
+
icon: "Checkmark",
|
|
52
|
+
size: "xs",
|
|
53
|
+
thickness: "3.5"
|
|
54
|
+
})) : u("", !0)
|
|
67
55
|
]),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
56
|
+
t[1] || (t[1] = i(" Light Mode "))
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 8, ["class"]),
|
|
60
|
+
a(r(f), {
|
|
61
|
+
class: n([
|
|
62
|
+
"w-full shadow-none text-c-1 justify-start pl-2 gap-2 mb-8",
|
|
63
|
+
e.value === "Dark" ? "bg-b-1 shadow-border-1/2 text-c-1" : "bg-b-2"
|
|
64
|
+
]),
|
|
65
|
+
onClick: x
|
|
66
|
+
}, {
|
|
67
|
+
default: c(() => [
|
|
68
|
+
s("div", D, [
|
|
69
|
+
e.value === "Dark" ? (o(), d(r(m), {
|
|
70
|
+
key: 0,
|
|
71
|
+
icon: "Checkmark",
|
|
72
|
+
size: "xs",
|
|
73
|
+
thickness: "3.5"
|
|
74
|
+
})) : u("", !0)
|
|
75
|
+
]),
|
|
76
|
+
t[2] || (t[2] = i(" Dark Mode "))
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["class"])
|
|
80
|
+
])
|
|
73
81
|
], 64));
|
|
74
82
|
}
|
|
75
83
|
});
|
|
76
84
|
export {
|
|
77
|
-
|
|
85
|
+
B as default
|
|
78
86
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.1.
|
|
21
|
+
"version": "2.1.26",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -152,18 +152,18 @@
|
|
|
152
152
|
"whatwg-mimetype": "^4.0.0",
|
|
153
153
|
"yaml": "^2.4.5",
|
|
154
154
|
"zod": "^3.23.8",
|
|
155
|
-
"@scalar/icons": "0.1.1",
|
|
156
|
-
"@scalar/draggable": "0.1.6",
|
|
157
|
-
"@scalar/object-utils": "1.1.10",
|
|
158
155
|
"@scalar/components": "0.12.55",
|
|
156
|
+
"@scalar/draggable": "0.1.6",
|
|
157
|
+
"@scalar/icons": "0.1.1",
|
|
158
|
+
"@scalar/oas-utils": "0.2.58",
|
|
159
159
|
"@scalar/openapi-parser": "0.8.7",
|
|
160
160
|
"@scalar/openapi-types": "0.1.3",
|
|
161
|
-
"@scalar/
|
|
161
|
+
"@scalar/object-utils": "1.1.10",
|
|
162
162
|
"@scalar/themes": "0.9.39",
|
|
163
|
-
"@scalar/types": "0.0.16",
|
|
164
163
|
"@scalar/use-codemirror": "0.11.22",
|
|
165
|
-
"@scalar/
|
|
166
|
-
"@scalar/use-toasts": "0.7.7"
|
|
164
|
+
"@scalar/types": "0.0.16",
|
|
165
|
+
"@scalar/use-toasts": "0.7.7",
|
|
166
|
+
"@scalar/use-tooltip": "1.0.3"
|
|
167
167
|
},
|
|
168
168
|
"devDependencies": {
|
|
169
169
|
"@types/js-cookie": "^3.0.6",
|