@scalar/api-client 2.0.27 → 2.0.29
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 +20 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +26 -33
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchModal.vue.js +2 -2
- package/dist/components/Search/SearchModal.vue2.js +78 -75
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.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/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/index.js +7 -6
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/createApiClientApp.js +5 -5
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/api-client-modal.d.ts +38 -2
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/api-client-modal.js +52 -42
- package/dist/layouts/Modal/index.js +5 -4
- package/dist/store/workspace.d.ts +2 -2
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +94 -92
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +1 -1
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +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/Environment/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +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 +117 -108
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +19 -19
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +45 -39
- package/package.json +5 -7
|
@@ -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.29",
|
|
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/draggable": "0.1.3",
|
|
122
121
|
"@scalar/components": "0.12.18",
|
|
123
|
-
"@scalar/object-utils": "1.1.4",
|
|
124
122
|
"@scalar/oas-utils": "0.2.16",
|
|
123
|
+
"@scalar/object-utils": "1.1.4",
|
|
124
|
+
"@scalar/draggable": "0.1.3",
|
|
125
125
|
"@scalar/themes": "0.9.15",
|
|
126
126
|
"@scalar/use-codemirror": "0.11.8",
|
|
127
|
-
"@scalar/use-
|
|
128
|
-
"@scalar/use-
|
|
127
|
+
"@scalar/use-tooltip": "1.0.2",
|
|
128
|
+
"@scalar/use-toasts": "0.7.4"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@types/content-type": "^1.1.8",
|
|
@@ -136,12 +136,10 @@
|
|
|
136
136
|
"postcss": "^8.4.38",
|
|
137
137
|
"tailwindcss": "^3.4.4",
|
|
138
138
|
"tailwindcss-color-mix": "^0.0.8",
|
|
139
|
-
"tsc-alias": "^1.8.8",
|
|
140
139
|
"type-fest": "^4.20.0",
|
|
141
140
|
"vite": "^5.2.10",
|
|
142
141
|
"vite-svg-loader": "^5.1.0",
|
|
143
142
|
"vitest": "^1.6.0",
|
|
144
|
-
"vue-tsc": "^2.0.13",
|
|
145
143
|
"@scalar/build-tooling": "0.1.10"
|
|
146
144
|
},
|
|
147
145
|
"scripts": {
|