@scalar/api-client 2.1.45 → 2.1.46
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 +23 -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/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 +8 -8
- package/dist/components/Form/Form.vue.js +15 -15
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -13
- 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/SideNav/SideNavGroup.vue.d.ts +18 -0
- 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 +27 -27
- 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 +14 -13
- 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 +12 -11
- 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 +46 -45
- package/dist/libs/hot-keys.d.ts +1 -1
- 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/security-schemes.d.ts +4 -4
- package/dist/store/store.d.ts +56 -56
- 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/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 +103 -102
- 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/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/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/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 +2 -2
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +47 -46
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +1 -1
- package/package.json +8 -6
- 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,27 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as f, useId as x, computed as h, openBlock as r, createElementBlock as i, createElementVNode as e, Fragment as g, renderList as _, normalizeClass as b, createTextVNode as y, toDisplayString as l, withDirectives as S, unref as a, vModelRadio as w, createVNode as k } from "vue";
|
|
2
|
+
import { ScalarIcon as V } from "@scalar/components";
|
|
3
|
+
const q = { class: "hidden lg:flex ml-auto filter-hover context-bar-group lg:w-[120px]" }, B = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 hidden xl:flex justify-end rounded text-xs gap-[1.5px] pointer-events-auto relative w-full py-2" }, C = ["name", "value"], F = { class: "flex items-center context-bar-group-hover:text-c-1 absolute -right-6 top-1/2 -translate-y-1/2" }, N = { class: "mr-1.5 context-bar-group-hover:hidden" }, D = /* @__PURE__ */ f({
|
|
4
4
|
__name: "ContextBar",
|
|
5
5
|
props: {
|
|
6
6
|
sections: {},
|
|
7
7
|
activeSection: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["setActiveSection"],
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
setup(c, { emit: d }) {
|
|
11
|
+
const u = c, p = d, m = x(), t = h({
|
|
12
|
+
get: () => u.activeSection,
|
|
13
|
+
set: (s) => p("setActiveSection", s)
|
|
14
|
+
});
|
|
15
|
+
return (s, o) => (r(), i("fieldset", q, [
|
|
16
|
+
o[1] || (o[1] = e("legend", { class: "sr-only" }, "Filter Sections", -1)),
|
|
17
|
+
e("div", B, [
|
|
18
|
+
(r(!0), i(g, null, _(s.sections, (n) => (r(), i("label", {
|
|
19
|
+
key: n,
|
|
20
|
+
class: b(["filter-hover-item flex items-center hover:bg-b-2 rounded p-1 px-2 cursor-pointer text-center font-medium w-fit whitespace-nowrap has-[:focus-visible]:outline", [t.value === n ? "text-c-1 pointer-events-none" : ""]])
|
|
21
|
+
}, [
|
|
22
|
+
y(l(n) + " ", 1),
|
|
23
|
+
S(e("input", {
|
|
24
|
+
"onUpdate:modelValue": o[0] || (o[0] = (v) => t.value = v),
|
|
25
|
+
class: "sr-only",
|
|
26
|
+
name: a(m),
|
|
27
|
+
type: "radio",
|
|
28
|
+
value: n
|
|
29
|
+
}, null, 8, C), [
|
|
30
|
+
[w, t.value]
|
|
31
|
+
])
|
|
32
|
+
], 2))), 128)),
|
|
33
|
+
e("div", F, [
|
|
34
|
+
e("span", N, l(t.value), 1),
|
|
35
|
+
k(a(V), {
|
|
25
36
|
icon: "FilterList",
|
|
26
37
|
size: "md",
|
|
27
38
|
thickness: "2"
|
|
@@ -32,5 +43,5 @@ const m = { class: "hidden lg:flex ml-auto filter-hover context-bar-group lg:w-[
|
|
|
32
43
|
}
|
|
33
44
|
});
|
|
34
45
|
export {
|
|
35
|
-
|
|
46
|
+
D as default
|
|
36
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"AA0DA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC1B,CAAC;;;;;;WADQ,MAAM,GAAG,QAAQ;;AAsH7B,wBASG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { cva as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as s, openBlock as n, createBlock as i, withCtx as c, createElementVNode as o, normalizeClass as d, unref as a, createVNode as p } from "vue";
|
|
2
|
+
import { ScalarIcon as u } from "@scalar/components";
|
|
3
|
+
import { cva as m } from "cva";
|
|
4
|
+
import f from "./DataTableCell.vue.js";
|
|
5
|
+
const b = ["checked", "disabled"], x = /* @__PURE__ */ s({
|
|
6
6
|
__name: "DataTableCheckbox",
|
|
7
7
|
props: {
|
|
8
8
|
modelValue: { type: Boolean },
|
|
@@ -11,8 +11,8 @@ const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
13
|
setup(h) {
|
|
14
|
-
const
|
|
15
|
-
base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-2 pointer-events-none absolute
|
|
14
|
+
const l = m({
|
|
15
|
+
base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-2 pointer-events-none absolute",
|
|
16
16
|
variants: {
|
|
17
17
|
align: {
|
|
18
18
|
left: "left-0",
|
|
@@ -20,20 +20,20 @@ const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
return (e,
|
|
24
|
-
default:
|
|
25
|
-
|
|
23
|
+
return (e, t) => (n(), i(f, { class: "group/cell relative flex min-w-8" }, {
|
|
24
|
+
default: c(() => [
|
|
25
|
+
o("input", {
|
|
26
26
|
checked: e.modelValue,
|
|
27
27
|
class: "peer absolute inset-0 opacity-0 cursor-pointer",
|
|
28
28
|
disabled: e.disabled,
|
|
29
|
-
tabindex: "-1",
|
|
30
29
|
type: "checkbox",
|
|
31
|
-
onChange:
|
|
32
|
-
}, null, 40,
|
|
33
|
-
|
|
34
|
-
class: d(
|
|
30
|
+
onChange: t[0] || (t[0] = (r) => e.$emit("update:modelValue", r.target.checked))
|
|
31
|
+
}, null, 40, b),
|
|
32
|
+
o("div", {
|
|
33
|
+
class: d(a(l)({ align: e.align }))
|
|
35
34
|
}, [
|
|
36
|
-
|
|
35
|
+
t[1] || (t[1] = o("div", { class: "absolute opacity-0 group-hover/cell:opacity-100 group-has-[:focus-visible]/cell:opacity-100 group-has-[:focus-visible]/cell:border-c-accent border-[1px] rounded size-3/4 m-auto" }, null, -1)),
|
|
36
|
+
p(a(u), {
|
|
37
37
|
icon: "Checkmark",
|
|
38
38
|
size: "xs",
|
|
39
39
|
thickness: "2.5"
|
|
@@ -45,5 +45,5 @@ const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
x as default
|
|
49
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAsLA,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAqDJ,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAsLA,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAqDJ,iBAAS,cAAc;WA4OT,OAAO,IAA6B;;yBAVrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;EAa7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cAjUN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAqUpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-8574d822"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as V, ref as i, computed as
|
|
1
|
+
import { defineComponent as V, ref as i, computed as b, openBlock as l, createBlock as u, normalizeClass as k, withCtx as g, createElementBlock as r, renderSlot as p, createCommentVNode as d, createElementVNode as C, Fragment as B, mergeProps as f, unref as $ } from "vue";
|
|
2
2
|
import h from "../CodeInput/CodeInput.vue.js";
|
|
3
3
|
import { ScalarIconButton as x } from "@scalar/components";
|
|
4
4
|
import O from "./DataTableCell.vue.js";
|
|
@@ -8,7 +8,7 @@ const A = {
|
|
|
8
8
|
class: "text-c-1 flex min-w-[94px] items-center pl-2 pr-0"
|
|
9
9
|
}, I = { class: "row-1 overflow-x-auto" }, E = ["id", "readOnly", "type", "value"], F = {
|
|
10
10
|
key: 2,
|
|
11
|
-
class: "absolute centered-y right-
|
|
11
|
+
class: "absolute centered-y right-2 pt-px text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[:focus-visible]:opacity-0"
|
|
12
12
|
}, S = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "absolute centered-y right-7 text-orange text-xs"
|
|
@@ -28,16 +28,16 @@ const A = {
|
|
|
28
28
|
max: {}
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
31
|
-
setup(
|
|
32
|
-
const o =
|
|
31
|
+
setup(y, { emit: c }) {
|
|
32
|
+
const o = y, s = c, n = i(!0);
|
|
33
33
|
i("");
|
|
34
34
|
const v = i(!1), w = () => {
|
|
35
35
|
v.value || s("inputBlur");
|
|
36
|
-
}, m =
|
|
36
|
+
}, m = b(
|
|
37
37
|
() => o.type === "password" ? n.value ? "password" : "text" : o.type ?? "text"
|
|
38
38
|
);
|
|
39
39
|
return (e, t) => (l(), u(O, {
|
|
40
|
-
class:
|
|
40
|
+
class: k(["relative row", e.containerClass])
|
|
41
41
|
}, {
|
|
42
42
|
default: g(() => [
|
|
43
43
|
e.$slots.default ? (l(), r("div", A, [
|
|
@@ -51,10 +51,10 @@ const A = {
|
|
|
51
51
|
value: o.enum,
|
|
52
52
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => s("update:modelValue", a))
|
|
53
53
|
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (l(), r(B, { key: 1 }, [
|
|
54
|
-
n.value && e.type === "password" ? (l(), r("input",
|
|
54
|
+
n.value && e.type === "password" ? (l(), r("input", f({ key: 0 }, e.$attrs, {
|
|
55
55
|
id: e.id,
|
|
56
56
|
autocomplete: "off",
|
|
57
|
-
class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer px-2 py-1.25 outline-
|
|
57
|
+
class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer px-2 py-1.25 -outline-offset-2",
|
|
58
58
|
"data-1p-ignore": "",
|
|
59
59
|
readOnly: e.readOnly,
|
|
60
60
|
spellcheck: "false",
|
|
@@ -64,9 +64,9 @@ const A = {
|
|
|
64
64
|
"update:modelValue",
|
|
65
65
|
a.target.value ?? ""
|
|
66
66
|
))
|
|
67
|
-
}), null, 16, E)) : (l(), u(h,
|
|
67
|
+
}), null, 16, E)) : (l(), u(h, f({ key: 1 }, e.$attrs, {
|
|
68
68
|
id: e.id,
|
|
69
|
-
class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer
|
|
69
|
+
class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer",
|
|
70
70
|
disableCloseBrackets: "",
|
|
71
71
|
disableTabIndent: "",
|
|
72
72
|
max: e.max,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAwYA,wBAMG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as y, computed as S, openBlock as c, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as N, renderList as D, createBlock as v, withModifiers as
|
|
1
|
+
import { defineComponent as y, computed as S, openBlock as c, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as N, renderList as D, createBlock as v, withModifiers as h, createElementVNode as s, normalizeClass as w, createTextVNode as d, toDisplayString as x, createCommentVNode as j } from "vue";
|
|
2
2
|
import { ScalarDropdown as z, ScalarDropdownItem as u, ScalarIcon as l, ScalarDropdownDivider as B, ScalarButton as I } from "@scalar/components";
|
|
3
3
|
import { useRouter as V } from "vue-router";
|
|
4
4
|
import { useWorkspace as M } from "../../store/store.js";
|
|
5
|
-
const W = { class: "font-medium m-0
|
|
5
|
+
const W = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap" }, $ = { class: "flex items-center justify-center h-4 w-4" }, A = /* @__PURE__ */ y({
|
|
6
6
|
__name: "EnvironmentSelector",
|
|
7
7
|
setup(O) {
|
|
8
8
|
const {
|
|
@@ -24,11 +24,11 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
|
|
|
24
24
|
(c(!0), f(N, null, D(b.value, (t) => (c(), v(e(u), {
|
|
25
25
|
key: t.uid,
|
|
26
26
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
27
|
-
onClick:
|
|
27
|
+
onClick: h((R) => p(t.uid), ["stop"])
|
|
28
28
|
}, {
|
|
29
29
|
default: r(() => [
|
|
30
30
|
s("div", {
|
|
31
|
-
class:
|
|
31
|
+
class: w([
|
|
32
32
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4",
|
|
33
33
|
e(i).activeEnvironmentId === t.uid ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
|
|
34
34
|
])
|
|
@@ -39,17 +39,17 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
|
|
|
39
39
|
thickness: "3.5"
|
|
40
40
|
})
|
|
41
41
|
], 2),
|
|
42
|
-
d(" " +
|
|
42
|
+
d(" " + x(t.name), 1)
|
|
43
43
|
]),
|
|
44
44
|
_: 2
|
|
45
45
|
}, 1032, ["onClick"]))), 128)),
|
|
46
46
|
n(e(u), {
|
|
47
47
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
48
|
-
onClick: o[0] || (o[0] =
|
|
48
|
+
onClick: o[0] || (o[0] = h((t) => p(""), ["stop"]))
|
|
49
49
|
}, {
|
|
50
50
|
default: r(() => [
|
|
51
51
|
s("div", {
|
|
52
|
-
class:
|
|
52
|
+
class: w([
|
|
53
53
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4",
|
|
54
54
|
e(i).activeEnvironmentId === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
|
|
55
55
|
])
|
|
@@ -92,7 +92,7 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
|
|
|
92
92
|
var t;
|
|
93
93
|
return [
|
|
94
94
|
s("h2", W, [
|
|
95
|
-
d(
|
|
95
|
+
d(x(((t = e(g)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
|
|
96
96
|
n(e(l), {
|
|
97
97
|
class: "size-3",
|
|
98
98
|
icon: "ChevronDown",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as t, createBlock as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as m, openBlock as t, createBlock as a, withCtx as l, createElementBlock as n, toDisplayString as d, renderSlot as p, createElementVNode as c, Fragment as i, renderList as u, normalizeClass as f, createVNode as _, createTextVNode as k, createCommentVNode as y } from "vue";
|
|
2
|
+
import V from "../DataTable/DataTable.vue.js";
|
|
3
|
+
import h from "../DataTable/DataTableInput.vue.js";
|
|
4
4
|
import b from "../DataTable/DataTableRow.vue.js";
|
|
5
5
|
import g from "../ViewLayout/ViewLayoutSection.vue.js";
|
|
6
|
-
const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p-2 md:p-5" },
|
|
6
|
+
const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p-2 md:p-5" }, E = /* @__PURE__ */ m({
|
|
7
7
|
__name: "Form",
|
|
8
8
|
props: {
|
|
9
9
|
title: {},
|
|
@@ -11,30 +11,30 @@ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p
|
|
|
11
11
|
data: {},
|
|
12
12
|
onUpdate: { type: Function }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
return (e,
|
|
14
|
+
setup(S) {
|
|
15
|
+
return (e, U) => (t(), a(g, null, {
|
|
16
16
|
title: l(() => [
|
|
17
|
-
e.title ? (t(), n("span", C,
|
|
17
|
+
e.title ? (t(), n("span", C, d(e.title), 1)) : p(e.$slots, "title", { key: 1 })
|
|
18
18
|
]),
|
|
19
19
|
default: l(() => [
|
|
20
20
|
c("div", N, [
|
|
21
|
-
Object.keys(e.data).length > 0 ? (t(),
|
|
21
|
+
Object.keys(e.data).length > 0 ? (t(), a(V, {
|
|
22
22
|
key: 0,
|
|
23
23
|
columns: [""]
|
|
24
24
|
}, {
|
|
25
25
|
default: l(() => [
|
|
26
|
-
(t(!0), n(i, null, u(e.options, (
|
|
26
|
+
(t(!0), n(i, null, u(e.options, (o, r) => (t(), a(b, {
|
|
27
27
|
key: r,
|
|
28
28
|
class: f({ "border-t": r === 0 })
|
|
29
29
|
}, {
|
|
30
30
|
default: l(() => [
|
|
31
|
-
_(
|
|
32
|
-
modelValue: String(e.data[
|
|
33
|
-
placeholder:
|
|
34
|
-
"onUpdate:modelValue": (
|
|
31
|
+
_(h, {
|
|
32
|
+
modelValue: String(e.data[o.key] ?? ""),
|
|
33
|
+
placeholder: o.placeholder,
|
|
34
|
+
"onUpdate:modelValue": (s) => e.onUpdate(o.key, s)
|
|
35
35
|
}, {
|
|
36
36
|
default: l(() => [
|
|
37
|
-
k(
|
|
37
|
+
k(d(o.label), 1)
|
|
38
38
|
]),
|
|
39
39
|
_: 2
|
|
40
40
|
}, 1032, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
@@ -51,5 +51,5 @@ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
E as default
|
|
55
55
|
};
|
|
@@ -4,9 +4,9 @@ type __VLS_Props = {
|
|
|
4
4
|
isEditable?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
-
change: (value: "
|
|
7
|
+
change: (value: "head" | "delete" | "get" | "connect" | "options" | "patch" | "post" | "put" | "trace") => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
onChange?: ((value: "
|
|
9
|
+
onChange?: ((value: "head" | "delete" | "get" | "connect" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
isSquare: boolean;
|
|
12
12
|
isEditable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportNowButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportNowButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImportNowButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportNowButton.vue"],"names":[],"mappings":"AA+GA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;AA8KF,wBAOG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as C, openBlock as s, createElementBlock as v, Fragment as
|
|
2
|
-
import { isUrl as
|
|
1
|
+
import { defineComponent as C, openBlock as s, createElementBlock as v, Fragment as x, createBlock as u, unref as p, withCtx as m, createTextVNode as c, createCommentVNode as b } from "vue";
|
|
2
|
+
import { isUrl as g } from "./utils/isUrl.js";
|
|
3
3
|
import { ScalarButton as l } from "@scalar/components";
|
|
4
4
|
import { useToasts as B } from "@scalar/use-toasts";
|
|
5
5
|
import { useRouter as F } from "vue-router";
|
|
@@ -13,15 +13,16 @@ const z = /* @__PURE__ */ C({
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["importFinished"],
|
|
15
15
|
setup(f, { emit: d }) {
|
|
16
|
-
const o = f,
|
|
16
|
+
const o = f, y = d, k = F(), { importSpecFromUrl: w, importSpecFile: h, activeWorkspace: r } = I(), { toast: n } = B();
|
|
17
17
|
async function i() {
|
|
18
18
|
try {
|
|
19
19
|
if (o.source) {
|
|
20
|
-
if (
|
|
21
|
-
const [e, t] = await
|
|
20
|
+
if (g(o.source)) {
|
|
21
|
+
const [e, t] = await w(
|
|
22
22
|
o.source,
|
|
23
23
|
r.value.uid,
|
|
24
24
|
{
|
|
25
|
+
proxy: r.value.proxyUrl,
|
|
25
26
|
watchMode: o.watchMode
|
|
26
27
|
}
|
|
27
28
|
);
|
|
@@ -33,7 +34,7 @@ const z = /* @__PURE__ */ C({
|
|
|
33
34
|
);
|
|
34
35
|
a(e);
|
|
35
36
|
}
|
|
36
|
-
n("Import successful", "info"),
|
|
37
|
+
n("Import successful", "info"), y("importFinished");
|
|
37
38
|
}
|
|
38
39
|
} catch (e) {
|
|
39
40
|
console.error("[importCollection]", e);
|
|
@@ -42,7 +43,7 @@ const z = /* @__PURE__ */ C({
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
function a(e) {
|
|
45
|
-
e &&
|
|
46
|
+
e && k.push({
|
|
46
47
|
name: "request",
|
|
47
48
|
params: {
|
|
48
49
|
workspace: r.value.uid,
|
|
@@ -50,19 +51,19 @@ const z = /* @__PURE__ */ C({
|
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
|
-
return (e, t) => e.source ? (s(), v(
|
|
54
|
-
e.variant === "button" ? (s(), u(
|
|
54
|
+
return (e, t) => e.source ? (s(), v(x, { key: 0 }, [
|
|
55
|
+
e.variant === "button" ? (s(), u(p(l), {
|
|
55
56
|
key: 0,
|
|
56
57
|
class: "py-2.5 px-6 rounded-lg font-bold h-fit mt-3 w-full",
|
|
57
58
|
size: "md",
|
|
58
59
|
type: "button",
|
|
59
60
|
onClick: i
|
|
60
61
|
}, {
|
|
61
|
-
default:
|
|
62
|
+
default: m(() => t[0] || (t[0] = [
|
|
62
63
|
c(" Import Collection ")
|
|
63
64
|
])),
|
|
64
65
|
_: 1
|
|
65
|
-
})) : (s(), u(
|
|
66
|
+
})) : (s(), u(p(l), {
|
|
66
67
|
key: 1,
|
|
67
68
|
class: "text-[21px] py-2.5 px-6 rounded-lg font-bold h-fit",
|
|
68
69
|
size: "md",
|
|
@@ -70,12 +71,12 @@ const z = /* @__PURE__ */ C({
|
|
|
70
71
|
variant: "ghost",
|
|
71
72
|
onClick: i
|
|
72
73
|
}, {
|
|
73
|
-
default:
|
|
74
|
+
default: m(() => t[1] || (t[1] = [
|
|
74
75
|
c(" Try it in the browser ")
|
|
75
76
|
])),
|
|
76
77
|
_: 1
|
|
77
78
|
}))
|
|
78
|
-
], 64)) :
|
|
79
|
+
], 64)) : b("", !0);
|
|
79
80
|
}
|
|
80
81
|
});
|
|
81
82
|
export {
|
|
@@ -11,6 +11,7 @@ export declare function useSearch(): {
|
|
|
11
11
|
httpVerb: string;
|
|
12
12
|
id: string;
|
|
13
13
|
path: string;
|
|
14
|
+
link: string;
|
|
14
15
|
}>[]>;
|
|
15
16
|
selectedSearchResult: import("vue").Ref<number, number>;
|
|
16
17
|
onSearchResultClick: (entry: FuseResult<{
|
|
@@ -19,6 +20,7 @@ export declare function useSearch(): {
|
|
|
19
20
|
httpVerb: string;
|
|
20
21
|
id: string;
|
|
21
22
|
path: string;
|
|
23
|
+
link: string;
|
|
22
24
|
}>) => void;
|
|
23
25
|
fuseSearch: () => void;
|
|
24
26
|
searchInputRef: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../src/components/Search/useSearch.ts"],"names":[],"mappings":"AAEA,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAI/C;;;GAGG;AACH,wBAAgB,SAAS;;;eAKd,MAAM;qBACA,MAAM;kBACT,MAAM;YACZ,MAAM;cACJ,MAAM;;;
|
|
1
|
+
{"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../src/components/Search/useSearch.ts"],"names":[],"mappings":"AAEA,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAI/C;;;GAGG;AACH,wBAAgB,SAAS;;;eAKd,MAAM;qBACA,MAAM;kBACT,MAAM;YACZ,MAAM;cACJ,MAAM;cACN,MAAM;;;iCA6EsB,UAAU;eAlFrC,MAAM;qBACA,MAAM;kBACT,MAAM;YACZ,MAAM;cACJ,MAAM;cACN,MAAM;MA6E0C;sBA1CjC,IAAI;;;uCAKe,IAAI,GAAG,MAAM;;EAmExD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ref as a, watch as T, computed as
|
|
1
|
+
import w from "fuse.js";
|
|
2
|
+
import { ref as a, watch as T, computed as W, nextTick as x } from "vue";
|
|
3
3
|
import { useRouter as I } from "vue-router";
|
|
4
|
-
import { useWorkspace as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
4
|
+
import { useWorkspace as A } from "../../store/store.js";
|
|
5
|
+
function H() {
|
|
6
|
+
const m = I(), { activeWorkspace: f, activeWorkspaceRequests: d, requests: R } = A(), o = a([]), c = a([]), s = a(0), u = a(""), l = a(null), n = a([]), i = new w(o.value, {
|
|
7
7
|
keys: ["title", "description", "body"]
|
|
8
|
-
}),
|
|
8
|
+
}), k = () => {
|
|
9
9
|
u.value = "", s.value = 0, c.value = [], l.value instanceof HTMLInputElement && l.value.blur();
|
|
10
10
|
}, S = (t) => {
|
|
11
11
|
o.value = t.map((e) => ({
|
|
@@ -13,50 +13,51 @@ function F() {
|
|
|
13
13
|
title: e.summary ?? e.method,
|
|
14
14
|
description: e.description ?? "",
|
|
15
15
|
httpVerb: e.method,
|
|
16
|
-
path: e.path
|
|
16
|
+
path: e.path,
|
|
17
|
+
link: `/workspace/${f.value.uid}/request/${e.uid}`
|
|
17
18
|
})), i.setCollection(o.value);
|
|
18
|
-
},
|
|
19
|
+
}, b = () => {
|
|
19
20
|
s.value = 0, c.value = i.search(u.value);
|
|
20
|
-
},
|
|
21
|
-
const e = t === "up" ? -1 : 1, v =
|
|
21
|
+
}, y = (t) => {
|
|
22
|
+
const e = t === "up" ? -1 : 1, v = r.value.length;
|
|
22
23
|
s.value = (s.value + e + v) % v, x(() => {
|
|
23
|
-
const
|
|
24
|
-
|
|
24
|
+
const p = n.value[s.value];
|
|
25
|
+
p instanceof HTMLElement && p.scrollIntoView({
|
|
25
26
|
behavior: "smooth",
|
|
26
27
|
block: "center"
|
|
27
28
|
});
|
|
28
29
|
});
|
|
29
|
-
},
|
|
30
|
+
}, g = () => {
|
|
30
31
|
s.value >= 0 && h(
|
|
31
|
-
|
|
32
|
+
r.value[s.value]
|
|
32
33
|
);
|
|
33
34
|
};
|
|
34
35
|
T(
|
|
35
|
-
|
|
36
|
+
d,
|
|
36
37
|
(t) => {
|
|
37
|
-
S(t.map((e) =>
|
|
38
|
+
S(t.map((e) => R[e]));
|
|
38
39
|
},
|
|
39
40
|
{ immediate: !0 }
|
|
40
41
|
);
|
|
41
42
|
const h = (t) => {
|
|
42
|
-
|
|
43
|
-
},
|
|
43
|
+
m.push(t.item.id), k();
|
|
44
|
+
}, r = W(
|
|
44
45
|
() => u.value.length === 0 ? o.value.map((t) => ({
|
|
45
46
|
item: t
|
|
46
47
|
})) : c.value
|
|
47
48
|
);
|
|
48
49
|
return {
|
|
49
50
|
searchText: u,
|
|
50
|
-
searchResultsWithPlaceholderResults:
|
|
51
|
+
searchResultsWithPlaceholderResults: r,
|
|
51
52
|
selectedSearchResult: s,
|
|
52
53
|
onSearchResultClick: h,
|
|
53
|
-
fuseSearch:
|
|
54
|
+
fuseSearch: b,
|
|
54
55
|
searchInputRef: l,
|
|
55
|
-
searchResultRefs:
|
|
56
|
-
navigateSearchResults:
|
|
57
|
-
selectSearchResult:
|
|
56
|
+
searchResultRefs: n,
|
|
57
|
+
navigateSearchResults: y,
|
|
58
|
+
selectSearchResult: g
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
H as useSearch
|
|
62
63
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=DownloadAppButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownloadAppButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/DownloadAppButton.vue"],"names":[],"mappings":";AA6IA,wBAMG"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as e, openBlock as a, createBlock as m, withCtx as o, createVNode as s, unref as t, createElementVNode as r, normalizeClass as c } from "vue";
|
|
2
|
+
import p from "./SideNavLink.vue.js";
|
|
3
|
+
import { ScalarIcon as l } from "@scalar/components";
|
|
4
|
+
import { useLayout as i } from "../../hooks/useLayout.js";
|
|
5
|
+
const h = /* @__PURE__ */ e({
|
|
6
|
+
__name: "DownloadAppButton",
|
|
7
|
+
setup(u) {
|
|
8
|
+
const { layout: n } = i();
|
|
9
|
+
return (d, _) => (a(), m(p, {
|
|
10
|
+
class: "download-app-button sm:px-3 gap-2 !px-3 !py-1.5",
|
|
11
|
+
href: "https://scalar.com/download?utm_source=web_client&utm_medium=download_button&utm_campaign=topnav",
|
|
12
|
+
icon: "Download",
|
|
13
|
+
target: "_blank"
|
|
14
|
+
}, {
|
|
15
|
+
icon: o(() => [
|
|
16
|
+
s(t(l), {
|
|
17
|
+
icon: "Download",
|
|
18
|
+
size: "sm",
|
|
19
|
+
thickness: "2"
|
|
20
|
+
})
|
|
21
|
+
]),
|
|
22
|
+
default: o(() => [
|
|
23
|
+
r("span", {
|
|
24
|
+
class: c(["text-sm font-medium sr-only", { "sm:not-sr-only": t(n) === "web" }])
|
|
25
|
+
}, " Download App ", 2)
|
|
26
|
+
]),
|
|
27
|
+
_: 1
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
h as default
|
|
33
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideHelp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideHelp.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SideHelp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideHelp.vue"],"names":[],"mappings":";AA2TA,wBAMG"}
|