@scalar/api-client 2.3.34 → 2.4.2
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 +67 -0
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +74 -89
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +2 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +19 -18
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +3 -3
- package/dist/components/TopNav/TopNavItem.vue2.js +46 -54
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/hooks/useClientConfig.d.ts +72 -6
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +45 -40
- package/dist/layouts/App/create-api-client-app.d.ts +72 -52
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +144 -104
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +49 -44
- package/dist/layouts/Web/create-api-client-web.d.ts +72 -52
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +72 -52
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +53 -49
- package/dist/libs/electron.d.ts +5 -0
- package/dist/libs/electron.d.ts.map +1 -0
- package/dist/libs/electron.js +4 -0
- package/dist/libs/find-request.d.ts +2 -0
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts +10 -3
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.js +28 -6
- package/dist/libs/send-request/create-request-operation.d.ts +3 -1
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +91 -87
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -0
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +8 -0
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -0
- package/dist/plugins/hooks/usePluginManager.js +10 -0
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +7 -0
- package/dist/plugins/plugin-manager.d.ts +28 -0
- package/dist/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/plugins/plugin-manager.js +24 -0
- package/dist/store/active-entities.d.ts +2 -0
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +26 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +24 -24
- package/dist/store/store.d.ts +72 -52
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- 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/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +47 -45
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +37 -34
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +61 -70
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +92 -77
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +59 -65
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +34 -35
- package/dist/views/Request/RequestSection/types/post-response.d.ts +7 -0
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItem.vue2.js +132 -134
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +82 -70
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -114
- package/package.json +25 -20
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as d, createBlock as
|
|
2
|
-
import { ScalarContextMenu as
|
|
1
|
+
import { defineComponent as d, createBlock as c, openBlock as p, unref as t, withCtx as n, createVNode as o, createTextVNode as a, createElementVNode as r, normalizeClass as k, toDisplayString as u } from "vue";
|
|
2
|
+
import { ScalarContextMenu as b, ScalarFloating as v, ScalarDropdownMenu as C, ScalarDropdownButton as m, ScalarIcon as l, ScalarDropdownDivider as g, ScalarTooltip as y } from "@scalar/components";
|
|
3
3
|
import { LibraryIcon as $ } from "@scalar/icons/library";
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import { isMacOS as T } from "@scalar/use-tooltip";
|
|
5
|
+
import f from "../ScalarHotkey.vue.js";
|
|
6
|
+
const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, S = { class: "custom-scroll nav-item-copy text-xs" }, L = /* @__PURE__ */ d({
|
|
6
7
|
__name: "TopNavItem",
|
|
7
8
|
props: {
|
|
8
9
|
hotkey: {},
|
|
@@ -12,122 +13,113 @@ const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
12
13
|
isCollection: { type: Boolean }
|
|
13
14
|
},
|
|
14
15
|
emits: ["click", "close", "newTab", "copyUrl", "closeOtherTabs"],
|
|
15
|
-
setup(
|
|
16
|
-
return (s, e) => (
|
|
17
|
-
trigger:
|
|
18
|
-
o(t(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
disableClosingTrigger: !0,
|
|
22
|
-
resize: "",
|
|
23
|
-
sideOffset: 4
|
|
16
|
+
setup(z) {
|
|
17
|
+
return (s, e) => (p(), c(t(b), { triggerClass: "overflow-hidden w-full" }, {
|
|
18
|
+
trigger: n(() => [
|
|
19
|
+
o(t(y), {
|
|
20
|
+
content: `${t(T)() ? "⌘" : "^"} ${s.hotkey}`,
|
|
21
|
+
placement: "bottom"
|
|
24
22
|
}, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class:
|
|
23
|
+
default: n(() => [
|
|
24
|
+
r("div", {
|
|
25
|
+
class: k(["nav-item app-no-drag-region", { "nav-item__active": s.active }]),
|
|
28
26
|
onClick: e[1] || (e[1] = (i) => s.$emit("click"))
|
|
29
27
|
}, [
|
|
30
|
-
|
|
31
|
-
s.isCollection ? (
|
|
28
|
+
r("div", w, [
|
|
29
|
+
s.isCollection ? (p(), c(t($), {
|
|
32
30
|
key: 0,
|
|
33
31
|
class: "size-3.5 min-w-3.5 stroke-2",
|
|
34
32
|
src: s.icon
|
|
35
|
-
}, null, 8, ["src"])) : (
|
|
33
|
+
}, null, 8, ["src"])) : (p(), c(t(l), {
|
|
36
34
|
key: 1,
|
|
37
35
|
icon: s.icon,
|
|
38
36
|
size: "xs",
|
|
39
37
|
thickness: "2.5"
|
|
40
38
|
}, null, 8, ["icon"])),
|
|
41
|
-
|
|
39
|
+
r("span", S, u(s.label), 1)
|
|
42
40
|
]),
|
|
43
|
-
|
|
41
|
+
r("button", {
|
|
44
42
|
class: "nav-item-close",
|
|
45
43
|
type: "button",
|
|
46
44
|
onClick: e[0] || (e[0] = (i) => s.$emit("close"))
|
|
47
45
|
}, [
|
|
48
|
-
o(t(
|
|
46
|
+
o(t(l), {
|
|
49
47
|
icon: "Close",
|
|
50
48
|
thickness: "1.75"
|
|
51
49
|
})
|
|
52
50
|
])
|
|
53
51
|
], 2)
|
|
54
52
|
]),
|
|
55
|
-
content: l(() => [
|
|
56
|
-
s.hotkey ? (r(), a(k, {
|
|
57
|
-
key: 0,
|
|
58
|
-
hotkey: s.hotkey
|
|
59
|
-
}, null, 8, ["hotkey"])) : f("", !0)
|
|
60
|
-
]),
|
|
61
53
|
_: 1
|
|
62
|
-
})
|
|
54
|
+
}, 8, ["content"])
|
|
63
55
|
]),
|
|
64
|
-
content:
|
|
65
|
-
o(t(
|
|
66
|
-
floating:
|
|
67
|
-
o(t(
|
|
68
|
-
default:
|
|
69
|
-
o(t(
|
|
56
|
+
content: n(() => [
|
|
57
|
+
o(t(v), { placement: "right-start" }, {
|
|
58
|
+
floating: n(() => [
|
|
59
|
+
o(t(C), { class: "scalar-app scalar-client" }, {
|
|
60
|
+
default: n(() => [
|
|
61
|
+
o(t(m), {
|
|
70
62
|
class: "flex items-center gap-1.5",
|
|
71
63
|
onClick: e[2] || (e[2] = (i) => s.$emit("newTab"))
|
|
72
64
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
o(t(
|
|
65
|
+
default: n(() => [
|
|
66
|
+
o(t(l), {
|
|
75
67
|
icon: "AddTab",
|
|
76
68
|
size: "sm",
|
|
77
69
|
thickness: "1.5"
|
|
78
70
|
}),
|
|
79
|
-
e[6] || (e[6] =
|
|
80
|
-
o(
|
|
71
|
+
e[6] || (e[6] = a(" New Tab ")),
|
|
72
|
+
o(f, {
|
|
81
73
|
class: "bg-b-2 ml-auto",
|
|
82
74
|
hotkey: "T"
|
|
83
75
|
})
|
|
84
76
|
]),
|
|
85
77
|
_: 1
|
|
86
78
|
}),
|
|
87
|
-
o(t(
|
|
79
|
+
o(t(m), {
|
|
88
80
|
class: "flex items-center gap-1.5",
|
|
89
81
|
onClick: e[3] || (e[3] = (i) => s.$emit("copyUrl"))
|
|
90
82
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
o(t(
|
|
83
|
+
default: n(() => [
|
|
84
|
+
o(t(l), {
|
|
93
85
|
icon: "Link",
|
|
94
86
|
size: "sm",
|
|
95
87
|
thickness: "1.5"
|
|
96
88
|
}),
|
|
97
|
-
e[7] || (e[7] =
|
|
89
|
+
e[7] || (e[7] = a(" Copy URL "))
|
|
98
90
|
]),
|
|
99
91
|
_: 1
|
|
100
92
|
}),
|
|
101
|
-
o(t(
|
|
102
|
-
o(t(
|
|
93
|
+
o(t(g)),
|
|
94
|
+
o(t(m), {
|
|
103
95
|
class: "flex items-center gap-1.5",
|
|
104
96
|
onClick: e[4] || (e[4] = (i) => s.$emit("close"))
|
|
105
97
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
o(t(
|
|
98
|
+
default: n(() => [
|
|
99
|
+
o(t(l), {
|
|
108
100
|
icon: "CloseTab",
|
|
109
101
|
size: "sm",
|
|
110
102
|
thickness: "1.5"
|
|
111
103
|
}),
|
|
112
|
-
e[8] || (e[8] =
|
|
113
|
-
o(
|
|
104
|
+
e[8] || (e[8] = a(" Close Tab ")),
|
|
105
|
+
o(f, {
|
|
114
106
|
class: "bg-b-2 ml-auto",
|
|
115
107
|
hotkey: "W"
|
|
116
108
|
})
|
|
117
109
|
]),
|
|
118
110
|
_: 1
|
|
119
111
|
}),
|
|
120
|
-
o(t(
|
|
112
|
+
o(t(m), {
|
|
121
113
|
class: "flex items-center gap-1.5",
|
|
122
114
|
onClick: e[5] || (e[5] = (i) => s.$emit("closeOtherTabs"))
|
|
123
115
|
}, {
|
|
124
|
-
default:
|
|
125
|
-
o(t(
|
|
116
|
+
default: n(() => [
|
|
117
|
+
o(t(l), {
|
|
126
118
|
icon: "CloseTabs",
|
|
127
119
|
size: "sm",
|
|
128
120
|
thickness: "1.5"
|
|
129
121
|
}),
|
|
130
|
-
e[9] || (e[9] =
|
|
122
|
+
e[9] || (e[9] = a(" Close Other Tabs "))
|
|
131
123
|
]),
|
|
132
124
|
_: 1
|
|
133
125
|
})
|
|
@@ -143,5 +135,5 @@ const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
143
135
|
}
|
|
144
136
|
});
|
|
145
137
|
export {
|
|
146
|
-
|
|
138
|
+
L as default
|
|
147
139
|
};
|
|
@@ -6,7 +6,7 @@ const _ = ["aria-labelledby"], k = { class: "text-c-1 flex flex-1 items-center g
|
|
|
6
6
|
class: "sr-only"
|
|
7
7
|
}, V = {
|
|
8
8
|
key: 0,
|
|
9
|
-
class: "bg-b-2 text-c-2
|
|
9
|
+
class: "bg-b-2 text-c-2 inline-flex h-5 w-5 items-center justify-center rounded-full border text-xs font-semibold"
|
|
10
10
|
}, $ = { class: "sr-only" }, D = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "ui-not-open:invisible flex items-center gap-2 pr-2"
|
|
@@ -7,14 +7,14 @@ export declare const useClientConfig: () => Ref<{
|
|
|
7
7
|
showSidebar: boolean;
|
|
8
8
|
theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
|
|
9
9
|
persistAuth: boolean;
|
|
10
|
+
title?: string | undefined;
|
|
10
11
|
url?: string | undefined;
|
|
11
12
|
content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
|
|
12
|
-
title?: string | undefined;
|
|
13
13
|
slug?: string | undefined;
|
|
14
14
|
spec?: {
|
|
15
|
+
title?: string | undefined;
|
|
15
16
|
url?: string | undefined;
|
|
16
17
|
content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
|
|
17
|
-
title?: string | undefined;
|
|
18
18
|
slug?: string | undefined;
|
|
19
19
|
} | undefined;
|
|
20
20
|
authentication?: any;
|
|
@@ -24,19 +24,41 @@ export declare const useClientConfig: () => Ref<{
|
|
|
24
24
|
servers?: any[] | undefined;
|
|
25
25
|
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
26
26
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
27
|
+
plugins?: ((...args: unknown[]) => {
|
|
28
|
+
name: string;
|
|
29
|
+
views: {
|
|
30
|
+
"request.section": {
|
|
31
|
+
title?: string | undefined;
|
|
32
|
+
component?: unknown;
|
|
33
|
+
props?: Record<string, any> | undefined;
|
|
34
|
+
}[];
|
|
35
|
+
"response.section": {
|
|
36
|
+
title?: string | undefined;
|
|
37
|
+
component?: unknown;
|
|
38
|
+
props?: Record<string, any> | undefined;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
hooks: {
|
|
42
|
+
onBeforeRequest: (...args: unknown[]) => void | Promise<void>;
|
|
43
|
+
onResponseReceived: (args_0: {
|
|
44
|
+
response: Response;
|
|
45
|
+
operation: Record<string, any>;
|
|
46
|
+
}, ...args: unknown[]) => void | Promise<void>;
|
|
47
|
+
};
|
|
48
|
+
})[] | undefined;
|
|
27
49
|
}, {
|
|
28
50
|
hideClientButton: boolean;
|
|
29
51
|
showSidebar: boolean;
|
|
30
52
|
theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
|
|
31
53
|
persistAuth: boolean;
|
|
54
|
+
title?: string | undefined;
|
|
32
55
|
url?: string | undefined;
|
|
33
56
|
content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
|
|
34
|
-
title?: string | undefined;
|
|
35
57
|
slug?: string | undefined;
|
|
36
58
|
spec?: {
|
|
59
|
+
title?: string | undefined;
|
|
37
60
|
url?: string | undefined;
|
|
38
61
|
content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
|
|
39
|
-
title?: string | undefined;
|
|
40
62
|
slug?: string | undefined;
|
|
41
63
|
} | undefined;
|
|
42
64
|
authentication?: any;
|
|
@@ -46,19 +68,41 @@ export declare const useClientConfig: () => Ref<{
|
|
|
46
68
|
servers?: any[] | undefined;
|
|
47
69
|
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
48
70
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
71
|
+
plugins?: ((...args: unknown[]) => {
|
|
72
|
+
name: string;
|
|
73
|
+
views: {
|
|
74
|
+
"request.section": {
|
|
75
|
+
title?: string | undefined;
|
|
76
|
+
component?: unknown;
|
|
77
|
+
props?: Record<string, any> | undefined;
|
|
78
|
+
}[];
|
|
79
|
+
"response.section": {
|
|
80
|
+
title?: string | undefined;
|
|
81
|
+
component?: unknown;
|
|
82
|
+
props?: Record<string, any> | undefined;
|
|
83
|
+
}[];
|
|
84
|
+
};
|
|
85
|
+
hooks: {
|
|
86
|
+
onBeforeRequest: (...args: unknown[]) => void | Promise<void>;
|
|
87
|
+
onResponseReceived: (args_0: {
|
|
88
|
+
response: Response;
|
|
89
|
+
operation: Record<string, any>;
|
|
90
|
+
}, ...args: unknown[]) => void | Promise<void>;
|
|
91
|
+
};
|
|
92
|
+
})[] | undefined;
|
|
49
93
|
} | {
|
|
50
94
|
hideClientButton: boolean;
|
|
51
95
|
showSidebar: boolean;
|
|
52
96
|
theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
|
|
53
97
|
persistAuth: boolean;
|
|
98
|
+
title?: string | undefined;
|
|
54
99
|
url?: string | undefined;
|
|
55
100
|
content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
|
|
56
|
-
title?: string | undefined;
|
|
57
101
|
slug?: string | undefined;
|
|
58
102
|
spec?: {
|
|
103
|
+
title?: string | undefined;
|
|
59
104
|
url?: string | undefined;
|
|
60
105
|
content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
|
|
61
|
-
title?: string | undefined;
|
|
62
106
|
slug?: string | undefined;
|
|
63
107
|
} | undefined;
|
|
64
108
|
authentication?: any;
|
|
@@ -68,5 +112,27 @@ export declare const useClientConfig: () => Ref<{
|
|
|
68
112
|
servers?: any[] | undefined;
|
|
69
113
|
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
70
114
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
115
|
+
plugins?: ((...args: unknown[]) => {
|
|
116
|
+
name: string;
|
|
117
|
+
views: {
|
|
118
|
+
"request.section": {
|
|
119
|
+
title?: string | undefined;
|
|
120
|
+
component?: unknown;
|
|
121
|
+
props?: Record<string, any> | undefined;
|
|
122
|
+
}[];
|
|
123
|
+
"response.section": {
|
|
124
|
+
title?: string | undefined;
|
|
125
|
+
component?: unknown;
|
|
126
|
+
props?: Record<string, any> | undefined;
|
|
127
|
+
}[];
|
|
128
|
+
};
|
|
129
|
+
hooks: {
|
|
130
|
+
onBeforeRequest: (...args: unknown[]) => void | Promise<void>;
|
|
131
|
+
onResponseReceived: (args_0: {
|
|
132
|
+
response: Response;
|
|
133
|
+
operation: Record<string, any>;
|
|
134
|
+
}, ...args: unknown[]) => void | Promise<void>;
|
|
135
|
+
};
|
|
136
|
+
})[] | undefined;
|
|
71
137
|
}>;
|
|
72
138
|
//# sourceMappingURL=useClientConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;;;+CAC0+Y,GAAG;;;;;mDAAkO,GAAG;;;;;;;;;sCAAuuB,GAAI;gBAAuD,GAAG;;;;qBAAmH,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;qBAA2G,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;;8BAA8G,GAAG;;;;eAAuL,GAAI;;;;;;;;;;+CAA3rD,GAAG;;;aAAsH,CAAC;WAAiC,CAAC;eAAqC,CAAC,mCAAmC,GAAG;YAAyE,CAAC;;;;;;;;sCAA6pB,GAAI;gBAAuD,GAAG;;;;qBAAmH,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;qBAA2G,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;;8BAA8G,GAAG;;;;eAAuL,GAAI;;;;;;;;;;+CAA3rD,GAAG;;;;;mDAAkO,GAAG;;;;;;;;;sCAAuuB,GAAI;gBAAuD,GAAG;;;;qBAAmH,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;qBAA2G,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;;8BAA8G,GAAG;;;;eAAuL,GAAI;;;EAD5kc,CAAA"}
|
|
@@ -8,6 +8,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
8
8
|
name: string;
|
|
9
9
|
uid: string;
|
|
10
10
|
}) => any;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
export default _default;
|
|
13
13
|
//# sourceMappingURL=ApiClientApp.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cAyK8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAoMjD,wBAOG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, ref as
|
|
2
|
-
import { addScalarClassesToHeadless as B } from "@scalar/components";
|
|
1
|
+
import { defineComponent as y, ref as v, onBeforeMount as K, onMounted as C, onBeforeUnmount as S, watch as b, computed as k, createBlock as t, openBlock as n, unref as r, withCtx as m, createElementVNode as p, createVNode as s, createCommentVNode as E, KeepAlive as H, resolveDynamicComponent as N } from "vue";
|
|
2
|
+
import { addScalarClassesToHeadless as A, ScalarTeleportRoot as B } from "@scalar/components";
|
|
3
3
|
import { getThemeStyles as D } from "@scalar/themes";
|
|
4
4
|
import { useBreakpoints as L } from "@scalar/use-hooks/useBreakpoints";
|
|
5
5
|
import { useColorMode as M } from "@scalar/use-hooks/useColorMode";
|
|
@@ -9,61 +9,66 @@ import V from "../../components/TopNav/TopNav.vue.js";
|
|
|
9
9
|
import { useSidebar as O } from "../../hooks/useSidebar.js";
|
|
10
10
|
import $ from "./MainLayout.vue.js";
|
|
11
11
|
import { useActiveEntities as g } from "../../store/active-entities.js";
|
|
12
|
-
import { APP_HOTKEYS as
|
|
13
|
-
import { handleHotKeyDown as
|
|
14
|
-
import { useWorkspace as
|
|
15
|
-
const
|
|
12
|
+
import { APP_HOTKEYS as R } from "./hotkeys.js";
|
|
13
|
+
import { handleHotKeyDown as U, DEFAULT_HOTKEYS as W } from "../../libs/hot-keys.js";
|
|
14
|
+
import { useWorkspace as Y } from "../../store/store.js";
|
|
15
|
+
const F = {
|
|
16
16
|
id: "scalar-client-app",
|
|
17
17
|
class: "contents"
|
|
18
|
-
},
|
|
18
|
+
}, I = ["innerHTML"], ie = /* @__PURE__ */ y({
|
|
19
19
|
__name: "ApiClientApp",
|
|
20
20
|
emits: ["newTab"],
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
|
|
21
|
+
setup(Q) {
|
|
22
|
+
const u = { ...W, ...R }, i = v(null), f = (e) => {
|
|
23
|
+
i.value = e;
|
|
24
24
|
};
|
|
25
25
|
M();
|
|
26
|
-
const { activeWorkspace:
|
|
27
|
-
|
|
28
|
-
const
|
|
26
|
+
const { activeWorkspace: a } = g(), { events: o } = Y();
|
|
27
|
+
K(() => A());
|
|
28
|
+
const l = (e) => U(e, o.hotKeys, { hotKeys: u }), c = (e) => {
|
|
29
29
|
e && e.openCommandPalette && (e.openCommandPalette.preventDefault(), o.commandPalette.emit());
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
window.addEventListener("keydown",
|
|
33
|
-
}),
|
|
34
|
-
window.removeEventListener("keydown",
|
|
31
|
+
C(() => {
|
|
32
|
+
window.addEventListener("keydown", l), o.hotKeys.on(c);
|
|
33
|
+
}), S(() => {
|
|
34
|
+
window.removeEventListener("keydown", l), o.hotKeys.off(c);
|
|
35
35
|
});
|
|
36
|
-
const { mediaQueries:
|
|
37
|
-
|
|
36
|
+
const { mediaQueries: _ } = L(), { setSidebarOpen: w } = O();
|
|
37
|
+
b(_.xl, w, {
|
|
38
38
|
immediate: !0
|
|
39
39
|
});
|
|
40
|
-
const
|
|
40
|
+
const h = k(
|
|
41
41
|
() => {
|
|
42
42
|
var e;
|
|
43
|
-
return
|
|
43
|
+
return a.value && `<style>${D((e = a.value) == null ? void 0 : e.themeId)}</style>`;
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
|
-
return (e, j) => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
r(
|
|
54
|
-
default:
|
|
55
|
-
(
|
|
56
|
-
(
|
|
57
|
-
|
|
46
|
+
return (e, j) => (n(), t(r(B), null, {
|
|
47
|
+
default: m(() => {
|
|
48
|
+
var d;
|
|
49
|
+
return [
|
|
50
|
+
p("div", F, [
|
|
51
|
+
p("div", { innerHTML: h.value }, null, 8, I),
|
|
52
|
+
s(V, { openNewTab: i.value }, null, 8, ["openNewTab"]),
|
|
53
|
+
(d = r(a)) != null && d.uid ? (n(), t($, { key: 0 }, {
|
|
54
|
+
default: m(() => [
|
|
55
|
+
s(r(x), { onNewTab: f }, {
|
|
56
|
+
default: m(({ Component: T }) => [
|
|
57
|
+
(n(), t(H, null, [
|
|
58
|
+
(n(), t(N(T)))
|
|
59
|
+
], 1024))
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
})
|
|
58
63
|
]),
|
|
59
64
|
_: 1
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
};
|
|
65
|
+
})) : E("", !0),
|
|
66
|
+
s(r(P))
|
|
67
|
+
])
|
|
68
|
+
];
|
|
69
|
+
}),
|
|
70
|
+
_: 1
|
|
71
|
+
}));
|
|
67
72
|
}
|
|
68
73
|
});
|
|
69
74
|
export {
|