@scalar/api-client 2.0.38 → 2.0.40
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 +32 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +84 -80
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +18 -14
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +5 -40
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +48 -2
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -0
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +24 -22
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +26 -25
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
- package/dist/components/SubpageHeader.vue.js +5 -29
- package/dist/components/SubpageHeader.vue2.js +31 -2
- package/dist/layouts/App/create-api-client-app.d.ts +20 -20
- package/dist/layouts/Modal/create-api-client-modal.d.ts +40 -40
- package/dist/libs/create-client.d.ts +20 -20
- package/dist/libs/sendRequest.d.ts.map +1 -1
- package/dist/libs/sendRequest.js +87 -70
- package/dist/store/workspace.d.ts +64 -64
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +129 -132
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +46 -36
- package/dist/views/Environment/Environment.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +37 -34
- 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 +196 -142
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +5 -311
- package/dist/views/Request/RequestSection/RequestAuth.vue2.js +312 -2
- package/dist/views/Request/RequestSection/RequestSection.vue.js +19 -19
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +4 -4
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +108 -87
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +5 -162
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +166 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +3 -17
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +89 -5
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +2 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +18 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +34 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +12 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +14 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +23 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +65 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +19 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +29 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +20 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +25 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +61 -63
- package/dist/views/Request/consts/index.d.ts +2 -0
- package/dist/views/Request/consts/index.d.ts.map +1 -1
- package/dist/views/Request/consts/index.js +6 -3
- package/dist/views/Request/consts/mediaTypes.d.ts +16 -0
- package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -0
- package/dist/views/Request/consts/mediaTypes.js +108 -0
- package/dist/views/Servers/Servers.vue2.js +17 -17
- package/package.json +8 -6
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, openBlock as a, createBlock as s, withCtx as t, createVNode as o, unref as u, createElementVNode as p, createElementBlock as _, Fragment as k, renderList as h, createTextVNode as C } from "vue";
|
|
2
2
|
import x from "../../components/Sidebar/SidebarButton.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import b from "../../components/Sidebar/SidebarList.vue.js";
|
|
4
|
+
import v from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
5
|
+
import g from "../../components/SubpageHeader.vue.js";
|
|
6
6
|
import L from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
7
7
|
import V from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
8
8
|
import { useWorkspace as $ } from "../../store/workspace.js";
|
|
9
|
-
import { createCookie as
|
|
10
|
-
import { nanoid as
|
|
11
|
-
import { useRouter as
|
|
9
|
+
import { createCookie as y } from "@scalar/oas-utils/entities/workspace/cookie";
|
|
10
|
+
import { nanoid as N } from "nanoid";
|
|
11
|
+
import { useRouter as S } from "vue-router";
|
|
12
12
|
import w from "./CookieForm.vue.js";
|
|
13
13
|
import B from "./CookieRaw.vue.js";
|
|
14
|
-
import
|
|
14
|
+
import D from "../../components/Sidebar/Sidebar.vue.js";
|
|
15
15
|
/* empty css */
|
|
16
|
-
const
|
|
16
|
+
const E = { class: "flex-1" }, U = /* @__PURE__ */ f({
|
|
17
17
|
__name: "Cookies",
|
|
18
|
-
setup(
|
|
19
|
-
const { cookies:
|
|
20
|
-
const
|
|
21
|
-
uid:
|
|
18
|
+
setup(H) {
|
|
19
|
+
const { cookies: m, cookieMutators: l } = $(), n = S(), c = () => {
|
|
20
|
+
const r = y({
|
|
21
|
+
uid: N(),
|
|
22
22
|
name: "Cookie",
|
|
23
23
|
value: "",
|
|
24
24
|
domain: "",
|
|
@@ -27,41 +27,51 @@ const S = { class: "flex-1" }, P = /* @__PURE__ */ u({
|
|
|
27
27
|
httpOnly: !1,
|
|
28
28
|
sameSite: "None"
|
|
29
29
|
});
|
|
30
|
-
|
|
30
|
+
l.add(r), n.push(r.uid);
|
|
31
|
+
}, d = (r) => {
|
|
32
|
+
l.delete(r);
|
|
33
|
+
const i = Object.values(m).filter(
|
|
34
|
+
(e) => e.uid !== r
|
|
35
|
+
);
|
|
36
|
+
if (i.length > 1) {
|
|
37
|
+
const e = i[i.length - 1];
|
|
38
|
+
n.push(e.uid);
|
|
39
|
+
} else i.length === 1 && i[0].uid === "default" && n.push("default");
|
|
31
40
|
};
|
|
32
|
-
return (
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
content:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
default:
|
|
41
|
-
(
|
|
42
|
-
key:
|
|
41
|
+
return (r, i) => (a(), s(g, null, {
|
|
42
|
+
default: t(() => [
|
|
43
|
+
o(L, null, {
|
|
44
|
+
default: t(() => [
|
|
45
|
+
o(u(D), { title: "Domain" }, {
|
|
46
|
+
content: t(() => [
|
|
47
|
+
p("div", E, [
|
|
48
|
+
o(b, null, {
|
|
49
|
+
default: t(() => [
|
|
50
|
+
(a(!0), _(k, null, h(u(m), (e) => (a(), s(v, {
|
|
51
|
+
key: e.uid,
|
|
43
52
|
class: "text-xs",
|
|
44
|
-
variable: { name:
|
|
45
|
-
|
|
53
|
+
variable: { name: e.name, uid: e.uid },
|
|
54
|
+
onDelete: (O) => d(e.uid)
|
|
55
|
+
}, null, 8, ["variable", "onDelete"]))), 128))
|
|
46
56
|
]),
|
|
47
57
|
_: 1
|
|
48
58
|
})
|
|
49
59
|
])
|
|
50
60
|
]),
|
|
51
|
-
button:
|
|
52
|
-
|
|
53
|
-
title:
|
|
54
|
-
|
|
61
|
+
button: t(() => [
|
|
62
|
+
o(x, { click: c }, {
|
|
63
|
+
title: t(() => [
|
|
64
|
+
C("Add Item")
|
|
55
65
|
]),
|
|
56
66
|
_: 1
|
|
57
67
|
})
|
|
58
68
|
]),
|
|
59
69
|
_: 1
|
|
60
70
|
}),
|
|
61
|
-
|
|
62
|
-
default:
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
o(V, { class: "flex-1" }, {
|
|
72
|
+
default: t(() => [
|
|
73
|
+
o(w),
|
|
74
|
+
o(B)
|
|
65
75
|
]),
|
|
66
76
|
_: 1
|
|
67
77
|
})
|
|
@@ -74,5 +84,5 @@ const S = { class: "flex-1" }, P = /* @__PURE__ */ u({
|
|
|
74
84
|
}
|
|
75
85
|
});
|
|
76
86
|
export {
|
|
77
|
-
|
|
87
|
+
U as default
|
|
78
88
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, ref as c, onMounted as C, openBlock as r, createBlock as f, withCtx as o, createVNode as a, createElementVNode as _, createElementBlock as d, Fragment as w, renderList as
|
|
1
|
+
import { defineComponent as N, ref as c, onMounted as C, openBlock as r, createBlock as f, withCtx as o, createVNode as a, createElementVNode as _, createElementBlock as d, Fragment as w, renderList as S, unref as u, createTextVNode as $, createSlots as I, createCommentVNode as h, toDisplayString as L, withKeys as B, nextTick as R } from "vue";
|
|
2
2
|
import K from "../../components/CodeInput/CodeInput.vue.js";
|
|
3
3
|
import A from "../../components/Sidebar/Sidebar.vue.js";
|
|
4
4
|
/* empty css */
|
|
@@ -6,21 +6,21 @@ import M from "../../components/Sidebar/SidebarButton.vue.js";
|
|
|
6
6
|
import T from "../../components/Sidebar/SidebarList.vue.js";
|
|
7
7
|
import U from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
8
8
|
import F from "../../components/SubpageHeader.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useWorkspace as
|
|
13
|
-
import { nanoid as
|
|
14
|
-
import { useRouter as
|
|
15
|
-
import
|
|
16
|
-
const
|
|
9
|
+
import H from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
10
|
+
import J from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
11
|
+
import O from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
12
|
+
import { useWorkspace as W } from "../../store/workspace.js";
|
|
13
|
+
import { nanoid as j } from "nanoid";
|
|
14
|
+
import { useRouter as q } from "vue-router";
|
|
15
|
+
import z from "./EnvironmentColors.vue.js";
|
|
16
|
+
const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, de = /* @__PURE__ */ N({
|
|
17
17
|
__name: "Environment",
|
|
18
18
|
setup(X) {
|
|
19
|
-
const v =
|
|
19
|
+
const v = q(), { environments: n, environmentMutators: m } = W(), e = c(null), p = c(null), s = c(!1);
|
|
20
20
|
function E() {
|
|
21
21
|
const t = {
|
|
22
22
|
name: "New Environment",
|
|
23
|
-
uid:
|
|
23
|
+
uid: j(),
|
|
24
24
|
color: "grey",
|
|
25
25
|
raw: JSON.stringify({ exampleKey: "exampleValue" }, null, 2),
|
|
26
26
|
parsed: [],
|
|
@@ -33,29 +33,29 @@ const H = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
|
|
|
33
33
|
}
|
|
34
34
|
const y = (t) => {
|
|
35
35
|
m.delete(t), e.value === t && (e.value = null);
|
|
36
|
-
},
|
|
36
|
+
}, b = (t) => {
|
|
37
37
|
e.value && (n[e.value].color = t);
|
|
38
|
-
},
|
|
38
|
+
}, g = () => {
|
|
39
39
|
v.currentRoute.value.params.environment === "default" && (e.value = n.default.uid);
|
|
40
|
-
},
|
|
40
|
+
}, x = () => {
|
|
41
41
|
e.value && !n[e.value].isDefault && (s.value = !0, R(() => {
|
|
42
42
|
var t;
|
|
43
43
|
(t = p.value) == null || t.focus();
|
|
44
44
|
}));
|
|
45
|
-
},
|
|
45
|
+
}, V = (t) => {
|
|
46
46
|
const l = t.target.value;
|
|
47
47
|
e.value && !n[e.value].isDefault && (n[e.value].name = l);
|
|
48
48
|
};
|
|
49
|
-
return C(
|
|
49
|
+
return C(g), (t, i) => (r(), f(F, null, {
|
|
50
50
|
default: o(() => [
|
|
51
|
-
a(
|
|
51
|
+
a(H, null, {
|
|
52
52
|
default: o(() => [
|
|
53
53
|
a(A, { title: "Environment" }, {
|
|
54
54
|
content: o(() => [
|
|
55
|
-
_("div",
|
|
55
|
+
_("div", G, [
|
|
56
56
|
a(T, null, {
|
|
57
57
|
default: o(() => [
|
|
58
|
-
(r(!0), d(w, null,
|
|
58
|
+
(r(!0), d(w, null, S(u(n), (l) => (r(), f(U, {
|
|
59
59
|
key: l.uid,
|
|
60
60
|
class: "text-xs",
|
|
61
61
|
variable: {
|
|
@@ -75,16 +75,16 @@ const H = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
|
|
|
75
75
|
button: o(() => [
|
|
76
76
|
a(M, { click: E }, {
|
|
77
77
|
title: o(() => [
|
|
78
|
-
|
|
78
|
+
$("Add Environment Variable")
|
|
79
79
|
]),
|
|
80
80
|
_: 1
|
|
81
81
|
})
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
84
|
}),
|
|
85
|
-
a(
|
|
85
|
+
a(J, { class: "flex-1" }, {
|
|
86
86
|
default: o(() => [
|
|
87
|
-
a(
|
|
87
|
+
a(O, null, I({
|
|
88
88
|
default: o(() => [
|
|
89
89
|
e.value ? (r(), f(K, {
|
|
90
90
|
key: 0,
|
|
@@ -101,7 +101,7 @@ const H = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
|
|
|
101
101
|
fn: o(() => [
|
|
102
102
|
!s.value || u(n)[e.value].isDefault ? (r(), d("span", {
|
|
103
103
|
key: 0,
|
|
104
|
-
onDblclick:
|
|
104
|
+
onDblclick: x
|
|
105
105
|
}, L(u(n)[e.value].name), 33)) : (r(), d("input", {
|
|
106
106
|
key: 1,
|
|
107
107
|
ref_key: "nameInputRef",
|
|
@@ -111,13 +111,13 @@ const H = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
|
|
|
111
111
|
type: "text",
|
|
112
112
|
value: u(n)[e.value].name,
|
|
113
113
|
onBlur: i[0] || (i[0] = (l) => s.value = !1),
|
|
114
|
-
onInput:
|
|
114
|
+
onInput: V,
|
|
115
115
|
onKeyup: i[1] || (i[1] = B((l) => s.value = !1, ["enter"]))
|
|
116
116
|
}, null, 40, P)),
|
|
117
117
|
_("div", Q, [
|
|
118
|
-
a(
|
|
118
|
+
a(z, {
|
|
119
119
|
activeColor: u(n)[e.value].color,
|
|
120
|
-
onSelect:
|
|
120
|
+
onSelect: b
|
|
121
121
|
}, null, 8, ["activeColor"])
|
|
122
122
|
])
|
|
123
123
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAIvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;;WAK/B,MAAM;8BACa,cAAc,CAAC,0BAA0B,CAAC;kBACtD,cAAc,CAAC,cAAc,CAAC;YACpC,MAAM;;;;WAHP,MAAM;8BACa,cAAc,CAAC,0BAA0B,CAAC;kBACtD,cAAc,CAAC,cAAc,CAAC;YACpC,MAAM;;;;AAmNhB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarButton as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
id: "env-dialog",
|
|
6
|
-
class: "z-10 w-60 rounded border bg-b-1 p-1",
|
|
7
|
-
open: !0,
|
|
8
|
-
tabindex: "0"
|
|
9
|
-
}, P = { key: 0 }, S = ["onClick"], $ = { class: "flex items-center gap-1.5 whitespace-nowrap" }, j = { class: "w-20 overflow-hidden text-ellipsis text-right" }, L = /* @__PURE__ */ x({
|
|
1
|
+
import { defineComponent as b, ref as y, computed as E, openBlock as r, createElementBlock as o, Fragment as C, renderList as V, createElementVNode as a, normalizeClass as B, createTextVNode as i, toDisplayString as u, createBlock as I, unref as d, withCtx as z, createVNode as N } from "vue";
|
|
2
|
+
import { ScalarButton as P, ScalarIcon as S } from "@scalar/components";
|
|
3
|
+
import $ from "fuse.js";
|
|
4
|
+
const j = ["open"], q = { key: 0 }, A = ["onClick"], D = { class: "flex items-center gap-1.5 whitespace-nowrap" }, F = { class: "w-20 overflow-hidden text-ellipsis text-right" }, R = /* @__PURE__ */ b({
|
|
10
5
|
__name: "EnvironmentVariableDropdown",
|
|
11
6
|
props: {
|
|
12
7
|
query: {},
|
|
@@ -15,52 +10,60 @@ const N = {
|
|
|
15
10
|
router: {}
|
|
16
11
|
},
|
|
17
12
|
emits: ["select"],
|
|
18
|
-
setup(
|
|
19
|
-
const n =
|
|
13
|
+
setup(p, { emit: v }) {
|
|
14
|
+
const n = p, m = v, c = y(!0), f = () => {
|
|
15
|
+
const e = _.value.params.workspace;
|
|
16
|
+
h(`/workspace/${e}/environment/default`), c.value = !1;
|
|
17
|
+
}, { push: h, currentRoute: _ } = n.router, g = new $(n.activeParsedEnvironments.value, {
|
|
20
18
|
keys: ["key", "value"]
|
|
21
|
-
}), l =
|
|
19
|
+
}), l = E(() => {
|
|
22
20
|
const e = n.query;
|
|
23
21
|
if (!e)
|
|
24
22
|
return n.activeParsedEnvironments.value.slice(-4);
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
return (e,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
const s = g.search(e);
|
|
24
|
+
return s.length > 0 ? s.map((t) => t.item) : [];
|
|
25
|
+
}), k = (e) => {
|
|
26
|
+
m("select", e);
|
|
27
|
+
}, w = (e) => "_scalarEnvId" in e ? `bg-${n.environments[e._scalarEnvId].color}` : "bg-grey";
|
|
28
|
+
return (e, s) => (r(), o("dialog", {
|
|
29
|
+
id: "env-dialog",
|
|
30
|
+
class: "z-10 w-60 rounded border bg-b-1 p-1",
|
|
31
|
+
open: c.value,
|
|
32
|
+
tabindex: "0"
|
|
33
|
+
}, [
|
|
34
|
+
l.value.length ? (r(), o("ul", q, [
|
|
35
|
+
(r(!0), o(C, null, V(l.value, (t, x) => (r(), o("li", {
|
|
36
|
+
key: x,
|
|
34
37
|
class: "font-code text-3xs hover:bg-b-2 flex cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150",
|
|
35
|
-
onClick: (
|
|
38
|
+
onClick: (T) => k(t.key)
|
|
36
39
|
}, [
|
|
37
|
-
a("div",
|
|
40
|
+
a("div", D, [
|
|
38
41
|
a("span", {
|
|
39
|
-
class:
|
|
42
|
+
class: B(["h-2.5 w-2.5 min-w-2.5 rounded-full", w(t)])
|
|
40
43
|
}, null, 2),
|
|
41
|
-
|
|
44
|
+
i(" " + u(t.key), 1)
|
|
42
45
|
]),
|
|
43
|
-
a("span",
|
|
44
|
-
], 8,
|
|
45
|
-
])) : (
|
|
46
|
+
a("span", F, u(t.value), 1)
|
|
47
|
+
], 8, A))), 128))
|
|
48
|
+
])) : (r(), I(d(P), {
|
|
46
49
|
key: 1,
|
|
47
50
|
class: "font-code text-3xs hover:bg-b-2 flex h-7 w-full justify-start gap-2 px-2 transition-colors duration-150",
|
|
48
51
|
variant: "secondary",
|
|
49
|
-
onClick:
|
|
52
|
+
onClick: f
|
|
50
53
|
}, {
|
|
51
|
-
default:
|
|
52
|
-
|
|
54
|
+
default: z(() => [
|
|
55
|
+
N(d(S), {
|
|
53
56
|
class: "w-2",
|
|
54
57
|
icon: "Add",
|
|
55
58
|
size: "xs"
|
|
56
59
|
}),
|
|
57
|
-
|
|
60
|
+
i(" Add variable ")
|
|
58
61
|
]),
|
|
59
62
|
_: 1
|
|
60
63
|
}))
|
|
61
|
-
]));
|
|
64
|
+
], 8, j));
|
|
62
65
|
}
|
|
63
66
|
});
|
|
64
67
|
export {
|
|
65
|
-
|
|
68
|
+
R as default
|
|
66
69
|
};
|
|
@@ -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":";AAg/BA,wBAKG"}
|
|
@@ -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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a88db4d1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|