@scalar/api-client 2.1.52 → 2.2.1
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 +41 -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 +36 -43
- 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 +25 -24
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +32 -39
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServerItem.vue.js +10 -15
- 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 +48 -47
- package/dist/components/CodeInput/codeVariableWidget.d.ts +3 -2
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +15 -14
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +18 -23
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +27 -26
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +19 -20
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +19 -24
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +23 -22
- 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 +47 -46
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -28
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +127 -96
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +28 -27
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +14 -18
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -14
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +20 -19
- package/dist/components/SideNav/SideNav.vue.js +4 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.js +9 -9
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +165 -5
- package/dist/components/TopNav/TopNav.vue2.js +2 -164
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +5 -5
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +2 -2
- package/dist/hooks/index.js +3 -2
- package/dist/hooks/useLayout.d.ts +2 -0
- package/dist/hooks/useLayout.d.ts.map +1 -1
- package/dist/hooks/useLayout.js +4 -3
- package/dist/layouts/App/ApiClientApp.vue.d.ts +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +35 -31
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +3 -3
- package/dist/layouts/App/create-api-client-app.d.ts +669 -1232
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -23
- package/dist/layouts/Modal/create-api-client-modal.d.ts +1382 -2508
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +34 -33
- package/dist/layouts/Web/create-api-client-web.d.ts +669 -1232
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +673 -1236
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +91 -102
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request.d.ts +2 -3
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +127 -123
- package/dist/store/active-entities.d.ts +333 -0
- package/dist/store/active-entities.d.ts.map +1 -0
- package/dist/store/active-entities.js +97 -0
- package/dist/store/collections.d.ts +4 -274
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts +0 -54
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.js +4 -3
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +15 -15
- package/dist/store/security-schemes.d.ts +527 -317
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +33 -41
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store-context.d.ts +0 -3
- package/dist/store/store-context.d.ts.map +1 -1
- package/dist/store/store.d.ts +640 -5297
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +111 -189
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +14 -24
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tailwind/desktop-variants.d.ts +18 -0
- package/dist/tailwind/desktop-variants.d.ts.map +1 -0
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +14 -13
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +14 -13
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +3 -3
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- 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 +92 -92
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +96 -99
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +49 -46
- 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 +94 -100
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +60 -67
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -28
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +11 -10
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +24 -28
- 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 +17 -16
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- 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 +72 -73
- 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 +111 -109
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +15 -16
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +14 -14
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +25 -21
- 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 +26 -25
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +7 -7
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +32 -31
- package/dist/views/Request/consts/new-auth-options.d.ts +16 -8
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.js +16 -8
- package/dist/views/Request/handle-drag.d.ts +2 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.js +23 -25
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +40 -39
- package/dist/views/Request/libs/auth.d.ts +1 -29
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +2 -9
- package/dist/views/Request/libs/index.js +6 -8
- package/dist/views/Request/libs/live-sync.d.ts +6 -5
- package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
- package/dist/views/Request/libs/live-sync.js +164 -185
- package/dist/views/Request/libs/oauth2.d.ts +6 -10
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +54 -69
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.js +14 -13
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +18 -17
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +218 -126
- package/dist/views/Settings/{SettingsGeneralMode.vue.d.ts → components/SettingsAppearance.vue.d.ts} +2 -2
- package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -0
- package/dist/views/Settings/components/SettingsAppearance.vue.js +74 -0
- package/dist/views/Settings/components/SettingsAppearance.vue2.js +4 -0
- package/dist/views/Settings/components/SettingsSection.vue.d.ts +24 -0
- package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +1 -0
- package/dist/views/Settings/components/SettingsSection.vue.js +24 -0
- package/dist/views/Settings/components/SettingsSection.vue2.js +4 -0
- package/package.json +9 -9
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +0 -16
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +0 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +0 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.js +0 -78
- package/dist/views/Settings/SettingsGeneralMode.vue2.js +0 -4
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import w from "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useActiveEntities as w } from "../../store/active-entities.js";
|
|
2
|
+
import T from "fuse.js";
|
|
3
|
+
import { ref as a, watch as W, computed as x, nextTick as A } from "vue";
|
|
4
|
+
import { useRouter as E } from "vue-router";
|
|
5
|
+
import { useWorkspace as I } from "../../store/store.js";
|
|
6
|
+
function M() {
|
|
7
|
+
const m = E(), { activeWorkspace: f, activeWorkspaceRequests: d } = w(), { requests: R } = I(), o = a([]), u = a([]), s = a(0), c = a(""), l = a(null), n = a([]), i = new T(o.value, {
|
|
7
8
|
keys: ["title", "description", "body"]
|
|
8
9
|
}), k = () => {
|
|
9
|
-
|
|
10
|
+
c.value = "", s.value = 0, u.value = [], l.value instanceof HTMLInputElement && l.value.blur();
|
|
10
11
|
}, S = (t) => {
|
|
11
12
|
o.value = t.map((e) => ({
|
|
12
13
|
id: e.uid,
|
|
@@ -17,10 +18,10 @@ function H() {
|
|
|
17
18
|
link: `/workspace/${f.value.uid}/request/${e.uid}`
|
|
18
19
|
})), i.setCollection(o.value);
|
|
19
20
|
}, b = () => {
|
|
20
|
-
s.value = 0,
|
|
21
|
+
s.value = 0, u.value = i.search(c.value);
|
|
21
22
|
}, y = (t) => {
|
|
22
|
-
const e = t === "up" ? -1 : 1,
|
|
23
|
-
s.value = (s.value + e +
|
|
23
|
+
const e = t === "up" ? -1 : 1, h = r.value.length;
|
|
24
|
+
s.value = (s.value + e + h) % h, A(() => {
|
|
24
25
|
const p = n.value[s.value];
|
|
25
26
|
p instanceof HTMLElement && p.scrollIntoView({
|
|
26
27
|
behavior: "smooth",
|
|
@@ -28,29 +29,29 @@ function H() {
|
|
|
28
29
|
});
|
|
29
30
|
});
|
|
30
31
|
}, g = () => {
|
|
31
|
-
s.value >= 0 &&
|
|
32
|
+
s.value >= 0 && v(
|
|
32
33
|
r.value[s.value]
|
|
33
34
|
);
|
|
34
35
|
};
|
|
35
|
-
|
|
36
|
+
W(
|
|
36
37
|
d,
|
|
37
38
|
(t) => {
|
|
38
39
|
S(t.map((e) => R[e]));
|
|
39
40
|
},
|
|
40
41
|
{ immediate: !0 }
|
|
41
42
|
);
|
|
42
|
-
const
|
|
43
|
+
const v = (t) => {
|
|
43
44
|
m.push(t.item.id), k();
|
|
44
|
-
}, r =
|
|
45
|
-
() =>
|
|
45
|
+
}, r = x(
|
|
46
|
+
() => c.value.length === 0 ? o.value.map((t) => ({
|
|
46
47
|
item: t
|
|
47
|
-
})) :
|
|
48
|
+
})) : u.value
|
|
48
49
|
);
|
|
49
50
|
return {
|
|
50
|
-
searchText:
|
|
51
|
+
searchText: c,
|
|
51
52
|
searchResultsWithPlaceholderResults: r,
|
|
52
53
|
selectedSearchResult: s,
|
|
53
|
-
onSearchResultClick:
|
|
54
|
+
onSearchResultClick: v,
|
|
54
55
|
fuseSearch: b,
|
|
55
56
|
searchInputRef: l,
|
|
56
57
|
searchResultRefs: n,
|
|
@@ -59,5 +60,5 @@ function H() {
|
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
62
|
export {
|
|
62
|
-
|
|
63
|
+
M as useSearch
|
|
63
64
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, openBlock as o, createElementBlock as r, normalizeClass as p, unref as e, createVNode as t, withCtx as n, createElementVNode as i, Fragment as
|
|
1
|
+
import { defineComponent as h, openBlock as o, createElementBlock as r, normalizeClass as p, unref as e, createVNode as t, withCtx as n, createElementVNode as i, Fragment as v, renderList as w, createTextVNode as d, toDisplayString as y, createCommentVNode as b } from "vue";
|
|
2
2
|
import { ROUTES as k } from "../../constants.js";
|
|
3
3
|
import { ScalarIcon as N } from "@scalar/components";
|
|
4
4
|
import { useRouter as S } from "vue-router";
|
|
@@ -16,7 +16,7 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
|
|
|
16
16
|
const { currentRoute: m } = S(), { layout: s } = j();
|
|
17
17
|
return ($, l) => (o(), r("nav", {
|
|
18
18
|
"aria-label": "App Navigation",
|
|
19
|
-
class: p(["flex items-center justify-center sm:justify-between gap-1.5 app-drag-region", e(s) === "web" ? "border h-12" : "sm:flex-col px-2
|
|
19
|
+
class: p(["flex items-center justify-center sm:justify-between gap-1.5 app-drag-region", e(s) === "web" ? "border h-12" : "sm:flex-col px-2 pb-2"]),
|
|
20
20
|
role: "navigation"
|
|
21
21
|
}, [
|
|
22
22
|
t(u, { class: "app-no-drag-region" }, {
|
|
@@ -33,7 +33,7 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
|
|
|
33
33
|
size: "xl"
|
|
34
34
|
})
|
|
35
35
|
], 2),
|
|
36
|
-
(o(!0), r(
|
|
36
|
+
(o(!0), r(v, null, w(e(k).filter(
|
|
37
37
|
(a) => a.name !== "settings"
|
|
38
38
|
), ({ icon: a, name: c, prettyName: g }, x) => {
|
|
39
39
|
var f;
|
|
@@ -44,7 +44,7 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
|
|
|
44
44
|
name: c
|
|
45
45
|
}, {
|
|
46
46
|
default: n(() => [
|
|
47
|
-
d(
|
|
47
|
+
d(y(g), 1)
|
|
48
48
|
]),
|
|
49
49
|
_: 2
|
|
50
50
|
}, 1032, ["active", "icon", "name"])
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as i, openBlock as n, createBlock as r, unref as o, withCtx as a, renderSlot as c } from "vue";
|
|
2
|
+
import s from "./SideNavLink.vue.js";
|
|
3
|
+
import { useActiveEntities as p } from "../../store/active-entities.js";
|
|
4
|
+
import { RouterLink as m } from "vue-router";
|
|
5
|
+
const k = /* @__PURE__ */ i({
|
|
6
6
|
__name: "SideNavRouterLink",
|
|
7
7
|
props: {
|
|
8
8
|
icon: {},
|
|
@@ -10,9 +10,9 @@ const v = /* @__PURE__ */ r({
|
|
|
10
10
|
active: { type: Boolean }
|
|
11
11
|
},
|
|
12
12
|
setup(f) {
|
|
13
|
-
const { activeWorkspace: t } =
|
|
14
|
-
return (e, u) => (
|
|
15
|
-
is: o(
|
|
13
|
+
const { activeWorkspace: t } = p();
|
|
14
|
+
return (e, u) => (n(), r(s, {
|
|
15
|
+
is: o(m),
|
|
16
16
|
active: e.active,
|
|
17
17
|
icon: e.icon,
|
|
18
18
|
to: `/workspace/${o(t).uid}/${e.name}`
|
|
@@ -25,5 +25,5 @@ const v = /* @__PURE__ */ r({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
k as default
|
|
29
29
|
};
|
|
@@ -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":"AAsPA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACjD,CAAC;;AAgaF,wBAOG"}
|
|
@@ -1,7 +1,167 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as $, reactive as z, ref as E, computed as M, watch as w, onMounted as j, onBeforeUnmount as B, openBlock as m, createElementBlock as b, createElementVNode as f, createVNode as n, unref as l, withCtx as u, toDisplayString as O, createTextVNode as x, Fragment as V, renderList as D, createBlock as K } from "vue";
|
|
2
|
+
import q from "../ScalarHotkey.vue.js";
|
|
3
|
+
import { ROUTES as F } from "../../constants.js";
|
|
4
|
+
import { useActiveEntities as H } from "../../store/active-entities.js";
|
|
5
|
+
import { ScalarContextMenu as W, ScalarIcon as d, ScalarDropdown as G, ScalarDropdownItem as I } from "@scalar/components";
|
|
6
|
+
import { capitalize as J } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import { useClipboard as P } from "@scalar/use-hooks/useClipboard";
|
|
8
|
+
import Q from "./TopNavItem.vue.js";
|
|
9
|
+
import { useWorkspace as X } from "../../store/store.js";
|
|
10
|
+
const Y = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, Z = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-2.5 relative overflow-hidden" }, ee = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "h-full w-full overflow-hidden"
|
|
13
|
+
}, ue = /* @__PURE__ */ $({
|
|
14
|
+
__name: "TopNav",
|
|
15
|
+
props: {
|
|
16
|
+
openNewTab: {}
|
|
17
|
+
},
|
|
18
|
+
setup(_) {
|
|
19
|
+
const L = _, { activeRequest: S, router: i } = H(), { events: g } = X(), { copyToClipboard: U } = P(), t = z([{ label: "", path: "", icon: "Add" }]), a = E(0), T = M(() => a.value);
|
|
20
|
+
function k() {
|
|
21
|
+
var o;
|
|
22
|
+
const e = F.find((c) => i.currentRoute.value.name == c.name);
|
|
23
|
+
e && ((e == null ? void 0 : e.name) === "request" ? t[a.value] = {
|
|
24
|
+
label: ((o = S.value) == null ? void 0 : o.summary) || "",
|
|
25
|
+
path: i.currentRoute.value.path,
|
|
26
|
+
icon: e.icon
|
|
27
|
+
} : t[a.value] = {
|
|
28
|
+
label: J(e == null ? void 0 : e.name) || "",
|
|
29
|
+
path: i.currentRoute.value.path,
|
|
30
|
+
icon: e.icon
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function v() {
|
|
34
|
+
i.push(t[a.value].path);
|
|
35
|
+
}
|
|
36
|
+
function p() {
|
|
37
|
+
t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, k();
|
|
38
|
+
}
|
|
39
|
+
function r(e) {
|
|
40
|
+
a.value = e, v();
|
|
41
|
+
}
|
|
42
|
+
w(
|
|
43
|
+
() => i.currentRoute.value.path,
|
|
44
|
+
() => {
|
|
45
|
+
k();
|
|
46
|
+
},
|
|
47
|
+
{ immediate: !0 }
|
|
48
|
+
);
|
|
49
|
+
function N(e) {
|
|
50
|
+
t.splice(e, 1), a.value = Math.min(
|
|
51
|
+
a.value,
|
|
52
|
+
t.length - 1
|
|
53
|
+
), v();
|
|
54
|
+
}
|
|
55
|
+
const y = (e) => {
|
|
56
|
+
const o = new URL(window.location.href);
|
|
57
|
+
o.pathname = t[e].path, U(o.toString());
|
|
58
|
+
}, R = (e) => {
|
|
59
|
+
t.splice(0, e), t.splice(1), a.value = 0, v();
|
|
60
|
+
}, C = (e) => {
|
|
61
|
+
if (e) {
|
|
62
|
+
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) {
|
|
63
|
+
const o = Number(e.jumpToTab.key) - 1;
|
|
64
|
+
o >= 0 && o < t.length && r(o);
|
|
65
|
+
}
|
|
66
|
+
e.jumpToLastTab && r(t.length - 1);
|
|
67
|
+
}
|
|
68
|
+
}, A = (e) => {
|
|
69
|
+
t.push({
|
|
70
|
+
label: e.name,
|
|
71
|
+
path: e.uid,
|
|
72
|
+
icon: "ExternalLink"
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
return w(
|
|
76
|
+
() => L.openNewTab,
|
|
77
|
+
(e) => {
|
|
78
|
+
e && A(e);
|
|
79
|
+
},
|
|
80
|
+
{ immediate: !0 }
|
|
81
|
+
), j(() => g.hotKeys.on(C)), B(() => g.hotKeys.off(C)), (e, o) => (m(), b("nav", Y, [
|
|
82
|
+
o[3] || (o[3] = f("div", { class: "absolute inset-0 app-drag-region" }, null, -1)),
|
|
83
|
+
f("div", Z, [
|
|
84
|
+
t.length === 1 ? (m(), b("div", ee, [
|
|
85
|
+
n(l(W), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
|
|
86
|
+
trigger: u(() => [
|
|
87
|
+
n(l(d), {
|
|
88
|
+
icon: t[0].icon,
|
|
89
|
+
size: "xs",
|
|
90
|
+
thickness: "2.5"
|
|
91
|
+
}, null, 8, ["icon"]),
|
|
92
|
+
f("span", null, O(t[0].label), 1)
|
|
93
|
+
]),
|
|
94
|
+
content: u(() => [
|
|
95
|
+
n(l(G), {
|
|
96
|
+
class: "scalar-client",
|
|
97
|
+
static: ""
|
|
98
|
+
}, {
|
|
99
|
+
items: u(() => [
|
|
100
|
+
n(l(I), {
|
|
101
|
+
class: "flex items-center gap-1.5",
|
|
102
|
+
onClick: p
|
|
103
|
+
}, {
|
|
104
|
+
default: u(() => [
|
|
105
|
+
n(l(d), {
|
|
106
|
+
icon: "AddTab",
|
|
107
|
+
size: "sm",
|
|
108
|
+
thickness: "1.5"
|
|
109
|
+
}),
|
|
110
|
+
o[1] || (o[1] = x(" New Tab ")),
|
|
111
|
+
n(q, {
|
|
112
|
+
class: "bg-b-2 ml-auto",
|
|
113
|
+
hotkey: "T"
|
|
114
|
+
})
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
}),
|
|
118
|
+
n(l(I), {
|
|
119
|
+
class: "flex items-center gap-1.5",
|
|
120
|
+
onClick: o[0] || (o[0] = (c) => y(T.value))
|
|
121
|
+
}, {
|
|
122
|
+
default: u(() => [
|
|
123
|
+
n(l(d), {
|
|
124
|
+
icon: "Link",
|
|
125
|
+
size: "sm",
|
|
126
|
+
thickness: "1.5"
|
|
127
|
+
}),
|
|
128
|
+
o[2] || (o[2] = x(" Copy URL "))
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
})
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
})
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
})
|
|
138
|
+
])) : (m(!0), b(V, { key: 1 }, D(t, (c, s) => (m(), K(Q, {
|
|
139
|
+
key: s,
|
|
140
|
+
active: s === T.value,
|
|
141
|
+
hotkey: (s + 1).toString(),
|
|
142
|
+
icon: c.icon,
|
|
143
|
+
label: c.label,
|
|
144
|
+
onClick: (h) => r(s),
|
|
145
|
+
onClose: (h) => N(s),
|
|
146
|
+
onCloseOtherTabs: (h) => R(s),
|
|
147
|
+
onCopyUrl: (h) => y(s),
|
|
148
|
+
onNewTab: p
|
|
149
|
+
}, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
|
|
150
|
+
f("button", {
|
|
151
|
+
class: "text-c-3 hover:bg-b-3 p-1.5 rounded app-no-drag-region",
|
|
152
|
+
type: "button",
|
|
153
|
+
onClick: p
|
|
154
|
+
}, [
|
|
155
|
+
n(l(d), {
|
|
156
|
+
icon: "Add",
|
|
157
|
+
size: "xs",
|
|
158
|
+
thickness: "2.5"
|
|
159
|
+
})
|
|
160
|
+
])
|
|
161
|
+
])
|
|
162
|
+
]));
|
|
163
|
+
}
|
|
164
|
+
});
|
|
5
165
|
export {
|
|
6
|
-
|
|
166
|
+
ue as default
|
|
7
167
|
};
|
|
@@ -1,166 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import q from "../ScalarHotkey.vue.js";
|
|
3
|
-
import { ROUTES as F } from "../../constants.js";
|
|
4
|
-
import { ScalarContextMenu as H, ScalarIcon as d, ScalarDropdown as W, ScalarDropdownItem as _ } from "@scalar/components";
|
|
5
|
-
import { capitalize as G } from "@scalar/oas-utils/helpers";
|
|
6
|
-
import { useClipboard as J } from "@scalar/use-hooks/useClipboard";
|
|
7
|
-
import P from "./TopNavItem.vue.js";
|
|
8
|
-
import { useWorkspace as Q } from "../../store/store.js";
|
|
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
|
-
key: 0,
|
|
11
|
-
class: "h-full w-full overflow-hidden"
|
|
12
|
-
}, re = /* @__PURE__ */ z({
|
|
13
|
-
__name: "TopNav",
|
|
14
|
-
props: {
|
|
15
|
-
openNewTab: {}
|
|
16
|
-
},
|
|
17
|
-
setup(I) {
|
|
18
|
-
const L = I, { activeRequest: S, router: i, events: g } = Q(), { copyToClipboard: U } = J(), t = A([{ label: "", path: "", icon: "Add" }]), a = M(0), T = j(() => a.value);
|
|
19
|
-
function k() {
|
|
20
|
-
var o;
|
|
21
|
-
const e = F.find((c) => i.currentRoute.value.name == c.name);
|
|
22
|
-
e && ((e == null ? void 0 : e.name) === "request" ? t[a.value] = {
|
|
23
|
-
label: ((o = S.value) == null ? void 0 : o.summary) || "",
|
|
24
|
-
path: i.currentRoute.value.path,
|
|
25
|
-
icon: e.icon
|
|
26
|
-
} : t[a.value] = {
|
|
27
|
-
label: G(e == null ? void 0 : e.name) || "",
|
|
28
|
-
path: i.currentRoute.value.path,
|
|
29
|
-
icon: e.icon
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function v() {
|
|
33
|
-
i.push(t[a.value].path);
|
|
34
|
-
}
|
|
35
|
-
function p() {
|
|
36
|
-
t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, k();
|
|
37
|
-
}
|
|
38
|
-
function r(e) {
|
|
39
|
-
a.value = e, v();
|
|
40
|
-
}
|
|
41
|
-
w(
|
|
42
|
-
() => i.currentRoute.value.path,
|
|
43
|
-
() => {
|
|
44
|
-
k();
|
|
45
|
-
},
|
|
46
|
-
{ immediate: !0 }
|
|
47
|
-
);
|
|
48
|
-
function N(e) {
|
|
49
|
-
t.splice(e, 1), a.value = Math.min(
|
|
50
|
-
a.value,
|
|
51
|
-
t.length - 1
|
|
52
|
-
), v();
|
|
53
|
-
}
|
|
54
|
-
const y = (e) => {
|
|
55
|
-
const o = new URL(window.location.href);
|
|
56
|
-
o.pathname = t[e].path, U(o.toString());
|
|
57
|
-
}, R = (e) => {
|
|
58
|
-
t.splice(0, e), t.splice(1), a.value = 0, v();
|
|
59
|
-
}, C = (e) => {
|
|
60
|
-
if (e) {
|
|
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
|
-
const o = Number(e.jumpToTab.key) - 1;
|
|
63
|
-
o >= 0 && o < t.length && r(o);
|
|
64
|
-
}
|
|
65
|
-
e.jumpToLastTab && r(t.length - 1);
|
|
66
|
-
}
|
|
67
|
-
}, $ = (e) => {
|
|
68
|
-
t.push({
|
|
69
|
-
label: e.name,
|
|
70
|
-
path: e.uid,
|
|
71
|
-
icon: "ExternalLink"
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
return w(
|
|
75
|
-
() => L.openNewTab,
|
|
76
|
-
(e) => {
|
|
77
|
-
e && $(e);
|
|
78
|
-
},
|
|
79
|
-
{ immediate: !0 }
|
|
80
|
-
), B(() => g.hotKeys.on(C)), E(() => g.hotKeys.off(C)), (e, o) => (m(), b("nav", X, [
|
|
81
|
-
o[3] || (o[3] = f("div", { class: "t-app__top-nav-draggable" }, null, -1)),
|
|
82
|
-
f("div", Y, [
|
|
83
|
-
t.length === 1 ? (m(), b("div", Z, [
|
|
84
|
-
n(l(H), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
|
|
85
|
-
trigger: u(() => [
|
|
86
|
-
n(l(d), {
|
|
87
|
-
icon: t[0].icon,
|
|
88
|
-
size: "xs",
|
|
89
|
-
thickness: "2.5"
|
|
90
|
-
}, null, 8, ["icon"]),
|
|
91
|
-
f("span", null, O(t[0].label), 1)
|
|
92
|
-
]),
|
|
93
|
-
content: u(() => [
|
|
94
|
-
n(l(W), {
|
|
95
|
-
class: "scalar-client",
|
|
96
|
-
static: ""
|
|
97
|
-
}, {
|
|
98
|
-
items: u(() => [
|
|
99
|
-
n(l(_), {
|
|
100
|
-
class: "flex items-center gap-1.5",
|
|
101
|
-
onClick: p
|
|
102
|
-
}, {
|
|
103
|
-
default: u(() => [
|
|
104
|
-
n(l(d), {
|
|
105
|
-
icon: "AddTab",
|
|
106
|
-
size: "sm",
|
|
107
|
-
thickness: "1.5"
|
|
108
|
-
}),
|
|
109
|
-
o[1] || (o[1] = x(" New Tab ")),
|
|
110
|
-
n(q, {
|
|
111
|
-
class: "bg-b-2 ml-auto",
|
|
112
|
-
hotkey: "T"
|
|
113
|
-
})
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}),
|
|
117
|
-
n(l(_), {
|
|
118
|
-
class: "flex items-center gap-1.5",
|
|
119
|
-
onClick: o[0] || (o[0] = (c) => y(T.value))
|
|
120
|
-
}, {
|
|
121
|
-
default: u(() => [
|
|
122
|
-
n(l(d), {
|
|
123
|
-
icon: "Link",
|
|
124
|
-
size: "sm",
|
|
125
|
-
thickness: "1.5"
|
|
126
|
-
}),
|
|
127
|
-
o[2] || (o[2] = x(" Copy URL "))
|
|
128
|
-
]),
|
|
129
|
-
_: 1
|
|
130
|
-
})
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
})
|
|
134
|
-
]),
|
|
135
|
-
_: 1
|
|
136
|
-
})
|
|
137
|
-
])) : (m(!0), b(V, { key: 1 }, D(t, (c, s) => (m(), K(P, {
|
|
138
|
-
key: s,
|
|
139
|
-
active: s === T.value,
|
|
140
|
-
hotkey: (s + 1).toString(),
|
|
141
|
-
icon: c.icon,
|
|
142
|
-
label: c.label,
|
|
143
|
-
onClick: (h) => r(s),
|
|
144
|
-
onClose: (h) => N(s),
|
|
145
|
-
onCloseOtherTabs: (h) => R(s),
|
|
146
|
-
onCopyUrl: (h) => y(s),
|
|
147
|
-
onNewTab: p
|
|
148
|
-
}, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
|
|
149
|
-
f("button", {
|
|
150
|
-
class: "text-c-3 hover:bg-b-3 p-1.5 rounded webkit-app-no-drag",
|
|
151
|
-
type: "button",
|
|
152
|
-
onClick: p
|
|
153
|
-
}, [
|
|
154
|
-
n(l(d), {
|
|
155
|
-
icon: "Add",
|
|
156
|
-
size: "xs",
|
|
157
|
-
thickness: "2.5"
|
|
158
|
-
})
|
|
159
|
-
])
|
|
160
|
-
])
|
|
161
|
-
]));
|
|
162
|
-
}
|
|
163
|
-
});
|
|
1
|
+
import f from "./TopNav.vue.js";
|
|
164
2
|
export {
|
|
165
|
-
|
|
3
|
+
f as default
|
|
166
4
|
};
|
|
@@ -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
|
-
click: () => any;
|
|
10
9
|
close: () => any;
|
|
10
|
+
click: () => any;
|
|
11
11
|
newTab: () => any;
|
|
12
12
|
copyUrl: () => any;
|
|
13
13
|
closeOtherTabs: () => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onClick?: (() => any) | undefined;
|
|
16
15
|
onClose?: (() => any) | undefined;
|
|
16
|
+
onClick?: (() => any) | undefined;
|
|
17
17
|
onNewTab?: (() => any) | undefined;
|
|
18
18
|
onCopyUrl?: (() => any) | undefined;
|
|
19
19
|
onCloseOtherTabs?: (() => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AAuMA,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,oBAAoB,CAAA;AAI3B,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;;;;;;;;;;;;;;AAiUF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNavItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9e263bd8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as k, openBlock as p, createBlock as d, unref as s, withCtx as i, createVNode as t, createElementVNode as a, normalizeClass as f, toDisplayString as u, createCommentVNode as b, createTextVNode as r } from "vue";
|
|
2
2
|
import c from "../ScalarHotkey.vue.js";
|
|
3
|
-
import { ScalarContextMenu as
|
|
3
|
+
import { ScalarContextMenu as g, ScalarTooltip as v, ScalarIcon as l, ScalarDropdown as C, ScalarDropdownItem as m, ScalarDropdownDivider as y } from "@scalar/components";
|
|
4
4
|
const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, $ = { class: "custom-scroll nav-item-copy text-xs" }, D = /* @__PURE__ */ k({
|
|
5
5
|
__name: "TopNavItem",
|
|
6
6
|
props: {
|
|
@@ -11,9 +11,9 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["click", "close", "newTab", "copyUrl", "closeOtherTabs"],
|
|
13
13
|
setup(w) {
|
|
14
|
-
return (o, e) => (p(), d(s(
|
|
14
|
+
return (o, e) => (p(), d(s(g), { triggerClass: "overflow-hidden w-full" }, {
|
|
15
15
|
trigger: i(() => [
|
|
16
|
-
t(s(
|
|
16
|
+
t(s(v), {
|
|
17
17
|
class: "scalar-client",
|
|
18
18
|
delay: 500,
|
|
19
19
|
disableClosingTrigger: !0,
|
|
@@ -22,7 +22,7 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
22
22
|
}, {
|
|
23
23
|
trigger: i(() => [
|
|
24
24
|
a("div", {
|
|
25
|
-
class: f(["nav-item
|
|
25
|
+
class: f(["nav-item app-no-drag-region", { "nav-item__active": o.active }]),
|
|
26
26
|
onClick: e[1] || (e[1] = (n) => o.$emit("click"))
|
|
27
27
|
}, [
|
|
28
28
|
a("div", T, [
|
|
@@ -55,7 +55,7 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
55
55
|
})
|
|
56
56
|
]),
|
|
57
57
|
content: i(() => [
|
|
58
|
-
t(s(
|
|
58
|
+
t(s(C), {
|
|
59
59
|
class: "scalar-client",
|
|
60
60
|
static: ""
|
|
61
61
|
}, {
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
|
@@ -21,7 +21,7 @@ const g = { class: "flex items-center" }, v = { class: "flex flex-1 items-center
|
|
|
21
21
|
}, {
|
|
22
22
|
default: n(({ open: t }) => [
|
|
23
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-
|
|
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 md:px-1.5 xl:px-2 outline-none" }, {
|
|
25
25
|
default: n(() => [
|
|
26
26
|
i(o(b), {
|
|
27
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",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { openBlock as o, createElementBlock as l, createElementVNode as n, renderSlot as t } from "vue";
|
|
2
2
|
import s from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const r = {}, c = { class: "flex xl:h-full xl:min-w-0
|
|
4
|
-
function m(e,
|
|
3
|
+
const r = {}, c = { class: "flex xl:h-full xl:min-w-0 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 z-1" };
|
|
4
|
+
function m(e, d) {
|
|
5
5
|
return o(), l("section", c, [
|
|
6
6
|
n("div", i, [
|
|
7
7
|
t(e.$slots, "title")
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { keyMap as r } from "./useKeyMap.js";
|
|
2
2
|
import { useFileDialog as t } from "./useFileDialog.js";
|
|
3
3
|
import { useSidebar as f } from "./useSidebar.js";
|
|
4
|
-
import {
|
|
4
|
+
import { LAYOUT_SYMBOL as u, useLayout as x } from "./useLayout.js";
|
|
5
5
|
export {
|
|
6
|
+
u as LAYOUT_SYMBOL,
|
|
6
7
|
r as keyMap,
|
|
7
8
|
t as useFileDialog,
|
|
8
|
-
|
|
9
|
+
x as useLayout,
|
|
9
10
|
f as useSidebar
|
|
10
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLayout.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLayout.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAU,MAAM,KAAK,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;AACtD,eAAO,MAAM,aAAa,EAAe,YAAY,CAAC,YAAY,CAAC,CAAA;AAEnE;;;;GAIG;AACH,eAAO,MAAM,SAAS;;CAEpB,CAAA"}
|
package/dist/hooks/useLayout.js
CHANGED
|
@@ -8,6 +8,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
8
8
|
name: string;
|
|
9
9
|
uid: string;
|
|
10
10
|
}) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
12
12
|
export default _default;
|
|
13
13
|
//# sourceMappingURL=ApiClientApp.vue.d.ts.map
|
|
@@ -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":";;cAoI8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAgLjD,wBAOG"}
|