@scalar/api-client 2.3.30 → 2.3.31
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 +24 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +3 -3
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +4 -4
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +5 -5
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +5 -5
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +5 -5
- package/dist/components/DataTable/DataTableCell.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.js +2 -2
- package/dist/components/DataTable/DataTableHeader.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
- package/dist/components/DataTable/DataTableInputSelect.vue.js +5 -5
- package/dist/components/DataTable/DataTableRow.vue.js +2 -2
- package/dist/components/DataTable/DataTableText.vue.js +2 -2
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/EmptyState.vue2.js +2 -2
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +12 -12
- package/dist/components/Form/Form.vue.js +4 -4
- package/dist/components/Form/LabelInput.vue2.js +4 -4
- package/dist/components/HelpfulLink.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +3 -3
- package/dist/components/IconSelector.vue.js +5 -5
- package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +3 -3
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -2
- package/dist/components/ImportCollection/PrefetchError.vue.js +4 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +10 -10
- package/dist/components/OpenApiClientButton.vue2.js +4 -4
- package/dist/components/ScalarAsciiArt.vue2.js +3 -3
- package/dist/components/ScalarHotkey.vue.js +2 -2
- package/dist/components/SectionFilter.vue2.js +1 -1
- package/dist/components/SectionFilterButton.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.js +21 -21
- package/dist/components/Server/ServerDropdownItem.vue2.js +4 -4
- package/dist/components/Server/ServerSelector.vue.js +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +4 -4
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +2 -2
- package/dist/components/Server/index.js +6 -6
- package/dist/components/SideNav/DownloadAppButton.vue2.js +5 -5
- package/dist/components/SideNav/SideHelp.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue.js +5 -5
- package/dist/components/SideNav/SideNavGroup.vue.js +2 -2
- package/dist/components/SideNav/SideNavLink.vue.js +4 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.js +2 -2
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +4 -4
- package/dist/components/Sidebar/SidebarButton.vue.js +3 -3
- package/dist/components/Sidebar/SidebarList.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +20 -20
- package/dist/components/ViewLayout/ViewLayout.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/layouts/App/ApiClientApp.vue.js +10 -10
- package/dist/layouts/App/MainLayout.vue.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/index.js +5 -4
- package/dist/layouts/Modal/ApiClientModal.vue2.js +2 -2
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +2 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/router.js +4 -4
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/import-spec.js +3 -3
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +2 -2
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +37 -42
- package/dist/store/workspace.d.ts +2 -2
- package/dist/views/Collection/Collection.vue2.js +2 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +5 -5
- package/dist/views/Collection/CollectionCookies.vue2.js +2 -2
- package/dist/views/Collection/CollectionEnvironment.vue2.js +2 -2
- package/dist/views/Collection/CollectionInfoForm.vue2.js +2 -2
- package/dist/views/Collection/CollectionNavigation.vue.js +1 -1
- package/dist/views/Collection/CollectionOverview.vue2.js +3 -3
- package/dist/views/Collection/CollectionScripts.vue2.js +2 -2
- package/dist/views/Collection/CollectionServerForm.vue.js +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +3 -3
- package/dist/views/Collection/CollectionSettings.vue2.js +4 -4
- package/dist/views/Collection/CollectionSync.vue2.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +3 -3
- package/dist/views/Components/CodeSnippet/index.js +8 -8
- package/dist/views/Cookies/CookieForm.vue.js +2 -2
- package/dist/views/Cookies/CookieModal.vue2.js +2 -2
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +7 -7
- package/dist/views/Environment/EnvironmentColorModal.vue.js +2 -2
- package/dist/views/Environment/EnvironmentColors.vue.js +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +7 -7
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +10 -10
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +10 -10
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +11 -11
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +8 -8
- package/dist/views/Request/RequestSection/RequestParams.vue.js +13 -13
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +9 -9
- package/dist/views/Request/RequestSidebar.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItem.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +6 -6
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +15 -15
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +5 -5
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +3 -3
- package/dist/views/Settings/SettingsGeneral.vue.js +1 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.js +10 -10
- package/dist/views/Settings/components/SettingsSection.vue.js +4 -4
- package/package.json +18 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as V, computed as u, watch as z,
|
|
2
|
-
import { ScalarPopover as q,
|
|
1
|
+
import { defineComponent as V, computed as u, watch as z, createBlock as m, openBlock as n, unref as s, withCtx as v, createVNode as c, createElementBlock as a, Fragment as d, createElementVNode as i, createTextVNode as L, toDisplayString as W, createCommentVNode as h, renderList as k } from "vue";
|
|
2
|
+
import { ScalarPopover as q, ScalarButton as E, ScalarIcon as x, ScalarFloatingBackdrop as F, ScalarDropdownDivider as I } from "@scalar/components";
|
|
3
3
|
import { useLayout as M } from "../../hooks/useLayout.js";
|
|
4
4
|
import { useWorkspace as P } from "../../store/store.js";
|
|
5
5
|
import y from "./ServerDropdownItem.vue.js";
|
|
@@ -74,11 +74,11 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
74
74
|
teleport: `#${e.target}`
|
|
75
75
|
}, {
|
|
76
76
|
popover: v(({ close: t }) => [
|
|
77
|
-
|
|
77
|
+
i("div", {
|
|
78
78
|
class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
|
|
79
79
|
onClick: t
|
|
80
80
|
}, [
|
|
81
|
-
(n(!0),
|
|
81
|
+
(n(!0), a(d, null, k(f.value, (o) => (n(), m(y, {
|
|
82
82
|
key: o.id,
|
|
83
83
|
collection: e.collection,
|
|
84
84
|
operation: e.operation,
|
|
@@ -87,11 +87,11 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
87
87
|
type: "request",
|
|
88
88
|
"onUpdate:variable": b
|
|
89
89
|
}, null, 8, ["collection", "operation", "server", "serverOption"]))), 128)),
|
|
90
|
-
D.value ? (n(),
|
|
91
|
-
|
|
92
|
-
r[2] || (r[2] =
|
|
93
|
-
], 64)) :
|
|
94
|
-
(n(!0),
|
|
90
|
+
D.value ? (n(), a(d, { key: 0 }, [
|
|
91
|
+
c(s(I)),
|
|
92
|
+
r[2] || (r[2] = i("div", { class: "text-xxs text-c-2 px-2.5 py-1" }, "Collection", -1))
|
|
93
|
+
], 64)) : h("", !0),
|
|
94
|
+
(n(!0), a(d, null, k(S.value, (o) => (n(), m(y, {
|
|
95
95
|
key: o.id,
|
|
96
96
|
collection: e.collection,
|
|
97
97
|
operation: e.operation,
|
|
@@ -100,39 +100,39 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
100
100
|
type: "collection",
|
|
101
101
|
"onUpdate:variable": b
|
|
102
102
|
}, null, 8, ["collection", "operation", "server", "serverOption"]))), 128)),
|
|
103
|
-
s(U) !== "modal" ? (n(),
|
|
103
|
+
s(U) !== "modal" ? (n(), a("button", {
|
|
104
104
|
key: 1,
|
|
105
105
|
class: "text-xxs p-1.75 hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded",
|
|
106
106
|
type: "button",
|
|
107
107
|
onClick: B
|
|
108
108
|
}, [
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
i("div", j, [
|
|
110
|
+
c(s(x), {
|
|
111
111
|
icon: "Add",
|
|
112
112
|
size: "sm"
|
|
113
113
|
})
|
|
114
114
|
]),
|
|
115
|
-
r[3] || (r[3] =
|
|
116
|
-
])) :
|
|
115
|
+
r[3] || (r[3] = i("span", null, "Add Server", -1))
|
|
116
|
+
])) : h("", !0)
|
|
117
117
|
], 8, T)
|
|
118
118
|
]),
|
|
119
119
|
backdrop: v(() => [
|
|
120
|
-
|
|
120
|
+
c(s(F), { class: "-top-[--scalar-address-bar-height] rounded-lg" })
|
|
121
121
|
]),
|
|
122
122
|
default: v(() => [
|
|
123
|
-
|
|
123
|
+
c(s(E), {
|
|
124
124
|
class: "gap-0.75 z-context-plus h-6.5 hover:bg-b-2 font-code ml-0.75 text-c-2 whitespace-nowrap rounded border px-1.5 text-xs lg:text-sm",
|
|
125
125
|
variant: "ghost"
|
|
126
126
|
}, {
|
|
127
127
|
default: v(() => {
|
|
128
128
|
var t;
|
|
129
129
|
return [
|
|
130
|
-
(t = e.operation) != null && t.selectedServerUid || e.collection.selectedServerUid ? (n(),
|
|
131
|
-
r[0] || (r[0] =
|
|
130
|
+
(t = e.operation) != null && t.selectedServerUid || e.collection.selectedServerUid ? (n(), a(d, { key: 0 }, [
|
|
131
|
+
r[0] || (r[0] = i("span", { class: "sr-only" }, "Server:", -1)),
|
|
132
132
|
L(" " + W(N.value), 1)
|
|
133
|
-
], 64)) : (n(),
|
|
134
|
-
r[1] || (r[1] =
|
|
135
|
-
|
|
133
|
+
], 64)) : (n(), a(d, { key: 1 }, [
|
|
134
|
+
r[1] || (r[1] = i("span", { class: "sr-only" }, "Add Server", -1)),
|
|
135
|
+
c(s(x), {
|
|
136
136
|
icon: "Add",
|
|
137
137
|
size: "xs"
|
|
138
138
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, useId as O, computed as y,
|
|
1
|
+
import { defineComponent as C, useId as O, computed as y, createElementBlock as c, openBlock as p, normalizeClass as V, createElementVNode as u, createCommentVNode as h, mergeProps as q, unref as a, createVNode as v, toDisplayString as M, withModifiers as E } from "vue";
|
|
2
2
|
import { ScalarListboxCheckbox as I, ScalarMarkdown as N } from "@scalar/components";
|
|
3
3
|
import B from "./ServerVariablesForm.vue.js";
|
|
4
4
|
import { useWorkspace as D } from "../../store/store.js";
|
|
@@ -46,7 +46,7 @@ const P = ["aria-expanded"], j = { class: "overflow-hidden text-ellipsis whitesp
|
|
|
46
46
|
};
|
|
47
47
|
return (r, t) => {
|
|
48
48
|
var i, s;
|
|
49
|
-
return
|
|
49
|
+
return p(), c("div", {
|
|
50
50
|
class: V(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !o.value }])
|
|
51
51
|
}, [
|
|
52
52
|
u("button", q(d.value ? { "aria-controls": a(f) } : {}, {
|
|
@@ -58,7 +58,7 @@ const P = ["aria-expanded"], j = { class: "overflow-hidden text-ellipsis whitesp
|
|
|
58
58
|
v(a(I), { selected: o.value }, null, 8, ["selected"]),
|
|
59
59
|
u("span", j, M(r.serverOption.label), 1)
|
|
60
60
|
], 16, P),
|
|
61
|
-
d.value ? (
|
|
61
|
+
d.value ? (p(), c("div", {
|
|
62
62
|
key: 0,
|
|
63
63
|
id: a(f),
|
|
64
64
|
class: "bg-b-2 divide divide-y rounded-b border-t *:pl-4",
|
|
@@ -69,7 +69,7 @@ const P = ["aria-expanded"], j = { class: "overflow-hidden text-ellipsis whitesp
|
|
|
69
69
|
variables: (i = r.server) == null ? void 0 : i.variables,
|
|
70
70
|
"onUpdate:variable": w
|
|
71
71
|
}, null, 8, ["variables"]),
|
|
72
|
-
(s = r.server) != null && s.description ? (
|
|
72
|
+
(s = r.server) != null && s.description ? (p(), c("div", L, [
|
|
73
73
|
u("div", W, [
|
|
74
74
|
v(a(N), {
|
|
75
75
|
value: r.server.description
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, computed as a, watch as y,
|
|
1
|
+
import { defineComponent as h, computed as a, watch as y, createBlock as k, createElementBlock as U, openBlock as m, unref as n, withCtx as f, createVNode as S, createElementVNode as g, createTextVNode as p, toDisplayString as x } from "vue";
|
|
2
2
|
import { ScalarListbox as V, ScalarButton as b, ScalarIcon as B } from "@scalar/components";
|
|
3
3
|
import { useWorkspace as N } from "../../store/store.js";
|
|
4
4
|
const W = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h,
|
|
1
|
+
import { defineComponent as h, createElementBlock as m, createCommentVNode as k, openBlock as o, Fragment as y, renderList as C, createElementVNode as V, createBlock as v, toDisplayString as _ } from "vue";
|
|
2
2
|
import B from "./ServerVariablesSelect.vue.js";
|
|
3
3
|
import S from "./ServerVariablesTextbox.vue.js";
|
|
4
4
|
const $ = { class: "mr-1.5 flex items-center py-1.5 pl-3 after:content-[':'] group-has-[input]/label:mr-0" }, N = /* @__PURE__ */ h({
|
|
@@ -18,13 +18,13 @@ const $ = { class: "mr-1.5 flex items-center py-1.5 pl-3 after:content-[':'] gro
|
|
|
18
18
|
var r, l, a;
|
|
19
19
|
return (((r = n.values) == null ? void 0 : r[e]) ?? ((a = (l = n.variables) == null ? void 0 : l[e]) == null ? void 0 : a.default) ?? "").toString();
|
|
20
20
|
};
|
|
21
|
-
return (e, r) => e.variables && Object.keys(e.variables ?? {}).length ? (o(!0), m(
|
|
21
|
+
return (e, r) => e.variables && Object.keys(e.variables ?? {}).length ? (o(!0), m(y, { key: 0 }, C(Object.keys(e.variables), (l) => {
|
|
22
22
|
var a, u, c, p, b;
|
|
23
23
|
return o(), m("label", {
|
|
24
24
|
key: l,
|
|
25
25
|
class: "group/label flex w-full"
|
|
26
26
|
}, [
|
|
27
|
-
|
|
27
|
+
V("span", $, _(l), 1),
|
|
28
28
|
(c = (u = (a = e.variables) == null ? void 0 : a[l]) == null ? void 0 : u.enum) != null && c.length ? (o(), v(B, {
|
|
29
29
|
key: 0,
|
|
30
30
|
controls: e.controls,
|
|
@@ -39,7 +39,7 @@ const $ = { class: "mr-1.5 flex items-center py-1.5 pl-3 after:content-[':'] gro
|
|
|
39
39
|
onChange: (t) => s(l, t)
|
|
40
40
|
}, null, 8, ["controls", "value", "onChange"]))
|
|
41
41
|
]);
|
|
42
|
-
}), 128)) :
|
|
42
|
+
}), 128)) : k("", !0);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as s,
|
|
1
|
+
import { defineComponent as v, computed as s, createBlock as f, openBlock as r, unref as a, withCtx as c, createVNode as i, createElementVNode as S, normalizeClass as V, createElementBlock as h, createCommentVNode as g, createTextVNode as C, toDisplayString as k } from "vue";
|
|
2
2
|
import { ScalarListbox as y, ScalarButton as B, ScalarIcon as N } from "@scalar/components";
|
|
3
3
|
const _ = {
|
|
4
4
|
key: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, computed as c, withDirectives as u,
|
|
1
|
+
import { defineComponent as p, computed as c, withDirectives as u, createElementBlock as m, openBlock as i, mergeProps as d, vModelText as f } from "vue";
|
|
2
2
|
const g = /* @__PURE__ */ p({
|
|
3
3
|
__name: "ServerVariablesTextbox",
|
|
4
4
|
props: {
|
|
@@ -11,7 +11,7 @@ const g = /* @__PURE__ */ p({
|
|
|
11
11
|
get: () => a.value,
|
|
12
12
|
set: (e) => n("change", e)
|
|
13
13
|
});
|
|
14
|
-
return (e, o) => u((
|
|
14
|
+
return (e, o) => u((i(), m("input", d({
|
|
15
15
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s)
|
|
16
16
|
}, e.controls ? { ...e.$attrs, "aria-controls": e.controls } : {}, {
|
|
17
17
|
autocomplete: "off",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { default as o } from "./
|
|
2
|
-
import { default as t } from "./
|
|
3
|
-
import { default as l } from "./
|
|
1
|
+
import { default as o } from "./ServerVariablesForm.vue.js";
|
|
2
|
+
import { default as t } from "./ServerDropdown.vue.js";
|
|
3
|
+
import { default as l } from "./ServerSelector.vue.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
t as ServerDropdown,
|
|
6
|
+
l as ServerSelector,
|
|
7
|
+
o as ServerVariablesForm
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
1
|
+
import { defineComponent as e, createBlock as a, openBlock as m, withCtx as o, createElementVNode as s, normalizeClass as r, unref as t, createVNode as c } from "vue";
|
|
2
2
|
import { ScalarIcon as p } from "@scalar/components";
|
|
3
3
|
import l from "./SideNavLink.vue.js";
|
|
4
4
|
import { useLayout as i } from "../../hooks/useLayout.js";
|
|
@@ -6,22 +6,22 @@ const h = /* @__PURE__ */ e({
|
|
|
6
6
|
__name: "DownloadAppButton",
|
|
7
7
|
setup(u) {
|
|
8
8
|
const { layout: n } = i();
|
|
9
|
-
return (d, _) => (
|
|
9
|
+
return (d, _) => (m(), a(l, {
|
|
10
10
|
class: "download-app-button gap-2 !px-3 !py-1.5 sm:px-3",
|
|
11
11
|
href: "https://scalar.com/download?utm_source=web_client&utm_medium=download_button&utm_campaign=topnav",
|
|
12
12
|
icon: "Download",
|
|
13
13
|
target: "_blank"
|
|
14
14
|
}, {
|
|
15
15
|
icon: o(() => [
|
|
16
|
-
|
|
16
|
+
c(t(p), {
|
|
17
17
|
icon: "Download",
|
|
18
18
|
size: "sm",
|
|
19
19
|
thickness: "2"
|
|
20
20
|
})
|
|
21
21
|
]),
|
|
22
22
|
default: o(() => [
|
|
23
|
-
|
|
24
|
-
class:
|
|
23
|
+
s("span", {
|
|
24
|
+
class: r(["sr-only text-sm font-medium", { "sm:not-sr-only": t(n) === "web" }])
|
|
25
25
|
}, " Download App ", 2)
|
|
26
26
|
]),
|
|
27
27
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
1
|
+
import { defineComponent as i, createBlock as r, openBlock as c, unref as s, withCtx as n, createVNode as l, createTextVNode as d, createElementVNode as e } from "vue";
|
|
2
2
|
import { ScalarDropdown as u, ScalarDropdownItem as o, ScalarIcon as a } from "@scalar/components";
|
|
3
3
|
import p from "./SideNavLink.vue.js";
|
|
4
4
|
const f = {
|
|
@@ -24,7 +24,7 @@ const f = {
|
|
|
24
24
|
}, y = { class: "flex items-center justify-center" }, D = /* @__PURE__ */ i({
|
|
25
25
|
__name: "SideHelp",
|
|
26
26
|
setup(j) {
|
|
27
|
-
return (v, t) => (
|
|
27
|
+
return (v, t) => (c(), r(s(u), {
|
|
28
28
|
class: "max-w-[150px]",
|
|
29
29
|
placement: "top-end"
|
|
30
30
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as w,
|
|
1
|
+
import { defineComponent as w, createElementBlock as r, openBlock as n, normalizeClass as d, unref as e, createVNode as t, withCtx as a, createElementVNode as c, Fragment as k, renderList as b, createTextVNode as u, toDisplayString as y, createCommentVNode as C } from "vue";
|
|
2
2
|
import { ScalarIcon as S } from "@scalar/components";
|
|
3
3
|
import { useRouter as L } from "vue-router";
|
|
4
4
|
import { ROUTES as B } from "../../constants.js";
|
|
@@ -16,7 +16,7 @@ const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W
|
|
|
16
16
|
__name: "SideNav",
|
|
17
17
|
setup($) {
|
|
18
18
|
const { currentRoute: s } = L(), { layout: i } = j(), { activeWorkspace: l } = V();
|
|
19
|
-
return (z, p) => (
|
|
19
|
+
return (z, p) => (n(), r("nav", {
|
|
20
20
|
"aria-label": "App Navigation",
|
|
21
21
|
class: d([
|
|
22
22
|
"app-drag-region flex items-center justify-center gap-1.5 pt-2 sm:justify-between",
|
|
@@ -38,11 +38,11 @@ const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W
|
|
|
38
38
|
size: "xl"
|
|
39
39
|
})
|
|
40
40
|
], 2),
|
|
41
|
-
(
|
|
41
|
+
(n(!0), r(k, null, b(e(B).filter(
|
|
42
42
|
(o) => o.to.name !== "settings.default"
|
|
43
43
|
), ({ icon: o, to: x, displayName: m }, h) => {
|
|
44
44
|
var f;
|
|
45
|
-
return
|
|
45
|
+
return n(), r("li", { key: h }, [
|
|
46
46
|
t(v, {
|
|
47
47
|
active: e(s).name === m.toLowerCase() || m.toLowerCase() === "environment" && e(s).name === "environment.collection",
|
|
48
48
|
icon: o,
|
|
@@ -87,7 +87,7 @@ const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W
|
|
|
87
87
|
c("li", R, [
|
|
88
88
|
t(N)
|
|
89
89
|
]),
|
|
90
|
-
e(i) !== "desktop" ? (
|
|
90
|
+
e(i) !== "desktop" ? (n(), r("li", W, [
|
|
91
91
|
t(E)
|
|
92
92
|
])) : C("", !0)
|
|
93
93
|
];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, createElementBlock as r, openBlock as s, normalizeClass as a, unref as l, renderSlot as n } from "vue";
|
|
2
2
|
import { useLayout as p } from "../../hooks/useLayout.js";
|
|
3
3
|
const _ = /* @__PURE__ */ t({
|
|
4
4
|
__name: "SideNavGroup",
|
|
5
5
|
setup(m) {
|
|
6
6
|
const { layout: e } = p();
|
|
7
|
-
return (o, u) => (
|
|
7
|
+
return (o, u) => (s(), r("ul", {
|
|
8
8
|
class: a(["flex gap-1.5", l(e) === "web" ? "sm:gap-px sm:px-2" : "sm:flex-col"])
|
|
9
9
|
}, [
|
|
10
10
|
n(o.$slots, "default")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
1
|
+
import { defineComponent as r, createBlock as a, openBlock as i, resolveDynamicComponent as m, normalizeClass as s, unref as o, withCtx as l, renderSlot as t, createElementVNode as c, createVNode as d } from "vue";
|
|
2
2
|
import { ScalarIcon as p } from "@scalar/components";
|
|
3
3
|
import { useLayout as u } from "../../hooks/useLayout.js";
|
|
4
4
|
const v = /* @__PURE__ */ r({
|
|
@@ -10,7 +10,7 @@ const v = /* @__PURE__ */ r({
|
|
|
10
10
|
},
|
|
11
11
|
setup(f) {
|
|
12
12
|
const { layout: n } = u();
|
|
13
|
-
return (e, b) => (
|
|
13
|
+
return (e, b) => (i(), a(m(e.is ?? "a"), {
|
|
14
14
|
class: s(["hover:bg-b-3 dark:hover:bg-b-2 flex min-w-[37px] max-w-[37px] items-center justify-center rounded-lg p-2 no-underline", {
|
|
15
15
|
"bg-b-3 dark:bg-b-2 text-c-1 transition-none hover:cursor-default": e.active,
|
|
16
16
|
"sm:min-w-max sm:max-w-max sm:rounded sm:py-1.5": o(n) === "web"
|
|
@@ -18,13 +18,13 @@ const v = /* @__PURE__ */ r({
|
|
|
18
18
|
}, {
|
|
19
19
|
default: l(() => [
|
|
20
20
|
t(e.$slots, "icon", {}, () => [
|
|
21
|
-
|
|
21
|
+
d(o(p), {
|
|
22
22
|
class: s(o(n) === "web" ? "sm:hidden" : ""),
|
|
23
23
|
icon: e.icon,
|
|
24
24
|
thickness: "1.5"
|
|
25
25
|
}, null, 8, ["class", "icon"])
|
|
26
26
|
]),
|
|
27
|
-
|
|
27
|
+
c("span", {
|
|
28
28
|
class: s(["sr-only text-sm font-medium", { "sm:not-sr-only": o(n) === "web" }])
|
|
29
29
|
}, [
|
|
30
30
|
t(e.$slots, "default")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
1
|
+
import { defineComponent as e, createBlock as t, openBlock as i, unref as n, withCtx as r, renderSlot as a } from "vue";
|
|
2
2
|
import { RouterLink as c } from "vue-router";
|
|
3
3
|
import p from "./SideNavLink.vue.js";
|
|
4
4
|
const _ = /* @__PURE__ */ e({
|
|
@@ -9,7 +9,7 @@ const _ = /* @__PURE__ */ e({
|
|
|
9
9
|
active: { type: Boolean }
|
|
10
10
|
},
|
|
11
11
|
setup(s) {
|
|
12
|
-
return (o, f) => (
|
|
12
|
+
return (o, f) => (i(), t(p, {
|
|
13
13
|
is: n(c),
|
|
14
14
|
active: !!o.active,
|
|
15
15
|
icon: o.icon,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, computed as p,
|
|
1
|
+
import { defineComponent as m, computed as p, createBlock as c, openBlock as r, withCtx as d, createElementBlock as u, createCommentVNode as g, toDisplayString as b } from "vue";
|
|
2
2
|
import f from "./SidebarListElementForm.vue.js";
|
|
3
3
|
const v = {
|
|
4
4
|
key: 0,
|
|
@@ -19,7 +19,7 @@ const v = {
|
|
|
19
19
|
onSubmit: e[1] || (e[1] = (i) => a("delete"))
|
|
20
20
|
}, {
|
|
21
21
|
default: d(() => [
|
|
22
|
-
n.warningMessage ? (r(), u("p", v,
|
|
22
|
+
n.warningMessage ? (r(), u("p", v, b(n.warningMessage), 1)) : g("", !0)
|
|
23
23
|
]),
|
|
24
24
|
_: 1
|
|
25
25
|
}, 8, ["label"]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, ref as u,
|
|
1
|
+
import { defineComponent as p, ref as u, createBlock as f, openBlock as v, withCtx as n, createElementVNode as m, createVNode as l, unref as s } from "vue";
|
|
2
2
|
import { ScalarButton as x, ScalarTextInput as V } from "@scalar/components";
|
|
3
3
|
import { LibraryIcon as _ } from "@scalar/icons/library";
|
|
4
4
|
import b from "../../IconSelector.vue.js";
|
|
@@ -12,7 +12,7 @@ const C = { class: "grid grid-cols-[auto,1fr] gap-2" }, g = { class: "flex aspec
|
|
|
12
12
|
emits: ["close", "edit"],
|
|
13
13
|
setup(d, { emit: c }) {
|
|
14
14
|
const r = d, i = c, a = u(r.name), o = u(r.icon);
|
|
15
|
-
return (w, e) => (
|
|
15
|
+
return (w, e) => (v(), f(S, {
|
|
16
16
|
onCancel: e[2] || (e[2] = (t) => i("close")),
|
|
17
17
|
onSubmit: e[3] || (e[3] = (t) => i("edit", a.value, o.value))
|
|
18
18
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, ref as i,
|
|
1
|
+
import { defineComponent as a, ref as i, createBlock as u, openBlock as s, withCtx as d, createVNode as p, unref as f } from "vue";
|
|
2
2
|
import { ScalarTextInput as c } from "@scalar/components";
|
|
3
3
|
import v from "./SidebarListElementForm.vue.js";
|
|
4
4
|
const C = /* @__PURE__ */ a({
|
|
@@ -9,7 +9,7 @@ const C = /* @__PURE__ */ a({
|
|
|
9
9
|
emits: ["close", "edit"],
|
|
10
10
|
setup(m, { emit: l }) {
|
|
11
11
|
const r = m, n = l, t = i(r.name);
|
|
12
|
-
return (x, e) => (
|
|
12
|
+
return (x, e) => (s(), u(v, {
|
|
13
13
|
onCancel: e[1] || (e[1] = (o) => n("close")),
|
|
14
14
|
onSubmit: e[2] || (e[2] = (o) => n("edit", t.value))
|
|
15
15
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u,
|
|
1
|
+
import { defineComponent as u, createElementBlock as m, openBlock as d, withModifiers as f, renderSlot as c, createElementVNode as b, createVNode as n, unref as a, withCtx as r, createTextVNode as s, toDisplayString as v } from "vue";
|
|
2
2
|
import { ScalarButton as l } from "@scalar/components";
|
|
3
3
|
const g = { class: "flex justify-between gap-10" }, y = /* @__PURE__ */ u({
|
|
4
4
|
__name: "SidebarListElementForm",
|
|
@@ -9,7 +9,7 @@ const g = { class: "flex justify-between gap-10" }, y = /* @__PURE__ */ u({
|
|
|
9
9
|
emits: ["cancel", "submit"],
|
|
10
10
|
setup(x, { emit: i }) {
|
|
11
11
|
const o = i;
|
|
12
|
-
return (t, e) => (
|
|
12
|
+
return (t, e) => (d(), m("form", {
|
|
13
13
|
class: "flex flex-col gap-4 text-base",
|
|
14
14
|
onSubmit: e[1] || (e[1] = f((p) => o("submit"), ["prevent"]))
|
|
15
15
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, ref as g, withDirectives as S,
|
|
1
|
+
import { defineComponent as E, ref as g, withDirectives as S, createElementBlock as l, openBlock as m, normalizeStyle as _, normalizeClass as h, unref as t, renderSlot as r, createCommentVNode as u, createElementVNode as n, toDisplayString as D, Fragment as L, vShow as N } from "vue";
|
|
2
2
|
import { useBreakpoints as W } from "@scalar/use-hooks/useBreakpoints";
|
|
3
3
|
import { useLayout as $ } from "../../hooks/useLayout.js";
|
|
4
4
|
import { useSidebar as z } from "../../hooks/useSidebar.js";
|
|
@@ -26,14 +26,14 @@ const B = {
|
|
|
26
26
|
};
|
|
27
27
|
document.documentElement.addEventListener("mousemove", b, !1), document.documentElement.addEventListener("mouseup", v, !1);
|
|
28
28
|
};
|
|
29
|
-
return (e, f) => S((
|
|
29
|
+
return (e, f) => S((m(), l("aside", {
|
|
30
30
|
ref_key: "sidebarRef",
|
|
31
31
|
ref: p,
|
|
32
32
|
class: h(["sidebar bg-b-1 md:border-r-1/2 relative flex min-w-full flex-1 flex-col overflow-hidden leading-3 md:min-w-fit md:flex-none md:border-b-0", { dragging: a.value }]),
|
|
33
33
|
style: _({ width: t(d).lg ? t(o) : "100%" })
|
|
34
34
|
}, [
|
|
35
35
|
r(e.$slots, "header", {}, void 0, !0),
|
|
36
|
-
t(c) !== "modal" && e.title ? (
|
|
36
|
+
t(c) !== "modal" && e.title ? (m(), l("div", B, [
|
|
37
37
|
n("h2", I, D(e.title), 1),
|
|
38
38
|
t(d).lg ? u("", !0) : r(e.$slots, "button", { key: 0 }, void 0, !0)
|
|
39
39
|
])) : u("", !0),
|
|
@@ -44,7 +44,7 @@ const B = {
|
|
|
44
44
|
}, [
|
|
45
45
|
r(e.$slots, "content", {}, void 0, !0)
|
|
46
46
|
], 2),
|
|
47
|
-
t(d).lg ? (
|
|
47
|
+
t(d).lg ? (m(), l(L, { key: 1 }, [
|
|
48
48
|
n("div", X, [
|
|
49
49
|
r(e.$slots, "button", {}, void 0, !0)
|
|
50
50
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
1
|
+
import { defineComponent as i, createBlock as o, openBlock as e, unref as r, withCtx as u, renderSlot as p, createCommentVNode as s } from "vue";
|
|
2
2
|
import { ScalarButton as m } from "@scalar/components";
|
|
3
3
|
import d from "../ScalarHotkey.vue.js";
|
|
4
4
|
import { useLayout as k } from "../../hooks/useLayout.js";
|
|
@@ -12,7 +12,7 @@ const g = /* @__PURE__ */ i({
|
|
|
12
12
|
const a = n, { layout: c } = k(), l = () => {
|
|
13
13
|
a.click();
|
|
14
14
|
};
|
|
15
|
-
return (t, h) => (
|
|
15
|
+
return (t, h) => (e(), o(r(m), {
|
|
16
16
|
class: "bg-b-1 text-c-1 hover:bg-b-2 border-1/2 group relative h-auto w-auto px-2 py-1 md:w-full md:p-1.5",
|
|
17
17
|
icon: "Plus",
|
|
18
18
|
variant: "outlined",
|
|
@@ -20,7 +20,7 @@ const g = /* @__PURE__ */ i({
|
|
|
20
20
|
}, {
|
|
21
21
|
default: u(() => [
|
|
22
22
|
p(t.$slots, "title"),
|
|
23
|
-
t.hotkey && r(c) === "desktop" ? (
|
|
23
|
+
t.hotkey && r(c) === "desktop" ? (e(), o(d, {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:block",
|
|
26
26
|
hotkey: t.hotkey
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as o, openBlock as t, renderSlot as r } from "vue";
|
|
2
2
|
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const s = {}, l = { class: "gap-1/2 flex flex-col px-3 pb-[75px]" };
|
|
4
4
|
function n(e, f) {
|
|
5
|
-
return
|
|
5
|
+
return t(), o("ul", l, [
|
|
6
6
|
r(e.$slots, "default")
|
|
7
7
|
]);
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, ref as B, computed as h, resolveComponent as w,
|
|
1
|
+
import { defineComponent as C, ref as B, computed as h, resolveComponent as w, createElementBlock as b, openBlock as n, createVNode as r, unref as p, withCtx as d, withModifiers as R, normalizeClass as M, createCommentVNode as m, createBlock as E, createElementVNode as g, normalizeStyle as I, toDisplayString as N } from "vue";
|
|
2
2
|
import { ScalarIcon as S } from "@scalar/components";
|
|
3
3
|
import { Draggable as z } from "@scalar/draggable";
|
|
4
4
|
import { useRouter as V } from "vue-router";
|
|
@@ -46,11 +46,11 @@ const O = { class: "empty-variable-name line-clamp-1 break-all text-sm group-hov
|
|
|
46
46
|
}, {
|
|
47
47
|
default: d(() => [
|
|
48
48
|
r(k, {
|
|
49
|
-
class:
|
|
49
|
+
class: M(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-5" : "pl-1.5"]]),
|
|
50
50
|
exactActiveClass: "bg-b-2 !text-c-1",
|
|
51
51
|
role: "button",
|
|
52
52
|
to: e.to,
|
|
53
|
-
onClick: l[1] || (l[1] =
|
|
53
|
+
onClick: l[1] || (l[1] = R((a) => f(a), ["prevent"]))
|
|
54
54
|
}, {
|
|
55
55
|
default: d(() => [
|
|
56
56
|
e.variable.color ? (n(), b("button", {
|
|
@@ -59,17 +59,17 @@ const O = { class: "empty-variable-name line-clamp-1 break-all text-sm group-hov
|
|
|
59
59
|
type: "button",
|
|
60
60
|
onClick: l[0] || (l[0] = (a) => v(e.variable.uid))
|
|
61
61
|
}, [
|
|
62
|
-
|
|
62
|
+
g("div", {
|
|
63
63
|
class: "h-2.5 w-2.5 rounded-xl",
|
|
64
|
-
style:
|
|
64
|
+
style: I({ backgroundColor: e.variable.color })
|
|
65
65
|
}, null, 4)
|
|
66
|
-
])) :
|
|
67
|
-
e.variable.icon ? (n(),
|
|
66
|
+
])) : m("", !0),
|
|
67
|
+
e.variable.icon ? (n(), E(p(S), {
|
|
68
68
|
key: 1,
|
|
69
69
|
class: "text-sidebar-c-2 size-3.5 stroke-[2.25]",
|
|
70
70
|
icon: e.variable.icon
|
|
71
|
-
}, null, 8, ["icon"])) :
|
|
72
|
-
|
|
71
|
+
}, null, 8, ["icon"])) : m("", !0),
|
|
72
|
+
g("span", O, N(e.variable.name), 1),
|
|
73
73
|
r($, {
|
|
74
74
|
isCopyable: !!e.isCopyable,
|
|
75
75
|
isDeletable: !!e.isDeletable,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, ref as C,
|
|
1
|
+
import { defineComponent as g, ref as C, createElementBlock as l, openBlock as n, Fragment as h, createElementVNode as w, createVNode as i, createCommentVNode as r, unref as a, withModifiers as k, withCtx as M, createBlock as D } from "vue";
|
|
2
2
|
import { useModal as N, ScalarIcon as m, ScalarModal as $ } from "@scalar/components";
|
|
3
3
|
import { useClipboard as B } from "@scalar/use-hooks/useClipboard";
|
|
4
4
|
import x from "./Actions/DeleteSidebarListElement.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a,
|
|
1
|
+
import { defineComponent as a, createElementBlock as n, openBlock as l, unref as o, createElementVNode as e, toDisplayString as d, normalizeClass as p } from "vue";
|
|
2
2
|
import { useSidebar as c } from "../../hooks/useSidebar.js";
|
|
3
3
|
const u = ["aria-pressed"], m = { class: "sr-only" }, g = {
|
|
4
4
|
class: "size-4",
|
|
@@ -9,7 +9,7 @@ const u = ["aria-pressed"], m = { class: "sr-only" }, g = {
|
|
|
9
9
|
__name: "SidebarToggle",
|
|
10
10
|
setup(b) {
|
|
11
11
|
const { isSidebarOpen: s, toggleSidebarOpen: r } = c();
|
|
12
|
-
return (f, t) => (
|
|
12
|
+
return (f, t) => (l(), n("button", {
|
|
13
13
|
"aria-pressed": o(s),
|
|
14
14
|
class: "scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 rounded-lg p-2",
|
|
15
15
|
type: "button",
|
|
@@ -17,7 +17,7 @@ const u = ["aria-pressed"], m = { class: "sr-only" }, g = {
|
|
|
17
17
|
(...i) => o(r) && o(r)(...i))
|
|
18
18
|
}, [
|
|
19
19
|
e("span", m, d(o(s) ? "Hide" : "Show") + " sidebar", 1),
|
|
20
|
-
(
|
|
20
|
+
(l(), n("svg", g, [
|
|
21
21
|
t[1] || (t[1] = e("defs", null, [
|
|
22
22
|
e("clipPath", { id: "mask" }, [
|
|
23
23
|
e("path", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as O, reactive as W, ref as D, computed as L, watch as I, onMounted as K, onBeforeUnmount as q,
|
|
2
|
-
import { ScalarContextMenu as P,
|
|
1
|
+
import { defineComponent as O, reactive as W, ref as D, computed as L, watch as I, onMounted as K, onBeforeUnmount as q, createElementBlock as g, openBlock as p, createElementVNode as h, createVNode as r, unref as i, withCtx as m, createTextVNode as U, createBlock as k, createCommentVNode as F, toDisplayString as H, Fragment as G, renderList as J } from "vue";
|
|
2
|
+
import { ScalarContextMenu as P, ScalarFloating as Q, ScalarDropdownMenu as X, ScalarDropdownButton as A, ScalarIcon as C } from "@scalar/components";
|
|
3
3
|
import { LibraryIcon as Y } from "@scalar/icons/library";
|
|
4
4
|
import { useClipboard as Z } from "@scalar/use-hooks/useClipboard";
|
|
5
5
|
import { useRouter as ee } from "vue-router";
|