@scalar/api-client 2.0.29 → 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 +11 -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.map +1 -1
- package/dist/components/SubpageHeader.vue.js +1 -1
- 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/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/package.json +5 -5
package/dist/router.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { createRouter as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
import { computed as m } from "vue";
|
|
2
|
+
import { createRouter as o, createWebHistory as i, createWebHashHistory as f, createMemoryHistory as d } from "vue-router";
|
|
3
|
+
var l = /* @__PURE__ */ ((e) => (e.Request = "request", e.Examples = "examples", e.Cookies = "cookies", e.Collection = "collection", e.Schema = "schema", e.Environment = "environment", e.Servers = "servers", e.Workspace = "workspace", e))(l || {});
|
|
4
|
+
const n = [
|
|
5
5
|
{
|
|
6
6
|
path: "",
|
|
7
7
|
redirect: (e) => `${e.fullPath.replace(/\/$/, "")}/request/default`
|
|
@@ -16,11 +16,11 @@ const l = [
|
|
|
16
16
|
component: () => import("./views/Request/Request.vue.js")
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: "
|
|
19
|
+
name: "examples",
|
|
20
20
|
path: "request/:request/examples/:examples",
|
|
21
21
|
component: () => import("./views/Request/Request.vue.js")
|
|
22
22
|
}
|
|
23
|
-
],
|
|
23
|
+
], h = [
|
|
24
24
|
{
|
|
25
25
|
path: "/",
|
|
26
26
|
redirect: "/workspace/default/request/default"
|
|
@@ -31,9 +31,9 @@ const l = [
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
path: "/workspace/:workspace",
|
|
34
|
-
children:
|
|
34
|
+
children: n
|
|
35
35
|
}
|
|
36
|
-
],
|
|
36
|
+
], p = [
|
|
37
37
|
{
|
|
38
38
|
path: "/",
|
|
39
39
|
redirect: "/workspace/default/request/default"
|
|
@@ -45,7 +45,7 @@ const l = [
|
|
|
45
45
|
{
|
|
46
46
|
path: "/workspace/:workspace",
|
|
47
47
|
children: [
|
|
48
|
-
...
|
|
48
|
+
...n,
|
|
49
49
|
// {
|
|
50
50
|
// path: 'collection',
|
|
51
51
|
// redirect: (to) =>
|
|
@@ -103,13 +103,16 @@ const l = [
|
|
|
103
103
|
}
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
|
-
], t =
|
|
107
|
-
history:
|
|
108
|
-
routes:
|
|
109
|
-
}),
|
|
110
|
-
history:
|
|
111
|
-
routes:
|
|
112
|
-
}),
|
|
106
|
+
], t = o({
|
|
107
|
+
history: i(),
|
|
108
|
+
routes: p
|
|
109
|
+
}), u = o({
|
|
110
|
+
history: f(),
|
|
111
|
+
routes: p
|
|
112
|
+
}), c = o({
|
|
113
|
+
history: d(),
|
|
114
|
+
routes: h
|
|
115
|
+
}), $ = m(() => {
|
|
113
116
|
const e = {
|
|
114
117
|
collection: "default",
|
|
115
118
|
environment: "default",
|
|
@@ -119,15 +122,15 @@ const l = [
|
|
|
119
122
|
cookies: "default",
|
|
120
123
|
servers: "default",
|
|
121
124
|
workspace: "default"
|
|
122
|
-
}, a =
|
|
123
|
-
return a && Object.values(
|
|
125
|
+
}, a = c.currentRoute.value.matched.length ? c.currentRoute.value : u.currentRoute.value.matched.length ? u.currentRoute.value : t.currentRoute.value;
|
|
126
|
+
return a && Object.values(l).forEach((r) => {
|
|
124
127
|
a.params[r] && (e[r] = a.params[r]);
|
|
125
128
|
}), e;
|
|
126
129
|
});
|
|
127
|
-
function
|
|
128
|
-
var r,
|
|
130
|
+
function k(e, a) {
|
|
131
|
+
var r, s;
|
|
129
132
|
t.currentRoute.value && // If the item is missing then we know the UID is no longer in use and redirect to the default
|
|
130
|
-
!a && ((r = t.currentRoute.value) != null && r.params[e]) && ((
|
|
133
|
+
!a && ((r = t.currentRoute.value) != null && r.params[e]) && ((s = t.currentRoute.value) == null ? void 0 : s.params[e]) !== "default" && // We only redirect if the key is missing for the matching route
|
|
131
134
|
t.currentRoute.value.path.includes(e) && t.push({
|
|
132
135
|
params: {
|
|
133
136
|
...t.currentRoute.value.params,
|
|
@@ -136,10 +139,11 @@ function $(e, a) {
|
|
|
136
139
|
});
|
|
137
140
|
}
|
|
138
141
|
export {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
t as router
|
|
142
|
+
l as PathId,
|
|
143
|
+
$ as activeRouterParams,
|
|
144
|
+
k as fallbackMissingParams,
|
|
145
|
+
c as modalRouter,
|
|
146
|
+
h as modalRoutes,
|
|
147
|
+
t as router,
|
|
148
|
+
u as webHashRouter
|
|
145
149
|
};
|