@scalar/api-client 2.2.37 → 2.2.38
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 +39 -0
- 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 +107 -116
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +95 -75
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts +5 -1
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +92 -86
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +7 -10
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServerItem.vue.js +5 -52
- package/dist/components/AddressBar/AddressBarServerItem.vue2.js +75 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts +2 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +72 -64
- package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +1 -0
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +83 -51
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +22 -21
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +14 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -0
- package/dist/components/Server/ServerVariablesForm.vue.js +47 -0
- package/dist/components/Server/ServerVariablesForm.vue2.js +4 -0
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts +12 -0
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -0
- package/dist/components/Server/ServerVariablesSelect.vue.js +54 -0
- package/dist/components/Server/ServerVariablesSelect.vue2.js +4 -0
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +11 -0
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -0
- package/dist/components/Server/ServerVariablesTextbox.vue.js +29 -0
- package/dist/components/Server/ServerVariablesTextbox.vue2.js +4 -0
- package/dist/components/Server/types.d.ts +9 -0
- package/dist/components/Server/types.d.ts.map +1 -0
- package/dist/components/SideNav/SideHelp.vue.js +16 -16
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +11 -10
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue2.js +10 -9
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +95 -26
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +190 -52
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +95 -26
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +106 -32
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +86 -81
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/importers/curl.js +4 -4
- package/dist/store/active-entities.d.ts +13 -4
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +52 -2
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +2 -2
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/servers.d.ts +40 -20
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/store.d.ts +95 -28
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +51 -53
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +1 -1
- package/dist/views/Environment/Environment.vue2.js +1 -1
- 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 +88 -89
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +87 -88
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +16 -17
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +57 -74
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +39 -38
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +8 -7
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +5 -5
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +143 -143
- 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 +71 -71
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +27 -27
- package/dist/views/Request/handle-drag.d.ts +1 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.js +27 -26
- package/dist/views/Request/hooks/useOpenApiWatcher.js +1 -1
- package/dist/views/Request/libs/{live-sync.d.ts → watch-mode.d.ts} +1 -1
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -0
- package/dist/views/Request/libs/{live-sync.js → watch-mode.js} +6 -6
- package/dist/views/Servers/Servers.vue2.js +29 -29
- package/package.json +14 -14
- package/dist/views/Request/libs/live-sync.d.ts.map +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent as h, openBlock as o, createElementBlock as m, Fragment as k, renderList as y, createElementVNode as C, toDisplayString as V, createBlock as v, createCommentVNode as _ } from "vue";
|
|
2
|
+
import S from "./ServerVariablesSelect.vue.js";
|
|
3
|
+
import B from "./ServerVariablesTextbox.vue.js";
|
|
4
|
+
const j = { class: "flex items-center pl-3 py-1.5 after:content-[':'] mr-1.5 group-has-[input]/label:mr-0" }, O = /* @__PURE__ */ h({
|
|
5
|
+
__name: "ServerVariablesForm",
|
|
6
|
+
props: {
|
|
7
|
+
variables: {},
|
|
8
|
+
values: {},
|
|
9
|
+
controls: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:variable"],
|
|
12
|
+
setup(f, { emit: g }) {
|
|
13
|
+
const n = f, d = g;
|
|
14
|
+
function s(e, l) {
|
|
15
|
+
d("update:variable", e, l);
|
|
16
|
+
}
|
|
17
|
+
const i = (e) => {
|
|
18
|
+
var l, r, t;
|
|
19
|
+
return (((l = n.values) == null ? void 0 : l[e]) ?? ((t = (r = n.variables) == null ? void 0 : r[e]) == null ? void 0 : t.default) ?? "").toString();
|
|
20
|
+
};
|
|
21
|
+
return (e, l) => e.variables && Object.keys(e.variables ?? {}).length ? (o(!0), m(k, { key: 0 }, y(Object.keys(e.variables), (r) => {
|
|
22
|
+
var t, u, c, p, b;
|
|
23
|
+
return o(), m("label", {
|
|
24
|
+
key: r,
|
|
25
|
+
class: "group/label flex w-full"
|
|
26
|
+
}, [
|
|
27
|
+
C("span", j, V(r), 1),
|
|
28
|
+
(c = (u = (t = e.variables) == null ? void 0 : t[r]) == null ? void 0 : u.enum) != null && c.length ? (o(), v(S, {
|
|
29
|
+
key: 0,
|
|
30
|
+
controls: e.controls,
|
|
31
|
+
enum: ((b = (p = e.variables[r]) == null ? void 0 : p.enum) == null ? void 0 : b.map((a) => String(a))) ?? [],
|
|
32
|
+
label: r,
|
|
33
|
+
value: i(r),
|
|
34
|
+
onChange: (a) => s(r, a)
|
|
35
|
+
}, null, 8, ["controls", "enum", "label", "value", "onChange"])) : (o(), v(B, {
|
|
36
|
+
key: 1,
|
|
37
|
+
controls: e.controls,
|
|
38
|
+
value: i(r),
|
|
39
|
+
onChange: (a) => s(r, a)
|
|
40
|
+
}, null, 8, ["controls", "value", "onChange"]))
|
|
41
|
+
]);
|
|
42
|
+
}), 128)) : _("", !0);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
O as default
|
|
47
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
enum: string[];
|
|
3
|
+
value: string;
|
|
4
|
+
controls?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
change: (v: string) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onChange?: ((v: string) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=ServerVariablesSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerVariablesSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerVariablesSelect.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;;;;;;AA6GF,wBAQG"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent as v, computed as s, openBlock as r, createBlock as f, unref as a, withCtx as c, createVNode as i, createElementVNode as S, normalizeClass as V, createElementBlock as h, createCommentVNode as g, createTextVNode as C, toDisplayString as k } from "vue";
|
|
2
|
+
import { ScalarListbox as y, ScalarButton as B, ScalarIcon as N } from "@scalar/components";
|
|
3
|
+
const _ = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "sr-only"
|
|
6
|
+
}, x = /* @__PURE__ */ v({
|
|
7
|
+
__name: "ServerVariablesSelect",
|
|
8
|
+
props: {
|
|
9
|
+
enum: {},
|
|
10
|
+
value: {},
|
|
11
|
+
controls: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["change"],
|
|
14
|
+
setup(u, { emit: m }) {
|
|
15
|
+
const o = u, d = m, t = s(
|
|
16
|
+
() => o.enum.map((e) => ({ id: e, label: e }))
|
|
17
|
+
), l = s({
|
|
18
|
+
get: () => t.value.find((e) => e.id === o.value),
|
|
19
|
+
set: (e) => d("change", (e == null ? void 0 : e.id) ?? "")
|
|
20
|
+
});
|
|
21
|
+
return (e, n) => (r(), f(a(y), {
|
|
22
|
+
modelValue: l.value,
|
|
23
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => l.value = p),
|
|
24
|
+
options: t.value
|
|
25
|
+
}, {
|
|
26
|
+
default: c(() => [
|
|
27
|
+
i(a(B), {
|
|
28
|
+
"aria-controls": e.controls,
|
|
29
|
+
class: "h-8 p-0 py-1.5 w-full font-normal",
|
|
30
|
+
variant: "ghost"
|
|
31
|
+
}, {
|
|
32
|
+
default: c(() => [
|
|
33
|
+
S("span", {
|
|
34
|
+
class: V({ "text-c-1": e.value })
|
|
35
|
+
}, [
|
|
36
|
+
e.value ? (r(), h("span", _, " Selected: ")) : g("", !0),
|
|
37
|
+
C(" " + k(e.value || "Select value"), 1)
|
|
38
|
+
], 2),
|
|
39
|
+
i(a(N), {
|
|
40
|
+
class: "ml-1",
|
|
41
|
+
icon: "ChevronDown",
|
|
42
|
+
size: "sm"
|
|
43
|
+
})
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
}, 8, ["aria-controls"])
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["modelValue", "options"]));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
x as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: string;
|
|
3
|
+
controls?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
change: (v: string) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onChange?: ((v: string) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLInputElement>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=ServerVariablesTextbox.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerVariablesTextbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerVariablesTextbox.vue"],"names":[],"mappings":"AAiCA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;;;;;;AAuEF,wBAQG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as c, computed as p, withDirectives as u, openBlock as i, createElementBlock as m, vModelText as d } from "vue";
|
|
2
|
+
const f = ["aria-controls"], x = /* @__PURE__ */ c({
|
|
3
|
+
__name: "ServerVariablesTextbox",
|
|
4
|
+
props: {
|
|
5
|
+
value: {},
|
|
6
|
+
controls: {}
|
|
7
|
+
},
|
|
8
|
+
emits: ["change"],
|
|
9
|
+
setup(l, { emit: n }) {
|
|
10
|
+
const a = l, r = n, t = p({
|
|
11
|
+
get: () => a.value,
|
|
12
|
+
set: (e) => r("change", e)
|
|
13
|
+
});
|
|
14
|
+
return (e, o) => u((i(), m("input", {
|
|
15
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
|
|
16
|
+
"aria-controls": e.controls,
|
|
17
|
+
autocomplete: "off",
|
|
18
|
+
class: "px-1.5 text-c-1 border-transparent -outline-offset-1 w-full",
|
|
19
|
+
placeholder: "value",
|
|
20
|
+
spellcheck: "false",
|
|
21
|
+
type: "text"
|
|
22
|
+
}, null, 8, f)), [
|
|
23
|
+
[d, t.value]
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
x as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
+
export type ServerVariables = {
|
|
3
|
+
[variable: string]: ServerVariable;
|
|
4
|
+
};
|
|
5
|
+
export type ServerVariableValues = {
|
|
6
|
+
[variable: string]: string;
|
|
7
|
+
};
|
|
8
|
+
export type ServerVariable = OpenAPIV3.ServerVariableObject | OpenAPIV3_1.ServerVariableObject;
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnE,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,cAAc,GACtB,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,oBAAoB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, openBlock as r, createBlock as c, unref as s, withCtx as n, createElementVNode as e, createVNode as l, createTextVNode as d } from "vue";
|
|
2
|
-
import { ScalarDropdown as u, ScalarDropdownItem as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
2
|
+
import { ScalarDropdown as u, ScalarDropdownItem as o, ScalarIcon as a } from "@scalar/components";
|
|
3
|
+
import p from "./SideNavLink.vue.js";
|
|
4
|
+
const f = {
|
|
5
5
|
class: "no-underline block",
|
|
6
6
|
href: "https://discord.gg/scalar",
|
|
7
7
|
target: "_blank"
|
|
@@ -11,7 +11,7 @@ const p = {
|
|
|
11
11
|
target: "_blank"
|
|
12
12
|
}, _ = { class: "flex items-center justify-center" }, g = {
|
|
13
13
|
class: "no-underline block",
|
|
14
|
-
href: "mailto:
|
|
14
|
+
href: "mailto:support@scalar.com",
|
|
15
15
|
target: "_blank"
|
|
16
16
|
}, b = { class: "flex items-center justify-center" }, k = {
|
|
17
17
|
class: "no-underline block",
|
|
@@ -30,11 +30,11 @@ const p = {
|
|
|
30
30
|
}, {
|
|
31
31
|
items: n(() => [
|
|
32
32
|
t[6] || (t[6] = e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 font-medium" }, "Support", -1)),
|
|
33
|
-
e("a",
|
|
34
|
-
l(s(
|
|
33
|
+
e("a", f, [
|
|
34
|
+
l(s(o), { class: "flex items-center gap-1.5 w-full" }, {
|
|
35
35
|
default: n(() => [
|
|
36
36
|
e("div", m, [
|
|
37
|
-
l(s(
|
|
37
|
+
l(s(a), {
|
|
38
38
|
icon: "DiscordLine",
|
|
39
39
|
size: "xs",
|
|
40
40
|
thickness: "1.75"
|
|
@@ -46,10 +46,10 @@ const p = {
|
|
|
46
46
|
})
|
|
47
47
|
]),
|
|
48
48
|
e("a", x, [
|
|
49
|
-
l(s(
|
|
49
|
+
l(s(o), { class: "flex items-center gap-1.5 w-full" }, {
|
|
50
50
|
default: n(() => [
|
|
51
51
|
e("div", _, [
|
|
52
|
-
l(s(
|
|
52
|
+
l(s(a), {
|
|
53
53
|
icon: "GitHubLine",
|
|
54
54
|
size: "xs",
|
|
55
55
|
thickness: "1.75"
|
|
@@ -61,10 +61,10 @@ const p = {
|
|
|
61
61
|
})
|
|
62
62
|
]),
|
|
63
63
|
e("a", g, [
|
|
64
|
-
l(s(
|
|
64
|
+
l(s(o), { class: "flex items-center gap-1.5 w-full" }, {
|
|
65
65
|
default: n(() => [
|
|
66
66
|
e("div", b, [
|
|
67
|
-
l(s(
|
|
67
|
+
l(s(a), {
|
|
68
68
|
icon: "Email",
|
|
69
69
|
size: "xs"
|
|
70
70
|
})
|
|
@@ -76,10 +76,10 @@ const p = {
|
|
|
76
76
|
]),
|
|
77
77
|
t[7] || (t[7] = e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 font-medium" }, "Product", -1)),
|
|
78
78
|
e("a", k, [
|
|
79
|
-
l(s(
|
|
79
|
+
l(s(o), { class: "flex items-center gap-1.5 w-full" }, {
|
|
80
80
|
default: n(() => [
|
|
81
81
|
e("div", h, [
|
|
82
|
-
l(s(
|
|
82
|
+
l(s(a), {
|
|
83
83
|
icon: "Changelog",
|
|
84
84
|
size: "xs",
|
|
85
85
|
thickness: "1.75"
|
|
@@ -91,10 +91,10 @@ const p = {
|
|
|
91
91
|
})
|
|
92
92
|
]),
|
|
93
93
|
e("a", w, [
|
|
94
|
-
l(s(
|
|
94
|
+
l(s(o), { class: "flex items-center gap-1.5 w-full" }, {
|
|
95
95
|
default: n(() => [
|
|
96
96
|
e("div", y, [
|
|
97
|
-
l(s(
|
|
97
|
+
l(s(a), {
|
|
98
98
|
icon: "Roadmap",
|
|
99
99
|
size: "xs",
|
|
100
100
|
thickness: "1.75"
|
|
@@ -107,7 +107,7 @@ const p = {
|
|
|
107
107
|
])
|
|
108
108
|
]),
|
|
109
109
|
default: n(() => [
|
|
110
|
-
l(
|
|
110
|
+
l(p, {
|
|
111
111
|
is: "button",
|
|
112
112
|
icon: "Help",
|
|
113
113
|
type: "button"
|
|
@@ -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":"AAmJA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AA+DJ,iBAAS,cAAc;WAmHT,OAAO,IAA6B;;wBAZtB,GAAG;wBACH,GAAG;wBAEH,GAAG;yBADF,GAAG;;;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;mBAxMD,OAAO;qFAgNzB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,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
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f2016488"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as S, ref as g, withDirectives as D, openBlock as l, createElementBlock as m, normalizeClass as h, normalizeStyle as
|
|
1
|
+
import { defineComponent as S, ref as g, withDirectives as D, openBlock as l, createElementBlock as m, normalizeClass as h, normalizeStyle as L, unref as s, renderSlot as n, createElementVNode as r, toDisplayString as _, createCommentVNode as u, Fragment as W, vShow as $ } from "vue";
|
|
2
2
|
import { useBreakpoints as z } from "@scalar/use-hooks/useBreakpoints";
|
|
3
3
|
import { useWorkspace as B } from "../../store/store.js";
|
|
4
|
-
|
|
4
|
+
import { useLayout as C } from "../../hooks/useLayout.js";
|
|
5
|
+
const I = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "min-h-12 xl:min-h-client-header flex items-center justify-between px-3 py-1.5 md:px-[18px] md:py-2.5 text-sm"
|
|
7
|
-
},
|
|
8
|
+
}, X = { class: "font-medium m-0 text-sm whitespace-nowrap" }, N = { class: "relative z-10 pt-0 md:px-2.5 md:pb-2.5 sticky bottom-0 w-[inherit] has-[.empty-sidebar-item]:border-t-1/2" }, F = /* @__PURE__ */ S({
|
|
8
9
|
__name: "Sidebar",
|
|
9
10
|
props: {
|
|
10
11
|
title: {},
|
|
11
12
|
isSidebarOpen: { type: Boolean, default: !0 }
|
|
12
13
|
},
|
|
13
14
|
setup(y) {
|
|
14
|
-
const w = y, {
|
|
15
|
+
const w = y, { sidebarWidth: o, setSidebarWidth: i } = B(), { layout: c } = C(), a = g(!1), p = g(null), { breakpoints: d } = z(), x = (e) => {
|
|
15
16
|
e.preventDefault();
|
|
16
17
|
const f = e.clientX, k = parseInt(
|
|
17
18
|
getComputedStyle(p.value).width || o.value,
|
|
@@ -29,22 +30,22 @@ const C = {
|
|
|
29
30
|
ref_key: "sidebarRef",
|
|
30
31
|
ref: p,
|
|
31
32
|
class: h(["sidebar overflow-hidden relative flex flex-col flex-1 md:flex-none bg-b-1 md:border-b-0 md:border-r-1/2 min-w-full md:min-w-fit leading-3", { dragging: a.value }]),
|
|
32
|
-
style:
|
|
33
|
+
style: L({ width: s(d).lg ? s(o) : "100%" })
|
|
33
34
|
}, [
|
|
34
35
|
n(e.$slots, "header", {}, void 0, !0),
|
|
35
|
-
|
|
36
|
-
r("h2",
|
|
36
|
+
s(c) !== "modal" && e.title ? (l(), m("div", I, [
|
|
37
|
+
r("h2", X, _(e.title), 1),
|
|
37
38
|
s(d).lg ? u("", !0) : n(e.$slots, "button", { key: 0 }, void 0, !0)
|
|
38
39
|
])) : u("", !0),
|
|
39
40
|
r("div", {
|
|
40
41
|
class: h(["custom-scroll sidebar-height pb-0 md:pb-[37px] w-[inherit]", {
|
|
41
|
-
"sidebar-mask":
|
|
42
|
+
"sidebar-mask": s(c) !== "modal"
|
|
42
43
|
}])
|
|
43
44
|
}, [
|
|
44
45
|
n(e.$slots, "content", {}, void 0, !0)
|
|
45
46
|
], 2),
|
|
46
47
|
s(d).lg ? (l(), m(W, { key: 1 }, [
|
|
47
|
-
r("div",
|
|
48
|
+
r("div", N, [
|
|
48
49
|
n(e.$slots, "button", {}, void 0, !0)
|
|
49
50
|
]),
|
|
50
51
|
r("div", {
|
|
@@ -58,5 +59,5 @@ const C = {
|
|
|
58
59
|
}
|
|
59
60
|
});
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
F as default
|
|
62
63
|
};
|
|
@@ -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":"AAsHA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,oBAAoB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAA;QACX,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS,CAAA;CAC5C,CAAC;;;;;;;;;;AAyNF,wBAQG"}
|
|
@@ -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 m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-85afbcc4"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -16,14 +16,14 @@ const A = { class: "empty-variable-name text-sm line-clamp-1 break-all group-hov
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["delete", "colorModal", "rename"],
|
|
18
18
|
setup(b, { emit: v }) {
|
|
19
|
-
const k = b, r = v, y = V(), { activeWorkspace: t } = S(), f = (e, a,
|
|
20
|
-
var
|
|
19
|
+
const k = b, r = v, y = V(), { activeWorkspace: t } = S(), f = (e, a, i) => {
|
|
20
|
+
var n;
|
|
21
21
|
const o = {
|
|
22
|
-
workspaceId: (
|
|
22
|
+
workspaceId: (n = t.value) == null ? void 0 : n.uid,
|
|
23
23
|
type: k.type,
|
|
24
|
-
collectionId:
|
|
24
|
+
collectionId: i || void 0,
|
|
25
25
|
uid: a
|
|
26
|
-
}, l =
|
|
26
|
+
}, l = i ? `/workspace/${o.workspaceId}/${o.type}/${o.collectionId}/${o.uid}` : `/workspace/${o.workspaceId}/${o.type}/${o.uid}`;
|
|
27
27
|
e.metaKey ? window.open(l, "_blank") : y.push({ path: l });
|
|
28
28
|
}, g = (e) => {
|
|
29
29
|
r("delete", e);
|
|
@@ -34,20 +34,21 @@ const A = { class: "empty-variable-name text-sm line-clamp-1 break-all group-hov
|
|
|
34
34
|
};
|
|
35
35
|
return (e, a) => {
|
|
36
36
|
var o, l;
|
|
37
|
-
const
|
|
37
|
+
const i = h("router-link");
|
|
38
38
|
return s(), c("li", null, [
|
|
39
|
-
d(
|
|
39
|
+
d(i, {
|
|
40
40
|
class: D(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-1.5"]]),
|
|
41
41
|
exactActiveClass: "active-link",
|
|
42
|
+
role: "button",
|
|
42
43
|
to: e.collectionId ? `/workspace/${(o = p(t)) == null ? void 0 : o.uid}/${e.type}/${e.collectionId}/${e.variable.uid}` : `/workspace/${(l = p(t)) == null ? void 0 : l.uid}/${e.type}/${e.variable.uid}`,
|
|
43
|
-
onClick: a[1] || (a[1] = I((
|
|
44
|
+
onClick: a[1] || (a[1] = I((n) => f(n, e.variable.uid, e.collectionId), ["prevent"]))
|
|
44
45
|
}, {
|
|
45
46
|
default: M(() => [
|
|
46
47
|
e.variable.color ? (s(), c("button", {
|
|
47
48
|
key: 0,
|
|
48
49
|
class: "hover:bg-b-3 rounded p-1.5",
|
|
49
50
|
type: "button",
|
|
50
|
-
onClick: a[0] || (a[0] = (
|
|
51
|
+
onClick: a[0] || (a[0] = (n) => w(e.variable.uid))
|
|
51
52
|
}, [
|
|
52
53
|
m("div", {
|
|
53
54
|
class: "h-2.5 w-2.5 rounded-xl",
|
|
@@ -21,9 +21,9 @@ declare function __VLS_template(): {
|
|
|
21
21
|
};
|
|
22
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
23
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
24
|
+
layout: "client" | "reference";
|
|
24
25
|
defaultOpen: boolean;
|
|
25
26
|
itemCount: number;
|
|
26
|
-
layout: "client" | "reference";
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
29
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAwEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAoBJ,iBAAS,cAAc;WAwJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;
|
|
1
|
+
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAwEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAoBJ,iBAAS,cAAc;WAwJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAhMR,QAAQ,GAAG,WAAW;iBAFjB,OAAO;eACT,MAAM;6EAyMpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|