@scalar/api-client 2.1.7 → 2.1.9
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 +28 -0
- package/dist/assets/rabbit.ascii.js +11 -0
- package/dist/assets/rabbitjump.ascii.js +11 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +48 -21
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +22 -13
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/IconSelector.vue.d.ts +35 -0
- package/dist/components/IconSelector.vue.d.ts.map +1 -0
- package/dist/components/IconSelector.vue.js +74 -0
- package/dist/components/IconSelector.vue2.js +4 -0
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.js +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +10 -10
- package/dist/components/SideNav/SideHelp.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue2.js +19 -22
- package/dist/components/SideNav/SideNavLink.vue.d.ts +0 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +19 -21
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +24 -0
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +58 -0
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue2.js +4 -0
- package/dist/components/Sidebar/Actions/{RenameSidebarListElement.vue.d.ts → EditSidebarListElement.vue.d.ts} +3 -3
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/Actions/{RenameSidebarListElement.vue.js → EditSidebarListElement.vue.js} +9 -9
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue2.js +4 -0
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- 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 +24 -26
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +34 -22
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +68 -44
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +19 -17
- package/dist/libs/create-client.d.ts +39 -38
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +1 -1
- package/dist/store/collections.d.ts +14 -4
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +3 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +34 -26
- package/dist/store/request-example.d.ts +2 -2
- package/dist/store/requests.d.ts +2 -2
- package/dist/store/security-schemes.d.ts +4 -4
- package/dist/store/store.d.ts +68 -44
- package/dist/store/store.d.ts.map +1 -1
- 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 +74 -80
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +86 -92
- 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 +26 -26
- 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 +88 -80
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +45 -45
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +135 -113
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +94 -91
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +93 -79
- 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 +8 -5
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +33 -33
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +109 -95
- package/dist/views/Request/types/sidebar-item.d.ts +2 -1
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +48 -54
- package/package.json +9 -12
- package/dist/components/Search/SearchButton.vue.d.ts +0 -7
- package/dist/components/Search/SearchButton.vue.d.ts.map +0 -1
- package/dist/components/Search/SearchModal.vue.d.ts +0 -17
- package/dist/components/Search/SearchModal.vue.d.ts.map +0 -1
- package/dist/components/Search/SearchModal.vue.js +0 -7
- package/dist/components/Search/SearchModal.vue2.js +0 -142
- package/dist/components/Search/index.d.ts +0 -3
- package/dist/components/Search/index.d.ts.map +0 -1
- package/dist/components/Search/index.js +0 -4
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.js +0 -31
- package/dist/components/SideNav/WorkspaceProfileIcon.vue3.js +0 -5
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue2.js +0 -4
- package/dist/components/SubpageHeader.vue.js +0 -7
- package/dist/components/SubpageHeader.vue2.js +0 -34
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
import { defineComponent as a, resolveComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { useWorkspace as
|
|
5
|
-
const k = { class: "
|
|
1
|
+
import { defineComponent as a, resolveComponent as c, openBlock as s, createBlock as i, unref as o, withCtx as l, createElementVNode as t, normalizeClass as p, createVNode as u, renderSlot as m } from "vue";
|
|
2
|
+
import { ScalarIcon as d } from "@scalar/components";
|
|
3
|
+
import { useRouter as f } from "vue-router";
|
|
4
|
+
import { useWorkspace as v } from "../../store/store.js";
|
|
5
|
+
const k = { class: "sr-only" }, w = /* @__PURE__ */ a({
|
|
6
6
|
__name: "SideNavLink",
|
|
7
7
|
props: {
|
|
8
8
|
icon: {},
|
|
9
9
|
name: {},
|
|
10
|
-
prettyName: {},
|
|
11
10
|
active: { type: Boolean }
|
|
12
11
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const { activeWorkspace: n } =
|
|
15
|
-
return
|
|
16
|
-
const r =
|
|
17
|
-
return
|
|
12
|
+
setup(_) {
|
|
13
|
+
const { activeWorkspace: n } = v();
|
|
14
|
+
return f(), (e, x) => {
|
|
15
|
+
const r = c("router-link");
|
|
16
|
+
return s(), i(r, {
|
|
18
17
|
activeClass: "active-link",
|
|
19
18
|
class: "flex flex-col items-center gap-1 group no-underline",
|
|
20
|
-
to: `/workspace/${
|
|
19
|
+
to: `/workspace/${o(n).uid}/${e.name}/default`
|
|
21
20
|
}, {
|
|
22
|
-
default:
|
|
23
|
-
|
|
24
|
-
class:
|
|
25
|
-
"bg-b-
|
|
21
|
+
default: l(() => [
|
|
22
|
+
t("div", {
|
|
23
|
+
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
|
+
"bg-b-2 transition-none group-hover:cursor-auto !text-c-1": e.active
|
|
26
25
|
}])
|
|
27
26
|
}, [
|
|
28
|
-
|
|
27
|
+
u(o(d), {
|
|
29
28
|
icon: e.icon,
|
|
30
29
|
thickness: "1.5"
|
|
31
30
|
}, null, 8, ["icon"])
|
|
32
31
|
], 2),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
d(e.$slots, "default")
|
|
32
|
+
t("span", k, [
|
|
33
|
+
m(e.$slots, "default")
|
|
36
34
|
])
|
|
37
35
|
]),
|
|
38
36
|
_: 3
|
|
@@ -41,5 +39,5 @@ const k = { class: "no-underline font-medium text-[11px] hidden scalar-app-show
|
|
|
41
39
|
}
|
|
42
40
|
});
|
|
43
41
|
export {
|
|
44
|
-
|
|
42
|
+
w as default
|
|
45
43
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
name: string;
|
|
3
|
+
icon: string;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
close: () => void;
|
|
6
|
+
edit: (newName: string, newIcon: string) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
8
|
+
name: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
}>>> & {
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
onEdit?: ((newName: string, newIcon: string) => any) | undefined;
|
|
13
|
+
}, {}, {}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToOption<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=EditSidebarListCollection.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditSidebarListCollection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/EditSidebarListCollection.vue"],"names":[],"mappings":";UAwDQ,MAAM;UACN,MAAM;;;;;UADN,MAAM;UACN,MAAM;;;;;AA+Jd,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,58 @@
|
|
|
1
|
+
import { defineComponent as p, ref as m, openBlock as f, createBlock as v, withCtx as n, createElementVNode as u, createVNode as l, unref as s } from "vue";
|
|
2
|
+
import x from "../../IconSelector.vue.js";
|
|
3
|
+
import V from "./SidebarListElementForm.vue.js";
|
|
4
|
+
import { ScalarButton as _, ScalarTextField as b } from "@scalar/components";
|
|
5
|
+
import { LibraryIcon as S } from "@scalar/icons";
|
|
6
|
+
const C = { class: "grid gap-2 grid-cols-[auto,1fr]" }, g = { class: "flex aspect-square" }, k = /* @__PURE__ */ p({
|
|
7
|
+
__name: "EditSidebarListCollection",
|
|
8
|
+
props: {
|
|
9
|
+
name: {},
|
|
10
|
+
icon: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["close", "edit"],
|
|
13
|
+
setup(d, { emit: c }) {
|
|
14
|
+
const r = d, i = c, a = m(r.name), o = m(r.icon);
|
|
15
|
+
return (w, e) => (f(), v(V, {
|
|
16
|
+
onCancel: e[2] || (e[2] = (t) => i("close")),
|
|
17
|
+
onSubmit: e[3] || (e[3] = (t) => i("edit", a.value, o.value))
|
|
18
|
+
}, {
|
|
19
|
+
default: n(() => [
|
|
20
|
+
u("div", C, [
|
|
21
|
+
u("div", g, [
|
|
22
|
+
l(x, {
|
|
23
|
+
modelValue: o.value,
|
|
24
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => o.value = t),
|
|
25
|
+
placement: "bottom-start"
|
|
26
|
+
}, {
|
|
27
|
+
default: n(() => [
|
|
28
|
+
l(s(_), {
|
|
29
|
+
class: "aspect-square px-0 h-auto",
|
|
30
|
+
variant: "outlined"
|
|
31
|
+
}, {
|
|
32
|
+
default: n(() => [
|
|
33
|
+
l(s(S), {
|
|
34
|
+
class: "size-4 text-c-2",
|
|
35
|
+
src: o.value
|
|
36
|
+
}, null, 8, ["src"])
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
})
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["modelValue"])
|
|
43
|
+
]),
|
|
44
|
+
l(s(b), {
|
|
45
|
+
modelValue: a.value,
|
|
46
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => a.value = t),
|
|
47
|
+
autofocus: "",
|
|
48
|
+
class: "flex-1"
|
|
49
|
+
}, null, 8, ["modelValue"])
|
|
50
|
+
])
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
k as default
|
|
58
|
+
};
|
|
@@ -2,12 +2,12 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
2
2
|
name: string;
|
|
3
3
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
4
|
close: () => void;
|
|
5
|
-
|
|
5
|
+
edit: (newName: string) => void;
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
7
7
|
name: string;
|
|
8
8
|
}>>> & {
|
|
9
9
|
onClose?: (() => any) | undefined;
|
|
10
|
-
|
|
10
|
+
onEdit?: ((newName: string) => any) | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
12
12
|
export default _default;
|
|
13
13
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -19,4 +19,4 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=EditSidebarListElement.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditSidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/EditSidebarListElement.vue"],"names":[],"mappings":";UAkCQ,MAAM;;;;;UAAN,MAAM;;;;;AAyGd,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,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as a, ref as
|
|
1
|
+
import { defineComponent as a, ref as i, openBlock as u, createBlock as s, withCtx as d, createVNode as p, unref as f } from "vue";
|
|
2
2
|
import c from "./SidebarListElementForm.vue.js";
|
|
3
3
|
import { ScalarTextField as v } from "@scalar/components";
|
|
4
4
|
const C = /* @__PURE__ */ a({
|
|
5
|
-
__name: "
|
|
5
|
+
__name: "EditSidebarListElement",
|
|
6
6
|
props: {
|
|
7
7
|
name: {}
|
|
8
8
|
},
|
|
9
|
-
emits: ["close", "
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
return (x, e) => (
|
|
9
|
+
emits: ["close", "edit"],
|
|
10
|
+
setup(l, { emit: m }) {
|
|
11
|
+
const r = l, n = m, t = i(r.name);
|
|
12
|
+
return (x, e) => (u(), s(c, {
|
|
13
13
|
onCancel: e[1] || (e[1] = (o) => n("close")),
|
|
14
|
-
onSubmit: e[2] || (e[2] = (o) => n("
|
|
14
|
+
onSubmit: e[2] || (e[2] = (o) => n("edit", t.value))
|
|
15
15
|
}, {
|
|
16
|
-
default:
|
|
17
|
-
|
|
16
|
+
default: d(() => [
|
|
17
|
+
p(f(v), {
|
|
18
18
|
modelValue: t.value,
|
|
19
19
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => t.value = o),
|
|
20
20
|
autofocus: ""
|
|
@@ -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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4610d0c0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -37,7 +37,7 @@ const z = {
|
|
|
37
37
|
t(p) ? r(e.$slots, "button", { key: 0 }, void 0, !0) : n("", !0)
|
|
38
38
|
])) : n("", !0),
|
|
39
39
|
w("div", {
|
|
40
|
-
class: g(["custom-scroll sidebar-height pb-0 md:pb-[
|
|
40
|
+
class: g(["custom-scroll sidebar-height pb-0 md:pb-[37px] w-[inherit]", {
|
|
41
41
|
"sidebar-mask": !t(m)
|
|
42
42
|
}])
|
|
43
43
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AA8CA,iBAAS,cAAc;mBAuFI,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;WAtHZ,MAAM,IAAI;;WAAV,MAAM,IAAI;aA4HjB,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,35 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { ScalarButton as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as c, openBlock as n, createBlock as a, unref as i, withCtx as l, renderSlot as s, createVNode as p } from "vue";
|
|
2
|
+
import d from "../ScalarHotkey.vue.js";
|
|
3
|
+
import { ScalarButton as u } from "@scalar/components";
|
|
4
|
+
const b = /* @__PURE__ */ c({
|
|
5
5
|
__name: "SidebarButton",
|
|
6
6
|
props: {
|
|
7
7
|
click: { type: Function }
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
11
|
-
|
|
9
|
+
setup(e) {
|
|
10
|
+
const o = e, t = () => {
|
|
11
|
+
o.click();
|
|
12
12
|
};
|
|
13
|
-
return (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
})
|
|
30
|
-
]));
|
|
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",
|
|
15
|
+
icon: "Plus",
|
|
16
|
+
variant: "outlined",
|
|
17
|
+
onClick: t
|
|
18
|
+
}, {
|
|
19
|
+
default: l(() => [
|
|
20
|
+
s(r.$slots, "title"),
|
|
21
|
+
p(d, {
|
|
22
|
+
class: "hidden md:block absolute right-2 group-hover:opacity-80 text-c-2 add-item-hotkey",
|
|
23
|
+
hotkey: "K",
|
|
24
|
+
onHotkeyPressed: t
|
|
25
|
+
})
|
|
26
|
+
]),
|
|
27
|
+
_: 3
|
|
28
|
+
}));
|
|
31
29
|
}
|
|
32
30
|
});
|
|
33
31
|
export {
|
|
34
|
-
|
|
32
|
+
b as default
|
|
35
33
|
};
|
|
@@ -10,7 +10,7 @@ const a = ["aria-labelledby"], c = ["id"], u = /* @__PURE__ */ n({
|
|
|
10
10
|
}, [
|
|
11
11
|
d("div", {
|
|
12
12
|
id: o(e),
|
|
13
|
-
class: "xl:min-h-header flex items-center border-b-1/2 p-2 md:px-4 md:py-2.5 xl:
|
|
13
|
+
class: "xl:min-h-header flex items-center border-b-1/2 p-2 md:px-4 md:py-2.5 xl:px-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 z-20 rounded-t xl:rounded-none"
|
|
14
14
|
}, [
|
|
15
15
|
l(t.$slots, "title")
|
|
16
16
|
], 8, c),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cAiI8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;
|
|
1
|
+
{"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cAiI8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAuMjD,wBAMG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as w, ref as _, onMounted as c, watchEffect as h, onBeforeMount as k, onBeforeUnmount as T, computed as y, openBlock as t, createElementBlock as i, Fragment as
|
|
1
|
+
import { defineComponent as w, ref as _, onMounted as c, watchEffect as h, onBeforeMount as k, onBeforeUnmount as T, computed as y, openBlock as t, createElementBlock as i, Fragment as b, createElementVNode as d, createVNode as e, unref as n, withCtx as N, createBlock as p, KeepAlive as g, resolveDynamicComponent as x, createCommentVNode as C } from "vue";
|
|
2
2
|
import S from "../../components/SideNav/SideNav.vue.js";
|
|
3
3
|
import L from "../../components/TopNav/TopNav.vue.js";
|
|
4
4
|
import { addScalarClassesToHeadless as B } from "@scalar/components";
|
|
@@ -12,7 +12,7 @@ import { handleHotKeyDown as A } from "../../libs/event-busses/hot-keys-bus.js";
|
|
|
12
12
|
const K = ["innerHTML"], z = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "flex min-h-0 flex-1 z-0"
|
|
15
|
-
}, F = { class: "flex flex-1 flex-col min-w-0" }, Z = /* @__PURE__ */ w({
|
|
15
|
+
}, F = { class: "flex flex-1 flex-col min-w-0 border-l-1/2 border-t-1/2" }, Z = /* @__PURE__ */ w({
|
|
16
16
|
__name: "ApiClientApp",
|
|
17
17
|
emits: ["newTab"],
|
|
18
18
|
setup(I) {
|
|
@@ -38,7 +38,7 @@ const K = ["innerHTML"], z = {
|
|
|
38
38
|
);
|
|
39
39
|
return (o, P) => {
|
|
40
40
|
var m;
|
|
41
|
-
return t(), i(
|
|
41
|
+
return t(), i(b, null, [
|
|
42
42
|
d("div", { innerHTML: f.value }, null, 8, K),
|
|
43
43
|
e(L, { openNewTab: r.value }, null, 8, ["openNewTab"]),
|
|
44
44
|
(m = n(a).activeWorkspace.value) != null && m.uid ? (t(), i("main", z, [
|
|
@@ -46,7 +46,7 @@ const K = ["innerHTML"], z = {
|
|
|
46
46
|
e(n(H)),
|
|
47
47
|
d("div", F, [
|
|
48
48
|
e(n(M), { onNewTab: u }, {
|
|
49
|
-
default:
|
|
49
|
+
default: N(({ Component: v }) => [
|
|
50
50
|
(t(), p(g, null, [
|
|
51
51
|
(t(), p(x(v)))
|
|
52
52
|
], 1024))
|