@scalar/api-client 2.0.22 → 2.0.25
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 +48 -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 +80 -84
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +11 -10
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +3 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +42 -37
- package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
- package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeVariableWidget.js +124 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.d.ts.map +1 -0
- package/dist/components/CommandPalette/index.js +4 -0
- package/dist/components/ContextBar.vue.js +4 -4
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +7 -6
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +3 -2
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -14
- package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchButton.vue.js +7 -6
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +26 -23
- package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +18 -16
- package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +14 -12
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +2 -2
- 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 +31 -29
- package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +18 -18
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
- package/dist/constants.d.ts +13 -7
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -16
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.js +72 -0
- package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
- package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
- package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
- package/dist/layouts/App/index.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/api-client-modal.js +7 -7
- package/dist/layouts/Modal/index.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.d.ts +14 -0
- package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.js +5 -0
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +19 -19
- package/dist/router.d.ts +18 -6
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +107 -71
- package/dist/store/topNav.d.ts +94 -82
- package/dist/store/topNav.d.ts.map +1 -1
- package/dist/store/topNav.js +21 -20
- package/dist/store/workspace.d.ts +312 -82
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +299 -224
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +9 -12
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +22 -25
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
- 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 +125 -108
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +5 -4
- package/dist/views/Request/RequestSection/RequestSection.vue.js +3 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +22 -21
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
- 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 +84 -79
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +58 -38
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +3 -2
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.js +2 -0
- package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
- package/dist/views/Request/components/index.d.ts +1 -0
- package/dist/views/Request/components/index.d.ts.map +1 -1
- package/dist/views/Request/components/index.js +4 -2
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +12 -15
- package/package.json +19 -15
- package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
- package/dist/App/ApiClientApp.vue.js +0 -56
- package/dist/App/createApiClientApp.d.ts.map +0 -1
- package/dist/App/index.d.ts.map +0 -1
- package/dist/App.vue.d.ts.map +0 -1
- package/dist/App.vue.js +0 -77
- package/dist/App.vue3.js +0 -5
- package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
- package/dist/Modal/api-client-modal.d.ts.map +0 -1
- package/dist/Modal/index.d.ts.map +0 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +0 -106
- package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -184
- package/dist/main.d.ts +0 -2
- package/dist/main.d.ts.map +0 -1
- package/dist/views/Collection/Collection.vue.js +0 -4
- package/dist/views/Collection/Collection.vue2.js +0 -136
- package/dist/views/Components/Schemas/Schemas.vue.js +0 -4
- package/dist/views/Components/Schemas/Schemas.vue2.js +0 -20
- /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
- /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
- /package/dist/{App → layouts/App}/index.d.ts +0 -0
- /package/dist/{App → layouts/App}/index.js +0 -0
- /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
- /package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +0 -0
- /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
- /package/dist/{Modal → layouts/Modal}/index.js +0 -0
|
@@ -8,28 +8,28 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
|
|
|
8
8
|
},
|
|
9
9
|
emits: ["update:modelValue"],
|
|
10
10
|
setup(_, { emit: g }) {
|
|
11
|
-
const v = _, x = g, C = z(() => v.value ?? []),
|
|
11
|
+
const v = _, x = g, C = z(() => v.value ?? []), u = i(v.modelValue.toString()), s = i(!1), a = i(""), h = i(null);
|
|
12
12
|
k(a, (e) => {
|
|
13
13
|
x("update:modelValue", e);
|
|
14
14
|
});
|
|
15
15
|
const w = (e) => {
|
|
16
|
-
|
|
16
|
+
u.value = e, x("update:modelValue", e), s.value = !1;
|
|
17
17
|
}, S = () => {
|
|
18
18
|
a.value.trim() && (w(a.value), a.value = "");
|
|
19
19
|
}, D = () => {
|
|
20
|
-
a.value.trim() || (
|
|
21
|
-
}, b = (e) =>
|
|
20
|
+
a.value.trim() || (u.value = "", s.value = !1);
|
|
21
|
+
}, b = (e) => u.value === e;
|
|
22
22
|
return k(s, (e) => {
|
|
23
23
|
e && N(() => {
|
|
24
|
-
var
|
|
25
|
-
(
|
|
24
|
+
var n;
|
|
25
|
+
(n = h.value) == null || n.focus();
|
|
26
26
|
});
|
|
27
|
-
}), (e,
|
|
27
|
+
}), (e, n) => (o(), p("div", U, [
|
|
28
28
|
s.value ? T((o(), p("input", {
|
|
29
29
|
key: 0,
|
|
30
30
|
ref_key: "inputRef",
|
|
31
31
|
ref: h,
|
|
32
|
-
"onUpdate:modelValue":
|
|
32
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => a.value = t),
|
|
33
33
|
class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full px-2 py-1.5 outline-none",
|
|
34
34
|
placeholder: "Value",
|
|
35
35
|
type: "text",
|
|
@@ -40,7 +40,7 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
|
|
|
40
40
|
]) : (o(), m(l(F), {
|
|
41
41
|
key: 1,
|
|
42
42
|
resize: "",
|
|
43
|
-
value:
|
|
43
|
+
value: u.value
|
|
44
44
|
}, {
|
|
45
45
|
items: r(() => [
|
|
46
46
|
(o(!0), p(A, null, E(C.value, (t) => (o(), m(l(V), {
|
|
@@ -57,8 +57,9 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
|
|
|
57
57
|
])
|
|
58
58
|
}, [
|
|
59
59
|
c(l(f), {
|
|
60
|
-
class: "size-2.5
|
|
61
|
-
icon: "Checkmark"
|
|
60
|
+
class: "size-2.5",
|
|
61
|
+
icon: "Checkmark",
|
|
62
|
+
thickness: "3.5"
|
|
62
63
|
})
|
|
63
64
|
], 2),
|
|
64
65
|
R(" " + y(t), 1)
|
|
@@ -68,7 +69,7 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
|
|
|
68
69
|
c(l(L)),
|
|
69
70
|
c(l(V), {
|
|
70
71
|
class: "flex items-center gap-1.5",
|
|
71
|
-
onClick:
|
|
72
|
+
onClick: n[1] || (n[1] = (t) => s.value = !0)
|
|
72
73
|
}, {
|
|
73
74
|
default: r(() => [
|
|
74
75
|
d("div", W, [
|
|
@@ -89,8 +90,8 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
|
|
|
89
90
|
variant: "ghost"
|
|
90
91
|
}, {
|
|
91
92
|
default: r(() => [
|
|
92
|
-
d("span", null, y(
|
|
93
|
-
|
|
93
|
+
d("span", null, y(u.value || "Select a value"), 1),
|
|
94
|
+
u.value ? $("", !0) : (o(), m(l(f), {
|
|
94
95
|
key: 0,
|
|
95
96
|
icon: "ChevronDown",
|
|
96
97
|
size: "xs"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchButton.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchButton.vue"],"names":[],"mappings":";;;;;AAkIA,wBAMG"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as r, createElementBlock as i, createElementVNode as e, createVNode as
|
|
1
|
+
import { defineComponent as c, openBlock as r, createElementBlock as i, createElementVNode as e, createVNode as s, unref as a } from "vue";
|
|
2
2
|
import l from "../ScalarHotkey.vue.js";
|
|
3
3
|
import { ScalarIcon as m } from "@scalar/components";
|
|
4
4
|
const d = { class: "bg-b-1 sticky top-0 z-50 px-3 py-2.5 pb-0" }, p = { class: "w-[15px] flex items-center justify-center" }, f = { class: "sidebar-search-input ml-1.5 flex w-full items-center justify-between text-sm font-medium" }, _ = /* @__PURE__ */ e("span", { class: "sidebar-search-placeholder" }, "Search", -1), S = /* @__PURE__ */ c({
|
|
5
5
|
__name: "SearchButton",
|
|
6
6
|
emits: ["openSearchModal"],
|
|
7
|
-
setup(u, { emit:
|
|
8
|
-
const n =
|
|
7
|
+
setup(u, { emit: o }) {
|
|
8
|
+
const n = o;
|
|
9
9
|
return (h, t) => (r(), i("div", d, [
|
|
10
10
|
e("button", {
|
|
11
11
|
class: "shadow-border text-c-2 flex w-full items-center rounded p-1.5",
|
|
@@ -13,14 +13,15 @@ const d = { class: "bg-b-1 sticky top-0 z-50 px-3 py-2.5 pb-0" }, p = { class: "
|
|
|
13
13
|
onClick: t[0] || (t[0] = (x) => n("openSearchModal"))
|
|
14
14
|
}, [
|
|
15
15
|
e("div", p, [
|
|
16
|
-
|
|
16
|
+
s(a(m), {
|
|
17
17
|
icon: "Search",
|
|
18
|
-
size: "xs"
|
|
18
|
+
size: "xs",
|
|
19
|
+
thickness: "2.5"
|
|
19
20
|
})
|
|
20
21
|
]),
|
|
21
22
|
e("div", f, [
|
|
22
23
|
_,
|
|
23
|
-
|
|
24
|
+
s(l, { hotkey: "k" })
|
|
24
25
|
])
|
|
25
26
|
])
|
|
26
27
|
]));
|
|
@@ -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":";AAuIA,wBAKG"}
|
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as
|
|
1
|
+
import { defineComponent as m, openBlock as t, createElementBlock as o, createVNode as r, createElementVNode as a, Fragment as _, renderList as f, unref as c, withCtx as p, createTextVNode as u, toDisplayString as d } from "vue";
|
|
2
2
|
import x from "../DarkModeToggle/DarkModeIconToggle.vue.js";
|
|
3
3
|
import { ROUTES as h } from "../../constants.js";
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import
|
|
4
|
+
import { useRouter as v } from "vue-router";
|
|
5
|
+
import g from "./SideNavLink.vue.js";
|
|
6
6
|
import N from "./WorkspaceProfileIcon.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
const y = {
|
|
9
9
|
"aria-label": "Side Navigation",
|
|
10
|
-
class: "text-c-2 w-15 flex flex-col items-center px-2 py-2",
|
|
10
|
+
class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav",
|
|
11
11
|
role: "navigation"
|
|
12
12
|
}, S = { class: "mt-3.5 flex flex-col gap-1.5" }, k = { class: "mt-auto flex flex-col gap-2 py-1.5" }, E = { class: "flex items-center" }, L = /* @__PURE__ */ m({
|
|
13
13
|
__name: "SideNav",
|
|
14
14
|
setup(R) {
|
|
15
|
-
const { currentRoute:
|
|
16
|
-
return (V, $) => (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
15
|
+
const { currentRoute: n } = v();
|
|
16
|
+
return (V, $) => (t(), o("nav", y, [
|
|
17
|
+
r(N),
|
|
18
|
+
a("ul", S, [
|
|
19
|
+
(t(!0), o(_, null, f(c(h), ({ icon: s, name: e }, l) => {
|
|
20
|
+
var i;
|
|
21
|
+
return t(), o("li", { key: l }, [
|
|
22
|
+
r(g, {
|
|
23
|
+
active: (i = c(n).name) == null ? void 0 : i.startsWith(e),
|
|
24
|
+
icon: s,
|
|
25
|
+
name: e
|
|
26
|
+
}, {
|
|
27
|
+
default: p(() => [
|
|
28
|
+
u(d(e), 1)
|
|
29
|
+
]),
|
|
30
|
+
_: 2
|
|
31
|
+
}, 1032, ["active", "icon", "name"])
|
|
32
|
+
]);
|
|
33
|
+
}), 128))
|
|
31
34
|
]),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
a("ul", k, [
|
|
36
|
+
a("li", E, [
|
|
37
|
+
r(x)
|
|
35
38
|
])
|
|
36
39
|
])
|
|
37
40
|
]));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ROUTES } from '../../constants.js';
|
|
1
2
|
import { ScalarIcon } from '@scalar/components';
|
|
2
3
|
type IconProps = InstanceType<typeof ScalarIcon>['$props'];
|
|
3
4
|
declare function __VLS_template(): {
|
|
@@ -5,11 +6,11 @@ declare function __VLS_template(): {
|
|
|
5
6
|
};
|
|
6
7
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
7
8
|
icon: IconProps["icon"];
|
|
8
|
-
|
|
9
|
+
name: (typeof ROUTES)[number]["name"];
|
|
9
10
|
active?: boolean;
|
|
10
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
12
|
icon: IconProps["icon"];
|
|
12
|
-
|
|
13
|
+
name: (typeof ROUTES)[number]["name"];
|
|
13
14
|
active?: boolean;
|
|
14
15
|
}>>>, {}, {}>;
|
|
15
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -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":"AA6BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAe1D,iBAAS,cAAc;qBAuDO,GAAG;EAgBhC;AACD,QAAA,MAAM,eAAe;UApFb,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC;aAC5B,OAAO;;UAFV,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC;aAC5B,OAAO;aAwFhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { defineComponent as r, resolveComponent as a, openBlock as s, createBlock as c, normalizeClass as i, unref as o, withCtx as l, createVNode as p, createElementVNode as u, renderSlot as m } from "vue";
|
|
2
|
+
import { useWorkspace as d } from "../../store/workspace.js";
|
|
3
|
+
import { ScalarIcon as f } from "@scalar/components";
|
|
4
|
+
const k = { class: "sr-only" }, x = /* @__PURE__ */ r({
|
|
4
5
|
__name: "SideNavLink",
|
|
5
6
|
props: {
|
|
6
7
|
icon: {},
|
|
7
|
-
|
|
8
|
+
name: {},
|
|
8
9
|
active: { type: Boolean }
|
|
9
10
|
},
|
|
10
|
-
setup(
|
|
11
|
+
setup(v) {
|
|
12
|
+
const { activeWorkspace: t } = d();
|
|
11
13
|
return (e, _) => {
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
+
const n = a("router-link");
|
|
15
|
+
return s(), c(n, {
|
|
14
16
|
activeClass: "active-link",
|
|
15
|
-
class:
|
|
16
|
-
to: e.
|
|
17
|
+
class: i(["w-[37px] hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px]", { "bg-b-2 transition-none hover:cursor-auto text-c-1": e.active }]),
|
|
18
|
+
to: `/workspace/${o(t).uid}/${e.name}/default`
|
|
17
19
|
}, {
|
|
18
|
-
default:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
default: l(() => [
|
|
21
|
+
p(o(f), {
|
|
22
|
+
icon: e.icon,
|
|
23
|
+
thickness: "1.5"
|
|
22
24
|
}, null, 8, ["icon"]),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
u("span", k, [
|
|
26
|
+
m(e.$slots, "default")
|
|
25
27
|
])
|
|
26
28
|
]),
|
|
27
29
|
_: 3
|
|
@@ -30,5 +32,5 @@ const d = { class: "sr-only" }, k = /* @__PURE__ */ t({
|
|
|
30
32
|
}
|
|
31
33
|
});
|
|
32
34
|
export {
|
|
33
|
-
|
|
35
|
+
x as default
|
|
34
36
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
2
|
+
header?(_: {}): any;
|
|
3
3
|
content?(_: {}): any;
|
|
4
4
|
button?(_: {}): any;
|
|
5
5
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
7
|
+
title?: string;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
|
+
title?: string;
|
|
10
|
+
}>>>, {}, {}>;
|
|
7
11
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
8
12
|
export default _default;
|
|
9
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -11,4 +15,13 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
11
15
|
$slots: S;
|
|
12
16
|
};
|
|
13
17
|
};
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
14
27
|
//# sourceMappingURL=Sidebar.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAyCA,iBAAS,cAAc;oBAiDK,GAAG;qBACF,GAAG;oBACJ,GAAG;EAe9B;AACD,QAAA,MAAM,eAAe;YA5EW,MAAM;;YAAN,MAAM;aAkFpC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as s, createElementBlock as o, unref as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as l, openBlock as s, createElementBlock as o, renderSlot as t, unref as i, createElementVNode as r, toDisplayString as a, createCommentVNode as d } from "vue";
|
|
2
|
+
import { useWorkspace as c } from "../../store/workspace.js";
|
|
3
|
+
const m = { class: "w-sidebar relative flex flex-col border-r bg-b-1" }, p = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "xl:min-h-header py-2.5 flex items-center border-b px-4 text-sm"
|
|
6
|
-
},
|
|
6
|
+
}, h = { class: "font-medium m-0 text-sm" }, _ = { class: "custom-scroll sidebar-height" }, x = /* @__PURE__ */ l({
|
|
7
7
|
__name: "Sidebar",
|
|
8
|
+
props: {
|
|
9
|
+
title: {}
|
|
10
|
+
},
|
|
8
11
|
setup(f) {
|
|
9
|
-
const { isReadOnly: n } =
|
|
10
|
-
return (e,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
r("div", p, [
|
|
12
|
+
const { isReadOnly: n } = c();
|
|
13
|
+
return (e, u) => (s(), o("aside", m, [
|
|
14
|
+
t(e.$slots, "header"),
|
|
15
|
+
!i(n) && e.title ? (s(), o("div", p, [
|
|
16
|
+
r("h2", h, a(e.title), 1)
|
|
17
|
+
])) : d("", !0),
|
|
18
|
+
r("div", _, [
|
|
17
19
|
t(e.$slots, "content")
|
|
18
20
|
]),
|
|
19
21
|
t(e.$slots, "button")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;mBAuFI,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;WArHZ,MAAM,IAAI;;WAAV,MAAM,IAAI;aA2HjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as l, createElementBlock as
|
|
1
|
+
import { defineComponent as n, openBlock as l, createElementBlock as i, createVNode as e, unref as a, withCtx as s, renderSlot as p } from "vue";
|
|
2
2
|
import u from "../ScalarHotkey.vue.js";
|
|
3
3
|
import { ScalarButton as d } from "@scalar/components";
|
|
4
4
|
const f = { class: "fixed relative bottom-[50px] z-10 flex p-2" }, k = /* @__PURE__ */ n({
|
|
@@ -10,17 +10,17 @@ const f = { class: "fixed relative bottom-[50px] z-10 flex p-2" }, k = /* @__PUR
|
|
|
10
10
|
const r = o, t = () => {
|
|
11
11
|
r.click();
|
|
12
12
|
};
|
|
13
|
-
return (c, m) => (l(),
|
|
13
|
+
return (c, m) => (l(), i("div", f, [
|
|
14
14
|
e(a(d), {
|
|
15
15
|
class: "bg-b-1 text-c-1 hover:bg-b-2 group relative w-full border p-1.5 h-auto",
|
|
16
16
|
icon: "Plus",
|
|
17
|
-
variant: "
|
|
17
|
+
variant: "outlined",
|
|
18
18
|
onClick: t
|
|
19
19
|
}, {
|
|
20
|
-
default:
|
|
20
|
+
default: s(() => [
|
|
21
21
|
p(c.$slots, "title"),
|
|
22
22
|
e(u, {
|
|
23
|
-
class: "absolute right-2 group-hover:opacity-80",
|
|
23
|
+
class: "absolute right-2 group-hover:opacity-80 text-c-2",
|
|
24
24
|
hotkey: "N",
|
|
25
25
|
onHotkeyPressed: t
|
|
26
26
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAmFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;cAJS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;
|
|
1
|
+
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAmFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;cAJS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;AA0LH,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -27,7 +27,7 @@ const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
|
|
|
27
27
|
onClick: o[0] || (o[0] = (s) => a(C)(e.variable.name))
|
|
28
28
|
}, [
|
|
29
29
|
r(a(d), {
|
|
30
|
-
class: "h-3 w-3
|
|
30
|
+
class: "h-3 w-3",
|
|
31
31
|
icon: "Clipboard"
|
|
32
32
|
})
|
|
33
33
|
]),
|
|
@@ -41,7 +41,7 @@ const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
|
|
|
41
41
|
), ["prevent"]))
|
|
42
42
|
}, [
|
|
43
43
|
r(a(d), {
|
|
44
|
-
class: "h-3.5 w-3.5
|
|
44
|
+
class: "h-3.5 w-3.5",
|
|
45
45
|
icon: "Close"
|
|
46
46
|
})
|
|
47
47
|
]))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";AAkPA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNav.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-31a24876"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,47 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTopNav as
|
|
1
|
+
import { defineComponent as k, computed as h, openBlock as c, createElementBlock as s, createElementVNode as l, unref as e, createVNode as p, toDisplayString as I, Fragment as g, renderList as b, createBlock as N, pushScopeId as x, popScopeId as y } from "vue";
|
|
2
|
+
import { useTopNav as C } from "../../store/topNav.js";
|
|
3
3
|
import { ScalarIcon as m } from "@scalar/components";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import S from "./TopNavItem.vue.js";
|
|
5
|
+
const w = (o) => (x("data-v-31a24876"), o = o(), y(), o), B = { class: "flex h-10 t-app__top-nav" }, T = /* @__PURE__ */ w(() => /* @__PURE__ */ l("div", { class: "t-app__top-nav-draggable" }, null, -1)), V = { class: "flex h-10 flex-1 items-center justify-center gap-1.5 text-sm font-medium relative" }, j = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "flex items-center gap-1 w-full justify-center"
|
|
8
|
-
},
|
|
8
|
+
}, F = /* @__PURE__ */ k({
|
|
9
9
|
__name: "TopNav",
|
|
10
|
-
setup(
|
|
10
|
+
setup(o) {
|
|
11
11
|
const {
|
|
12
|
-
topNavItems:
|
|
13
|
-
addNavItem:
|
|
12
|
+
topNavItems: n,
|
|
13
|
+
addNavItem: i,
|
|
14
14
|
activeNavItemIdx: v,
|
|
15
|
-
setNavItemIdx:
|
|
15
|
+
setNavItemIdx: d,
|
|
16
16
|
removeNavItem: u
|
|
17
|
-
} =
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
icon: e(
|
|
24
|
-
size: "xs"
|
|
17
|
+
} = C(), _ = h(() => v.value);
|
|
18
|
+
return (z, r) => (c(), s("nav", B, [
|
|
19
|
+
T,
|
|
20
|
+
l("div", V, [
|
|
21
|
+
e(n).length === 1 ? (c(), s("div", j, [
|
|
22
|
+
p(e(m), {
|
|
23
|
+
icon: e(n)[0].icon,
|
|
24
|
+
size: "xs",
|
|
25
|
+
thickness: "2.5"
|
|
25
26
|
}, null, 8, ["icon"]),
|
|
26
|
-
|
|
27
|
-
])) : (
|
|
27
|
+
l("div", null, I(e(n)[0].label), 1)
|
|
28
|
+
])) : (c(!0), s(g, { key: 1 }, b(e(n), (a, t) => (c(), N(S, {
|
|
28
29
|
key: t,
|
|
29
|
-
active: t ===
|
|
30
|
+
active: t === _.value,
|
|
30
31
|
hotkey: (t + 1).toString(),
|
|
31
|
-
icon:
|
|
32
|
-
label:
|
|
33
|
-
onClick: (f) => e(
|
|
32
|
+
icon: a.icon,
|
|
33
|
+
label: a.label,
|
|
34
|
+
onClick: (f) => e(d)(t),
|
|
34
35
|
onClose: (f) => e(u)(t)
|
|
35
36
|
}, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose"]))), 128)),
|
|
36
|
-
|
|
37
|
-
class: "text-c-3 hover:bg-b-2 p-1.5 rounded-lg",
|
|
37
|
+
l("button", {
|
|
38
|
+
class: "text-c-3 hover:bg-b-2 p-1.5 rounded-lg webkit-app-no-drag",
|
|
38
39
|
type: "button",
|
|
39
40
|
onClick: r[0] || (r[0] = //@ts-ignore
|
|
40
|
-
(...
|
|
41
|
+
(...a) => e(i) && e(i)(...a))
|
|
41
42
|
}, [
|
|
42
|
-
|
|
43
|
+
p(e(m), {
|
|
43
44
|
icon: "Add",
|
|
44
|
-
size: "xs"
|
|
45
|
+
size: "xs",
|
|
46
|
+
thickness: "2.5"
|
|
45
47
|
})
|
|
46
48
|
])
|
|
47
49
|
])
|
|
@@ -49,5 +51,5 @@ const h = { class: "flex h-10 t-app__top-nav" }, C = { class: "flex h-10 flex-1
|
|
|
49
51
|
}
|
|
50
52
|
});
|
|
51
53
|
export {
|
|
52
|
-
|
|
54
|
+
F as default
|
|
53
55
|
};
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import type
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<
|
|
1
|
+
import { type Icon } from '@scalar/components';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
hotkey?: string;
|
|
4
4
|
active: boolean;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: Icon;
|
|
5
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
8
|
click: () => void;
|
|
7
9
|
close: () => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
11
|
hotkey?: string;
|
|
10
12
|
active: boolean;
|
|
13
|
+
label: string;
|
|
14
|
+
icon: Icon;
|
|
11
15
|
}>>> & {
|
|
12
16
|
onClick?: (() => any) | undefined;
|
|
13
17
|
onClose?: (() => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA+HA,OAAO,EAAE,KAAK,IAAI,EAA6B,MAAM,oBAAoB,CAAA;;aAK9D,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;aAHD,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;AAoJZ,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNavItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-26cc8e34"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as
|
|
1
|
+
import { defineComponent as m, openBlock as i, createBlock as s, unref as n, withCtx as a, createElementVNode as o, normalizeClass as p, createVNode as l, toDisplayString as k, createCommentVNode as f } from "vue";
|
|
2
2
|
import v from "../ScalarHotkey.vue.js";
|
|
3
3
|
import { ScalarTooltip as y, ScalarIcon as c } from "@scalar/components";
|
|
4
|
-
const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, u = { class: "nav-item-copy text-xs" },
|
|
4
|
+
const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, u = { class: "nav-item-copy text-xs" }, g = /* @__PURE__ */ m({
|
|
5
5
|
__name: "TopNavItem",
|
|
6
6
|
props: {
|
|
7
|
-
label: {},
|
|
8
|
-
icon: {},
|
|
9
7
|
hotkey: {},
|
|
10
|
-
active: { type: Boolean }
|
|
8
|
+
active: { type: Boolean },
|
|
9
|
+
label: {},
|
|
10
|
+
icon: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["click", "close"],
|
|
13
|
-
setup(
|
|
14
|
-
return (e, t) => (
|
|
13
|
+
setup(h) {
|
|
14
|
+
return (e, t) => (i(), s(n(y), {
|
|
15
15
|
class: "scalar-client",
|
|
16
16
|
delay: 500,
|
|
17
17
|
resize: "",
|
|
18
18
|
sideOffset: 4
|
|
19
19
|
}, {
|
|
20
|
-
trigger:
|
|
20
|
+
trigger: a(() => [
|
|
21
21
|
o("div", {
|
|
22
|
-
class: p(["nav-item", { "nav-item__active": e.active }]),
|
|
22
|
+
class: p(["nav-item webkit-app-no-drag", { "nav-item__active": e.active }]),
|
|
23
23
|
onClick: t[1] || (t[1] = (r) => e.$emit("click"))
|
|
24
24
|
}, [
|
|
25
25
|
o("div", d, [
|
|
26
|
-
|
|
27
|
-
class: "stroke-[2]",
|
|
26
|
+
l(n(c), {
|
|
28
27
|
icon: e.icon,
|
|
29
|
-
size: "xs"
|
|
28
|
+
size: "xs",
|
|
29
|
+
thickness: "2.5"
|
|
30
30
|
}, null, 8, ["icon"]),
|
|
31
31
|
o("span", u, k(e.label), 1)
|
|
32
32
|
]),
|
|
@@ -35,15 +35,15 @@ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
35
35
|
type: "button",
|
|
36
36
|
onClick: t[0] || (t[0] = (r) => e.$emit("close"))
|
|
37
37
|
}, [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
l(n(c), {
|
|
39
|
+
icon: "Close",
|
|
40
|
+
thickness: "1.75"
|
|
41
41
|
})
|
|
42
42
|
])
|
|
43
43
|
], 2)
|
|
44
44
|
]),
|
|
45
|
-
content:
|
|
46
|
-
e.hotkey ? (
|
|
45
|
+
content: a(() => [
|
|
46
|
+
e.hotkey ? (i(), s(v, {
|
|
47
47
|
key: 0,
|
|
48
48
|
hotkey: e.hotkey
|
|
49
49
|
}, null, 8, ["hotkey"])) : f("", !0)
|
|
@@ -53,5 +53,5 @@ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
g as default
|
|
57
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;qBA4BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|