@scalar/api-client 2.0.28 → 2.0.30
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 +17 -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 +23 -23
- 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 +1 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +5 -5
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +5 -43
- package/dist/components/SideNav/SideNav.vue2.js +44 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts +2 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +29 -20
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +1 -1
- package/dist/components/SubpageHeader.vue.d.ts +12 -0
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -0
- package/dist/components/SubpageHeader.vue.js +31 -0
- package/dist/components/SubpageHeader.vue2.js +4 -0
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -10
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +9 -9
- package/dist/router.d.ts +10 -4
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +31 -27
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +44 -38
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +92 -86
- 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 +11 -11
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +13 -13
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +2 -2
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +45 -39
- package/package.json +6 -6
|
@@ -1,58 +1,64 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, openBlock as l, createBlock as s, withCtx as e, createVNode as r, unref as n, createElementVNode as d, createElementBlock as p, Fragment as v, renderList as x, createTextVNode as S } from "vue";
|
|
2
2
|
import h from "../../components/Sidebar/SidebarButton.vue.js";
|
|
3
3
|
import k from "../../components/Sidebar/SidebarList.vue.js";
|
|
4
4
|
import b from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
5
|
-
import L from "../../components/
|
|
6
|
-
import V from "../../components/ViewLayout/
|
|
5
|
+
import L from "../../components/SubpageHeader.vue.js";
|
|
6
|
+
import V from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
7
|
+
import $ from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
7
8
|
import { useWorkspace as w } from "../../store/workspace.js";
|
|
8
9
|
import { createServer as C } from "@scalar/oas-utils/entities/workspace/server";
|
|
9
|
-
import { useRouter as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import { useRouter as y } from "vue-router";
|
|
11
|
+
import B from "./ServerForm.vue.js";
|
|
12
|
+
import E from "../../components/Sidebar/Sidebar.vue.js";
|
|
12
13
|
/* empty css */
|
|
13
|
-
const
|
|
14
|
+
const N = { class: "flex-1" }, K = /* @__PURE__ */ _({
|
|
14
15
|
__name: "Servers",
|
|
15
|
-
setup(
|
|
16
|
-
const { activeCollection: t, servers: m, serverMutators: c } = w(), { push: u } =
|
|
16
|
+
setup(g) {
|
|
17
|
+
const { activeCollection: t, servers: m, serverMutators: c } = w(), { push: u } = y(), f = () => {
|
|
17
18
|
if (!t.value) return;
|
|
18
19
|
const o = C({ url: "http://localhost" });
|
|
19
20
|
c.add(o, t.value.uid), u(`/servers/${o.uid}`);
|
|
20
21
|
};
|
|
21
|
-
return (o,
|
|
22
|
+
return (o, A) => (l(), s(L, null, {
|
|
22
23
|
default: e(() => [
|
|
23
|
-
r(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
24
|
+
r(V, null, {
|
|
25
|
+
default: e(() => [
|
|
26
|
+
r(n(E), { title: "Servers" }, {
|
|
27
|
+
content: e(() => [
|
|
28
|
+
d("div", N, [
|
|
29
|
+
r(k, null, {
|
|
30
|
+
default: e(() => {
|
|
31
|
+
var i;
|
|
32
|
+
return [
|
|
33
|
+
(l(!0), p(v, null, x((i = n(t)) == null ? void 0 : i.spec.serverUids, (a) => (l(), s(b, {
|
|
34
|
+
key: a,
|
|
35
|
+
class: "text-xs",
|
|
36
|
+
variable: { name: n(m)[a].url, uid: a }
|
|
37
|
+
}, null, 8, ["variable"]))), 128))
|
|
38
|
+
];
|
|
39
|
+
}),
|
|
40
|
+
_: 1
|
|
41
|
+
})
|
|
42
|
+
])
|
|
43
|
+
]),
|
|
44
|
+
button: e(() => [
|
|
45
|
+
r(h, { click: f }, {
|
|
46
|
+
title: e(() => [
|
|
47
|
+
S("Add Server")
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}),
|
|
54
|
+
r($, { class: "flex-1" }, {
|
|
55
|
+
default: e(() => [
|
|
56
|
+
r(B)
|
|
45
57
|
]),
|
|
46
58
|
_: 1
|
|
47
59
|
})
|
|
48
60
|
]),
|
|
49
61
|
_: 1
|
|
50
|
-
}),
|
|
51
|
-
r(V, { class: "flex-1" }, {
|
|
52
|
-
default: e(() => [
|
|
53
|
-
r(y)
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
62
|
})
|
|
57
63
|
]),
|
|
58
64
|
_: 1
|
|
@@ -60,5 +66,5 @@ const E = { class: "flex-1" }, I = /* @__PURE__ */ d({
|
|
|
60
66
|
}
|
|
61
67
|
});
|
|
62
68
|
export {
|
|
63
|
-
|
|
69
|
+
K as default
|
|
64
70
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.0.
|
|
21
|
+
"version": "2.0.30",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -118,14 +118,14 @@
|
|
|
118
118
|
"vue": "^3.4.29",
|
|
119
119
|
"vue-router": "^4.3.0",
|
|
120
120
|
"zod": "^3.22.4",
|
|
121
|
-
"@scalar/
|
|
122
|
-
"@scalar/draggable": "0.1.3",
|
|
123
|
-
"@scalar/oas-utils": "0.2.16",
|
|
121
|
+
"@scalar/oas-utils": "0.2.17",
|
|
124
122
|
"@scalar/object-utils": "1.1.4",
|
|
125
|
-
"@scalar/
|
|
123
|
+
"@scalar/draggable": "0.1.3",
|
|
126
124
|
"@scalar/use-codemirror": "0.11.8",
|
|
127
125
|
"@scalar/use-toasts": "0.7.4",
|
|
128
|
-
"@scalar/use-tooltip": "1.0.2"
|
|
126
|
+
"@scalar/use-tooltip": "1.0.2",
|
|
127
|
+
"@scalar/themes": "0.9.16",
|
|
128
|
+
"@scalar/components": "0.12.19"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@types/content-type": "^1.1.8",
|