@scalar/api-client 2.0.48 → 2.0.49
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 +12 -0
- package/dist/components/Sidebar/Sidebar.vue.d.ts +0 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +23 -25
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/libs/local-storage.js +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth.vue2.js +165 -148
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +29 -28
- package/dist/views/Request/consts/new-auth-options.d.ts +0 -1
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.js +5 -6
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.0.49
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 56be4fe: feat(api-client): added complex multi auth
|
|
8
|
+
- c450bb3: fix: scalar api ref use scalar-border-width
|
|
9
|
+
- 75a5a64: fix: sidebar title
|
|
10
|
+
- Updated dependencies [c450bb3]
|
|
11
|
+
- @scalar/themes@0.9.23
|
|
12
|
+
- @scalar/components@0.12.31
|
|
13
|
+
- @scalar/oas-utils@0.2.30
|
|
14
|
+
|
|
3
15
|
## 2.0.48
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"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,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,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as B, ref as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as B, ref as r, watch as L, onMounted as W, withDirectives as D, openBlock as h, createElementBlock as v, normalizeClass as g, normalizeStyle as k, renderSlot as n, unref as b, createElementVNode as i, toDisplayString as I, createCommentVNode as _, vShow as $ } from "vue";
|
|
2
|
+
import { useWorkspace as C } from "../../store/workspace.js";
|
|
3
|
+
const z = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "xl:min-h-header py-2.5 flex items-center border-b-1/2 px-4 text-sm"
|
|
6
|
-
},
|
|
6
|
+
}, M = { class: "font-medium m-0 text-sm whitespace-nowrap" }, N = /* @__PURE__ */ B({
|
|
7
7
|
__name: "Sidebar",
|
|
8
8
|
props: {
|
|
9
9
|
title: {},
|
|
10
10
|
showSideBar: { type: Boolean, default: !0 }
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:showSideBar"],
|
|
13
|
-
setup(
|
|
14
|
-
const d =
|
|
13
|
+
setup(S, { emit: w }) {
|
|
14
|
+
const d = S, l = w, { isReadOnly: c } = C(), a = r(!1), m = r(null), s = r(localStorage.getItem("sidebarWidth") || "280px"), u = () => {
|
|
15
15
|
(s.value === "0px" || localStorage.getItem("sidebarWidth") === "0px") && (s.value = "280px");
|
|
16
|
-
},
|
|
16
|
+
}, y = (e) => {
|
|
17
17
|
e.preventDefault();
|
|
18
|
-
const o = e.clientX,
|
|
18
|
+
const o = e.clientX, x = parseInt(
|
|
19
19
|
getComputedStyle(m.value).width || "280px",
|
|
20
20
|
10
|
|
21
21
|
), p = (E) => {
|
|
22
|
-
|
|
23
|
-
let t =
|
|
22
|
+
a.value = !0, document.body.classList.add("dragging");
|
|
23
|
+
let t = x + E.clientX - o;
|
|
24
24
|
t > 420 && (t = 420 + (t - 420) * 0.2), t < 240 ? (t = 0, l("update:showSideBar", !1)) : l("update:showSideBar", !0), s.value = `${t}px`, localStorage.setItem("sidebarWidth", `${Math.min(t, 420)}px`);
|
|
25
25
|
}, f = () => {
|
|
26
|
-
|
|
26
|
+
a.value = !1, document.body.classList.remove("dragging"), document.documentElement.removeEventListener("mousemove", p, !1), document.documentElement.removeEventListener("mouseup", f, !1), parseInt(s.value, 10) > 420 && (s.value = "360px");
|
|
27
27
|
};
|
|
28
28
|
document.documentElement.addEventListener("mousemove", p, !1), document.documentElement.addEventListener("mouseup", f, !1);
|
|
29
29
|
};
|
|
@@ -35,35 +35,33 @@ const C = {
|
|
|
35
35
|
}
|
|
36
36
|
), W(() => {
|
|
37
37
|
u();
|
|
38
|
-
}), (e, o) =>
|
|
38
|
+
}), (e, o) => D((h(), v("aside", {
|
|
39
39
|
ref_key: "sidebarRef",
|
|
40
40
|
ref: m,
|
|
41
|
-
class: g(["sidebar overflow-hidden relative flex flex-col border-r-1/2 bg-b-1", { dragging:
|
|
42
|
-
style:
|
|
41
|
+
class: g(["sidebar overflow-hidden relative flex flex-col border-r-1/2 bg-b-1", { dragging: a.value }]),
|
|
42
|
+
style: k({ width: s.value })
|
|
43
43
|
}, [
|
|
44
|
-
|
|
45
|
-
!b(c) && e.title ? (h(), v("div",
|
|
46
|
-
i("h2",
|
|
47
|
-
|
|
48
|
-
])
|
|
49
|
-
])) : I("", !0),
|
|
44
|
+
n(e.$slots, "header"),
|
|
45
|
+
!b(c) && e.title ? (h(), v("div", z, [
|
|
46
|
+
i("h2", M, I(e.title), 1)
|
|
47
|
+
])) : _("", !0),
|
|
50
48
|
i("div", {
|
|
51
49
|
class: g(["custom-scroll sidebar-height", {
|
|
52
50
|
"sidebar-mask": !b(c)
|
|
53
51
|
}])
|
|
54
52
|
}, [
|
|
55
|
-
|
|
53
|
+
n(e.$slots, "content")
|
|
56
54
|
], 2),
|
|
57
|
-
|
|
55
|
+
n(e.$slots, "button"),
|
|
58
56
|
i("div", {
|
|
59
57
|
class: "resizer",
|
|
60
|
-
onMousedown:
|
|
58
|
+
onMousedown: y
|
|
61
59
|
}, null, 32)
|
|
62
60
|
], 6)), [
|
|
63
|
-
[
|
|
61
|
+
[$, d.showSideBar]
|
|
64
62
|
]);
|
|
65
63
|
}
|
|
66
64
|
});
|
|
67
65
|
export {
|
|
68
|
-
|
|
66
|
+
N as default
|
|
69
67
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNavItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ffc99777"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -11,7 +11,7 @@ const g = (a) => {
|
|
|
11
11
|
workspaceMutators: S
|
|
12
12
|
} = a;
|
|
13
13
|
try {
|
|
14
|
-
t.loadLocalStorage(), e.loadLocalStorage(), r.loadLocalStorage(), l.loadLocalStorage(), c.loadLocalStorage(), s.loadLocalStorage(), u.loadLocalStorage(), d.loadLocalStorage(), S.loadLocalStorage(), localStorage.setItem("version", "2.0.
|
|
14
|
+
t.loadLocalStorage(), e.loadLocalStorage(), r.loadLocalStorage(), l.loadLocalStorage(), c.loadLocalStorage(), s.loadLocalStorage(), u.loadLocalStorage(), d.loadLocalStorage(), S.loadLocalStorage(), localStorage.setItem("version", "2.0.49");
|
|
15
15
|
} catch (o) {
|
|
16
16
|
return console.error(o), o;
|
|
17
17
|
}
|