@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
package/dist/router.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare enum PathId {
|
|
|
8
8
|
Servers = "servers",
|
|
9
9
|
Workspace = "workspace"
|
|
10
10
|
}
|
|
11
|
-
/** Routes required by the client modal */
|
|
11
|
+
/** Routes required by the API client modal */
|
|
12
12
|
export declare const modalRoutes: ({
|
|
13
13
|
path: string;
|
|
14
14
|
redirect: string;
|
|
@@ -21,7 +21,7 @@ export declare const modalRoutes: ({
|
|
|
21
21
|
name?: undefined;
|
|
22
22
|
component?: undefined;
|
|
23
23
|
} | {
|
|
24
|
-
name:
|
|
24
|
+
name: PathId;
|
|
25
25
|
path: string;
|
|
26
26
|
component: () => Promise<typeof import("./views/Request/Request.vue.js")>;
|
|
27
27
|
redirect?: undefined;
|
|
@@ -29,10 +29,16 @@ export declare const modalRoutes: ({
|
|
|
29
29
|
redirect?: undefined;
|
|
30
30
|
})[];
|
|
31
31
|
/**
|
|
32
|
-
* Router for the API
|
|
32
|
+
* Router for the API client app
|
|
33
33
|
*/
|
|
34
34
|
export declare const router: import("vue-router").Router;
|
|
35
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Router for the API client app (but using hash history)
|
|
37
|
+
*/
|
|
38
|
+
export declare const webHashRouter: import("vue-router").Router;
|
|
39
|
+
/**
|
|
40
|
+
* Router for the API client modal
|
|
41
|
+
*/
|
|
36
42
|
export declare const modalRouter: import("vue-router").Router;
|
|
37
43
|
export declare const activeRouterParams: import("vue").ComputedRef<{
|
|
38
44
|
collection: string;
|
package/dist/router.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AASA,oBAAY,MAAM;IAChB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAwBD,8CAA8C;AAC9C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;IAaI,CAAA;AA2E5B;;GAEG;AACH,eAAO,MAAM,MAAM,6BAGjB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,6BAGxB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,6BAGtB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;EA4B7B,CAAA;AAEF,gGAAgG;AAChG,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,QAmBtC"}
|
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
|
};
|