@scalar/api-client 2.0.39 → 2.0.41
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.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +1 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +11 -11
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchButton.vue.js +5 -28
- package/dist/components/Search/SearchButton.vue2.js +28 -2
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideHelp.vue.js +26 -28
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue2.js +5 -5
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +6 -6
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +14 -10
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +4 -4
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +20 -20
- package/dist/layouts/Modal/create-api-client-modal.d.ts +40 -40
- package/dist/libs/create-client.d.ts +20 -20
- package/dist/libs/sendRequest.d.ts.map +1 -1
- package/dist/libs/sendRequest.js +87 -70
- package/dist/store/workspace.d.ts +64 -64
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +129 -132
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +206 -146
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +4 -4
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItem.vue2.js +105 -92
- 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 +44 -44
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +3 -17
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +89 -5
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +2 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +18 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +34 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +12 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +14 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +23 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +65 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +19 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +29 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +20 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +25 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +61 -63
- package/dist/views/Request/consts/index.d.ts +2 -0
- package/dist/views/Request/consts/index.d.ts.map +1 -1
- package/dist/views/Request/consts/index.js +6 -3
- package/dist/views/Request/consts/mediaTypes.d.ts +16 -0
- package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -0
- package/dist/views/Request/consts/mediaTypes.js +108 -0
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.0.41
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 09d07d1: fix: api client help and darkmode button, sidebar bugs, backgrounds, etc
|
|
8
|
+
- Updated dependencies [09d07d1]
|
|
9
|
+
- Updated dependencies [4e5de89]
|
|
10
|
+
- @scalar/components@0.12.27
|
|
11
|
+
- @scalar/use-codemirror@0.11.10
|
|
12
|
+
|
|
13
|
+
## 2.0.40
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 3a6effa: feat(api-client): add response previews
|
|
18
|
+
- dfa7434: feat(api-client): added drag and drop to the api client
|
|
19
|
+
- Updated dependencies [3a6effa]
|
|
20
|
+
- Updated dependencies [dfa7434]
|
|
21
|
+
- @scalar/use-codemirror@0.11.9
|
|
22
|
+
- @scalar/components@0.12.26
|
|
23
|
+
- @scalar/themes@0.9.19
|
|
24
|
+
- @scalar/draggable@0.1.4
|
|
25
|
+
- @scalar/oas-utils@0.2.22
|
|
26
|
+
|
|
3
27
|
## 2.0.39
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AAulBA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-556303b4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -9,7 +9,7 @@ import { useMagicKeys as D, whenever as K } from "@vueuse/core";
|
|
|
9
9
|
import Q from "../HttpMethod/HttpMethod.vue.js";
|
|
10
10
|
import W from "./AddressBarHistory.vue.js";
|
|
11
11
|
import { executeRequestBus as m } from "../../libs/eventBusses/executeRequestBus.js";
|
|
12
|
-
const f = (n) => (M("data-v-
|
|
12
|
+
const f = (n) => (M("data-v-556303b4"), n = n(), U(), n), j = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "order-last lg:order-none lg:w-auto w-full"
|
|
15
15
|
}, F = { class: "m-auto flex basis-1/2 flex-row items-center" }, G = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, J = { class: "flex gap-1" }, P = { class: "scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, X = /* @__PURE__ */ f(() => /* @__PURE__ */ o("div", { class: "fade-left" }, null, -1)), Y = /* @__PURE__ */ f(() => /* @__PURE__ */ o("div", { class: "fade-right" }, null, -1)), Z = /* @__PURE__ */ f(() => /* @__PURE__ */ o("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), ce = /* @__PURE__ */ q({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DarkModeIconToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/DarkModeIconToggle.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DarkModeIconToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/DarkModeIconToggle.vue"],"names":[],"mappings":";AA6GA,wBAKG"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as c, openBlock as l, createElementBlock as s, unref as e, createVNode as r, withCtx as i, createTextVNode as p, toDisplayString as d } from "vue";
|
|
2
|
+
import m from "../ScreenReader.vue.js";
|
|
3
3
|
import { ScalarIcon as u } from "@scalar/components";
|
|
4
4
|
import { useDarkModeState as f } from "../../hooks/useDarkModeState.js";
|
|
5
|
-
const
|
|
5
|
+
const w = /* @__PURE__ */ c({
|
|
6
6
|
__name: "DarkModeIconToggle",
|
|
7
7
|
setup(g) {
|
|
8
|
-
const { toggleDarkMode: t, isDark:
|
|
9
|
-
return (k, o) => (
|
|
10
|
-
class: "min-w-[37px] max-w-[42px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px]",
|
|
8
|
+
const { toggleDarkMode: t, isDark: a } = f();
|
|
9
|
+
return (k, o) => (l(), s("button", {
|
|
10
|
+
class: "min-w-[37px] max-w-[42px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 w-full aspect-square scalar-app-nav-padding",
|
|
11
11
|
type: "button",
|
|
12
12
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
13
|
-
(...
|
|
13
|
+
(...n) => e(t) && e(t)(...n))
|
|
14
14
|
}, [
|
|
15
15
|
r(e(u), {
|
|
16
16
|
class: "block h-6 w-6",
|
|
17
17
|
icon: "LightDarkModeToggle",
|
|
18
18
|
thickness: "1.5"
|
|
19
19
|
}),
|
|
20
|
-
r(
|
|
21
|
-
default:
|
|
22
|
-
p(" Switch to " +
|
|
20
|
+
r(m, null, {
|
|
21
|
+
default: i(() => [
|
|
22
|
+
p(" Switch to " + d(e(a) ? "Light" : "Dark") + " Mode ", 1)
|
|
23
23
|
]),
|
|
24
24
|
_: 1
|
|
25
25
|
})
|
|
@@ -27,5 +27,5 @@ const b = /* @__PURE__ */ c({
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
w as default
|
|
31
31
|
};
|
|
@@ -49,8 +49,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
49
49
|
onInputBlur?: (() => any) | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
required: boolean;
|
|
52
|
-
canAddCustomEnumValue: boolean;
|
|
53
52
|
readOnly: boolean;
|
|
53
|
+
canAddCustomEnumValue: boolean;
|
|
54
54
|
}, {}>;
|
|
55
55
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
56
56
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;qBAiKM,GAAG;qBACF,GAAG;kBACN,GAAG;EAuB7B;AACD,QAAA,MAAM,eAAe;SAjQZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;cAPD,OAAO;
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;qBAiKM,GAAG;qBACF,GAAG;kBACN,GAAG;EAuB7B;AACD,QAAA,MAAM,eAAe;SAjQZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;cAPD,OAAO;cAIP,OAAO;2BADM,OAAO;MAiQjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchButton.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchButton.vue"],"names":[],"mappings":";;;;;AAoIA,wBAMG"}
|
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
], -1), b = /* @__PURE__ */ n({
|
|
6
|
-
__name: "SearchButton",
|
|
7
|
-
emits: ["openSearchModal"],
|
|
8
|
-
setup(u, { emit: s }) {
|
|
9
|
-
const o = s;
|
|
10
|
-
return (f, t) => (c(), r("div", p, [
|
|
11
|
-
e("button", {
|
|
12
|
-
class: "border-1/2 text-c-2 flex w-full items-center rounded p-1.5",
|
|
13
|
-
type: "button",
|
|
14
|
-
onClick: t[0] || (t[0] = (_) => o("openSearchModal"))
|
|
15
|
-
}, [
|
|
16
|
-
e("div", d, [
|
|
17
|
-
i(a(l), {
|
|
18
|
-
icon: "Search",
|
|
19
|
-
size: "xs",
|
|
20
|
-
thickness: "2.5"
|
|
21
|
-
})
|
|
22
|
-
]),
|
|
23
|
-
m
|
|
24
|
-
])
|
|
25
|
-
]));
|
|
26
|
-
}
|
|
27
|
-
});
|
|
1
|
+
import o from "./SearchButton.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2c26b5ad"]]);
|
|
28
5
|
export {
|
|
29
|
-
|
|
6
|
+
m as default
|
|
30
7
|
};
|
|
@@ -1,4 +1,30 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as n, openBlock as r, createElementBlock as a, createElementVNode as t, createVNode as i, unref as p, pushScopeId as d, popScopeId as l } from "vue";
|
|
2
|
+
import { ScalarIcon as m } from "@scalar/components";
|
|
3
|
+
const u = (e) => (d("data-v-2c26b5ad"), e = e(), l(), e), f = { class: "search-button-fade sticky top-0 z-50 px-3 py-2.5 pb-2.5" }, h = { class: "w-[15px] flex items-center justify-center" }, _ = /* @__PURE__ */ u(() => /* @__PURE__ */ t("div", { class: "sidebar-search-input ml-1.5 flex w-full items-center justify-between text-sm font-medium" }, [
|
|
4
|
+
/* @__PURE__ */ t("span", { class: "sidebar-search-placeholder" }, "Search")
|
|
5
|
+
], -1)), v = /* @__PURE__ */ n({
|
|
6
|
+
__name: "SearchButton",
|
|
7
|
+
emits: ["openSearchModal"],
|
|
8
|
+
setup(e, { emit: s }) {
|
|
9
|
+
const c = s;
|
|
10
|
+
return (x, o) => (r(), a("div", f, [
|
|
11
|
+
t("button", {
|
|
12
|
+
class: "border-1/2 text-c-2 flex w-full items-center rounded p-1.5",
|
|
13
|
+
type: "button",
|
|
14
|
+
onClick: o[0] || (o[0] = (b) => c("openSearchModal"))
|
|
15
|
+
}, [
|
|
16
|
+
t("div", h, [
|
|
17
|
+
i(p(m), {
|
|
18
|
+
icon: "Search",
|
|
19
|
+
size: "xs",
|
|
20
|
+
thickness: "2.5"
|
|
21
|
+
})
|
|
22
|
+
]),
|
|
23
|
+
_
|
|
24
|
+
])
|
|
25
|
+
]));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
2
28
|
export {
|
|
3
|
-
|
|
29
|
+
v as default
|
|
4
30
|
};
|
|
@@ -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":";AAoYA,wBAKG"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as o, createBlock as i, unref as s, withCtx as c, createElementVNode as e, createVNode as t } from "vue";
|
|
2
|
-
import { ScalarDropdown as r, ScalarDropdownItem as a, ScalarIcon as n
|
|
3
|
-
const
|
|
2
|
+
import { ScalarDropdown as r, ScalarDropdownItem as a, ScalarIcon as n } from "@scalar/components";
|
|
3
|
+
const d = {
|
|
4
|
+
class: "min-w-[37px] max-w-[42px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 scalar-app-nav-padding",
|
|
5
|
+
type: "button"
|
|
6
|
+
}, _ = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 font-medium" }, "Support", -1), p = {
|
|
4
7
|
class: "no-underline block",
|
|
5
8
|
href: "https://discord.gg/scalar",
|
|
6
9
|
target: "_blank"
|
|
7
|
-
},
|
|
10
|
+
}, u = { class: "flex items-center justify-center" }, f = /* @__PURE__ */ e("span", null, "Discord", -1), h = {
|
|
8
11
|
class: "no-underline block",
|
|
9
12
|
href: "https://github.com/scalar/scalar",
|
|
10
13
|
target: "_blank"
|
|
@@ -16,29 +19,30 @@ const _ = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 fon
|
|
|
16
19
|
class: "no-underline block",
|
|
17
20
|
href: "https://scalar.com/changelog",
|
|
18
21
|
target: "_blank"
|
|
19
|
-
}, v = { class: "flex items-center justify-center" }, j = /* @__PURE__ */ e("span", null, "Changelog", -1),
|
|
22
|
+
}, v = { class: "flex items-center justify-center" }, j = /* @__PURE__ */ e("span", null, "Changelog", -1), z = {
|
|
20
23
|
class: "no-underline block",
|
|
21
24
|
href: "https://github.com/scalar/scalar/issues/2669",
|
|
22
25
|
target: "_blank"
|
|
23
|
-
},
|
|
26
|
+
}, S = { class: "flex items-center justify-center" }, C = /* @__PURE__ */ e("span", null, "Roadmap", -1), I = /* @__PURE__ */ l({
|
|
24
27
|
__name: "SideHelp",
|
|
25
28
|
setup(D) {
|
|
26
|
-
return (H,
|
|
29
|
+
return (H, E) => (o(), i(s(r), {
|
|
27
30
|
class: "max-w-[150px]",
|
|
28
31
|
placement: "top-end"
|
|
29
32
|
}, {
|
|
30
33
|
items: c(() => [
|
|
31
34
|
_,
|
|
32
|
-
e("a",
|
|
35
|
+
e("a", p, [
|
|
33
36
|
t(s(a), { class: "flex items-center gap-1.5 w-full" }, {
|
|
34
37
|
default: c(() => [
|
|
35
|
-
e("div",
|
|
38
|
+
e("div", u, [
|
|
36
39
|
t(s(n), {
|
|
37
40
|
icon: "DiscordLine",
|
|
38
|
-
size: "xs"
|
|
41
|
+
size: "xs",
|
|
42
|
+
thickness: "1.75"
|
|
39
43
|
})
|
|
40
44
|
]),
|
|
41
|
-
|
|
45
|
+
f
|
|
42
46
|
]),
|
|
43
47
|
_: 1
|
|
44
48
|
})
|
|
@@ -49,7 +53,8 @@ const _ = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 fon
|
|
|
49
53
|
e("div", m, [
|
|
50
54
|
t(s(n), {
|
|
51
55
|
icon: "GitHubLine",
|
|
52
|
-
size: "xs"
|
|
56
|
+
size: "xs",
|
|
57
|
+
thickness: "1.75"
|
|
53
58
|
})
|
|
54
59
|
]),
|
|
55
60
|
x
|
|
@@ -79,7 +84,7 @@ const _ = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 fon
|
|
|
79
84
|
t(s(n), {
|
|
80
85
|
icon: "Changelog",
|
|
81
86
|
size: "xs",
|
|
82
|
-
thickness: "
|
|
87
|
+
thickness: "1.75"
|
|
83
88
|
})
|
|
84
89
|
]),
|
|
85
90
|
j
|
|
@@ -87,14 +92,14 @@ const _ = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 fon
|
|
|
87
92
|
_: 1
|
|
88
93
|
})
|
|
89
94
|
]),
|
|
90
|
-
e("a",
|
|
95
|
+
e("a", z, [
|
|
91
96
|
t(s(a), { class: "flex items-center gap-1.5 w-full" }, {
|
|
92
97
|
default: c(() => [
|
|
93
|
-
e("div",
|
|
98
|
+
e("div", S, [
|
|
94
99
|
t(s(n), {
|
|
95
100
|
icon: "Roadmap",
|
|
96
101
|
size: "xs",
|
|
97
|
-
thickness: "
|
|
102
|
+
thickness: "1.75"
|
|
98
103
|
})
|
|
99
104
|
]),
|
|
100
105
|
C
|
|
@@ -104,19 +109,12 @@ const _ = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 fon
|
|
|
104
109
|
])
|
|
105
110
|
]),
|
|
106
111
|
default: c(() => [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
t(s(n), {
|
|
114
|
-
icon: "Help",
|
|
115
|
-
thickness: "1.5"
|
|
116
|
-
})
|
|
117
|
-
]),
|
|
118
|
-
_: 1
|
|
119
|
-
})
|
|
112
|
+
e("button", d, [
|
|
113
|
+
t(s(n), {
|
|
114
|
+
icon: "Help",
|
|
115
|
+
thickness: "1.5"
|
|
116
|
+
})
|
|
117
|
+
])
|
|
120
118
|
]),
|
|
121
119
|
_: 1
|
|
122
120
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAiKA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SideNav.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ccbc6a46"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as _, openBlock as r, createElementBlock as i, createVNode as e, createElementVNode as t, Fragment as f, renderList as p, unref as s, withCtx as u, createTextVNode as d, toDisplayString as x } from "vue";
|
|
2
2
|
import h from "../DarkModeToggle/DarkModeIconToggle.vue.js";
|
|
3
3
|
import { ROUTES as v } from "../../constants.js";
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import
|
|
4
|
+
import { useRouter as N } from "vue-router";
|
|
5
|
+
import g from "./SideHelp.vue.js";
|
|
6
6
|
import y from "./SideNavLink.vue.js";
|
|
7
7
|
import S from "./WorkspaceProfileIcon.vue.js";
|
|
8
8
|
/* empty css */
|
|
@@ -10,10 +10,10 @@ const $ = {
|
|
|
10
10
|
"aria-label": "Side Navigation",
|
|
11
11
|
class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav relative",
|
|
12
12
|
role: "navigation"
|
|
13
|
-
}, k = { class: "mt-3.5 flex flex-col gap-1.5" }, E = { class: "mt-auto flex flex-col
|
|
13
|
+
}, k = { class: "mt-3.5 flex flex-col gap-1.5" }, E = { class: "mt-auto flex flex-col py-1.5" }, R = { class: "flex items-center" }, V = { class: "flex items-center" }, j = /* @__PURE__ */ _({
|
|
14
14
|
__name: "SideNav",
|
|
15
15
|
setup(w) {
|
|
16
|
-
const { currentRoute: c } =
|
|
16
|
+
const { currentRoute: c } = N();
|
|
17
17
|
return (B, C) => (r(), i("nav", $, [
|
|
18
18
|
e(S),
|
|
19
19
|
t("ul", k, [
|
|
@@ -36,7 +36,7 @@ const $ = {
|
|
|
36
36
|
]),
|
|
37
37
|
t("ul", E, [
|
|
38
38
|
t("li", R, [
|
|
39
|
-
e(
|
|
39
|
+
e(g)
|
|
40
40
|
]),
|
|
41
41
|
t("li", V, [
|
|
42
42
|
e(h)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAK/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAmB1D,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAK/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAmB1D,iBAAS,cAAc;qBA+EO,GAAG;EAgBhC;AACD,QAAA,MAAM,eAAe;UAhHb,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC;gBACzB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,YAAY,CAAC;aACxC,OAAO;;UAHV,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC;gBACzB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,YAAY,CAAC;aACxC,OAAO;aAmHhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { defineComponent as a, resolveComponent as s, openBlock as i, createBloc
|
|
|
2
2
|
import { useWorkspace as f } from "../../store/workspace.js";
|
|
3
3
|
import { ScalarIcon as v } from "@scalar/components";
|
|
4
4
|
import { useRouter as _ } from "vue-router";
|
|
5
|
-
const k = { class: "no-underline font-medium text-[11px] hidden scalar-app-show capitalize" },
|
|
5
|
+
const k = { class: "no-underline font-medium text-[11px] hidden scalar-app-show capitalize" }, x = { class: "sr-only" }, b = /* @__PURE__ */ a({
|
|
6
6
|
__name: "SideNavLink",
|
|
7
7
|
props: {
|
|
8
8
|
icon: {},
|
|
@@ -10,9 +10,9 @@ const k = { class: "no-underline font-medium text-[11px] hidden scalar-app-show
|
|
|
10
10
|
prettyName: {},
|
|
11
11
|
active: { type: Boolean }
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
13
|
+
setup(g) {
|
|
14
14
|
const { activeWorkspace: n } = f();
|
|
15
|
-
return _(), (e,
|
|
15
|
+
return _(), (e, h) => {
|
|
16
16
|
const r = s("router-link");
|
|
17
17
|
return i(), c(r, {
|
|
18
18
|
activeClass: "active-link",
|
|
@@ -21,8 +21,8 @@ const k = { class: "no-underline font-medium text-[11px] hidden scalar-app-show
|
|
|
21
21
|
}, {
|
|
22
22
|
default: p(() => [
|
|
23
23
|
o("div", {
|
|
24
|
-
class: l(["min-w-[37px] max-w-[42px] group-hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px] scalar-app-nav-padding", {
|
|
25
|
-
"bg-b-2 transition-none group-hover:cursor-auto text-c-1": e.active
|
|
24
|
+
class: l(["min-w-[37px] max-w-[42px] group-hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px] scalar-app-nav-padding text-c-3", {
|
|
25
|
+
"bg-b-2 transition-none group-hover:cursor-auto !text-c-1": e.active
|
|
26
26
|
}])
|
|
27
27
|
}, [
|
|
28
28
|
m(t(v), {
|
|
@@ -31,7 +31,7 @@ const k = { class: "no-underline font-medium text-[11px] hidden scalar-app-show
|
|
|
31
31
|
}, null, 8, ["icon"])
|
|
32
32
|
], 2),
|
|
33
33
|
o("div", k, u(e.prettyName), 1),
|
|
34
|
-
o("span",
|
|
34
|
+
o("span", x, [
|
|
35
35
|
d(e.$slots, "default")
|
|
36
36
|
])
|
|
37
37
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAsDA,iBAAS,cAAc;oBAwDK,GAAG;qBACF,GAAG;oBACJ,GAAG;EAe9B;AACD,QAAA,MAAM,eAAe;YApFW,MAAM;;YAAN,MAAM;aA0FpC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as a, openBlock as o, createElementBlock as r, renderSlot as t, unref as l, createElementVNode as n, toDisplayString as i, createCommentVNode as d, normalizeClass as m } from "vue";
|
|
2
2
|
import { useWorkspace as c } from "../../store/workspace.js";
|
|
3
|
-
const
|
|
3
|
+
const p = { class: "w-sidebar relative flex flex-col border-r bg-b-1" }, b = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "xl:min-h-header py-2.5 flex items-center border-b px-4 text-sm"
|
|
6
|
-
},
|
|
6
|
+
}, f = { class: "font-medium m-0 text-sm" }, x = /* @__PURE__ */ a({
|
|
7
7
|
__name: "Sidebar",
|
|
8
8
|
props: {
|
|
9
9
|
title: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const { isReadOnly:
|
|
13
|
-
return (e, u) => (
|
|
11
|
+
setup(h) {
|
|
12
|
+
const { isReadOnly: s } = c();
|
|
13
|
+
return (e, u) => (o(), r("aside", p, [
|
|
14
14
|
t(e.$slots, "header"),
|
|
15
|
-
!
|
|
16
|
-
|
|
15
|
+
!l(s) && e.title ? (o(), r("div", b, [
|
|
16
|
+
n("h2", f, i(e.title), 1)
|
|
17
17
|
])) : d("", !0),
|
|
18
|
-
|
|
18
|
+
n("div", {
|
|
19
|
+
class: m(["custom-scroll sidebar-height", {
|
|
20
|
+
"sidebar-mask": !l(s)
|
|
21
|
+
}])
|
|
22
|
+
}, [
|
|
19
23
|
t(e.$slots, "content")
|
|
20
|
-
]),
|
|
24
|
+
], 2),
|
|
21
25
|
t(e.$slots, "button")
|
|
22
26
|
]));
|
|
23
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AAgDA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AAgDA,iBAAS,cAAc;mBA4FI,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;WA3HZ,MAAM,IAAI;;WAAV,MAAM,IAAI;aAiIjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as
|
|
1
|
+
import { defineComponent as n, openBlock as i, createElementBlock as l, createVNode as e, unref as a, withCtx as s, renderSlot as p } from "vue";
|
|
2
2
|
import u from "../ScalarHotkey.vue.js";
|
|
3
3
|
import { ScalarButton as d } from "@scalar/components";
|
|
4
|
-
const
|
|
4
|
+
const m = { class: "fixed relative bottom-[42px] z-10 flex px-2.5 pb-2 pt-0" }, k = /* @__PURE__ */ n({
|
|
5
5
|
__name: "SidebarButton",
|
|
6
6
|
props: {
|
|
7
7
|
click: { type: Function }
|
|
@@ -10,7 +10,7 @@ const f = { class: "fixed relative bottom-[50px] z-10 flex p-2" }, k = /* @__PUR
|
|
|
10
10
|
const r = o, t = () => {
|
|
11
11
|
r.click();
|
|
12
12
|
};
|
|
13
|
-
return (c,
|
|
13
|
+
return (c, f) => (i(), l("div", m, [
|
|
14
14
|
e(a(d), {
|
|
15
15
|
class: "bg-b-1 text-c-1 hover:bg-b-2 group relative w-full border p-1.5 h-auto",
|
|
16
16
|
icon: "Plus",
|
|
@@ -20,7 +20,7 @@ const f = { class: "fixed relative bottom-[50px] z-10 flex p-2" }, k = /* @__PUR
|
|
|
20
20
|
default: s(() => [
|
|
21
21
|
p(c.$slots, "title"),
|
|
22
22
|
e(u, {
|
|
23
|
-
class: "absolute right-2 group-hover:opacity-80 text-c-2",
|
|
23
|
+
class: "absolute right-2 group-hover:opacity-80 text-c-2 add-item-hotkey",
|
|
24
24
|
hotkey: "K",
|
|
25
25
|
onHotkeyPressed: t
|
|
26
26
|
})
|
|
@@ -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":";AAkTA,wBAKG"}
|