@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,88 @@
|
|
|
1
|
+
import { defineComponent as g, ref as y, computed as N, watch as V, openBlock as k, createBlock as R, unref as s, withCtx as n, createVNode as r, createElementVNode as a, toDisplayString as h, createTextVNode as C } from "vue";
|
|
2
|
+
import S from "../HttpMethod/HttpMethod.vue.js";
|
|
3
|
+
import { ScalarModal as I, ScalarTextField as B, ScalarButton as x } from "@scalar/components";
|
|
4
|
+
import { useToasts as E } from "@scalar/use-toasts";
|
|
5
|
+
const M = { class: "border flex flex-row gap-2 h-10 items-center my-4 p-[3px] rounded text-sm" }, T = { class: "flex h-full" }, U = { class: "scroll-timeline-x whitespace-nowrap" }, j = { class: "flex gap-10 justify-between" }, L = /* @__PURE__ */ g({
|
|
6
|
+
__name: "ImportCurlModal",
|
|
7
|
+
props: {
|
|
8
|
+
parsedCurl: {},
|
|
9
|
+
state: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["importCurl", "close"],
|
|
12
|
+
setup(v, { emit: _ }) {
|
|
13
|
+
const e = v, u = _, { toast: q } = E(), t = y(""), i = N(() => !t.value.trim());
|
|
14
|
+
function b() {
|
|
15
|
+
if (i.value) {
|
|
16
|
+
q("Please enter a name before importing your request.", "error");
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
w();
|
|
20
|
+
}
|
|
21
|
+
function w() {
|
|
22
|
+
e.parsedCurl && u("importCurl", {
|
|
23
|
+
parsedCurl: e.parsedCurl,
|
|
24
|
+
requestName: t.value
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return V(
|
|
28
|
+
() => e.state.open,
|
|
29
|
+
(l) => {
|
|
30
|
+
l && (t.value = "");
|
|
31
|
+
}
|
|
32
|
+
), (l, o) => (k(), R(s(I), {
|
|
33
|
+
size: "xs",
|
|
34
|
+
state: l.state,
|
|
35
|
+
title: "Import cURL request"
|
|
36
|
+
}, {
|
|
37
|
+
default: n(() => {
|
|
38
|
+
var p, d, m, c;
|
|
39
|
+
return [
|
|
40
|
+
r(s(B), {
|
|
41
|
+
modelValue: t.value,
|
|
42
|
+
"onUpdate:modelValue": o[0] || (o[0] = (f) => t.value = f),
|
|
43
|
+
autofocus: "",
|
|
44
|
+
placeholder: "Request Name"
|
|
45
|
+
}, null, 8, ["modelValue"]),
|
|
46
|
+
a("div", M, [
|
|
47
|
+
a("div", T, [
|
|
48
|
+
r(S, {
|
|
49
|
+
isEditable: !1,
|
|
50
|
+
isSquare: "",
|
|
51
|
+
method: ((p = e.parsedCurl) == null ? void 0 : p.method) || "get"
|
|
52
|
+
}, null, 8, ["method"])
|
|
53
|
+
]),
|
|
54
|
+
a("span", U, h(((m = (d = e.parsedCurl) == null ? void 0 : d.servers) == null ? void 0 : m[0]) || "") + h(((c = e.parsedCurl) == null ? void 0 : c.path) || ""), 1)
|
|
55
|
+
]),
|
|
56
|
+
a("div", j, [
|
|
57
|
+
r(s(x), {
|
|
58
|
+
class: "gap-1.5 px-2.5 h-8 shadow-none focus:outline-none flex items-center cursor-pointer",
|
|
59
|
+
type: "button",
|
|
60
|
+
variant: "outlined",
|
|
61
|
+
onClick: o[1] || (o[1] = (f) => u("close"))
|
|
62
|
+
}, {
|
|
63
|
+
default: n(() => [
|
|
64
|
+
C(" Cancel ")
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
}),
|
|
68
|
+
r(s(x), {
|
|
69
|
+
class: "gap-1.5 font-medium px-2.5 h-8 shadow-none focus:outline-none",
|
|
70
|
+
disabled: i.value,
|
|
71
|
+
type: "submit",
|
|
72
|
+
onClick: b
|
|
73
|
+
}, {
|
|
74
|
+
default: n(() => [
|
|
75
|
+
C(" Import Request ")
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 8, ["disabled"])
|
|
79
|
+
])
|
|
80
|
+
];
|
|
81
|
+
}),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["state"]));
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
L as default
|
|
88
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideHelp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideHelp.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SideHelp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideHelp.vue"],"names":[],"mappings":";AAgYA,wBAKG"}
|
|
@@ -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":";AAkLA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SideNav.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-a00979e0"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,50 +1,61 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { useRouter as v } from "vue-router";
|
|
1
|
+
import { defineComponent as g, openBlock as o, createElementBlock as r, createElementVNode as e, Fragment as p, renderList as u, unref as i, createVNode as a, withCtx as l, createTextVNode as m, toDisplayString as x } from "vue";
|
|
2
|
+
import { ROUTES as v } from "../../constants.js";
|
|
3
|
+
import { useRouter as h } from "vue-router";
|
|
5
4
|
import N from "./SideHelp.vue.js";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
5
|
+
import _ from "./SideNavLink.vue.js";
|
|
6
|
+
const S = {
|
|
8
7
|
"aria-label": "Side Navigation",
|
|
9
8
|
class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav relative drag-region bg-b-1 border-t-1/2",
|
|
10
9
|
role: "navigation"
|
|
11
|
-
},
|
|
10
|
+
}, y = { class: "flex flex-col gap-1.5" }, b = { class: "mt-auto flex flex-col py-0.5" }, k = { class: "flex items-center no-drag-region" }, E = { class: "flex items-center no-drag-region" }, F = /* @__PURE__ */ g({
|
|
12
11
|
__name: "SideNav",
|
|
13
|
-
setup(
|
|
14
|
-
const { currentRoute: s } =
|
|
15
|
-
return (
|
|
16
|
-
e("ul",
|
|
17
|
-
(o(!0), r(
|
|
18
|
-
|
|
12
|
+
setup(R) {
|
|
13
|
+
const { currentRoute: s } = h();
|
|
14
|
+
return (V, w) => (o(), r("nav", S, [
|
|
15
|
+
e("ul", y, [
|
|
16
|
+
(o(!0), r(p, null, u(i(v).filter(
|
|
17
|
+
(t) => t.name !== "settings"
|
|
18
|
+
), ({ icon: t, name: n, prettyName: f }, d) => {
|
|
19
|
+
var c;
|
|
19
20
|
return o(), r("li", {
|
|
20
|
-
key:
|
|
21
|
+
key: d,
|
|
21
22
|
class: "no-drag-region"
|
|
22
23
|
}, [
|
|
23
|
-
a(
|
|
24
|
-
active: (
|
|
25
|
-
icon:
|
|
26
|
-
name:
|
|
27
|
-
prettyName:
|
|
24
|
+
a(_, {
|
|
25
|
+
active: (c = i(s).name) == null ? void 0 : c.startsWith(n),
|
|
26
|
+
icon: t,
|
|
27
|
+
name: n,
|
|
28
|
+
prettyName: f
|
|
28
29
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
|
|
30
|
+
default: l(() => [
|
|
31
|
+
m(x(n), 1)
|
|
31
32
|
]),
|
|
32
33
|
_: 2
|
|
33
34
|
}, 1032, ["active", "icon", "name", "prettyName"])
|
|
34
35
|
]);
|
|
35
36
|
}), 128))
|
|
36
37
|
]),
|
|
37
|
-
e("ul",
|
|
38
|
+
e("ul", b, [
|
|
39
|
+
e("li", k, [
|
|
40
|
+
a(_, {
|
|
41
|
+
active: i(s).name === "settings",
|
|
42
|
+
icon: "Settings",
|
|
43
|
+
name: "settings",
|
|
44
|
+
prettyName: "Settings"
|
|
45
|
+
}, {
|
|
46
|
+
default: l(() => [
|
|
47
|
+
m(" Settings ")
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
}, 8, ["active"])
|
|
51
|
+
]),
|
|
38
52
|
e("li", E, [
|
|
39
53
|
a(N)
|
|
40
|
-
]),
|
|
41
|
-
e("li", R, [
|
|
42
|
-
a(x)
|
|
43
54
|
])
|
|
44
55
|
])
|
|
45
56
|
]));
|
|
46
57
|
}
|
|
47
58
|
});
|
|
48
59
|
export {
|
|
49
|
-
|
|
60
|
+
F as default
|
|
50
61
|
};
|
|
@@ -6,11 +6,11 @@ declare function __VLS_template(): {
|
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
8
8
|
icon: IconProps["icon"];
|
|
9
|
-
name: (typeof ROUTES)[number]["name"];
|
|
9
|
+
name: (typeof ROUTES)[number]["name"] | "settings";
|
|
10
10
|
active?: boolean;
|
|
11
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
12
12
|
icon: IconProps["icon"];
|
|
13
|
-
name: (typeof ROUTES)[number]["name"];
|
|
13
|
+
name: (typeof ROUTES)[number]["name"] | "settings";
|
|
14
14
|
active?: boolean;
|
|
15
15
|
}>>>, {}, {}>;
|
|
16
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":"AAsCA,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;AAgB1D,iBAAS,cAAc;qBAqEO,GAAG;EAgBhC;AACD,QAAA,MAAM,eAAe;UAnGb,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,UAAU;aACzC,OAAO;;UAFV,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,UAAU;aACzC,OAAO;aAuGhB,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,25 +1,24 @@
|
|
|
1
|
-
import { defineComponent as a, resolveComponent as c, openBlock as s, createBlock as i, unref as o, withCtx as l, createElementVNode as
|
|
1
|
+
import { defineComponent as a, resolveComponent as c, openBlock as s, createBlock as i, unref as o, withCtx as l, createElementVNode as n, normalizeClass as p, createVNode as u, renderSlot as m } from "vue";
|
|
2
2
|
import { ScalarIcon as d } from "@scalar/components";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const k = { class: "sr-only" }, w = /* @__PURE__ */ a({
|
|
3
|
+
import { useWorkspace as f } from "../../store/store.js";
|
|
4
|
+
const v = { class: "sr-only" }, C = /* @__PURE__ */ a({
|
|
6
5
|
__name: "SideNavLink",
|
|
7
6
|
props: {
|
|
8
7
|
icon: {},
|
|
9
8
|
name: {},
|
|
10
9
|
active: { type: Boolean }
|
|
11
10
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const { activeWorkspace:
|
|
14
|
-
return
|
|
11
|
+
setup(k) {
|
|
12
|
+
const { activeWorkspace: t } = f();
|
|
13
|
+
return (e, _) => {
|
|
15
14
|
const r = c("router-link");
|
|
16
15
|
return s(), i(r, {
|
|
17
16
|
activeClass: "active-link",
|
|
18
17
|
class: "flex flex-col items-center gap-1 group no-underline",
|
|
19
|
-
to: `/workspace/${o(
|
|
18
|
+
to: `/workspace/${o(t).uid}/${e.name}`
|
|
20
19
|
}, {
|
|
21
20
|
default: l(() => [
|
|
22
|
-
|
|
21
|
+
n("div", {
|
|
23
22
|
class: p(["min-w-[37px] max-w-[37px] group-hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px] scalar-app-nav-padding text-c-3", {
|
|
24
23
|
"bg-b-2 transition-none group-hover:cursor-auto !text-c-1": e.active
|
|
25
24
|
}])
|
|
@@ -29,7 +28,7 @@ const k = { class: "sr-only" }, w = /* @__PURE__ */ a({
|
|
|
29
28
|
thickness: "1.5"
|
|
30
29
|
}, null, 8, ["icon"])
|
|
31
30
|
], 2),
|
|
32
|
-
|
|
31
|
+
n("span", v, [
|
|
33
32
|
m(e.$slots, "default")
|
|
34
33
|
])
|
|
35
34
|
]),
|
|
@@ -39,5 +38,5 @@ const k = { class: "sr-only" }, w = /* @__PURE__ */ a({
|
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
C as default
|
|
43
42
|
};
|
|
@@ -8,8 +8,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
8
8
|
variableName: string;
|
|
9
9
|
warningMessage?: string;
|
|
10
10
|
}>>> & {
|
|
11
|
-
onDelete?: (() => any) | undefined;
|
|
12
11
|
onClose?: (() => any) | undefined;
|
|
12
|
+
onDelete?: (() => any) | undefined;
|
|
13
13
|
}, {}, {}>;
|
|
14
14
|
export default _default;
|
|
15
15
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -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":"AAmNA,iBAAS,cAAc;oBA6GK,GAAG;oBACH,GAAG;oBAEH,GAAG;qBADF,GAAG;EAsB/B;AACD,QAAA,MAAM,eAAe;YAvMT,MAAM;kBACA,OAAO;;;;YADb,MAAM;kBACA,OAAO;;;;iBAAP,OAAO;MA4MvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-22c17e0a"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -3,7 +3,7 @@ import { useMediaQuery as y } from "@vueuse/core";
|
|
|
3
3
|
import { useWorkspace as z } from "../../store/store.js";
|
|
4
4
|
const C = {
|
|
5
5
|
key: 0,
|
|
6
|
-
class: "xl:min-h-header flex items-center justify-between border-b-1/2
|
|
6
|
+
class: "min-h-11 xl:min-h-header flex items-center justify-between border-b-1/2 px-3 py-1.5 md:px-4 md:py-2.5 text-sm"
|
|
7
7
|
}, I = { class: "font-medium m-0 text-sm whitespace-nowrap" }, M = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "relative z-10 pt-0 md:px-2.5 md:pb-2.5 -translate-y-full w-[inherit] has-[.empty-sidebar-item]:border-t-1/2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AA8CA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AA8CA,iBAAS,cAAc;mBAwFI,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;WAvHZ,MAAM,IAAI;;WAAV,MAAM,IAAI;aA6HjB,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"}
|
|
@@ -11,7 +11,7 @@ const b = /* @__PURE__ */ c({
|
|
|
11
11
|
o.click();
|
|
12
12
|
};
|
|
13
13
|
return (r, m) => (n(), a(i(u), {
|
|
14
|
-
class: "bg-b-1 text-c-1 hover:bg-b-2 group relative w-full border-1/2 px-2 py-1 md:p-1.5 h-auto",
|
|
14
|
+
class: "bg-b-1 text-c-1 hover:bg-b-2 group relative w-auto md:w-full border-1/2 px-2 py-1 md:p-1.5 h-auto",
|
|
15
15
|
icon: "Plus",
|
|
16
16
|
variant: "outlined",
|
|
17
17
|
onClick: t
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
variable: {
|
|
3
3
|
uid: string;
|
|
4
4
|
name: string;
|
|
@@ -6,9 +6,14 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
6
6
|
isDefault?: boolean;
|
|
7
7
|
};
|
|
8
8
|
warningMessage?: string;
|
|
9
|
+
isDeletable: boolean;
|
|
10
|
+
isCopyable: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
isCopyable: boolean;
|
|
13
|
+
isDeletable: boolean;
|
|
9
14
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
15
|
delete: (id: string) => void;
|
|
11
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
12
17
|
variable: {
|
|
13
18
|
uid: string;
|
|
14
19
|
name: string;
|
|
@@ -16,10 +21,26 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
16
21
|
isDefault?: boolean;
|
|
17
22
|
};
|
|
18
23
|
warningMessage?: string;
|
|
24
|
+
isDeletable: boolean;
|
|
25
|
+
isCopyable: boolean;
|
|
26
|
+
}>, {
|
|
27
|
+
isCopyable: boolean;
|
|
28
|
+
isDeletable: boolean;
|
|
19
29
|
}>>> & {
|
|
20
30
|
onDelete?: ((id: string) => any) | undefined;
|
|
21
|
-
}, {
|
|
31
|
+
}, {
|
|
32
|
+
isDeletable: boolean;
|
|
33
|
+
isCopyable: boolean;
|
|
34
|
+
}, {}>;
|
|
22
35
|
export default _default;
|
|
36
|
+
type __VLS_WithDefaults<P, D> = {
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
38
|
+
default: D[K];
|
|
39
|
+
}> : P[K];
|
|
40
|
+
};
|
|
41
|
+
type __VLS_Prettify<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
23
44
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
45
|
type __VLS_TypePropsToOption<T> = {
|
|
25
46
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";cAsFc;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;qBACgB,MAAM;iBACV,OAAO;gBACR,OAAO;;;;;;;cART;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;qBACgB,MAAM;iBACV,OAAO;gBACR,OAAO;;;;;;;iBADN,OAAO;gBACR,OAAO;;AAoKvB,wBAOG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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 t from "./SidebarListElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-41ca2561"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,44 +1,48 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useRouter as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as v, resolveComponent as c, openBlock as l, createElementBlock as o, createVNode as t, normalizeClass as n, withModifiers as f, withCtx as g, createElementVNode as i, createCommentVNode as y, toDisplayString as C } from "vue";
|
|
2
|
+
import h from "./SidebarListElementActions.vue.js";
|
|
3
|
+
import { useRouter as k } from "vue-router";
|
|
4
|
+
const w = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "hover:bg-b-3 rounded p-1.5",
|
|
7
7
|
type: "button"
|
|
8
|
-
},
|
|
8
|
+
}, D = { class: "empty-variable-name" }, E = /* @__PURE__ */ v({
|
|
9
9
|
__name: "SidebarListElement",
|
|
10
10
|
props: {
|
|
11
11
|
variable: {},
|
|
12
|
-
warningMessage: {}
|
|
12
|
+
warningMessage: {},
|
|
13
|
+
isDeletable: { type: Boolean, default: !0 },
|
|
14
|
+
isCopyable: { type: Boolean, default: !0 }
|
|
13
15
|
},
|
|
14
16
|
emits: ["delete"],
|
|
15
|
-
setup(
|
|
16
|
-
const s =
|
|
17
|
-
e.metaKey ? window.open(a, "_blank") :
|
|
17
|
+
setup(_, { emit: r }) {
|
|
18
|
+
const s = r, p = k(), b = (e, a) => {
|
|
19
|
+
e.metaKey ? window.open(a, "_blank") : p.push(a);
|
|
18
20
|
}, u = (e) => {
|
|
19
21
|
s("delete", e);
|
|
20
22
|
};
|
|
21
23
|
return (e, a) => {
|
|
22
|
-
const
|
|
23
|
-
return
|
|
24
|
-
t(
|
|
25
|
-
class:
|
|
24
|
+
const m = c("router-link");
|
|
25
|
+
return l(), o("li", null, [
|
|
26
|
+
t(m, {
|
|
27
|
+
class: n(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
|
|
26
28
|
exactActiveClass: "active-link",
|
|
27
29
|
to: `${e.variable.uid}`,
|
|
28
|
-
onClick: a[0] || (a[0] = f((
|
|
30
|
+
onClick: a[0] || (a[0] = f((d) => b(d, e.variable.uid), ["prevent"]))
|
|
29
31
|
}, {
|
|
30
32
|
default: g(() => [
|
|
31
|
-
e.variable.color ? (
|
|
32
|
-
|
|
33
|
-
class:
|
|
33
|
+
e.variable.color ? (l(), o("button", w, [
|
|
34
|
+
i("div", {
|
|
35
|
+
class: n(["h-2.5 w-2.5 rounded-xl", `bg-${e.variable.color}`])
|
|
34
36
|
}, null, 2)
|
|
35
|
-
])) :
|
|
36
|
-
|
|
37
|
-
t(
|
|
37
|
+
])) : y("", !0),
|
|
38
|
+
i("span", D, C(e.variable.name), 1),
|
|
39
|
+
t(h, {
|
|
40
|
+
isCopyable: e.isCopyable,
|
|
41
|
+
isDeletable: e.isDeletable,
|
|
38
42
|
variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
|
|
39
43
|
warningMessage: e.warningMessage,
|
|
40
44
|
onDelete: u
|
|
41
|
-
}, null, 8, ["variable", "warningMessage"])
|
|
45
|
+
}, null, 8, ["isCopyable", "isDeletable", "variable", "warningMessage"])
|
|
42
46
|
]),
|
|
43
47
|
_: 1
|
|
44
48
|
}, 8, ["class", "to"])
|
|
@@ -47,5 +51,5 @@ const C = {
|
|
|
47
51
|
}
|
|
48
52
|
});
|
|
49
53
|
export {
|
|
50
|
-
|
|
54
|
+
E as default
|
|
51
55
|
};
|
|
@@ -5,6 +5,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
5
5
|
isDefault: boolean;
|
|
6
6
|
};
|
|
7
7
|
warningMessage?: string;
|
|
8
|
+
isCopyable?: boolean;
|
|
9
|
+
isDeletable?: boolean;
|
|
8
10
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
11
|
delete: (id: string) => void;
|
|
10
12
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
@@ -14,6 +16,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
14
16
|
isDefault: boolean;
|
|
15
17
|
};
|
|
16
18
|
warningMessage?: string;
|
|
19
|
+
isCopyable?: boolean;
|
|
20
|
+
isDeletable?: boolean;
|
|
17
21
|
}>>> & {
|
|
18
22
|
onDelete?: ((id: string) => any) | undefined;
|
|
19
23
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAyFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;qBACgB,MAAM;iBACV,OAAO;kBACN,OAAO;;;;cAPX;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;qBACgB,MAAM;iBACV,OAAO;kBACN,OAAO;;;;AAgMvB,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,65 +1,68 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useModal as
|
|
4
|
-
import { useClipboard as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as y, ref as h, openBlock as n, createElementBlock as i, Fragment as w, createElementVNode as k, unref as a, createVNode as r, createCommentVNode as s, withModifiers as M, withCtx as D, createBlock as N } from "vue";
|
|
2
|
+
import $ from "./Actions/DeleteSidebarListElement.vue.js";
|
|
3
|
+
import { useModal as B, ScalarIcon as m, ScalarModal as S } from "@scalar/components";
|
|
4
|
+
import { useClipboard as x } from "../../hooks/useClipboard.js";
|
|
5
|
+
const A = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" }, I = /* @__PURE__ */ y({
|
|
6
6
|
__name: "SidebarListElementActions",
|
|
7
7
|
props: {
|
|
8
8
|
variable: {},
|
|
9
|
-
warningMessage: {}
|
|
9
|
+
warningMessage: {},
|
|
10
|
+
isCopyable: { type: Boolean },
|
|
11
|
+
isDeletable: { type: Boolean }
|
|
10
12
|
},
|
|
11
13
|
emits: ["delete"],
|
|
12
|
-
setup(
|
|
13
|
-
const { variable: b } =
|
|
14
|
-
function
|
|
15
|
-
t.value = { action: e, name: b.name },
|
|
14
|
+
setup(d, { emit: p }) {
|
|
15
|
+
const { variable: b } = d, v = p, t = h({ action: "None", name: "" }), l = B(), { copyToClipboard: f } = x();
|
|
16
|
+
function g(e) {
|
|
17
|
+
t.value = { action: e, name: b.name }, l.show();
|
|
16
18
|
}
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
+
function u() {
|
|
20
|
+
l.hide(), t.value = { action: "None", name: "" };
|
|
19
21
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
+
function C(e) {
|
|
23
|
+
v("delete", e), u();
|
|
22
24
|
}
|
|
23
|
-
return (e, o) => (
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
return (e, o) => (n(), i(w, null, [
|
|
26
|
+
k("div", A, [
|
|
27
|
+
e.isCopyable ? (n(), i("button", {
|
|
28
|
+
key: 0,
|
|
26
29
|
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
|
|
27
30
|
type: "button",
|
|
28
|
-
onClick: o[0] || (o[0] = (
|
|
31
|
+
onClick: o[0] || (o[0] = (c) => a(f)(e.variable.name))
|
|
29
32
|
}, [
|
|
30
|
-
|
|
33
|
+
r(a(m), {
|
|
31
34
|
class: "h-3 w-3",
|
|
32
35
|
icon: "Clipboard"
|
|
33
36
|
})
|
|
34
|
-
]),
|
|
35
|
-
e.variable.isDefault
|
|
36
|
-
key:
|
|
37
|
+
])) : s("", !0),
|
|
38
|
+
!e.variable.isDefault && e.isDeletable ? (n(), i("button", {
|
|
39
|
+
key: 1,
|
|
37
40
|
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",
|
|
38
41
|
type: "button",
|
|
39
|
-
onClick: o[1] || (o[1] =
|
|
42
|
+
onClick: o[1] || (o[1] = M((c) => g(
|
|
40
43
|
"Delete"
|
|
41
44
|
/* Delete */
|
|
42
45
|
), ["prevent"]))
|
|
43
46
|
}, [
|
|
44
|
-
|
|
47
|
+
r(a(m), {
|
|
45
48
|
class: "h-3.5 w-3.5",
|
|
46
49
|
icon: "Close"
|
|
47
50
|
})
|
|
48
|
-
]))
|
|
51
|
+
])) : s("", !0)
|
|
49
52
|
]),
|
|
50
|
-
|
|
53
|
+
r(a(S), {
|
|
51
54
|
size: "sm",
|
|
52
|
-
state: a(
|
|
55
|
+
state: a(l),
|
|
53
56
|
title: `${t.value.action} ${t.value.name}`
|
|
54
57
|
}, {
|
|
55
|
-
default:
|
|
56
|
-
t.value.action === "Delete" ? (
|
|
58
|
+
default: D(() => [
|
|
59
|
+
t.value.action === "Delete" ? (n(), N($, {
|
|
57
60
|
key: 0,
|
|
58
61
|
variableName: t.value.name,
|
|
59
62
|
warningMessage: e.warningMessage,
|
|
60
|
-
onClose:
|
|
61
|
-
onDelete: o[2] || (o[2] = (
|
|
62
|
-
}, null, 8, ["variableName", "warningMessage"])) :
|
|
63
|
+
onClose: u,
|
|
64
|
+
onDelete: o[2] || (o[2] = (c) => C(e.variable.uid))
|
|
65
|
+
}, null, 8, ["variableName", "warningMessage"])) : s("", !0)
|
|
63
66
|
]),
|
|
64
67
|
_: 1
|
|
65
68
|
}, 8, ["state", "title"])
|
|
@@ -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":";gBAmRc;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;;gBAApC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;;AA0dlD,wBAMG;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 "./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-33584718"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -7,7 +7,7 @@ import { capitalize as Q } from "@scalar/oas-utils/helpers";
|
|
|
7
7
|
import X from "./TopNavItem.vue.js";
|
|
8
8
|
import { useWorkspace as Y } from "../../store/store.js";
|
|
9
9
|
import { hotKeyBus as I } from "../../libs/event-busses/hot-keys-bus.js";
|
|
10
|
-
const Z = (s) => (K("data-v-
|
|
10
|
+
const Z = (s) => (K("data-v-33584718"), s = s(), F(), s), ee = { class: "flex h-10 t-app__top-nav" }, te = /* @__PURE__ */ Z(() => /* @__PURE__ */ f("div", { class: "t-app__top-nav-draggable" }, null, -1)), oe = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-1 relative overflow-hidden" }, ae = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "h-full w-full overflow-hidden"
|
|
13
13
|
}, de = /* @__PURE__ */ z({
|