@scalar/api-client 2.1.33 → 2.1.35
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 +36 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +1 -1
- package/dist/components/ContextBar.vue2.js +6 -6
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +53 -40
- package/dist/components/ScalarHotkey.vue.d.ts +5 -6
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.js +9 -18
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue2.js +8 -8
- package/dist/components/Sidebar/SidebarButton.vue.d.ts +4 -0
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +19 -17
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +14 -14
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +35 -29
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +257 -45
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +10 -10
- package/dist/layouts/App/hotkeys.js +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +514 -90
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +24 -22
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +33 -27
- package/dist/layouts/Web/create-api-client-web.d.ts +258 -46
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +9 -9
- package/dist/libs/create-client.d.ts +280 -50
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +25 -24
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/local-storage.d.ts +2 -2
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/send-request.d.ts +2 -1
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +98 -97
- package/dist/router.d.ts +5 -5
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +32 -32
- package/dist/store/collections.d.ts +14 -4
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/events.d.ts +1 -1
- package/dist/store/import-spec.d.ts +16 -31
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +43 -56
- package/dist/store/requests.d.ts +14 -14
- package/dist/store/store.d.ts +514 -90
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +43 -43
- package/dist/store/workspace.d.ts +10 -10
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts +5 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +64 -55
- package/dist/views/Environment/Environment.vue.d.ts +5 -1
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +75 -66
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +96 -90
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +21 -21
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +79 -71
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +105 -112
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +5 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +38 -35
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +5 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -118
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +126 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +4 -4
- package/dist/views/Request/RequestSidebar.vue2.js +43 -42
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +27 -26
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +5 -99
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +104 -2
- package/dist/views/Settings/SettingsGeneral.vue.js +3 -3
- package/dist/views/Settings/SettingsGeneralMode.vue.js +3 -3
- package/package.json +8 -8
- package/dist/views/Request/RequestSection/RequestSection.vue3.js +0 -5
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
isApp: boolean;
|
|
3
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
+
isApp: boolean;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
6
|
export default _default;
|
|
3
7
|
//# sourceMappingURL=Cookies.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";WAwMS,OAAO;;WAAP,OAAO;;AAmWhB,wBAMG"}
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { defineComponent as L, computed as V, onMounted as D, openBlock as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as L, computed as V, onMounted as D, onBeforeUnmount as M, openBlock as n, createBlock as O, withCtx as a, createVNode as s, unref as l, createElementVNode as f, createElementBlock as m, Fragment as _, renderList as x, normalizeClass as $, createTextVNode as k, toDisplayString as j, withDirectives as A, vShow as E } from "vue";
|
|
2
|
+
import R from "../../components/Sidebar/SidebarButton.vue.js";
|
|
3
|
+
import F from "../../components/Sidebar/SidebarList.vue.js";
|
|
4
|
+
import K from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
5
|
+
import H from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
6
6
|
import I from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
7
|
-
import { ScalarIcon as
|
|
8
|
-
import { cookieSchema as
|
|
9
|
-
import { useRouter as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useSidebar as
|
|
13
|
-
import { useWorkspace as
|
|
14
|
-
import
|
|
15
|
-
const
|
|
7
|
+
import { ScalarIcon as N } from "@scalar/components";
|
|
8
|
+
import { cookieSchema as P } from "@scalar/oas-utils/entities/cookie";
|
|
9
|
+
import { useRouter as T, useRoute as U } from "vue-router";
|
|
10
|
+
import W from "./CookieForm.vue.js";
|
|
11
|
+
import q from "./CookieRaw.vue.js";
|
|
12
|
+
import { useSidebar as G } from "../../hooks/useSidebar.js";
|
|
13
|
+
import { useWorkspace as J } from "../../store/store.js";
|
|
14
|
+
import Q from "../../components/Sidebar/Sidebar.vue.js";
|
|
15
|
+
const X = { class: "flex-1" }, Y = ["onClick"], Z = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1rem_-_1.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, ee = ["onClick"], te = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1.75rem_-_1.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, xe = /* @__PURE__ */ L({
|
|
16
16
|
__name: "Cookies",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
props: {
|
|
18
|
+
isApp: { type: Boolean }
|
|
19
|
+
},
|
|
20
|
+
setup(oe) {
|
|
21
|
+
const { cookies: d, cookieMutators: v, events: g } = J(), { collapsedSidebarFolders: i, toggleSidebarFolder: y } = G(), b = T(), z = U(), C = () => {
|
|
22
|
+
const t = Object.keys(d).length, e = P.parse({
|
|
20
23
|
name: `Cookie ${t}`,
|
|
21
24
|
value: "",
|
|
22
25
|
domain: "example.com",
|
|
@@ -25,10 +28,10 @@ const G = { class: "flex-1" }, J = ["onClick"], K = { class: "before:bg-border b
|
|
|
25
28
|
httpOnly: !1,
|
|
26
29
|
sameSite: "None"
|
|
27
30
|
});
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
const e = Object.values(
|
|
31
|
+
v.add(e), b.push(e.uid);
|
|
32
|
+
}, B = (t) => {
|
|
33
|
+
v.delete(t);
|
|
34
|
+
const e = Object.values(d).filter(
|
|
32
35
|
(o) => o.uid !== t
|
|
33
36
|
);
|
|
34
37
|
if (e.length > 1) {
|
|
@@ -37,73 +40,75 @@ const G = { class: "flex-1" }, J = ["onClick"], K = { class: "before:bg-border b
|
|
|
37
40
|
} else e.length === 1 && e[0].uid === "default" && b.push("default");
|
|
38
41
|
}, h = V(() => {
|
|
39
42
|
const t = {};
|
|
40
|
-
return Object.values(
|
|
43
|
+
return Object.values(d).forEach((e) => {
|
|
41
44
|
e.domain && e.path && (t[e.domain] || (t[e.domain] = {}), t[e.domain][e.path] || (t[e.domain][e.path] = []), t[e.domain][e.path].push(e));
|
|
42
45
|
}), t;
|
|
43
|
-
}),
|
|
46
|
+
}), w = (t) => i[t], S = (t) => {
|
|
47
|
+
t != null && t.createNew && z.name === "cookies" && C();
|
|
48
|
+
};
|
|
44
49
|
return D(() => {
|
|
45
50
|
const t = Object.keys(h.value), e = Object.entries(h.value).flatMap(
|
|
46
|
-
([o, r]) => Object.keys(r).map((
|
|
51
|
+
([o, r]) => Object.keys(r).map((p) => o + p)
|
|
47
52
|
);
|
|
48
53
|
t.forEach((o) => {
|
|
49
54
|
i[o] = !0;
|
|
50
55
|
}), e.forEach((o) => {
|
|
51
56
|
i[o] = !0;
|
|
52
|
-
});
|
|
53
|
-
}), (t, e) => (
|
|
57
|
+
}), g.hotKeys.on(S);
|
|
58
|
+
}), M(() => g.hotKeys.off(S)), (t, e) => (n(), O(H, null, {
|
|
54
59
|
default: a(() => [
|
|
55
|
-
s(
|
|
60
|
+
s(l(Q), { title: "Cookies" }, {
|
|
56
61
|
content: a(() => [
|
|
57
|
-
f("div",
|
|
58
|
-
s(
|
|
62
|
+
f("div", X, [
|
|
63
|
+
s(F, null, {
|
|
59
64
|
default: a(() => [
|
|
60
|
-
(
|
|
65
|
+
(n(!0), m(_, null, x(h.value, (o, r) => (n(), m("div", { key: r }, [
|
|
61
66
|
f("button", {
|
|
62
67
|
class: "flex font-medium gap-1.5 items-center px-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
|
|
63
68
|
type: "button",
|
|
64
|
-
onClick: (
|
|
69
|
+
onClick: (p) => l(y)(r)
|
|
65
70
|
}, [
|
|
66
|
-
s(
|
|
67
|
-
class:
|
|
68
|
-
"rotate-90":
|
|
71
|
+
s(l(N), {
|
|
72
|
+
class: $(["text-c-3", {
|
|
73
|
+
"rotate-90": l(i)[r]
|
|
69
74
|
}]),
|
|
70
75
|
icon: "ChevronRight",
|
|
71
76
|
size: "sm",
|
|
72
77
|
thickness: "2.5"
|
|
73
78
|
}, null, 8, ["class"]),
|
|
74
|
-
|
|
75
|
-
], 8,
|
|
76
|
-
|
|
77
|
-
(
|
|
79
|
+
k(" " + j(r), 1)
|
|
80
|
+
], 8, Y),
|
|
81
|
+
A(f("div", Z, [
|
|
82
|
+
(n(!0), m(_, null, x(o, (p, c) => (n(), m("div", { key: c }, [
|
|
78
83
|
f("button", {
|
|
79
84
|
class: "flex font-medium gap-1.5 items-center pl-5 pr-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
|
|
80
85
|
type: "button",
|
|
81
|
-
onClick: (u) =>
|
|
86
|
+
onClick: (u) => l(y)(r + c)
|
|
82
87
|
}, [
|
|
83
|
-
s(
|
|
84
|
-
class:
|
|
85
|
-
"rotate-90":
|
|
88
|
+
s(l(N), {
|
|
89
|
+
class: $(["text-c-3", {
|
|
90
|
+
"rotate-90": l(i)[r + c]
|
|
86
91
|
}]),
|
|
87
92
|
icon: "ChevronRight",
|
|
88
93
|
size: "sm",
|
|
89
94
|
thickness: "2.5"
|
|
90
95
|
}, null, 8, ["class"]),
|
|
91
|
-
|
|
92
|
-
], 8,
|
|
93
|
-
|
|
94
|
-
(
|
|
96
|
+
k(" " + j(c), 1)
|
|
97
|
+
], 8, ee),
|
|
98
|
+
A(f("div", te, [
|
|
99
|
+
(n(!0), m(_, null, x(p, (u) => (n(), O(K, {
|
|
95
100
|
key: u.uid,
|
|
96
101
|
class: "cookie text-xs",
|
|
97
102
|
variable: { name: u.name, uid: u.uid },
|
|
98
103
|
warningMessage: "Are you sure you want to delete this cookie?",
|
|
99
|
-
onDelete: (
|
|
104
|
+
onDelete: (re) => B(u.uid)
|
|
100
105
|
}, null, 8, ["variable", "onDelete"]))), 128))
|
|
101
106
|
], 512), [
|
|
102
|
-
[
|
|
107
|
+
[E, w(r + c)]
|
|
103
108
|
])
|
|
104
109
|
]))), 128))
|
|
105
110
|
], 512), [
|
|
106
|
-
[
|
|
111
|
+
[E, w(r)]
|
|
107
112
|
])
|
|
108
113
|
]))), 128))
|
|
109
114
|
]),
|
|
@@ -112,19 +117,23 @@ const G = { class: "flex-1" }, J = ["onClick"], K = { class: "before:bg-border b
|
|
|
112
117
|
])
|
|
113
118
|
]),
|
|
114
119
|
button: a(() => [
|
|
115
|
-
s(
|
|
120
|
+
s(R, {
|
|
121
|
+
click: C,
|
|
122
|
+
hotkey: "N",
|
|
123
|
+
isApp: t.isApp
|
|
124
|
+
}, {
|
|
116
125
|
title: a(() => e[0] || (e[0] = [
|
|
117
|
-
|
|
126
|
+
k("Add Cookie")
|
|
118
127
|
])),
|
|
119
128
|
_: 1
|
|
120
|
-
})
|
|
129
|
+
}, 8, ["isApp"])
|
|
121
130
|
]),
|
|
122
131
|
_: 1
|
|
123
132
|
}),
|
|
124
133
|
s(I, { class: "flex-1" }, {
|
|
125
134
|
default: a(() => [
|
|
126
|
-
s(
|
|
127
|
-
s(
|
|
135
|
+
s(W),
|
|
136
|
+
s(q)
|
|
128
137
|
]),
|
|
129
138
|
_: 1
|
|
130
139
|
})
|
|
@@ -134,5 +143,5 @@ const G = { class: "flex-1" }, J = ["onClick"], K = { class: "before:bg-border b
|
|
|
134
143
|
}
|
|
135
144
|
});
|
|
136
145
|
export {
|
|
137
|
-
|
|
146
|
+
xe as default
|
|
138
147
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
isApp: boolean;
|
|
3
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
+
isApp: boolean;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
6
|
export default _default;
|
|
3
7
|
//# sourceMappingURL=Environment.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/Environment.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/Environment.vue"],"names":[],"mappings":";WAmMS,OAAO;;WAAP,OAAO;;AA6VhB,wBAMG"}
|
|
@@ -1,56 +1,61 @@
|
|
|
1
|
-
import { defineComponent as C, ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { environmentSchema as
|
|
11
|
-
import { nanoid as
|
|
12
|
-
import { useRouter as
|
|
13
|
-
import
|
|
14
|
-
import { useWorkspace as
|
|
15
|
-
const
|
|
1
|
+
import { defineComponent as C, ref as f, onMounted as V, onBeforeUnmount as S, openBlock as r, createBlock as c, withCtx as l, createVNode as u, createElementVNode as k, createElementBlock as d, Fragment as $, renderList as A, unref as i, createTextVNode as B, createSlots as K, createCommentVNode as I, toDisplayString as L, withKeys as R, nextTick as M } from "vue";
|
|
2
|
+
import U from "../../components/CodeInput/CodeInput.vue.js";
|
|
3
|
+
import T from "../../components/Sidebar/Sidebar.vue.js";
|
|
4
|
+
import j from "../../components/Sidebar/SidebarButton.vue.js";
|
|
5
|
+
import F from "../../components/Sidebar/SidebarList.vue.js";
|
|
6
|
+
import H from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
7
|
+
import J from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
8
|
+
import O from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
9
|
+
import W from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
10
|
+
import { environmentSchema as q } from "@scalar/oas-utils/entities/environment";
|
|
11
|
+
import { nanoid as z } from "nanoid";
|
|
12
|
+
import { useRouter as G, useRoute as P } from "vue-router";
|
|
13
|
+
import Q from "./EnvironmentColors.vue.js";
|
|
14
|
+
import { useWorkspace as X } from "../../store/store.js";
|
|
15
|
+
const Y = { class: "flex-1" }, Z = ["value"], ee = { class: "colors ml-auto" }, ye = /* @__PURE__ */ C({
|
|
16
16
|
__name: "Environment",
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
props: {
|
|
18
|
+
isApp: { type: Boolean }
|
|
19
|
+
},
|
|
20
|
+
setup(te) {
|
|
21
|
+
const g = G(), E = P(), { environments: o, environmentMutators: s, events: p } = X(), e = f(null), v = f(null), m = f(!1);
|
|
19
22
|
function y() {
|
|
20
|
-
const t =
|
|
23
|
+
const t = q.parse({
|
|
21
24
|
name: "New Environment",
|
|
22
|
-
uid:
|
|
25
|
+
uid: z(),
|
|
23
26
|
color: "grey",
|
|
24
27
|
raw: JSON.stringify({ exampleKey: "exampleValue" }, null, 2),
|
|
25
28
|
parsed: [],
|
|
26
29
|
isDefault: !1
|
|
27
30
|
});
|
|
28
|
-
s.add(t), e.value = t.uid,
|
|
31
|
+
s.add(t), e.value = t.uid, g.push(e.value);
|
|
29
32
|
}
|
|
30
|
-
function
|
|
33
|
+
function x(t) {
|
|
31
34
|
e.value && s.edit(e.value, "value", t);
|
|
32
35
|
}
|
|
33
|
-
const
|
|
36
|
+
const N = (t) => {
|
|
34
37
|
s.delete(t), e.value === t && (e.value = null);
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
}, D = () => {
|
|
38
|
-
e.value && !l[e.value].isDefault && (m.value = !0, R(() => {
|
|
38
|
+
}, D = (t) => e.value && s.edit(e.value, "color", t), b = () => {
|
|
39
|
+
e.value && !o[e.value].isDefault && (m.value = !0, M(() => {
|
|
39
40
|
var t;
|
|
40
|
-
(t =
|
|
41
|
+
(t = v.value) == null || t.focus();
|
|
41
42
|
}));
|
|
42
|
-
},
|
|
43
|
+
}, h = (t) => {
|
|
43
44
|
const n = t.target.value;
|
|
44
|
-
e.value && !
|
|
45
|
+
e.value && !o[e.value].isDefault && s.edit(e.value, "name", n);
|
|
46
|
+
}, _ = (t) => {
|
|
47
|
+
t != null && t.createNew && E.name === "environment" && y();
|
|
45
48
|
};
|
|
46
|
-
return V(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
return V(() => {
|
|
50
|
+
p.hotKeys.on(_);
|
|
51
|
+
}), S(() => p.hotKeys.off(_)), (t, a) => (r(), c(J, null, {
|
|
52
|
+
default: l(() => [
|
|
53
|
+
u(T, { title: "Environment" }, {
|
|
54
|
+
content: l(() => [
|
|
55
|
+
k("div", Y, [
|
|
56
|
+
u(F, null, {
|
|
57
|
+
default: l(() => [
|
|
58
|
+
(r(!0), d($, null, A(i(o), (n) => (r(), c(H, {
|
|
54
59
|
key: n.uid,
|
|
55
60
|
class: "text-xs",
|
|
56
61
|
variable: {
|
|
@@ -60,61 +65,65 @@ const H = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, v
|
|
|
60
65
|
isDefault: n.isDefault
|
|
61
66
|
},
|
|
62
67
|
warningMessage: "Are you sure you want to delete this environment?",
|
|
63
|
-
onClick: (
|
|
64
|
-
onDelete: (
|
|
68
|
+
onClick: (w) => e.value = n.uid,
|
|
69
|
+
onDelete: (w) => N(n.uid)
|
|
65
70
|
}, null, 8, ["variable", "onClick", "onDelete"]))), 128))
|
|
66
71
|
]),
|
|
67
72
|
_: 1
|
|
68
73
|
})
|
|
69
74
|
])
|
|
70
75
|
]),
|
|
71
|
-
button:
|
|
72
|
-
u(
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
button: l(() => [
|
|
77
|
+
u(j, {
|
|
78
|
+
click: y,
|
|
79
|
+
hotkey: "N",
|
|
80
|
+
isApp: t.isApp
|
|
81
|
+
}, {
|
|
82
|
+
title: l(() => a[2] || (a[2] = [
|
|
83
|
+
B("Add Environment")
|
|
75
84
|
])),
|
|
76
85
|
_: 1
|
|
77
|
-
})
|
|
86
|
+
}, 8, ["isApp"])
|
|
78
87
|
]),
|
|
79
88
|
_: 1
|
|
80
89
|
}),
|
|
81
|
-
u(
|
|
82
|
-
default:
|
|
83
|
-
u(
|
|
84
|
-
default:
|
|
85
|
-
e.value ? (r(),
|
|
90
|
+
u(O, { class: "flex-1" }, {
|
|
91
|
+
default: l(() => [
|
|
92
|
+
u(W, null, K({
|
|
93
|
+
default: l(() => [
|
|
94
|
+
e.value ? (r(), c(U, {
|
|
86
95
|
key: 0,
|
|
87
96
|
class: "pl-px pr-2 md:px-2 py-2.5",
|
|
88
97
|
language: "json",
|
|
89
98
|
lineNumbers: "",
|
|
90
|
-
modelValue: i(
|
|
91
|
-
"onUpdate:modelValue":
|
|
92
|
-
}, null, 8, ["modelValue"])) :
|
|
99
|
+
modelValue: i(o)[e.value].value,
|
|
100
|
+
"onUpdate:modelValue": x
|
|
101
|
+
}, null, 8, ["modelValue"])) : I("", !0)
|
|
93
102
|
]),
|
|
94
103
|
_: 2
|
|
95
104
|
}, [
|
|
96
105
|
e.value ? {
|
|
97
106
|
name: "title",
|
|
98
|
-
fn:
|
|
99
|
-
!m.value || i(
|
|
107
|
+
fn: l(() => [
|
|
108
|
+
!m.value || i(o)[e.value].isDefault ? (r(), d("span", {
|
|
100
109
|
key: 0,
|
|
101
|
-
onDblclick:
|
|
102
|
-
}, L(i(
|
|
110
|
+
onDblclick: b
|
|
111
|
+
}, L(i(o)[e.value].name), 33)) : (r(), d("input", {
|
|
103
112
|
key: 1,
|
|
104
113
|
ref_key: "nameInputRef",
|
|
105
|
-
ref:
|
|
114
|
+
ref: v,
|
|
106
115
|
class: "ring-1 ring-offset-4 ring-b-outline rounded",
|
|
107
116
|
spellcheck: "false",
|
|
108
117
|
type: "text",
|
|
109
|
-
value: i(
|
|
118
|
+
value: i(o)[e.value].name,
|
|
110
119
|
onBlur: a[0] || (a[0] = (n) => m.value = !1),
|
|
111
|
-
onInput:
|
|
112
|
-
onKeyup: a[1] || (a[1] =
|
|
113
|
-
}, null, 40,
|
|
114
|
-
|
|
115
|
-
u(
|
|
116
|
-
activeColor: i(
|
|
117
|
-
onSelect:
|
|
120
|
+
onInput: h,
|
|
121
|
+
onKeyup: a[1] || (a[1] = R((n) => m.value = !1, ["enter"]))
|
|
122
|
+
}, null, 40, Z)),
|
|
123
|
+
k("div", ee, [
|
|
124
|
+
u(Q, {
|
|
125
|
+
activeColor: i(o)[e.value].color,
|
|
126
|
+
onSelect: D
|
|
118
127
|
}, null, 8, ["activeColor"])
|
|
119
128
|
])
|
|
120
129
|
]),
|
|
@@ -130,5 +139,5 @@ const H = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, v
|
|
|
130
139
|
}
|
|
131
140
|
});
|
|
132
141
|
export {
|
|
133
|
-
|
|
142
|
+
ye as default
|
|
134
143
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;cAkoB8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AANjD,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Request.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b089a05e"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|