@scalar/api-client 2.1.45 → 2.1.46
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 +23 -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 +66 -58
- 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 +40 -39
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +7 -7
- package/dist/components/ContextBar.vue.d.ts +1 -1
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +30 -19
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +10 -10
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -8
- package/dist/components/Form/Form.vue.js +15 -15
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -13
- package/dist/components/Search/useSearch.d.ts +2 -0
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +25 -24
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts +3 -0
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -0
- package/dist/components/SideNav/DownloadAppButton.vue.js +7 -0
- package/dist/components/SideNav/DownloadAppButton.vue2.js +33 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideHelp.vue.js +55 -53
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +82 -5
- package/dist/components/SideNav/SideNav.vue2.js +2 -72
- package/dist/components/SideNav/SideNavGroup.vue.d.ts +18 -0
- package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavGroup.vue.js +16 -0
- package/dist/components/SideNav/SideNavGroup.vue2.js +4 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts +5 -5
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +31 -34
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +25 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.js +29 -0
- package/dist/components/SideNav/SideNavRouterLink.vue2.js +4 -0
- package/dist/components/Sidebar/SidebarButton.vue.d.ts +1 -4
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +17 -17
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +16 -15
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +14 -14
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +27 -27
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +13 -21
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useLayout.d.ts +13 -0
- package/dist/hooks/useLayout.d.ts.map +1 -0
- package/dist/hooks/useLayout.js +7 -0
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +37 -37
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +21 -13
- package/dist/layouts/App/create-api-client-app.d.ts +28 -28
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +14 -13
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +3 -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 +37 -25
- package/dist/layouts/Modal/create-api-client-modal.d.ts +56 -56
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +8 -7
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +30 -30
- package/dist/layouts/Web/create-api-client-web.d.ts +28 -28
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +12 -11
- package/dist/libs/create-client.d.ts +35 -29
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +46 -45
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/security-schemes.d.ts +4 -4
- package/dist/store/store.d.ts +56 -56
- 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/CookieRaw.vue.js +10 -10
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +52 -53
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +79 -80
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +146 -108
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -52
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +102 -97
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- 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 +44 -40
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +152 -134
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
- 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 +103 -102
- 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 +36 -34
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +13 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +32 -33
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +32 -25
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +47 -46
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +1 -1
- package/package.json +8 -6
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
|
@@ -1,125 +1,127 @@
|
|
|
1
|
-
import { defineComponent as i, openBlock as
|
|
2
|
-
import { ScalarDropdown as
|
|
1
|
+
import { defineComponent as i, openBlock as r, createBlock as c, unref as s, withCtx as n, createElementVNode as e, createVNode as l, createTextVNode as d } from "vue";
|
|
2
|
+
import { ScalarDropdown as u, ScalarDropdownItem as a, ScalarIcon as o } from "@scalar/components";
|
|
3
|
+
import f from "./SideNavLink.vue.js";
|
|
3
4
|
const p = {
|
|
4
|
-
class: "min-w-[37px] max-w-[37px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[8px] text-c-3 focus:text-c-1 scalar-app-nav-padding",
|
|
5
|
-
type: "button"
|
|
6
|
-
}, u = {
|
|
7
5
|
class: "no-underline block",
|
|
8
6
|
href: "https://discord.gg/scalar",
|
|
9
7
|
target: "_blank"
|
|
10
|
-
},
|
|
8
|
+
}, m = { class: "flex items-center justify-center" }, x = {
|
|
11
9
|
class: "no-underline block",
|
|
12
10
|
href: "https://github.com/scalar/scalar",
|
|
13
11
|
target: "_blank"
|
|
14
|
-
},
|
|
12
|
+
}, _ = { class: "flex items-center justify-center" }, g = {
|
|
15
13
|
class: "no-underline block",
|
|
16
14
|
href: "mailto:marc@scalar.com",
|
|
17
15
|
target: "_blank"
|
|
18
|
-
},
|
|
16
|
+
}, b = { class: "flex items-center justify-center" }, k = {
|
|
19
17
|
class: "no-underline block",
|
|
20
18
|
href: "https://scalar.com/changelog",
|
|
21
19
|
target: "_blank"
|
|
22
|
-
},
|
|
20
|
+
}, h = { class: "flex items-center justify-center" }, w = {
|
|
23
21
|
class: "no-underline block",
|
|
24
22
|
href: "https://github.com/scalar/scalar/issues/2669",
|
|
25
23
|
target: "_blank"
|
|
26
|
-
},
|
|
24
|
+
}, y = { class: "flex items-center justify-center" }, D = /* @__PURE__ */ i({
|
|
27
25
|
__name: "SideHelp",
|
|
28
|
-
setup(
|
|
29
|
-
return (v,
|
|
26
|
+
setup(j) {
|
|
27
|
+
return (v, t) => (r(), c(s(u), {
|
|
30
28
|
class: "max-w-[150px]",
|
|
31
29
|
placement: "top-end"
|
|
32
30
|
}, {
|
|
33
|
-
items:
|
|
34
|
-
|
|
35
|
-
e("a",
|
|
36
|
-
|
|
37
|
-
default:
|
|
38
|
-
e("div",
|
|
39
|
-
|
|
31
|
+
items: n(() => [
|
|
32
|
+
t[6] || (t[6] = e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 font-medium" }, "Support", -1)),
|
|
33
|
+
e("a", p, [
|
|
34
|
+
l(s(a), { class: "flex items-center gap-1.5 w-full" }, {
|
|
35
|
+
default: n(() => [
|
|
36
|
+
e("div", m, [
|
|
37
|
+
l(s(o), {
|
|
40
38
|
icon: "DiscordLine",
|
|
41
39
|
size: "xs",
|
|
42
40
|
thickness: "1.75"
|
|
43
41
|
})
|
|
44
42
|
]),
|
|
45
|
-
|
|
43
|
+
t[1] || (t[1] = e("span", null, "Discord", -1))
|
|
46
44
|
]),
|
|
47
45
|
_: 1
|
|
48
46
|
})
|
|
49
47
|
]),
|
|
50
|
-
e("a",
|
|
51
|
-
|
|
52
|
-
default:
|
|
53
|
-
e("div",
|
|
54
|
-
|
|
48
|
+
e("a", x, [
|
|
49
|
+
l(s(a), { class: "flex items-center gap-1.5 w-full" }, {
|
|
50
|
+
default: n(() => [
|
|
51
|
+
e("div", _, [
|
|
52
|
+
l(s(o), {
|
|
55
53
|
icon: "GitHubLine",
|
|
56
54
|
size: "xs",
|
|
57
55
|
thickness: "1.75"
|
|
58
56
|
})
|
|
59
57
|
]),
|
|
60
|
-
|
|
58
|
+
t[2] || (t[2] = e("span", null, "GitHub", -1))
|
|
61
59
|
]),
|
|
62
60
|
_: 1
|
|
63
61
|
})
|
|
64
62
|
]),
|
|
65
|
-
e("a",
|
|
66
|
-
|
|
67
|
-
default:
|
|
68
|
-
e("div",
|
|
69
|
-
|
|
63
|
+
e("a", g, [
|
|
64
|
+
l(s(a), { class: "flex items-center gap-1.5 w-full" }, {
|
|
65
|
+
default: n(() => [
|
|
66
|
+
e("div", b, [
|
|
67
|
+
l(s(o), {
|
|
70
68
|
icon: "Email",
|
|
71
69
|
size: "xs"
|
|
72
70
|
})
|
|
73
71
|
]),
|
|
74
|
-
|
|
72
|
+
t[3] || (t[3] = e("span", null, "Email", -1))
|
|
75
73
|
]),
|
|
76
74
|
_: 1
|
|
77
75
|
})
|
|
78
76
|
]),
|
|
79
|
-
|
|
80
|
-
e("a",
|
|
81
|
-
|
|
82
|
-
default:
|
|
83
|
-
e("div",
|
|
84
|
-
|
|
77
|
+
t[7] || (t[7] = e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 font-medium" }, "Product", -1)),
|
|
78
|
+
e("a", k, [
|
|
79
|
+
l(s(a), { class: "flex items-center gap-1.5 w-full" }, {
|
|
80
|
+
default: n(() => [
|
|
81
|
+
e("div", h, [
|
|
82
|
+
l(s(o), {
|
|
85
83
|
icon: "Changelog",
|
|
86
84
|
size: "xs",
|
|
87
85
|
thickness: "1.75"
|
|
88
86
|
})
|
|
89
87
|
]),
|
|
90
|
-
|
|
88
|
+
t[4] || (t[4] = e("span", null, "Changelog", -1))
|
|
91
89
|
]),
|
|
92
90
|
_: 1
|
|
93
91
|
})
|
|
94
92
|
]),
|
|
95
|
-
e("a",
|
|
96
|
-
|
|
97
|
-
default:
|
|
98
|
-
e("div",
|
|
99
|
-
|
|
93
|
+
e("a", w, [
|
|
94
|
+
l(s(a), { class: "flex items-center gap-1.5 w-full" }, {
|
|
95
|
+
default: n(() => [
|
|
96
|
+
e("div", y, [
|
|
97
|
+
l(s(o), {
|
|
100
98
|
icon: "Roadmap",
|
|
101
99
|
size: "xs",
|
|
102
100
|
thickness: "1.75"
|
|
103
101
|
})
|
|
104
102
|
]),
|
|
105
|
-
|
|
103
|
+
t[5] || (t[5] = e("span", null, "Roadmap", -1))
|
|
106
104
|
]),
|
|
107
105
|
_: 1
|
|
108
106
|
})
|
|
109
107
|
])
|
|
110
108
|
]),
|
|
111
|
-
default:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
109
|
+
default: n(() => [
|
|
110
|
+
l(f, {
|
|
111
|
+
is: "button",
|
|
112
|
+
icon: "Help",
|
|
113
|
+
type: "button"
|
|
114
|
+
}, {
|
|
115
|
+
default: n(() => t[0] || (t[0] = [
|
|
116
|
+
d(" About ")
|
|
117
|
+
])),
|
|
118
|
+
_: 1
|
|
119
|
+
})
|
|
118
120
|
]),
|
|
119
121
|
_: 1
|
|
120
122
|
}));
|
|
121
123
|
}
|
|
122
124
|
});
|
|
123
125
|
export {
|
|
124
|
-
|
|
126
|
+
D as default
|
|
125
127
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AA+NA,wBAMG"}
|
|
@@ -1,7 +1,84 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as h, openBlock as o, createElementBlock as r, normalizeClass as p, unref as e, createVNode as t, withCtx as n, createElementVNode as i, Fragment as y, renderList as v, createTextVNode as d, toDisplayString as w, createCommentVNode as b } from "vue";
|
|
2
|
+
import { ROUTES as k } from "../../constants.js";
|
|
3
|
+
import { ScalarIcon as N } from "@scalar/components";
|
|
4
|
+
import { useRouter as S } from "vue-router";
|
|
5
|
+
import C from "./DownloadAppButton.vue.js";
|
|
6
|
+
import V from "./SideHelp.vue.js";
|
|
7
|
+
import u from "./SideNavGroup.vue.js";
|
|
8
|
+
import _ from "./SideNavRouterLink.vue.js";
|
|
9
|
+
import { useLayout as j } from "../../hooks/useLayout.js";
|
|
10
|
+
const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "hidden sm:ml-2 sm:flex items-center justify-center"
|
|
13
|
+
}, q = /* @__PURE__ */ h({
|
|
14
|
+
__name: "SideNav",
|
|
15
|
+
setup(R) {
|
|
16
|
+
const { currentRoute: m } = S(), { layout: s } = j();
|
|
17
|
+
return ($, l) => (o(), r("nav", {
|
|
18
|
+
"aria-label": "App Navigation",
|
|
19
|
+
class: p(["flex items-center justify-center sm:justify-between gap-1.5 app-drag-region", e(s) === "web" ? "border h-12" : "sm:flex-col px-2 py-2"]),
|
|
20
|
+
role: "navigation"
|
|
21
|
+
}, [
|
|
22
|
+
t(u, { class: "app-no-drag-region" }, {
|
|
23
|
+
default: n(() => [
|
|
24
|
+
i("a", {
|
|
25
|
+
class: p(["hidden items-center mr-3 ml-1", {
|
|
26
|
+
"sm:flex": e(s) === "web"
|
|
27
|
+
}]),
|
|
28
|
+
href: "https://www.scalar.com",
|
|
29
|
+
target: "_blank"
|
|
30
|
+
}, [
|
|
31
|
+
t(e(N), {
|
|
32
|
+
icon: "Logo",
|
|
33
|
+
size: "xl"
|
|
34
|
+
})
|
|
35
|
+
], 2),
|
|
36
|
+
(o(!0), r(y, null, v(e(k).filter(
|
|
37
|
+
(a) => a.name !== "settings"
|
|
38
|
+
), ({ icon: a, name: c, prettyName: g }, x) => {
|
|
39
|
+
var f;
|
|
40
|
+
return o(), r("li", { key: x }, [
|
|
41
|
+
t(_, {
|
|
42
|
+
active: (f = e(m).name) == null ? void 0 : f.startsWith(c),
|
|
43
|
+
icon: a,
|
|
44
|
+
name: c
|
|
45
|
+
}, {
|
|
46
|
+
default: n(() => [
|
|
47
|
+
d(w(g), 1)
|
|
48
|
+
]),
|
|
49
|
+
_: 2
|
|
50
|
+
}, 1032, ["active", "icon", "name"])
|
|
51
|
+
]);
|
|
52
|
+
}), 128))
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}),
|
|
56
|
+
t(u, { class: "app-no-drag-region" }, {
|
|
57
|
+
default: n(() => [
|
|
58
|
+
i("li", B, [
|
|
59
|
+
t(_, {
|
|
60
|
+
active: e(m).name === "settings",
|
|
61
|
+
icon: "Settings",
|
|
62
|
+
name: "settings"
|
|
63
|
+
}, {
|
|
64
|
+
default: n(() => l[0] || (l[0] = [
|
|
65
|
+
d(" Settings ")
|
|
66
|
+
])),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["active"])
|
|
69
|
+
]),
|
|
70
|
+
i("li", E, [
|
|
71
|
+
t(V)
|
|
72
|
+
]),
|
|
73
|
+
e(s) !== "desktop" ? (o(), r("li", L, [
|
|
74
|
+
t(C)
|
|
75
|
+
])) : b("", !0)
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
})
|
|
79
|
+
], 2));
|
|
80
|
+
}
|
|
81
|
+
});
|
|
5
82
|
export {
|
|
6
|
-
|
|
83
|
+
q as default
|
|
7
84
|
};
|
|
@@ -1,74 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ROUTES as h } from "../../constants.js";
|
|
3
|
-
import { ScalarIcon as y } from "@scalar/components";
|
|
4
|
-
import { useRouter as b } from "vue-router";
|
|
5
|
-
import N from "./SideHelp.vue.js";
|
|
6
|
-
import d from "./SideNavLink.vue.js";
|
|
7
|
-
const S = {
|
|
8
|
-
"aria-label": "App Navigation",
|
|
9
|
-
class: "text-c-2 sm:w-13 flex sm:flex-col justify-center items-center px-2 py-2 scalar-sidenav relative drag-region bg-b-1 group-sidenav",
|
|
10
|
-
role: "navigation"
|
|
11
|
-
}, w = { class: "flex sm:flex-col gap-1.5" }, k = { class: "mt-auto flex sm:flex-col gap-1.5 py-0.5" }, E = { class: "flex items-center no-drag-region" }, R = { class: "flex items-center no-drag-region" }, V = { class: "hide-in-scalar-app" }, j = {
|
|
12
|
-
class: "min-w-[37px] max-w-[37px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[8px] text-c-3 focus:text-c-1 scalar-app-nav-padding group-hover/sidenav:border-1/2 group-sidenav-hover cursor-pointer",
|
|
13
|
-
href: "https://scalar.com/download",
|
|
14
|
-
target: "_blank"
|
|
15
|
-
}, L = /* @__PURE__ */ _({
|
|
16
|
-
__name: "SideNav",
|
|
17
|
-
setup(B) {
|
|
18
|
-
const { currentRoute: i } = b();
|
|
19
|
-
return (C, c) => (a(), n("nav", S, [
|
|
20
|
-
e("ul", w, [
|
|
21
|
-
(a(!0), n(u, null, x(t(h).filter(
|
|
22
|
-
(s) => s.name !== "settings"
|
|
23
|
-
), ({ icon: s, name: r, prettyName: f }, g) => {
|
|
24
|
-
var l;
|
|
25
|
-
return a(), n("li", {
|
|
26
|
-
key: g,
|
|
27
|
-
class: "no-drag-region"
|
|
28
|
-
}, [
|
|
29
|
-
o(d, {
|
|
30
|
-
active: (l = t(i).name) == null ? void 0 : l.startsWith(r),
|
|
31
|
-
icon: s,
|
|
32
|
-
name: r,
|
|
33
|
-
prettyName: f
|
|
34
|
-
}, {
|
|
35
|
-
default: m(() => [
|
|
36
|
-
p(v(r), 1)
|
|
37
|
-
]),
|
|
38
|
-
_: 2
|
|
39
|
-
}, 1032, ["active", "icon", "name", "prettyName"])
|
|
40
|
-
]);
|
|
41
|
-
}), 128))
|
|
42
|
-
]),
|
|
43
|
-
e("ul", k, [
|
|
44
|
-
e("li", E, [
|
|
45
|
-
o(d, {
|
|
46
|
-
active: t(i).name === "settings",
|
|
47
|
-
icon: "Settings",
|
|
48
|
-
name: "settings",
|
|
49
|
-
prettyName: "Settings"
|
|
50
|
-
}, {
|
|
51
|
-
default: m(() => c[0] || (c[0] = [
|
|
52
|
-
p(" Settings ")
|
|
53
|
-
])),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["active"])
|
|
56
|
-
]),
|
|
57
|
-
e("li", R, [
|
|
58
|
-
o(N)
|
|
59
|
-
]),
|
|
60
|
-
e("li", V, [
|
|
61
|
-
e("a", j, [
|
|
62
|
-
o(t(y), {
|
|
63
|
-
icon: "Download",
|
|
64
|
-
thickness: "1.5"
|
|
65
|
-
})
|
|
66
|
-
])
|
|
67
|
-
])
|
|
68
|
-
])
|
|
69
|
-
]));
|
|
70
|
-
}
|
|
71
|
-
});
|
|
1
|
+
import f from "./SideNav.vue.js";
|
|
72
2
|
export {
|
|
73
|
-
|
|
3
|
+
f as default
|
|
74
4
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLUListElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLUListElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=SideNavGroup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideNavGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavGroup.vue"],"names":[],"mappings":"AAyBA,iBAAS,cAAc;WAoCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,4RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as r, createElementBlock as s, normalizeClass as a, unref as l, renderSlot as n } from "vue";
|
|
2
|
+
import { useLayout as p } from "../../hooks/useLayout.js";
|
|
3
|
+
const _ = /* @__PURE__ */ t({
|
|
4
|
+
__name: "SideNavGroup",
|
|
5
|
+
setup(m) {
|
|
6
|
+
const { layout: e } = p();
|
|
7
|
+
return (o, u) => (r(), s("ul", {
|
|
8
|
+
class: a(["flex gap-1.5", l(e) === "web" ? "sm:gap-px sm:px-2" : "sm:flex-col"])
|
|
9
|
+
}, [
|
|
10
|
+
n(o.$slots, "default")
|
|
11
|
+
], 2));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
_ as default
|
|
16
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
type IconProps = InstanceType<typeof ScalarIcon>['$props'];
|
|
1
|
+
import { type Icon } from '@scalar/components';
|
|
2
|
+
import type { Component } from 'vue';
|
|
4
3
|
type __VLS_Props = {
|
|
5
|
-
|
|
6
|
-
name: (typeof ROUTES)[number]['name'] | 'settings';
|
|
4
|
+
is?: Component | string;
|
|
7
5
|
active?: boolean;
|
|
6
|
+
icon: Icon;
|
|
8
7
|
};
|
|
9
8
|
declare function __VLS_template(): {
|
|
10
9
|
attrs: Partial<{}>;
|
|
11
10
|
slots: {
|
|
11
|
+
icon?(_: {}): any;
|
|
12
12
|
default?(_: {}): any;
|
|
13
13
|
};
|
|
14
14
|
refs: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AAqCA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAIpC,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAUF,iBAAS,cAAc;WA8ET,OAAO,IAA6B;;sBATxB,GAAG;yBACC,GAAG;;;;EAahC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,42 +1,39 @@
|
|
|
1
|
-
import { defineComponent as a,
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as a, openBlock as r, createBlock as i, resolveDynamicComponent as m, normalizeClass as s, unref as o, withCtx as l, renderSlot as t, createVNode as c, createElementVNode as p } from "vue";
|
|
2
|
+
import { ScalarIcon as u } from "@scalar/components";
|
|
3
|
+
import { useLayout as d } from "../../hooks/useLayout.js";
|
|
4
|
+
const h = /* @__PURE__ */ a({
|
|
5
5
|
__name: "SideNavLink",
|
|
6
6
|
props: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
is: {},
|
|
8
|
+
active: { type: Boolean },
|
|
9
|
+
icon: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const {
|
|
13
|
-
return (e,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, [
|
|
26
|
-
u(o(d), {
|
|
27
|
-
icon: e.icon,
|
|
28
|
-
thickness: "1.5"
|
|
29
|
-
}, null, 8, ["icon"])
|
|
30
|
-
], 2),
|
|
31
|
-
n("span", v, [
|
|
32
|
-
m(e.$slots, "default")
|
|
33
|
-
])
|
|
11
|
+
setup(f) {
|
|
12
|
+
const { layout: n } = d();
|
|
13
|
+
return (e, w) => (r(), i(m(e.is ?? "a"), {
|
|
14
|
+
class: s(["hover:bg-b-3 no-underline min-w-[37px] max-w-[37px] flex items-center justify-center rounded-lg p-2", {
|
|
15
|
+
"bg-b-3 transition-none hover:cursor-auto text-c-1": e.active,
|
|
16
|
+
"sm:min-w-max sm:max-w-max sm:rounded sm:py-1.5": o(n) === "web"
|
|
17
|
+
}])
|
|
18
|
+
}, {
|
|
19
|
+
default: l(() => [
|
|
20
|
+
t(e.$slots, "icon", {}, () => [
|
|
21
|
+
c(o(u), {
|
|
22
|
+
class: s(o(n) === "web" ? "sm:hidden" : ""),
|
|
23
|
+
icon: e.icon,
|
|
24
|
+
thickness: "1.5"
|
|
25
|
+
}, null, 8, ["class", "icon"])
|
|
34
26
|
]),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
p("span", {
|
|
28
|
+
class: s(["text-sm font-medium sr-only", { "sm:not-sr-only": o(n) === "web" }])
|
|
29
|
+
}, [
|
|
30
|
+
t(e.$slots, "default")
|
|
31
|
+
], 2)
|
|
32
|
+
]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, ["class"]));
|
|
38
35
|
}
|
|
39
36
|
});
|
|
40
37
|
export {
|
|
41
|
-
|
|
38
|
+
h as default
|
|
42
39
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ROUTES } from '../../constants.js';
|
|
2
|
+
import type { Icon } from '@scalar/components';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
icon: Icon;
|
|
5
|
+
name: (typeof ROUTES)[number]['name'];
|
|
6
|
+
active?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=SideNavRouterLink.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideNavRouterLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavRouterLink.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAK9C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,IAAI,CAAA;IACV,IAAI,EAAE,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;IACrC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAUF,iBAAS,cAAc;WA0CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as i, createBlock as n, unref as o, withCtx as a, renderSlot as c } from "vue";
|
|
2
|
+
import p from "./SideNavLink.vue.js";
|
|
3
|
+
import { RouterLink as s } from "vue-router";
|
|
4
|
+
import { useWorkspace as m } from "../../store/store.js";
|
|
5
|
+
const v = /* @__PURE__ */ r({
|
|
6
|
+
__name: "SideNavRouterLink",
|
|
7
|
+
props: {
|
|
8
|
+
icon: {},
|
|
9
|
+
name: {},
|
|
10
|
+
active: { type: Boolean }
|
|
11
|
+
},
|
|
12
|
+
setup(f) {
|
|
13
|
+
const { activeWorkspace: t } = m();
|
|
14
|
+
return (e, u) => (i(), n(p, {
|
|
15
|
+
is: o(s),
|
|
16
|
+
active: e.active,
|
|
17
|
+
icon: e.icon,
|
|
18
|
+
to: `/workspace/${o(t).uid}/${e.name}`
|
|
19
|
+
}, {
|
|
20
|
+
default: a(() => [
|
|
21
|
+
c(e.$slots, "default")
|
|
22
|
+
]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 8, ["is", "active", "icon", "to"]));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
v as default
|
|
29
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
click: () => void;
|
|
3
3
|
hotkey?: string;
|
|
4
|
-
layout?: 'modal' | 'web' | 'desktop';
|
|
5
4
|
};
|
|
6
5
|
declare function __VLS_template(): {
|
|
7
6
|
attrs: Partial<{}>;
|
|
@@ -12,9 +11,7 @@ declare function __VLS_template(): {
|
|
|
12
11
|
rootEl: any;
|
|
13
12
|
};
|
|
14
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
-
layout: "modal" | "web" | "desktop";
|
|
17
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
15
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
16
|
export default _default;
|
|
20
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AAqCA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AAcF,iBAAS,cAAc;WAmFT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|