@scalar/api-client 2.1.45 → 2.1.47
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 +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +66 -58
- 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 +40 -39
- 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 +7 -7
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +32 -26
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +14 -9
- 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 +15 -10
- package/dist/components/ContextBar.vue.d.ts +1 -1
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +30 -19
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- 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 +10 -10
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -18
- package/dist/components/Form/Form.vue.js +15 -15
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +2 -2
- package/dist/components/ImportCollection/DropEventListener.vue.js +6 -6
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -21
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +87 -74
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -13
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +2 -2
- package/dist/components/ImportCollection/PasteEventListener.vue.js +5 -5
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +2 -2
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +10 -5
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +43 -33
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +31 -21
- package/dist/components/Search/useSearch.d.ts +2 -0
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +25 -24
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts +3 -0
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -0
- package/dist/components/SideNav/DownloadAppButton.vue.js +7 -0
- package/dist/components/SideNav/DownloadAppButton.vue2.js +33 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideHelp.vue.js +55 -53
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +82 -5
- package/dist/components/SideNav/SideNav.vue2.js +2 -72
- package/dist/components/{SubpageHeader.vue.d.ts → SideNav/SideNavGroup.vue.d.ts} +3 -3
- package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavGroup.vue.js +16 -0
- package/dist/components/SideNav/SideNavGroup.vue2.js +4 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts +5 -5
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +31 -34
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +25 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.js +29 -0
- package/dist/components/SideNav/SideNavRouterLink.vue2.js +4 -0
- package/dist/components/Sidebar/SidebarButton.vue.d.ts +1 -4
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +17 -17
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +16 -15
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +14 -14
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +31 -31
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +13 -21
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useLayout.d.ts +13 -0
- package/dist/hooks/useLayout.d.ts.map +1 -0
- package/dist/hooks/useLayout.js +7 -0
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +37 -37
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +21 -13
- package/dist/layouts/App/create-api-client-app.d.ts +28 -28
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +10 -8
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +3 -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 +37 -25
- package/dist/layouts/Modal/create-api-client-modal.d.ts +56 -56
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +8 -7
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +30 -30
- package/dist/layouts/Web/create-api-client-web.d.ts +28 -28
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +9 -7
- package/dist/libs/create-client.d.ts +35 -29
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +55 -42
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/router.d.ts +4 -41
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +18 -149
- package/dist/routes.d.ts +150 -0
- package/dist/routes.d.ts.map +1 -0
- package/dist/routes.js +182 -0
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.js +1 -1
- package/dist/store/security-schemes.d.ts +4 -4
- package/dist/store/store.d.ts +56 -56
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +90 -90
- 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/CookieRaw.vue.js +10 -10
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +52 -53
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +79 -80
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +20 -15
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +146 -108
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -52
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +102 -97
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- 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 +44 -40
- 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 +152 -134
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
- 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 +129 -115
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -6
- 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 +36 -34
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +13 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -2
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +32 -33
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +61 -55
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +32 -25
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +102 -70
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +60 -50
- 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 +12 -7
- package/package.json +10 -8
- package/dist/components/SubpageHeader.vue.d.ts.map +0 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { ScalarButton as
|
|
4
|
-
|
|
1
|
+
import { defineComponent as i, openBlock as o, createBlock as e, unref as r, withCtx as u, renderSlot as p, createCommentVNode as s } from "vue";
|
|
2
|
+
import m from "../ScalarHotkey.vue.js";
|
|
3
|
+
import { ScalarButton as d } from "@scalar/components";
|
|
4
|
+
import { useLayout as k } from "../../hooks/useLayout.js";
|
|
5
|
+
const g = /* @__PURE__ */ i({
|
|
5
6
|
__name: "SidebarButton",
|
|
6
7
|
props: {
|
|
7
|
-
click: {},
|
|
8
|
-
hotkey: {}
|
|
9
|
-
layout: { default: "desktop" }
|
|
8
|
+
click: { type: Function },
|
|
9
|
+
hotkey: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
11
|
+
setup(n) {
|
|
12
|
+
const a = n, { layout: c } = k(), l = () => {
|
|
13
|
+
a.click();
|
|
14
14
|
};
|
|
15
|
-
return (t,
|
|
15
|
+
return (t, h) => (o(), e(r(d), {
|
|
16
16
|
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",
|
|
17
17
|
icon: "Plus",
|
|
18
18
|
variant: "outlined",
|
|
19
|
-
onClick:
|
|
19
|
+
onClick: l
|
|
20
20
|
}, {
|
|
21
|
-
default:
|
|
22
|
-
|
|
23
|
-
t.hotkey &&
|
|
21
|
+
default: u(() => [
|
|
22
|
+
p(t.$slots, "title"),
|
|
23
|
+
t.hotkey && r(c) === "desktop" ? (o(), e(m, {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "hidden md:block absolute right-2 group-hover:opacity-80 text-c-2 add-item-hotkey",
|
|
26
26
|
hotkey: t.hotkey
|
|
27
|
-
}, null, 8, ["hotkey"])) :
|
|
27
|
+
}, null, 8, ["hotkey"])) : s("", !0)
|
|
28
28
|
]),
|
|
29
29
|
_: 3
|
|
30
30
|
}));
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
g as default
|
|
35
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarToggle.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarToggle.vue"],"names":[],"mappings":"AA+CA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;AAgFF,wBAQG"}
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as s, openBlock as l, createElementBlock as n, createElementVNode as e, toDisplayString as r, normalizeClass as a } from "vue";
|
|
2
|
+
const i = { class: "sr-only" }, d = {
|
|
3
3
|
class: "size-3.5",
|
|
4
4
|
fill: "none",
|
|
5
5
|
viewBox: "0 0 24 24",
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7
|
-
},
|
|
7
|
+
}, p = { "clip-path": "url(#mask)" }, v = /* @__PURE__ */ s({
|
|
8
8
|
__name: "SidebarToggle",
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: { type: Boolean }
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
|
-
setup(
|
|
14
|
-
return (o,
|
|
13
|
+
setup(u) {
|
|
14
|
+
return (o, t) => (l(), n("button", {
|
|
15
15
|
class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded",
|
|
16
16
|
type: "button",
|
|
17
|
-
onClick:
|
|
17
|
+
onClick: t[0] || (t[0] = (m) => o.$emit("update:modelValue", !o.modelValue))
|
|
18
18
|
}, [
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
e("span", i, r(o.modelValue ? "Hide" : "Show") + " sidebar", 1),
|
|
20
|
+
(l(), n("svg", d, [
|
|
21
|
+
t[1] || (t[1] = e("defs", null, [
|
|
22
|
+
e("clipPath", { id: "mask" }, [
|
|
23
|
+
e("path", {
|
|
23
24
|
"clip-rule": "evenodd",
|
|
24
25
|
d: "M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"
|
|
25
26
|
})
|
|
26
27
|
])
|
|
27
28
|
], -1)),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class:
|
|
29
|
+
e("g", p, [
|
|
30
|
+
e("path", {
|
|
31
|
+
class: a(["transition-transform duration-300", o.modelValue ? "translate-x-0" : "-translate-x-1/2"]),
|
|
31
32
|
d: "M1 3.2h8v17.5H1z",
|
|
32
33
|
fill: "currentColor"
|
|
33
34
|
}, null, 2)
|
|
34
35
|
]),
|
|
35
|
-
|
|
36
|
+
t[2] || (t[2] = e("path", {
|
|
36
37
|
d: "M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",
|
|
37
38
|
stroke: "currentColor",
|
|
38
39
|
"stroke-linecap": "round",
|
|
@@ -44,5 +45,5 @@ const a = {
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
export {
|
|
47
|
-
|
|
48
|
+
v as default
|
|
48
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":"AA8QA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACjD,CAAC;;
|
|
1
|
+
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":"AA8QA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACjD,CAAC;;AAiaF,wBAOG"}
|
|
@@ -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
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-09bb5ecf"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -6,40 +6,40 @@ import { ScalarContextMenu as W, ScalarIcon as d, ScalarDropdown as G, ScalarDro
|
|
|
6
6
|
import { capitalize as J } from "@scalar/oas-utils/helpers";
|
|
7
7
|
import P from "./TopNavItem.vue.js";
|
|
8
8
|
import { useWorkspace as Q } from "../../store/store.js";
|
|
9
|
-
const X = { class: "
|
|
9
|
+
const X = { class: "flex h-10 t-app__top-nav" }, Y = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-2.5 relative overflow-hidden" }, Z = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "h-full w-full overflow-hidden"
|
|
12
|
-
},
|
|
12
|
+
}, re = /* @__PURE__ */ z({
|
|
13
13
|
__name: "TopNav",
|
|
14
14
|
props: {
|
|
15
15
|
openNewTab: {}
|
|
16
16
|
},
|
|
17
17
|
setup(I) {
|
|
18
|
-
const L = I, { activeRequest: S, router:
|
|
18
|
+
const L = I, { activeRequest: S, router: i, events: g } = Q(), { copyToClipboard: U } = H(), t = A([{ label: "", path: "", icon: "Add" }]), a = M(0), T = j(() => a.value);
|
|
19
19
|
function k() {
|
|
20
20
|
var o;
|
|
21
|
-
const e = F.find((c) =>
|
|
21
|
+
const e = F.find((c) => i.currentRoute.value.name == c.name);
|
|
22
22
|
e && ((e == null ? void 0 : e.name) === "request" ? t[a.value] = {
|
|
23
23
|
label: ((o = S.value) == null ? void 0 : o.summary) || "",
|
|
24
|
-
path:
|
|
24
|
+
path: i.currentRoute.value.path,
|
|
25
25
|
icon: e.icon
|
|
26
26
|
} : t[a.value] = {
|
|
27
27
|
label: J(e == null ? void 0 : e.name) || "",
|
|
28
|
-
path:
|
|
28
|
+
path: i.currentRoute.value.path,
|
|
29
29
|
icon: e.icon
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
function v() {
|
|
33
|
-
|
|
33
|
+
i.push(t[a.value].path);
|
|
34
34
|
}
|
|
35
35
|
function p() {
|
|
36
36
|
t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, k();
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function r(e) {
|
|
39
39
|
a.value = e, v();
|
|
40
40
|
}
|
|
41
41
|
w(
|
|
42
|
-
() =>
|
|
42
|
+
() => i.currentRoute.value.path,
|
|
43
43
|
() => {
|
|
44
44
|
k();
|
|
45
45
|
},
|
|
@@ -58,11 +58,11 @@ const X = { class: "border-b-1/2 flex h-10 t-app__top-nav" }, Y = { class: "flex
|
|
|
58
58
|
t.splice(0, e), t.splice(1), a.value = 0, v();
|
|
59
59
|
}, C = (e) => {
|
|
60
60
|
if (e) {
|
|
61
|
-
if (e.addTopNav && p(), e.closeTopNav && N(a.value), e.navigateTopNavLeft &&
|
|
61
|
+
if (e.addTopNav && p(), e.closeTopNav && N(a.value), e.navigateTopNavLeft && r(Math.max(a.value - 1, 0)), e.navigateTopNavRight && r(Math.min(a.value + 1, t.length - 1)), e.jumpToTab) {
|
|
62
62
|
const o = Number(e.jumpToTab.key) - 1;
|
|
63
|
-
o >= 0 && o < t.length &&
|
|
63
|
+
o >= 0 && o < t.length && r(o);
|
|
64
64
|
}
|
|
65
|
-
e.jumpToLastTab &&
|
|
65
|
+
e.jumpToLastTab && r(t.length - 1);
|
|
66
66
|
}
|
|
67
67
|
}, $ = (e) => {
|
|
68
68
|
t.push({
|
|
@@ -140,7 +140,7 @@ const X = { class: "border-b-1/2 flex h-10 t-app__top-nav" }, Y = { class: "flex
|
|
|
140
140
|
hotkey: (s + 1).toString(),
|
|
141
141
|
icon: c.icon,
|
|
142
142
|
label: c.label,
|
|
143
|
-
onClick: (h) =>
|
|
143
|
+
onClick: (h) => r(s),
|
|
144
144
|
onClose: (h) => N(s),
|
|
145
145
|
onCloseOtherTabs: (h) => R(s),
|
|
146
146
|
onCopyUrl: (h) => y(s),
|
|
@@ -162,5 +162,5 @@ const X = { class: "border-b-1/2 flex h-10 t-app__top-nav" }, Y = { class: "flex
|
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
export {
|
|
165
|
-
|
|
165
|
+
re as default
|
|
166
166
|
};
|
|
@@ -6,14 +6,14 @@ type __VLS_Props = {
|
|
|
6
6
|
icon: Icon;
|
|
7
7
|
};
|
|
8
8
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
-
close: () => any;
|
|
10
9
|
click: () => any;
|
|
10
|
+
close: () => any;
|
|
11
11
|
newTab: () => any;
|
|
12
12
|
copyUrl: () => any;
|
|
13
13
|
closeOtherTabs: () => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onClose?: (() => any) | undefined;
|
|
16
15
|
onClick?: (() => any) | undefined;
|
|
16
|
+
onClose?: (() => any) | undefined;
|
|
17
17
|
onNewTab?: (() => any) | undefined;
|
|
18
18
|
onCopyUrl?: (() => any) | undefined;
|
|
19
19
|
onCloseOtherTabs?: (() => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAkBJ,iBAAS,cAAc;WA2IT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAlLH,OAAO;eACT,MAAM;6EAyLpB,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,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarIcon as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as c, openBlock as n, createBlock as p, unref as o, withCtx as s, createElementVNode as r, createVNode as i, renderSlot as l, createElementBlock as u, toDisplayString as d, createCommentVNode as a, mergeProps as f } from "vue";
|
|
2
|
+
import { Disclosure as m, DisclosureButton as h, DisclosurePanel as b } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as x } from "@scalar/components";
|
|
4
|
+
const g = { class: "flex items-center" }, v = { class: "flex flex-1 items-center gap-1.5 text-c-1" }, _ = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full font-semibold"
|
|
7
|
-
},
|
|
7
|
+
}, C = {
|
|
8
8
|
key: 0,
|
|
9
|
-
class: "ui-not-open:invisible
|
|
9
|
+
class: "ui-not-open:invisible flex items-center gap-2 pr-2"
|
|
10
10
|
}, D = /* @__PURE__ */ c({
|
|
11
11
|
__name: "ViewLayoutCollapse",
|
|
12
12
|
props: {
|
|
@@ -14,38 +14,38 @@ const x = { class: "flex flex-1 items-center gap-1.5 text-c-1" }, g = {
|
|
|
14
14
|
itemCount: { default: 0 }
|
|
15
15
|
},
|
|
16
16
|
setup(y) {
|
|
17
|
-
return (e,
|
|
17
|
+
return (e, k) => (n(), p(o(m), {
|
|
18
18
|
as: "div",
|
|
19
|
-
class: "focus-within:bg-b-2 ui-not-open:hover:bg-b-2 focus-within:text-c-1 text-c-2 rounded request-item ui-not-open:bg-transparent ui-open:pb-1 ui-open:mb-
|
|
19
|
+
class: "focus-within:bg-b-2 ui-not-open:hover:bg-b-2 focus-within:text-c-1 text-c-2 rounded request-item ui-not-open:bg-transparent ui-open:pb-1 ui-open:[&:not(:last-child)]:mb-1.5 ui-not-open:mb-0 ui-not-open:pb-0",
|
|
20
20
|
defaultOpen: e.defaultOpen
|
|
21
21
|
}, {
|
|
22
|
-
default:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
default: s(({ open: t }) => [
|
|
23
|
+
r("div", g, [
|
|
24
|
+
i(o(h), { class: "group hover:text-c-1 flex flex-1 items-center gap-2.5 overflow-hidden py-1.5 text-sm font-medium px-1.5 outline-none" }, {
|
|
25
|
+
default: s(() => [
|
|
26
|
+
i(o(x), {
|
|
27
|
+
class: "text-c-3 group-hover:text-c-1 group-focus-visible:outline ui-open:rotate-90 ui-not-open:rotate-0 rounded-[1px] outline-offset-2",
|
|
28
|
+
icon: "ChevronRight",
|
|
29
|
+
size: "sm",
|
|
30
|
+
thickness: "2.5"
|
|
31
|
+
}),
|
|
32
|
+
r("div", v, [
|
|
33
|
+
l(e.$slots, "title", { open: t }),
|
|
34
|
+
!t && e.itemCount ? (n(), u("span", _, d(e.itemCount), 1)) : a("", !0)
|
|
35
|
+
])
|
|
34
36
|
]),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
i(o(h), { class: "rounded-b diclosure-panel" }, {
|
|
44
|
-
default: n(() => [
|
|
37
|
+
_: 2
|
|
38
|
+
}, 1024),
|
|
39
|
+
e.$slots.actions ? (n(), u("div", C, [
|
|
40
|
+
l(e.$slots, "actions", { open: t })
|
|
41
|
+
])) : a("", !0)
|
|
42
|
+
]),
|
|
43
|
+
i(o(b), f(e.$attrs, { class: "h-full max-h-fit rounded-b diclosure-panel" }), {
|
|
44
|
+
default: s(() => [
|
|
45
45
|
l(e.$slots, "default", { open: t })
|
|
46
46
|
]),
|
|
47
47
|
_: 2
|
|
48
|
-
},
|
|
48
|
+
}, 1040)
|
|
49
49
|
]),
|
|
50
50
|
_: 3
|
|
51
51
|
}, 8, ["defaultOpen"]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAmBA,iBAAS,cAAc;WA8DT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class: "min-h-12 xl:min-h-header flex items-center border-b-1/2 px-3.5 py-1.5 md:px-4 md:py-2 xl:px-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none"
|
|
14
|
-
}, [
|
|
15
|
-
o(l.$slots, "title")
|
|
16
|
-
], 8, c),
|
|
17
|
-
o(l.$slots, "default")
|
|
18
|
-
], 8, a));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
1
|
+
import { openBlock as o, createElementBlock as l, createElementVNode as n, renderSlot as t } from "vue";
|
|
2
|
+
import s from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const r = {}, c = { class: "flex h-full xl:min-w-0 xl:flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-12 xl:min-h-header flex items-center border-b-1/2 px-3.5 py-1.5 md:px-4 md:py-2 xl:px-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none" };
|
|
4
|
+
function m(e, d) {
|
|
5
|
+
return o(), l("section", c, [
|
|
6
|
+
n("div", i, [
|
|
7
|
+
t(e.$slots, "title")
|
|
8
|
+
]),
|
|
9
|
+
t(e.$slots, "default")
|
|
10
|
+
]);
|
|
11
|
+
}
|
|
12
|
+
const p = /* @__PURE__ */ s(r, [["render", m]]);
|
|
21
13
|
export {
|
|
22
|
-
|
|
14
|
+
p as default
|
|
23
15
|
};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export * from './useDarkModeState.js';
|
|
|
2
2
|
export * from './useClipboard.js';
|
|
3
3
|
export * from './useKeyMap.js';
|
|
4
4
|
export * from './useFileDialog.js';
|
|
5
|
-
export
|
|
5
|
+
export * from './useSidebar.js';
|
|
6
|
+
export * from './useLayout.js';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { useDarkModeState as r } from "./useDarkModeState.js";
|
|
2
|
-
import { useClipboard as
|
|
2
|
+
import { useClipboard as p } from "./useClipboard.js";
|
|
3
3
|
import { keyMap as f } from "./useKeyMap.js";
|
|
4
|
-
import { useFileDialog as
|
|
4
|
+
import { useFileDialog as u } from "./useFileDialog.js";
|
|
5
5
|
import { useSidebar as s } from "./useSidebar.js";
|
|
6
|
+
import { useLayout as d } from "./useLayout.js";
|
|
6
7
|
export {
|
|
7
8
|
f as keyMap,
|
|
8
|
-
|
|
9
|
+
p as useClipboard,
|
|
9
10
|
r as useDarkModeState,
|
|
10
|
-
|
|
11
|
+
u as useFileDialog,
|
|
12
|
+
d as useLayout,
|
|
11
13
|
s as useSidebar
|
|
12
14
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The layout of the client
|
|
3
|
+
*/
|
|
4
|
+
export type ClientLayout = 'modal' | 'web' | 'desktop';
|
|
5
|
+
/**
|
|
6
|
+
* Get the current client layout
|
|
7
|
+
*
|
|
8
|
+
* @see {@link createApiClient}
|
|
9
|
+
*/
|
|
10
|
+
export declare const useLayout: () => {
|
|
11
|
+
layout: ClientLayout;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayout.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayout.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;AAEtD;;;;GAIG;AACH,eAAO,MAAM,SAAS;;CAEpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cA8H8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA8KjD,wBAMG"}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { addScalarClassesToHeadless as
|
|
5
|
-
import { getThemeStyles as
|
|
6
|
-
import { ScalarToasts as
|
|
7
|
-
import { RouterView as
|
|
8
|
-
import { APP_HOTKEYS as
|
|
9
|
-
import { useDarkModeState as
|
|
10
|
-
import { DEFAULT_HOTKEYS as
|
|
11
|
-
import { useWorkspace as
|
|
12
|
-
const
|
|
1
|
+
import { defineComponent as v, ref as T, onBeforeMount as _, onMounted as y, onBeforeUnmount as h, computed as k, openBlock as n, createElementBlock as K, Fragment as C, createElementVNode as N, createVNode as a, unref as r, createBlock as m, withCtx as p, KeepAlive as S, resolveDynamicComponent as E, createCommentVNode as H } from "vue";
|
|
2
|
+
import b from "../../components/TopNav/TopNav.vue.js";
|
|
3
|
+
import D from "./MainLayout.vue.js";
|
|
4
|
+
import { addScalarClassesToHeadless as A } from "@scalar/components";
|
|
5
|
+
import { getThemeStyles as B } from "@scalar/themes";
|
|
6
|
+
import { ScalarToasts as L } from "@scalar/use-toasts";
|
|
7
|
+
import { RouterView as M } from "vue-router";
|
|
8
|
+
import { APP_HOTKEYS as P } from "./hotkeys.js";
|
|
9
|
+
import { useDarkModeState as V } from "../../hooks/useDarkModeState.js";
|
|
10
|
+
import { DEFAULT_HOTKEYS as W, handleHotKeyDown as g } from "../../libs/hot-keys.js";
|
|
11
|
+
import { useWorkspace as x } from "../../store/store.js";
|
|
12
|
+
const F = ["innerHTML"], Z = /* @__PURE__ */ v({
|
|
13
13
|
__name: "ApiClientApp",
|
|
14
14
|
emits: ["newTab"],
|
|
15
|
-
setup(
|
|
16
|
-
const d = { ...
|
|
15
|
+
setup(O) {
|
|
16
|
+
const d = { ...W, ...P }, l = T(null), u = (e) => {
|
|
17
17
|
l.value = e;
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
const o =
|
|
21
|
-
|
|
22
|
-
const s = (e) =>
|
|
19
|
+
V();
|
|
20
|
+
const o = x(), { events: t } = o;
|
|
21
|
+
_(() => A());
|
|
22
|
+
const s = (e) => g(e, t.hotKeys, { hotKeys: d }), c = (e) => {
|
|
23
23
|
e && e.openCommandPalette && (e.openCommandPalette.preventDefault(), t.commandPalette.emit());
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
window.addEventListener("keydown", s), t.hotKeys.on(
|
|
27
|
-
}),
|
|
28
|
-
window.removeEventListener("keydown", s), t.hotKeys.off(
|
|
25
|
+
y(() => {
|
|
26
|
+
window.addEventListener("keydown", s), t.hotKeys.on(c);
|
|
27
|
+
}), h(() => {
|
|
28
|
+
window.removeEventListener("keydown", s), t.hotKeys.off(c);
|
|
29
29
|
});
|
|
30
|
-
const f =
|
|
31
|
-
() => o.activeWorkspace.value && `<style>${
|
|
30
|
+
const f = k(
|
|
31
|
+
() => o.activeWorkspace.value && `<style>${B(o.activeWorkspace.value.themeId)}</style>`
|
|
32
32
|
);
|
|
33
|
-
return (e,
|
|
34
|
-
var
|
|
35
|
-
return n(), C
|
|
36
|
-
|
|
37
|
-
a(
|
|
38
|
-
(
|
|
33
|
+
return (e, U) => {
|
|
34
|
+
var i;
|
|
35
|
+
return n(), K(C, null, [
|
|
36
|
+
N("div", { innerHTML: f.value }, null, 8, F),
|
|
37
|
+
a(b, { openNewTab: l.value }, null, 8, ["openNewTab"]),
|
|
38
|
+
(i = r(o).activeWorkspace.value) != null && i.uid ? (n(), m(D, { key: 0 }, {
|
|
39
39
|
default: p(() => [
|
|
40
|
-
a(r(
|
|
41
|
-
default: p(({ Component:
|
|
42
|
-
(n(), m(
|
|
43
|
-
(n(), m(
|
|
40
|
+
a(r(M), { onNewTab: u }, {
|
|
41
|
+
default: p(({ Component: w }) => [
|
|
42
|
+
(n(), m(S, null, [
|
|
43
|
+
(n(), m(E(w)))
|
|
44
44
|
], 1024))
|
|
45
45
|
]),
|
|
46
46
|
_: 1
|
|
47
47
|
})
|
|
48
48
|
]),
|
|
49
49
|
_: 1
|
|
50
|
-
})) :
|
|
51
|
-
a(r(
|
|
50
|
+
})) : H("", !0),
|
|
51
|
+
a(r(L))
|
|
52
52
|
], 64);
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
Z as default
|
|
58
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/MainLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MainLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/MainLayout.vue"],"names":[],"mappings":"AA0CA,iBAAS,cAAc;WAmET,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as s, openBlock as t, createElementBlock as n, normalizeClass as r, unref as e, createVNode as m, createElementVNode as a, renderSlot as f } from "vue";
|
|
2
|
+
import c from "../../components/SideNav/SideNav.vue.js";
|
|
3
|
+
import d from "../../components/CommandPalette/TheCommandPalette.vue.js";
|
|
4
|
+
import { useLayout as i } from "../../hooks/useLayout.js";
|
|
5
|
+
const b = /* @__PURE__ */ s({
|
|
5
6
|
__name: "MainLayout",
|
|
6
|
-
setup(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
e(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
setup(u) {
|
|
8
|
+
const { layout: o } = i();
|
|
9
|
+
return (l, p) => (t(), n("main", {
|
|
10
|
+
class: r(["flex flex-col sm:flex-row min-h-0 flex-1", e(o) === "web" ? "sm:flex-col" : "sm:flex-row"])
|
|
11
|
+
}, [
|
|
12
|
+
m(c, { class: "order-last sm:order-none" }),
|
|
13
|
+
m(e(d)),
|
|
14
|
+
a("div", {
|
|
15
|
+
class: r(["flex flex-1 flex-col min-w-0 min-h-0", {
|
|
16
|
+
"border sm:mr-1.5 sm:mb-1.5 sm:rounded-lg sm:*:rounded-lg": e(o) === "desktop"
|
|
17
|
+
}])
|
|
18
|
+
}, [
|
|
19
|
+
f(l.$slots, "default")
|
|
20
|
+
], 2)
|
|
21
|
+
], 2));
|
|
14
22
|
}
|
|
15
23
|
});
|
|
16
24
|
export {
|
|
17
|
-
|
|
25
|
+
b as default
|
|
18
26
|
};
|