@scalar/api-client 2.0.14 → 2.0.16
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 +30 -0
- package/README.md +46 -3
- package/dist/App/ApiClientApp.vue.d.ts +3 -0
- package/dist/App/ApiClientApp.vue.d.ts.map +1 -0
- package/dist/App/ApiClientApp.vue.js +56 -0
- package/dist/App/ApiClientApp.vue3.js +5 -0
- package/dist/App/createApiClientApp.d.ts +16 -0
- package/dist/App/createApiClientApp.d.ts.map +1 -0
- package/dist/App/createApiClientApp.js +62 -0
- package/dist/App/index.d.ts +3 -0
- package/dist/App/index.d.ts.map +1 -0
- package/dist/App/index.js +6 -0
- package/dist/App.vue.d.ts.map +1 -1
- package/dist/App.vue.js +49 -33
- package/dist/Modal/api-client-modal.d.ts +1 -1
- package/dist/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/Modal/api-client-modal.js +7 -7
- package/dist/Modal/index.js +4 -4
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts +31 -4
- 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 +61 -37
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +17 -0
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPalette.vue.js +7 -0
- package/dist/components/CommandPalette/CommandPalette.vue2.js +184 -0
- package/dist/components/{ActionModal/ActionModalImport.vue.d.ts → CommandPalette/CommandPaletteCollection.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +66 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalCollection.vue.d.ts → CommandPalette/CommandPaletteExample.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +107 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalRequest.vue.d.ts → CommandPalette/CommandPaletteFolder.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +104 -0
- package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalVariant.vue.d.ts → CommandPalette/CommandPaletteImport.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +86 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalFolder.vue.d.ts → CommandPalette/CommandPaletteRequest.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +119 -0
- package/dist/components/CommandPalette/CommandPaletteRequest.vue2.js +4 -0
- package/dist/components/ContextBar.vue.js +5 -5
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +6 -6
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +4 -4
- 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 +63 -61
- package/dist/components/DataTable/DataTableInputEnumSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputEnumSelect.vue.js +1 -1
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +3 -3
- 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 +26 -26
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +8 -8
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +6 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -6
- package/dist/router.d.ts +4 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +32 -31
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +68 -74
- package/dist/views/Request/RequestSection/RequestSection.vue.js +7 -7
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -5
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +80 -64
- 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 +48 -48
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +41 -68
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/package.json +10 -5
- package/dist/assets/ascii/collection.ascii.js +0 -10
- package/dist/assets/ascii/folder.ascii.js +0 -10
- package/dist/assets/ascii/import.ascii.js +0 -10
- package/dist/assets/ascii/request.ascii.js +0 -10
- package/dist/assets/ascii/variant.ascii.js +0 -10
- package/dist/components/ActionModal/ActionModal.vue.d.ts +0 -21
- package/dist/components/ActionModal/ActionModal.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModal.vue.js +0 -7
- package/dist/components/ActionModal/ActionModal.vue2.js +0 -117
- package/dist/components/ActionModal/ActionModalCollection.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalCollection.vue.js +0 -54
- package/dist/components/ActionModal/ActionModalCollection.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalFolder.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalFolder.vue.js +0 -92
- package/dist/components/ActionModal/ActionModalFolder.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalImport.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalImport.vue.js +0 -70
- package/dist/components/ActionModal/ActionModalImport.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalRequest.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalRequest.vue.js +0 -108
- package/dist/components/ActionModal/ActionModalRequest.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalVariant.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalVariant.vue.js +0 -93
- package/dist/components/ActionModal/ActionModalVariant.vue2.js +0 -4
- package/dist/hooks/useActionModal.d.ts +0 -16
- package/dist/hooks/useActionModal.d.ts.map +0 -1
- package/dist/hooks/useActionModal.js +0 -25
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPaletteImport.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteImport.vue"],"names":[],"mappings":";WA+FS,MAAM;;;;WAAN,MAAM;;;;AAgMf,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"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as v, ref as m, onMounted as S, openBlock as y, createElementBlock as F, Fragment as C, createElementVNode as t, toDisplayString as k, withModifiers as I, createVNode as a, unref as o, withCtx as u, createTextVNode as d } from "vue";
|
|
2
|
+
import { useWorkspace as N } from "../../store/workspace.js";
|
|
3
|
+
import { ScalarButton as f, ScalarIcon as R } from "@scalar/components";
|
|
4
|
+
import { useFileDialog as U } from "../../hooks/useFileDialog.js";
|
|
5
|
+
const A = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, B = /* @__PURE__ */ t("label", {
|
|
6
|
+
class: "absolute w-full h-full opacity-0 cursor-text",
|
|
7
|
+
for: "requestimport"
|
|
8
|
+
}, null, -1), D = { class: "flex gap-2" }, L = { class: "flex flex-1 gap-2 max-h-8" }, T = /* @__PURE__ */ v({
|
|
9
|
+
__name: "CommandPaletteImport",
|
|
10
|
+
props: {
|
|
11
|
+
title: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["close"],
|
|
14
|
+
setup(M, { emit: h }) {
|
|
15
|
+
const s = h, { importSpecFile: x, importSpecFromUrl: g } = N(), r = m(""), { open: _ } = U({
|
|
16
|
+
onChange: async (e) => {
|
|
17
|
+
const l = e == null ? void 0 : e[0];
|
|
18
|
+
if (l) {
|
|
19
|
+
const c = new FileReader();
|
|
20
|
+
c.onload = async (b) => {
|
|
21
|
+
var p;
|
|
22
|
+
const w = (p = b.target) == null ? void 0 : p.result;
|
|
23
|
+
x(w), n(), s("close");
|
|
24
|
+
}, c.readAsText(l);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
multiple: !1,
|
|
28
|
+
accept: ".json,.yaml,.yml"
|
|
29
|
+
}), n = async () => {
|
|
30
|
+
r.value && (await g(r.value), s("close"));
|
|
31
|
+
}, i = m(null);
|
|
32
|
+
return S(() => {
|
|
33
|
+
var e;
|
|
34
|
+
(e = i.value) == null || e.focus();
|
|
35
|
+
}), (e, l) => (y(), F(C, null, [
|
|
36
|
+
t("h2", null, k(e.title), 1),
|
|
37
|
+
t("form", {
|
|
38
|
+
class: "flex w-full flex-col gap-3",
|
|
39
|
+
onSubmit: I(n, ["prevent"])
|
|
40
|
+
}, [
|
|
41
|
+
t("div", A, [
|
|
42
|
+
B,
|
|
43
|
+
t("input", {
|
|
44
|
+
id: "requestimport",
|
|
45
|
+
ref_key: "importInput",
|
|
46
|
+
ref: i,
|
|
47
|
+
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
48
|
+
label: "Paste Swagger File URL",
|
|
49
|
+
placeholder: "Paste Swagger File URL"
|
|
50
|
+
}, null, 512)
|
|
51
|
+
]),
|
|
52
|
+
t("div", D, [
|
|
53
|
+
t("div", L, [
|
|
54
|
+
a(o(f), {
|
|
55
|
+
class: "p-2 max-h-8 gap-1 text-xs hover:bg-b-2 relative",
|
|
56
|
+
variant: "outlined",
|
|
57
|
+
onClick: o(_)
|
|
58
|
+
}, {
|
|
59
|
+
default: u(() => [
|
|
60
|
+
d(" JSON, or YAML Files "),
|
|
61
|
+
a(o(R), {
|
|
62
|
+
class: "text-c-3 -rotate-90",
|
|
63
|
+
icon: "ArrowRight",
|
|
64
|
+
size: "sm"
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["onClick"])
|
|
69
|
+
]),
|
|
70
|
+
a(o(f), {
|
|
71
|
+
class: "max-h-8 text-xs p-0 px-3",
|
|
72
|
+
type: "submit"
|
|
73
|
+
}, {
|
|
74
|
+
default: u(() => [
|
|
75
|
+
d(" Import Collection ")
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
})
|
|
79
|
+
])
|
|
80
|
+
], 32)
|
|
81
|
+
], 64));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
T as default
|
|
86
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":";WAwIS,MAAM;;;;WAAN,MAAM;;;;AA0Pf,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"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { defineComponent as y, ref as u, computed as v, onMounted as M, openBlock as V, createElementBlock as N, Fragment as R, createElementVNode as l, toDisplayString as h, withModifiers as I, withDirectives as k, vModelText as E, createVNode as s, unref as n, withCtx as c, normalizeClass as F, createTextVNode as U } from "vue";
|
|
2
|
+
import B from "../HttpMethod/HttpMethod.vue.js";
|
|
3
|
+
import { useWorkspace as D } from "../../store/workspace.js";
|
|
4
|
+
import { ScalarListbox as T, ScalarButton as x, ScalarIcon as j } from "@scalar/components";
|
|
5
|
+
import { useRouter as z } from "vue-router";
|
|
6
|
+
const $ = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, G = /* @__PURE__ */ l("label", {
|
|
7
|
+
class: "absolute w-full h-full opacity-0 cursor-text",
|
|
8
|
+
for: "requestname"
|
|
9
|
+
}, null, -1), L = { class: "flex" }, O = { class: "flex flex-1 gap-2 max-h-8" }, Q = /* @__PURE__ */ y({
|
|
10
|
+
__name: "CommandPaletteRequest",
|
|
11
|
+
props: {
|
|
12
|
+
title: {}
|
|
13
|
+
},
|
|
14
|
+
emits: ["close"],
|
|
15
|
+
setup(P, { emit: b }) {
|
|
16
|
+
const _ = b, { push: q } = z(), { requestMutators: g, activeCollection: r, folders: w } = D(), a = u(""), i = u("GET"), m = u(""), f = v(() => r.value ? Object.values(r.value.childUids).flatMap((e) => {
|
|
17
|
+
const t = w[e];
|
|
18
|
+
return t ? [
|
|
19
|
+
{
|
|
20
|
+
id: t.uid,
|
|
21
|
+
label: t.name
|
|
22
|
+
}
|
|
23
|
+
] : [];
|
|
24
|
+
}) : []), o = v({
|
|
25
|
+
get: () => f.value.find(({ id: e }) => e === m.value),
|
|
26
|
+
set: (e) => {
|
|
27
|
+
e != null && e.id && (m.value = e.id);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
function C(e) {
|
|
31
|
+
i.value = e;
|
|
32
|
+
}
|
|
33
|
+
function S() {
|
|
34
|
+
if (!r.value) return;
|
|
35
|
+
const e = g.add({
|
|
36
|
+
path: "",
|
|
37
|
+
method: i.value.toUpperCase(),
|
|
38
|
+
description: a.value,
|
|
39
|
+
operationId: a.value,
|
|
40
|
+
summary: a.value,
|
|
41
|
+
tags: ["default"]
|
|
42
|
+
});
|
|
43
|
+
q(`/request/${e.uid}`), _("close");
|
|
44
|
+
}
|
|
45
|
+
const p = u(null);
|
|
46
|
+
return M(() => {
|
|
47
|
+
var e;
|
|
48
|
+
(e = p.value) == null || e.focus();
|
|
49
|
+
}), (e, t) => (V(), N(R, null, [
|
|
50
|
+
l("h2", null, h(e.title), 1),
|
|
51
|
+
l("form", {
|
|
52
|
+
class: "flex w-full flex-col gap-3",
|
|
53
|
+
onSubmit: I(S, ["prevent"])
|
|
54
|
+
}, [
|
|
55
|
+
l("div", $, [
|
|
56
|
+
G,
|
|
57
|
+
k(l("input", {
|
|
58
|
+
id: "requestname",
|
|
59
|
+
ref_key: "requestInput",
|
|
60
|
+
ref: p,
|
|
61
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => a.value = d),
|
|
62
|
+
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
63
|
+
label: "Request Name",
|
|
64
|
+
placeholder: "Request Name"
|
|
65
|
+
}, null, 512), [
|
|
66
|
+
[E, a.value]
|
|
67
|
+
])
|
|
68
|
+
]),
|
|
69
|
+
l("div", L, [
|
|
70
|
+
l("div", O, [
|
|
71
|
+
s(B, {
|
|
72
|
+
isEditable: !0,
|
|
73
|
+
isSquare: "",
|
|
74
|
+
method: i.value,
|
|
75
|
+
onChange: C
|
|
76
|
+
}, null, 8, ["method"]),
|
|
77
|
+
s(n(T), {
|
|
78
|
+
modelValue: o.value,
|
|
79
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => o.value = d),
|
|
80
|
+
options: f.value
|
|
81
|
+
}, {
|
|
82
|
+
default: c(() => [
|
|
83
|
+
s(n(x), {
|
|
84
|
+
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
85
|
+
variant: "outlined"
|
|
86
|
+
}, {
|
|
87
|
+
default: c(() => [
|
|
88
|
+
l("span", {
|
|
89
|
+
class: F(o.value ? "text-c-1" : "text-c-3")
|
|
90
|
+
}, h(o.value ? o.value.label : "Select Folder"), 3),
|
|
91
|
+
s(n(j), {
|
|
92
|
+
class: "text-c-3",
|
|
93
|
+
icon: "ChevronDown",
|
|
94
|
+
size: "xs"
|
|
95
|
+
})
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
})
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["modelValue", "options"])
|
|
102
|
+
]),
|
|
103
|
+
s(n(x), {
|
|
104
|
+
class: "max-h-8 text-xs p-0 px-3",
|
|
105
|
+
type: "submit"
|
|
106
|
+
}, {
|
|
107
|
+
default: c(() => [
|
|
108
|
+
U(" Create Request ")
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
})
|
|
112
|
+
])
|
|
113
|
+
], 32)
|
|
114
|
+
], 64));
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
export {
|
|
118
|
+
Q as default
|
|
119
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as n, createElementBlock as o, Fragment as i, renderList as s, normalizeClass as c, toDisplayString as a } from "vue";
|
|
2
|
-
const b = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 sticky top-0 z-10 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
|
|
2
|
+
const b = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 sticky top-0 z-10 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs gap-0.5" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
|
|
3
3
|
__name: "ContextBar",
|
|
4
4
|
props: {
|
|
5
5
|
sections: {},
|
|
6
6
|
activeSection: {}
|
|
7
7
|
},
|
|
8
8
|
emits: ["setActiveSection"],
|
|
9
|
-
setup(
|
|
10
|
-
return (t,
|
|
9
|
+
setup(p) {
|
|
10
|
+
return (t, d) => (n(), o("div", b, [
|
|
11
11
|
(n(!0), o(i, null, s(t.sections, (e) => (n(), o("button", {
|
|
12
12
|
key: e,
|
|
13
|
-
class: c(["hover:
|
|
14
|
-
t.activeSection === e ? "bg-b-1 text-c-1 dark:bg-b-3 border hover:bg-b-1" : "border border-transparent"
|
|
13
|
+
class: c(["hover:bg-b-3 w-full rounded px-1 py-1 text-center font-medium", [
|
|
14
|
+
t.activeSection === e ? "!bg-b-1 text-c-1 dark:bg-b-3 border hover:bg-b-1" : "border border-transparent"
|
|
15
15
|
]]),
|
|
16
16
|
isActive: t.activeSection === e,
|
|
17
17
|
type: "button",
|
|
@@ -2,18 +2,18 @@ import { defineComponent as c, openBlock as l, createElementBlock as i, unref as
|
|
|
2
2
|
import m from "../ScreenReader.vue.js";
|
|
3
3
|
import { ScalarIcon as u } from "@scalar/components";
|
|
4
4
|
import { useDarkModeState as f } from "../../hooks/useDarkModeState.js";
|
|
5
|
-
const
|
|
5
|
+
const h = /* @__PURE__ */ c({
|
|
6
6
|
__name: "DarkModeIconToggle",
|
|
7
|
-
setup(
|
|
7
|
+
setup(g) {
|
|
8
8
|
const { toggleDarkMode: t, isDark: n } = f();
|
|
9
|
-
return (
|
|
10
|
-
class: "w-[37px] hover:
|
|
9
|
+
return (k, o) => (l(), i("button", {
|
|
10
|
+
class: "w-[37px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px]",
|
|
11
11
|
type: "button",
|
|
12
12
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
13
13
|
(...a) => e(t) && e(t)(...a))
|
|
14
14
|
}, [
|
|
15
15
|
r(e(u), {
|
|
16
|
-
class: "block h-6 w-6 stroke-[
|
|
16
|
+
class: "block h-6 w-6 stroke-[1.5]",
|
|
17
17
|
icon: "LightDarkModeToggle"
|
|
18
18
|
}),
|
|
19
19
|
r(m, null, {
|
|
@@ -26,5 +26,5 @@ const M = /* @__PURE__ */ c({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
h as default
|
|
30
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableCell.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCell.vue"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAiBpC,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"DataTableCell.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCell.vue"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAiBpC,iBAAS,cAAc;qBAsCM,GAAG;EAc/B;AACD,QAAA,MAAM,eAAe;SAjEZ,MAAM,GAAG,SAAS;;;;SAAlB,MAAM,GAAG,SAAS;;;;QAAlB,MAAM,GAAG,SAAS;MAuEzB,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,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as r, openBlock as t, createBlock as o, resolveDynamicComponent as l, withCtx as a, renderSlot as
|
|
1
|
+
import { defineComponent as r, openBlock as t, createBlock as o, resolveDynamicComponent as l, withCtx as a, renderSlot as n } from "vue";
|
|
2
2
|
const m = /* @__PURE__ */ r({
|
|
3
3
|
__name: "DataTableCell",
|
|
4
4
|
props: {
|
|
5
5
|
is: { default: "td" }
|
|
6
6
|
},
|
|
7
|
-
setup(
|
|
7
|
+
setup(s) {
|
|
8
8
|
return (e, d) => (t(), o(l(e.is), {
|
|
9
|
-
class: "min-h-8 border-l-0 border-t-0 border-b-1/2 border-r-1/2 flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0",
|
|
9
|
+
class: "min-h-8 border-l-0 border-t-0 border-b-1/2 border-r-1/2 flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative min-w-full",
|
|
10
10
|
role: "cell"
|
|
11
11
|
}, {
|
|
12
12
|
default: a(() => [
|
|
13
|
-
|
|
13
|
+
n(e.$slots, "default")
|
|
14
14
|
]),
|
|
15
15
|
_: 3
|
|
16
16
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAyNA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAyNA,iBAAS,cAAc;qBA0MM,GAAG;qBACF,GAAG;kBACN,GAAG;EA4B7B;AACD,QAAA,MAAM,eAAe;SA5SZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;SATP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;cAHD,OAAO;cAFP,OAAO;MA+SpB,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 t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-01e08774"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { defineComponent as $, ref as
|
|
2
|
-
import
|
|
3
|
-
import { ScalarIconButton as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as $, ref as d, computed as x, openBlock as o, createBlock as p, normalizeClass as B, withCtx as q, createElementBlock as r, renderSlot as m, createCommentVNode as s, createElementVNode as f, Fragment as C, mergeProps as S, unref as D, createVNode as _ } from "vue";
|
|
2
|
+
import F from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
|
|
3
|
+
import { ScalarIconButton as I } from "@scalar/components";
|
|
4
|
+
import M from "./DataTableCell.vue.js";
|
|
5
|
+
import O from "./DataTableInputEnumSelect.vue.js";
|
|
6
6
|
const N = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "text-c-2 flex min-w-[100px] items-center border-r-1/2 pl-2 pr-0"
|
|
9
|
-
}, P = ["id", "max", "min", "readOnly", "required", "type", "value"],
|
|
9
|
+
}, P = { class: "row-1" }, E = ["id", "max", "min", "readOnly", "required", "type", "value"], H = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
|
|
12
|
+
}, T = {
|
|
10
13
|
key: 1,
|
|
11
14
|
class: "absolute centered-y right-7 text-orange text-xs"
|
|
12
|
-
},
|
|
15
|
+
}, j = /* @__PURE__ */ $({
|
|
13
16
|
inheritAttrs: !1,
|
|
14
17
|
__name: "DataTableInput",
|
|
15
18
|
props: {
|
|
@@ -24,71 +27,70 @@ const N = {
|
|
|
24
27
|
max: {}
|
|
25
28
|
},
|
|
26
29
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
+
setup(y, { emit: v }) {
|
|
31
|
+
const n = y, l = v, a = d(!0), c = d(""), u = d(!1), w = () => {
|
|
32
|
+
u.value || l("inputBlur");
|
|
30
33
|
}, h = x(
|
|
31
|
-
() =>
|
|
32
|
-
),
|
|
34
|
+
() => n.type === "password" ? a.value ? "password" : "text" : n.type ?? "text"
|
|
35
|
+
), V = (e) => {
|
|
33
36
|
const t = e.target;
|
|
34
|
-
|
|
35
|
-
},
|
|
37
|
+
c.value = t.value, l("update:modelValue", t.value);
|
|
38
|
+
}, g = (e) => {
|
|
36
39
|
l("update:modelValue", e);
|
|
37
40
|
}, k = () => {
|
|
38
|
-
|
|
41
|
+
u.value = !0;
|
|
39
42
|
}, b = () => {
|
|
40
|
-
|
|
43
|
+
u.value = !1;
|
|
41
44
|
};
|
|
42
|
-
return (e, t) => (
|
|
43
|
-
class:
|
|
45
|
+
return (e, t) => (o(), p(M, {
|
|
46
|
+
class: B(["relative row", e.containerClass])
|
|
44
47
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
e.$slots.default ? (
|
|
47
|
-
|
|
48
|
-
])) :
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"relative required after:absolute after:centered-y after:right-0 after:pt-px after:pr-2 after:text-xxs after:font-medium after:text-c-3 after:bg-b-1 after:shadow-[-8px_0_4px_var(--scalar-background-1)] group-has-[:focus]:after:hidden": e.required
|
|
52
|
-
}])
|
|
53
|
-
}, [
|
|
54
|
-
o.enum && o.enum.length ? (a(), d(F, {
|
|
48
|
+
default: q(() => [
|
|
49
|
+
e.$slots.default ? (o(), r("div", N, [
|
|
50
|
+
m(e.$slots, "default", {}, void 0, !0)
|
|
51
|
+
])) : s("", !0),
|
|
52
|
+
f("div", P, [
|
|
53
|
+
n.enum && n.enum.length ? (o(), p(O, {
|
|
55
54
|
key: 0,
|
|
56
|
-
enum:
|
|
57
|
-
modelValue:
|
|
58
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
59
|
-
}, null, 8, ["enum", "modelValue"])) : (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
])
|
|
79
|
-
|
|
80
|
-
|
|
55
|
+
enum: n.enum,
|
|
56
|
+
modelValue: n.modelValue,
|
|
57
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => l("update:modelValue", i))
|
|
58
|
+
}, null, 8, ["enum", "modelValue"])) : (o(), r(C, { key: 1 }, [
|
|
59
|
+
f("input", S(e.$attrs, {
|
|
60
|
+
id: e.id,
|
|
61
|
+
autocomplete: "off",
|
|
62
|
+
class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full peer px-2 py-1.5 outline-none",
|
|
63
|
+
"data-1p-ignore": "",
|
|
64
|
+
max: e.max,
|
|
65
|
+
min: e.min,
|
|
66
|
+
readOnly: e.readOnly,
|
|
67
|
+
required: e.required,
|
|
68
|
+
spellcheck: "false",
|
|
69
|
+
type: h.value,
|
|
70
|
+
value: e.modelValue,
|
|
71
|
+
onBlur: w,
|
|
72
|
+
onFocus: t[1] || (t[1] = (i) => l("inputFocus")),
|
|
73
|
+
onInput: V
|
|
74
|
+
}), null, 16, E),
|
|
75
|
+
e.required ? (o(), r("div", H, " Required ")) : s("", !0)
|
|
76
|
+
], 64))
|
|
77
|
+
]),
|
|
78
|
+
e.$slots.warning ? (o(), r("div", T, [
|
|
79
|
+
m(e.$slots, "warning", {}, void 0, !0)
|
|
80
|
+
])) : s("", !0),
|
|
81
|
+
m(e.$slots, "icon", {}, void 0, !0),
|
|
82
|
+
e.type === "password" ? (o(), p(D(I), {
|
|
81
83
|
key: 2,
|
|
82
84
|
class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
|
|
83
|
-
icon:
|
|
84
|
-
label:
|
|
85
|
-
onClick: t[2] || (t[2] = (
|
|
86
|
-
}, null, 8, ["icon", "label"])) :
|
|
87
|
-
|
|
88
|
-
query:
|
|
85
|
+
icon: a.value ? "Show" : "Hide",
|
|
86
|
+
label: a.value ? "Show Password" : "Hide Password",
|
|
87
|
+
onClick: t[2] || (t[2] = (i) => a.value = !a.value)
|
|
88
|
+
}, null, 8, ["icon", "label"])) : s("", !0),
|
|
89
|
+
_(F, {
|
|
90
|
+
query: c.value,
|
|
89
91
|
onMousedown: k,
|
|
90
92
|
onMouseup: b,
|
|
91
|
-
onSelect:
|
|
93
|
+
onSelect: g
|
|
92
94
|
}, null, 8, ["query"])
|
|
93
95
|
]),
|
|
94
96
|
_: 3
|
|
@@ -96,5 +98,5 @@ const N = {
|
|
|
96
98
|
}
|
|
97
99
|
});
|
|
98
100
|
export {
|
|
99
|
-
|
|
101
|
+
j as default
|
|
100
102
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInputEnumSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputEnumSelect.vue"],"names":[],"mappings":";gBA+Hc,MAAM,GAAG,MAAM;WACpB,MAAM,EAAE;;;;gBADH,MAAM,GAAG,MAAM;WACpB,MAAM,EAAE;;;;
|
|
1
|
+
{"version":3,"file":"DataTableInputEnumSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputEnumSelect.vue"],"names":[],"mappings":";gBA+Hc,MAAM,GAAG,MAAM;WACpB,MAAM,EAAE;;;;gBADH,MAAM,GAAG,MAAM;WACpB,MAAM,EAAE;;;;AA8SjB,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"}
|
|
@@ -45,7 +45,7 @@ const M = { class: "w-full" }, U = { class: "flex items-center justify-center h-
|
|
|
45
45
|
default: u(() => [
|
|
46
46
|
i("div", {
|
|
47
47
|
class: T([
|
|
48
|
-
"flex items-center justify-center rounded-full p-[3px] group-hover/item:shadow-border",
|
|
48
|
+
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
49
49
|
S(e) ? "bg-blue text-b-1" : "text-transparent"
|
|
50
50
|
])
|
|
51
51
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AAyBA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAa1D,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AAyBA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAa1D,iBAAS,cAAc;qBAwDO,GAAG;EAehC;AACD,QAAA,MAAM,eAAe;UAlFb,SAAS,CAAC,MAAM,CAAC;UACjB,MAAM;aACH,OAAO;;UAFV,SAAS,CAAC,MAAM,CAAC;UACjB,MAAM;aACH,OAAO;aAsFhB,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 t, resolveComponent as n, openBlock as r, createBlock as
|
|
1
|
+
import { defineComponent as t, resolveComponent as n, openBlock as r, createBlock as a, normalizeClass as s, withCtx as c, createVNode as l, unref as i, createElementVNode as p, renderSlot as u } from "vue";
|
|
2
2
|
import { ScalarIcon as m } from "@scalar/components";
|
|
3
3
|
const d = { class: "sr-only" }, k = /* @__PURE__ */ t({
|
|
4
4
|
__name: "SideNavLink",
|
|
@@ -10,9 +10,9 @@ const d = { class: "sr-only" }, k = /* @__PURE__ */ t({
|
|
|
10
10
|
setup(f) {
|
|
11
11
|
return (e, _) => {
|
|
12
12
|
const o = n("router-link");
|
|
13
|
-
return r(),
|
|
13
|
+
return r(), a(o, {
|
|
14
14
|
activeClass: "active-link",
|
|
15
|
-
class:
|
|
15
|
+
class: s(["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 }]),
|
|
16
16
|
to: e.path
|
|
17
17
|
}, {
|
|
18
18
|
default: c(() => [
|
|
@@ -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":";AA+NA,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-d4581e27"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|