@scalar/api-client 2.1.17 → 2.1.19
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 +43 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +5 -1
- 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 +78 -75
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +6 -6
- package/dist/components/CodeInput/CodeInput.vue.d.ts +6 -2
- 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 +57 -49
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +3 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +13 -11
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +0 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.js +36 -38
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +100 -80
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +7 -7
- 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/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +19 -3
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +27 -14
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -8
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +39 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.js +7 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +88 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue2.js +37 -26
- package/dist/components/SideNav/SideNavLink.vue.d.ts +2 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +10 -11
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +24 -3
- 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 +26 -22
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +4 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +35 -32
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +11 -11
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/hooks/useDarkModeState.d.ts +4 -3
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.js +36 -21
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +34 -41
- package/dist/layouts/App/create-api-client-app.d.ts +35 -32
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
- package/dist/layouts/Modal/create-api-client-modal.d.ts +70 -64
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +35 -42
- package/dist/layouts/Web/create-api-client-web.d.ts +35 -32
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +35 -32
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +1 -1
- package/dist/libs/extractAttachmentFilename.d.ts +2 -0
- package/dist/libs/extractAttachmentFilename.d.ts.map +1 -0
- package/dist/libs/extractAttachmentFilename.js +20 -0
- package/dist/libs/getOpenApiDocumentDetails.d.ts +10 -0
- package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -0
- package/dist/libs/getOpenApiDocumentDetails.js +40 -0
- package/dist/libs/importers/curl.d.ts +3 -0
- package/dist/libs/importers/curl.d.ts.map +1 -0
- package/dist/libs/importers/curl.js +61 -0
- package/dist/libs/importers/index.d.ts +2 -0
- package/dist/libs/importers/index.d.ts.map +1 -0
- package/dist/libs/importers/index.js +4 -0
- package/dist/libs/index.d.ts +2 -2
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +22 -22
- package/dist/libs/isUrl.d.ts +1 -1
- package/dist/libs/isUrl.d.ts.map +1 -1
- package/dist/libs/isUrl.js +4 -3
- package/dist/libs/parse-curl.d.ts +12 -0
- package/dist/libs/parse-curl.d.ts.map +1 -0
- package/dist/libs/parse-curl.js +70 -0
- package/dist/router.d.ts +2 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +33 -24
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +21 -26
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.d.ts +1 -0
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +2 -1
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store.d.ts +70 -64
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +126 -119
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +18 -18
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +9 -9
- 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 +146 -96
- 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 +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +4 -4
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +3 -3
- package/dist/views/Request/RequestSidebar.vue2.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +49 -49
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +2 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +4 -4
- package/dist/views/Request/RequestSubpageHeader.vue2.js +17 -15
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +63 -55
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +2 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +14 -14
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
- package/dist/views/Settings/Settings.vue.d.ts +4 -0
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -0
- package/dist/views/Settings/Settings.vue.js +4 -0
- package/dist/views/Settings/Settings.vue2.js +59 -0
- package/dist/{components/DarkModeToggle/DarkModeIconToggle.vue.d.ts → views/Settings/SettingsGeneral.vue.d.ts} +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -0
- package/dist/views/Settings/SettingsGeneral.vue.js +124 -0
- package/dist/views/Settings/SettingsGeneral.vue2.js +4 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts +3 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +1 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.js +78 -0
- package/dist/views/Settings/SettingsGeneralMode.vue2.js +4 -0
- package/package.json +60 -36
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +0 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +0 -31
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue2.js +0 -4
- package/dist/components/DarkModeToggle/index.d.ts +0 -2
- package/dist/components/DarkModeToggle/index.d.ts.map +0 -1
- package/dist/components/DarkModeToggle/index.js +0 -4
- package/dist/components/ScreenReader.vue.js +0 -7
- package/dist/components/ScreenReader.vue2.js +0 -18
- package/dist/libs/getOpenApiDocumentVersion.d.ts +0 -8
- package/dist/libs/getOpenApiDocumentVersion.d.ts.map +0 -1
- package/dist/libs/getOpenApiDocumentVersion.js +0 -20
- package/dist/libs/isDocument.d.ts +0 -3
- package/dist/libs/isDocument.d.ts.map +0 -1
- package/dist/libs/isDocument.js +0 -7
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent as i, ref as m, openBlock as a, createBlock as r, withCtx as e, createVNode as o, unref as s, createElementVNode as c, createElementBlock as f, Fragment as p, renderList as u, createTextVNode as _, toDisplayString as d, resolveDynamicComponent as x } from "vue";
|
|
2
|
+
import b from "../../components/Sidebar/SidebarList.vue.js";
|
|
3
|
+
import S from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
4
|
+
import g from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
5
|
+
import v from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
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({
|
|
9
|
+
__name: "Settings",
|
|
10
|
+
setup(V) {
|
|
11
|
+
const l = {
|
|
12
|
+
general: {
|
|
13
|
+
component: y,
|
|
14
|
+
title: "general"
|
|
15
|
+
}
|
|
16
|
+
}, n = m("general");
|
|
17
|
+
return (k, h) => (a(), r(g, null, {
|
|
18
|
+
default: e(() => [
|
|
19
|
+
o(s(C), { title: "Settings" }, {
|
|
20
|
+
content: e(() => [
|
|
21
|
+
c("div", L, [
|
|
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)))
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
})
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
T as default
|
|
59
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
2
|
export default _default;
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=SettingsGeneral.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AA2bA,wBAKG"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { defineComponent as w, openBlock as f, createBlock as v, withCtx as t, createTextVNode as a, createElementVNode as s, createVNode as e, unref as l, createElementBlock as y, Fragment as b, renderList as S, withModifiers as C, normalizeClass as $, toDisplayString as u } from "vue";
|
|
2
|
+
import V from "../../components/DataTable/DataTable.vue.js";
|
|
3
|
+
import D from "../../components/DataTable/DataTableCell.vue.js";
|
|
4
|
+
import P from "../../components/DataTable/DataTableCheckbox.vue.js";
|
|
5
|
+
import n from "../../components/DataTable/DataTableRow.vue.js";
|
|
6
|
+
import p from "../../components/DataTable/DataTableText.vue.js";
|
|
7
|
+
import z from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
8
|
+
import { ScalarDropdown as B, ScalarDropdownItem as T, ScalarIcon as d, ScalarButton as U } from "@scalar/components";
|
|
9
|
+
import { themeLabels as _ } from "@scalar/themes";
|
|
10
|
+
import I from "./SettingsGeneralMode.vue.js";
|
|
11
|
+
import { useWorkspace as N } from "../../store/store.js";
|
|
12
|
+
const W = { class: "flex flex-col p-2" }, j = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, Y = /* @__PURE__ */ w({
|
|
13
|
+
__name: "SettingsGeneral",
|
|
14
|
+
setup(E) {
|
|
15
|
+
const { activeWorkspace: r, workspaceMutators: h, proxyUrl: i, setProxyUrl: c } = N(), x = () => {
|
|
16
|
+
i.value ? c("") : c("https://proxy.scalar.com");
|
|
17
|
+
}, k = [
|
|
18
|
+
"default",
|
|
19
|
+
"alternate",
|
|
20
|
+
"moon",
|
|
21
|
+
"purple",
|
|
22
|
+
"solarized",
|
|
23
|
+
"bluePlanet",
|
|
24
|
+
"saturn",
|
|
25
|
+
"kepler",
|
|
26
|
+
"mars",
|
|
27
|
+
"deepSpace"
|
|
28
|
+
], g = (m) => {
|
|
29
|
+
h.edit(r.value.uid, "themeId", m);
|
|
30
|
+
};
|
|
31
|
+
return (m, G) => (f(), v(z, null, {
|
|
32
|
+
title: t(() => [
|
|
33
|
+
a("General")
|
|
34
|
+
]),
|
|
35
|
+
default: t(() => [
|
|
36
|
+
s("div", W, [
|
|
37
|
+
e(V, { columns: ["", ""] }, {
|
|
38
|
+
default: t(() => [
|
|
39
|
+
e(n, null, {
|
|
40
|
+
default: t(() => [
|
|
41
|
+
e(p, { text: "Use Scalar Proxy" }),
|
|
42
|
+
e(P, {
|
|
43
|
+
align: "left",
|
|
44
|
+
modelValue: !!l(i),
|
|
45
|
+
"onUpdate:modelValue": x
|
|
46
|
+
}, null, 8, ["modelValue"])
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}),
|
|
50
|
+
e(n, null, {
|
|
51
|
+
default: t(() => [
|
|
52
|
+
e(p, { text: "Theme Picker" }),
|
|
53
|
+
e(D, null, {
|
|
54
|
+
default: t(() => [
|
|
55
|
+
e(l(B), null, {
|
|
56
|
+
items: t(() => [
|
|
57
|
+
(f(), y(b, null, S(k, (o) => e(l(T), {
|
|
58
|
+
key: o,
|
|
59
|
+
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
60
|
+
onClick: C((L) => g(o), ["stop"])
|
|
61
|
+
}, {
|
|
62
|
+
default: t(() => [
|
|
63
|
+
s("div", {
|
|
64
|
+
class: $([
|
|
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(d), {
|
|
70
|
+
class: "size-2.5",
|
|
71
|
+
icon: "Checkmark",
|
|
72
|
+
thickness: "3.5"
|
|
73
|
+
})
|
|
74
|
+
], 2),
|
|
75
|
+
a(" " + u(l(_)[o]), 1)
|
|
76
|
+
]),
|
|
77
|
+
_: 2
|
|
78
|
+
}, 1032, ["onClick"])), 64))
|
|
79
|
+
]),
|
|
80
|
+
default: t(() => [
|
|
81
|
+
e(l(U), {
|
|
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", j, [
|
|
88
|
+
a(u(l(_)[l(r).themeId]) + " ", 1),
|
|
89
|
+
e(l(d), {
|
|
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(I)
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
})
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
})
|
|
116
|
+
])
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
export {
|
|
123
|
+
Y as default
|
|
124
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=SettingsGeneralMode.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsGeneralMode.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneralMode.vue"],"names":[],"mappings":";AAgUA,wBAKG"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as u, ref as d, openBlock as p, createElementBlock as _, Fragment as h, createVNode as e, withCtx as o, unref as r, withModifiers as n, createTextVNode as a, createElementVNode as k, toDisplayString as v } from "vue";
|
|
2
|
+
import M from "../../components/DataTable/DataTableCell.vue.js";
|
|
3
|
+
import S from "../../components/DataTable/DataTableText.vue.js";
|
|
4
|
+
import { ScalarDropdown as D, ScalarDropdownItem as s, ScalarButton as g, ScalarIcon as x } from "@scalar/components";
|
|
5
|
+
import { useDarkModeState as y } from "../../hooks/useDarkModeState.js";
|
|
6
|
+
const w = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, I = /* @__PURE__ */ u({
|
|
7
|
+
__name: "SettingsGeneralMode",
|
|
8
|
+
setup(C) {
|
|
9
|
+
const { colorMode: c, setDarkMode: l } = y(), t = d("System Preference");
|
|
10
|
+
c.value === "system" ? t.value = "System Preference" : c.value === "dark" ? t.value = "Dark" : t.value = "Light";
|
|
11
|
+
const i = () => {
|
|
12
|
+
l(null), t.value = "System Preference";
|
|
13
|
+
}, f = () => {
|
|
14
|
+
l(!1), t.value = "Light";
|
|
15
|
+
}, m = () => {
|
|
16
|
+
l(!0), t.value = "Dark";
|
|
17
|
+
};
|
|
18
|
+
return (P, L) => (p(), _(h, null, [
|
|
19
|
+
e(S, { text: "Mode" }),
|
|
20
|
+
e(M, null, {
|
|
21
|
+
default: o(() => [
|
|
22
|
+
e(r(D), null, {
|
|
23
|
+
items: o(() => [
|
|
24
|
+
e(r(s), {
|
|
25
|
+
onClick: n(i, ["stop"])
|
|
26
|
+
}, {
|
|
27
|
+
default: o(() => [
|
|
28
|
+
a(" System Preference ")
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
}),
|
|
32
|
+
e(r(s), {
|
|
33
|
+
onClick: n(f, ["stop"])
|
|
34
|
+
}, {
|
|
35
|
+
default: o(() => [
|
|
36
|
+
a(" Light Mode ")
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}),
|
|
40
|
+
e(r(s), {
|
|
41
|
+
onClick: n(m, ["stop"])
|
|
42
|
+
}, {
|
|
43
|
+
default: o(() => [
|
|
44
|
+
a(" Dark Mode ")
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
})
|
|
48
|
+
]),
|
|
49
|
+
default: o(() => [
|
|
50
|
+
e(r(g), {
|
|
51
|
+
class: "font-normal h-full justify-start py-1.5 px-1.5 text-c-1 hover:bg-b-2 w-fit",
|
|
52
|
+
fullWidth: "",
|
|
53
|
+
variant: "ghost"
|
|
54
|
+
}, {
|
|
55
|
+
default: o(() => [
|
|
56
|
+
k("h2", w, [
|
|
57
|
+
a(v(t.value) + " ", 1),
|
|
58
|
+
e(r(x), {
|
|
59
|
+
class: "size-2.5",
|
|
60
|
+
icon: "ChevronDown",
|
|
61
|
+
thickness: "3.5"
|
|
62
|
+
})
|
|
63
|
+
])
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
})
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
})
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
})
|
|
73
|
+
], 64));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
I as default
|
|
78
|
+
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.1.
|
|
21
|
+
"version": "2.1.19",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -27,91 +27,113 @@
|
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
29
|
"import": "./dist/index.js",
|
|
30
|
-
"types": "./dist/index.d.ts"
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"default": "./dist/index.js"
|
|
31
32
|
},
|
|
32
33
|
"./views/Request/types": {
|
|
33
34
|
"import": "./dist/views/Request/types/index.js",
|
|
34
|
-
"types": "./dist/views/Request/types/index.d.ts"
|
|
35
|
+
"types": "./dist/views/Request/types/index.d.ts",
|
|
36
|
+
"default": "./dist/views/Request/types/index.js"
|
|
35
37
|
},
|
|
36
38
|
"./views/Request/libs": {
|
|
37
39
|
"import": "./dist/views/Request/libs/index.js",
|
|
38
|
-
"types": "./dist/views/Request/libs/index.d.ts"
|
|
40
|
+
"types": "./dist/views/Request/libs/index.d.ts",
|
|
41
|
+
"default": "./dist/views/Request/libs/index.js"
|
|
39
42
|
},
|
|
40
43
|
"./views/Request/consts": {
|
|
41
44
|
"import": "./dist/views/Request/consts/index.js",
|
|
42
|
-
"types": "./dist/views/Request/consts/index.d.ts"
|
|
45
|
+
"types": "./dist/views/Request/consts/index.d.ts",
|
|
46
|
+
"default": "./dist/views/Request/consts/index.js"
|
|
43
47
|
},
|
|
44
48
|
"./views/Request/components": {
|
|
45
49
|
"import": "./dist/views/Request/components/index.js",
|
|
46
|
-
"types": "./dist/views/Request/components/index.d.ts"
|
|
50
|
+
"types": "./dist/views/Request/components/index.d.ts",
|
|
51
|
+
"default": "./dist/views/Request/components/index.js"
|
|
47
52
|
},
|
|
48
53
|
"./store": {
|
|
49
54
|
"import": "./dist/store/index.js",
|
|
50
|
-
"types": "./dist/store/index.d.ts"
|
|
55
|
+
"types": "./dist/store/index.d.ts",
|
|
56
|
+
"default": "./dist/store/index.js"
|
|
51
57
|
},
|
|
52
58
|
"./libs": {
|
|
53
59
|
"import": "./dist/libs/index.js",
|
|
54
|
-
"types": "./dist/libs/index.d.ts"
|
|
60
|
+
"types": "./dist/libs/index.d.ts",
|
|
61
|
+
"default": "./dist/libs/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./libs/importers": {
|
|
64
|
+
"import": "./dist/libs/importers/index.js",
|
|
65
|
+
"types": "./dist/libs/importers/index.d.ts",
|
|
66
|
+
"default": "./dist/libs/importers/index.js"
|
|
55
67
|
},
|
|
56
68
|
"./libs/event-busses": {
|
|
57
69
|
"import": "./dist/libs/event-busses/index.js",
|
|
58
|
-
"types": "./dist/libs/event-busses/index.d.ts"
|
|
70
|
+
"types": "./dist/libs/event-busses/index.d.ts",
|
|
71
|
+
"default": "./dist/libs/event-busses/index.js"
|
|
59
72
|
},
|
|
60
73
|
"./layouts/Web": {
|
|
61
74
|
"import": "./dist/layouts/Web/index.js",
|
|
62
|
-
"types": "./dist/layouts/Web/index.d.ts"
|
|
75
|
+
"types": "./dist/layouts/Web/index.d.ts",
|
|
76
|
+
"default": "./dist/layouts/Web/index.js"
|
|
63
77
|
},
|
|
64
78
|
"./layouts/Modal": {
|
|
65
79
|
"import": "./dist/layouts/Modal/index.js",
|
|
66
|
-
"types": "./dist/layouts/Modal/index.d.ts"
|
|
80
|
+
"types": "./dist/layouts/Modal/index.d.ts",
|
|
81
|
+
"default": "./dist/layouts/Modal/index.js"
|
|
67
82
|
},
|
|
68
83
|
"./layouts/App": {
|
|
69
84
|
"import": "./dist/layouts/App/index.js",
|
|
70
|
-
"types": "./dist/layouts/App/index.d.ts"
|
|
85
|
+
"types": "./dist/layouts/App/index.d.ts",
|
|
86
|
+
"default": "./dist/layouts/App/index.js"
|
|
71
87
|
},
|
|
72
88
|
"./hooks": {
|
|
73
89
|
"import": "./dist/hooks/index.js",
|
|
74
|
-
"types": "./dist/hooks/index.d.ts"
|
|
90
|
+
"types": "./dist/hooks/index.d.ts",
|
|
91
|
+
"default": "./dist/hooks/index.js"
|
|
75
92
|
},
|
|
76
93
|
"./components": {
|
|
77
94
|
"import": "./dist/components/index.js",
|
|
78
|
-
"types": "./dist/components/index.d.ts"
|
|
95
|
+
"types": "./dist/components/index.d.ts",
|
|
96
|
+
"default": "./dist/components/index.js"
|
|
79
97
|
},
|
|
80
98
|
"./components/Sidebar": {
|
|
81
99
|
"import": "./dist/components/Sidebar/index.js",
|
|
82
|
-
"types": "./dist/components/Sidebar/index.d.ts"
|
|
100
|
+
"types": "./dist/components/Sidebar/index.d.ts",
|
|
101
|
+
"default": "./dist/components/Sidebar/index.js"
|
|
83
102
|
},
|
|
84
103
|
"./components/ImportCollection": {
|
|
85
104
|
"import": "./dist/components/ImportCollection/index.js",
|
|
86
|
-
"types": "./dist/components/ImportCollection/index.d.ts"
|
|
105
|
+
"types": "./dist/components/ImportCollection/index.d.ts",
|
|
106
|
+
"default": "./dist/components/ImportCollection/index.js"
|
|
87
107
|
},
|
|
88
108
|
"./components/HttpMethod": {
|
|
89
109
|
"import": "./dist/components/HttpMethod/index.js",
|
|
90
|
-
"types": "./dist/components/HttpMethod/index.d.ts"
|
|
110
|
+
"types": "./dist/components/HttpMethod/index.d.ts",
|
|
111
|
+
"default": "./dist/components/HttpMethod/index.js"
|
|
91
112
|
},
|
|
92
113
|
"./components/DataTable": {
|
|
93
114
|
"import": "./dist/components/DataTable/index.js",
|
|
94
|
-
"types": "./dist/components/DataTable/index.d.ts"
|
|
95
|
-
|
|
96
|
-
"./components/DarkModeToggle": {
|
|
97
|
-
"import": "./dist/components/DarkModeToggle/index.js",
|
|
98
|
-
"types": "./dist/components/DarkModeToggle/index.d.ts"
|
|
115
|
+
"types": "./dist/components/DataTable/index.d.ts",
|
|
116
|
+
"default": "./dist/components/DataTable/index.js"
|
|
99
117
|
},
|
|
100
118
|
"./components/CommandPalette": {
|
|
101
119
|
"import": "./dist/components/CommandPalette/index.js",
|
|
102
|
-
"types": "./dist/components/CommandPalette/index.d.ts"
|
|
120
|
+
"types": "./dist/components/CommandPalette/index.d.ts",
|
|
121
|
+
"default": "./dist/components/CommandPalette/index.js"
|
|
103
122
|
},
|
|
104
123
|
"./components/AddressBar": {
|
|
105
124
|
"import": "./dist/components/AddressBar/index.js",
|
|
106
|
-
"types": "./dist/components/AddressBar/index.d.ts"
|
|
125
|
+
"types": "./dist/components/AddressBar/index.d.ts",
|
|
126
|
+
"default": "./dist/components/AddressBar/index.js"
|
|
107
127
|
},
|
|
108
128
|
"./css/*.css": {
|
|
109
129
|
"import": "./dist/css/*.css",
|
|
110
|
-
"require": "./dist/css/*.css"
|
|
130
|
+
"require": "./dist/css/*.css",
|
|
131
|
+
"default": "./dist/css/*.css"
|
|
111
132
|
},
|
|
112
133
|
"./*.css": {
|
|
113
134
|
"import": "./dist/*.css",
|
|
114
|
-
"require": "./dist/*.css"
|
|
135
|
+
"require": "./dist/*.css",
|
|
136
|
+
"default": "./dist/*.css"
|
|
115
137
|
}
|
|
116
138
|
},
|
|
117
139
|
"files": [
|
|
@@ -129,27 +151,29 @@
|
|
|
129
151
|
"nanoid": "^5.0.7",
|
|
130
152
|
"pretty-bytes": "^6.1.1",
|
|
131
153
|
"pretty-ms": "^8.0.0",
|
|
154
|
+
"shell-quote": "^1.8.1",
|
|
132
155
|
"vue": "^3.4.29",
|
|
133
156
|
"vue-router": "^4.3.0",
|
|
134
157
|
"whatwg-mimetype": "^4.0.0",
|
|
135
158
|
"yaml": "^2.4.5",
|
|
136
159
|
"zod": "^3.23.8",
|
|
137
|
-
"@scalar/components": "0.12.50",
|
|
138
|
-
"@scalar/draggable": "0.1.5",
|
|
139
|
-
"@scalar/oas-utils": "0.2.52",
|
|
140
160
|
"@scalar/icons": "0.1.0",
|
|
141
|
-
"@scalar/
|
|
142
|
-
"@scalar/
|
|
143
|
-
"@scalar/
|
|
144
|
-
"@scalar/
|
|
145
|
-
"@scalar/
|
|
146
|
-
"@scalar/
|
|
161
|
+
"@scalar/components": "0.12.51",
|
|
162
|
+
"@scalar/draggable": "0.1.5",
|
|
163
|
+
"@scalar/oas-utils": "0.2.54",
|
|
164
|
+
"@scalar/object-utils": "1.1.10",
|
|
165
|
+
"@scalar/openapi-parser": "0.8.6",
|
|
166
|
+
"@scalar/openapi-types": "0.1.2",
|
|
167
|
+
"@scalar/types": "0.0.14",
|
|
168
|
+
"@scalar/themes": "0.9.36",
|
|
147
169
|
"@scalar/use-toasts": "0.7.6",
|
|
170
|
+
"@scalar/use-codemirror": "0.11.18",
|
|
148
171
|
"@scalar/use-tooltip": "1.0.2"
|
|
149
172
|
},
|
|
150
173
|
"devDependencies": {
|
|
151
174
|
"@types/content-type": "^1.1.8",
|
|
152
175
|
"@types/js-cookie": "^3.0.6",
|
|
176
|
+
"@types/shell-quote": "^1.7.5",
|
|
153
177
|
"@types/whatwg-mimetype": "^3.0.2",
|
|
154
178
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
155
179
|
"@vue/test-utils": "^2.4.1",
|
|
@@ -162,7 +186,7 @@
|
|
|
162
186
|
"vite": "^5.2.10",
|
|
163
187
|
"vite-svg-loader": "^5.1.0",
|
|
164
188
|
"vitest": "^1.6.0",
|
|
165
|
-
"@scalar/build-tooling": "0.1.
|
|
189
|
+
"@scalar/build-tooling": "0.1.11"
|
|
166
190
|
},
|
|
167
191
|
"scripts": {
|
|
168
192
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DarkModeIconToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/DarkModeIconToggle.vue"],"names":[],"mappings":";AA6GA,wBAKG"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as l, createElementBlock as s, unref as e, createVNode as r, withCtx as i, createTextVNode as p, toDisplayString as d } from "vue";
|
|
2
|
-
import m from "../ScreenReader.vue.js";
|
|
3
|
-
import { ScalarIcon as u } from "@scalar/components";
|
|
4
|
-
import { useDarkModeState as f } from "../../hooks/useDarkModeState.js";
|
|
5
|
-
const w = /* @__PURE__ */ c({
|
|
6
|
-
__name: "DarkModeIconToggle",
|
|
7
|
-
setup(g) {
|
|
8
|
-
const { toggleDarkMode: t, isDark: a } = f();
|
|
9
|
-
return (k, o) => (l(), s("button", {
|
|
10
|
-
class: "min-w-[37px] max-w-[37px] hover:bg-b-3 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 w-full aspect-square scalar-app-nav-padding",
|
|
11
|
-
type: "button",
|
|
12
|
-
onClick: o[0] || (o[0] = //@ts-ignore
|
|
13
|
-
(...n) => e(t) && e(t)(...n))
|
|
14
|
-
}, [
|
|
15
|
-
r(e(u), {
|
|
16
|
-
class: "block h-6 w-6",
|
|
17
|
-
icon: "LightDarkModeToggle",
|
|
18
|
-
thickness: "1.5"
|
|
19
|
-
}),
|
|
20
|
-
r(m, null, {
|
|
21
|
-
default: i(() => [
|
|
22
|
-
p(" Switch to " + d(e(a) ? "Light" : "Dark") + " Mode ", 1)
|
|
23
|
-
]),
|
|
24
|
-
_: 1
|
|
25
|
-
})
|
|
26
|
-
]));
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
w as default
|
|
31
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, openBlock as t, createElementBlock as n, renderSlot as o } from "vue";
|
|
2
|
-
const s = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "screenreader-only"
|
|
5
|
-
}, d = /* @__PURE__ */ r({
|
|
6
|
-
__name: "ScreenReader",
|
|
7
|
-
props: {
|
|
8
|
-
if: { type: Boolean, default: !0 }
|
|
9
|
-
},
|
|
10
|
-
setup(a) {
|
|
11
|
-
return (e, l) => e.$props.if ? (t(), n("span", s, [
|
|
12
|
-
o(e.$slots, "default", {}, void 0, !0)
|
|
13
|
-
])) : o(e.$slots, "default", { key: 1 }, void 0, !0);
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
export {
|
|
17
|
-
d as default
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOpenApiDocumentVersion.d.ts","sourceRoot":"","sources":["../../src/libs/getOpenApiDocumentVersion.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;;;EAsC7D"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { json as n, yaml as o } from "@scalar/oas-utils/helpers";
|
|
2
|
-
import { isDocument as t } from "./isDocument.js";
|
|
3
|
-
function i(r) {
|
|
4
|
-
if (!t(r))
|
|
5
|
-
return !1;
|
|
6
|
-
try {
|
|
7
|
-
const e = n.parse(r ?? "");
|
|
8
|
-
return typeof (e == null ? void 0 : e.openapi) == "string" ? { version: `OpenAPI ${e.openapi}`, type: "json" } : typeof (e == null ? void 0 : e.swagger) == "string" ? { version: `Swagger ${e.swagger}`, type: "json" } : !1;
|
|
9
|
-
} catch {
|
|
10
|
-
}
|
|
11
|
-
try {
|
|
12
|
-
const e = o.parse(r ?? "");
|
|
13
|
-
return typeof (e == null ? void 0 : e.openapi) == "string" ? { version: `OpenAPI ${e.openapi}`, type: "yaml" } : typeof (e == null ? void 0 : e.swagger) == "string" ? { version: `Swagger ${e.swagger}`, type: "yaml" } : !1;
|
|
14
|
-
} catch {
|
|
15
|
-
}
|
|
16
|
-
return !1;
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
i as getOpenApiDocumentVersion
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDocument.d.ts","sourceRoot":"","sources":["../../src/libs/isDocument.ts"],"names":[],"mappings":"AAEA,mEAAmE;AACnE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,uBAE9C"}
|