@scalar/api-client 2.0.45 → 2.0.47
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 +27 -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 +16 -16
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +24 -25
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +23 -23
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +6 -6
- 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 +1 -1
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +10 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +5 -67
- package/dist/components/HttpMethod/HttpMethod.vue2.js +61 -2
- package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchModal.vue.js +1 -1
- package/dist/components/Search/SearchModal.vue2.js +44 -42
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue2.js +22 -19
- 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 +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +2 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +22 -21
- package/dist/components/SubpageHeader.vue.js +2 -2
- package/dist/components/SubpageHeader.vue2.js +2 -2
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +46 -43
- package/dist/layouts/App/create-api-client-app.d.ts +158 -81
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -20
- package/dist/layouts/Modal/create-api-client-modal.d.ts +316 -162
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +159 -83
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +18 -19
- package/dist/libs/event-busses/command-palette.d.ts.map +1 -0
- package/dist/libs/{eventBusses/executeRequestBus.d.ts → event-busses/execute-requestBus.d.ts} +1 -1
- package/dist/libs/event-busses/execute-requestBus.d.ts.map +1 -0
- package/dist/libs/event-busses/hot-key.d.ts +34 -0
- package/dist/libs/event-busses/hot-key.d.ts.map +1 -0
- package/dist/libs/event-busses/hot-key.js +25 -0
- package/dist/libs/event-busses/index.d.ts +5 -0
- package/dist/libs/event-busses/index.d.ts.map +1 -0
- package/dist/libs/event-busses/index.js +12 -0
- package/dist/libs/{eventBusses/requestStatusBus.d.ts → event-busses/request-status-bus.d.ts} +1 -1
- package/dist/libs/event-busses/request-status-bus.d.ts.map +1 -0
- package/dist/libs/index.d.ts +1 -1
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +19 -13
- package/dist/store/workspace.d.ts +316 -162
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +14 -15
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +114 -55
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +21 -20
- 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 +118 -118
- 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 +20 -20
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +19 -19
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +13 -13
- package/package.json +10 -10
- package/dist/libs/eventBusses/command-palette.d.ts.map +0 -1
- package/dist/libs/eventBusses/executeRequestBus.d.ts.map +0 -1
- package/dist/libs/eventBusses/index.d.ts +0 -3
- package/dist/libs/eventBusses/index.d.ts.map +0 -1
- package/dist/libs/eventBusses/index.js +0 -6
- package/dist/libs/eventBusses/requestStatusBus.d.ts.map +0 -1
- /package/dist/libs/{eventBusses → event-busses}/command-palette.d.ts +0 -0
- /package/dist/libs/{eventBusses → event-busses}/command-palette.js +0 -0
- /package/dist/libs/{eventBusses/executeRequestBus.js → event-busses/execute-requestBus.js} +0 -0
- /package/dist/libs/{eventBusses/requestStatusBus.js → event-busses/request-status-bus.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as p, computed as u, openBlock as d, createBlock as m, withCtx as k, createElementVNode as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as p, computed as u, openBlock as d, createBlock as m, withCtx as k, createElementVNode as l } from "vue";
|
|
2
|
+
import v from "../../components/Form/Form.vue.js";
|
|
3
3
|
import { useWorkspace as h } from "../../store/workspace.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = { class: "flex items-center pointer-events-none" }, f = /* @__PURE__ */ l("label", {
|
|
5
5
|
class: "absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text",
|
|
6
6
|
for: "cookiename"
|
|
7
|
-
}, null, -1),
|
|
7
|
+
}, null, -1), y = ["value"], F = /* @__PURE__ */ p({
|
|
8
8
|
__name: "CookieForm",
|
|
9
|
-
setup(
|
|
10
|
-
const { cookies: r, activeCookieId:
|
|
9
|
+
setup(b) {
|
|
10
|
+
const { cookies: r, activeCookieId: o, cookieMutators: c } = h(), s = [
|
|
11
11
|
{ label: "Key", key: "key", placeholder: "Username" },
|
|
12
12
|
{ label: "Value", key: "value", placeholder: "123" },
|
|
13
13
|
{ label: "Domain", key: "domain", placeholder: "scalar.com" },
|
|
@@ -16,26 +16,25 @@ const v = { class: "flex items-center pointer-events-none" }, f = /* @__PURE__ *
|
|
|
16
16
|
{ label: "Secure", key: "secure", placeholder: "True/False" },
|
|
17
17
|
{ label: "HttpOnly", key: "httpOnly", placeholder: "True/False" }
|
|
18
18
|
], t = u(
|
|
19
|
-
() => r[
|
|
19
|
+
() => r[o.value] || {}
|
|
20
20
|
), a = (n, e) => {
|
|
21
|
-
|
|
21
|
+
o.value && c.edit(o.value, n, e);
|
|
22
22
|
};
|
|
23
|
-
return (n, e) => (d(), m(
|
|
23
|
+
return (n, e) => (d(), m(v, {
|
|
24
24
|
data: t.value,
|
|
25
25
|
onUpdate: a,
|
|
26
|
-
options:
|
|
26
|
+
options: s
|
|
27
27
|
}, {
|
|
28
28
|
title: k(() => [
|
|
29
|
-
|
|
29
|
+
l("div", _, [
|
|
30
30
|
f,
|
|
31
|
-
|
|
32
|
-
o("input", {
|
|
31
|
+
l("input", {
|
|
33
32
|
id: "cookiename",
|
|
34
33
|
class: "pl-1 outline-none border-0 text-c-2 rounded pointer-events-auto relative w-full",
|
|
35
34
|
placeholder: "Cookie Name",
|
|
36
35
|
value: t.value.name,
|
|
37
36
|
onInput: e[0] || (e[0] = (i) => a("name", i.target.value))
|
|
38
|
-
}, null, 40,
|
|
37
|
+
}, null, 40, y)
|
|
39
38
|
])
|
|
40
39
|
]),
|
|
41
40
|
_: 1
|
|
@@ -43,5 +42,5 @@ const v = { class: "flex items-center pointer-events-none" }, f = /* @__PURE__ *
|
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
export {
|
|
46
|
-
|
|
45
|
+
F as default
|
|
47
46
|
};
|
|
@@ -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":";AA+hBA,wBAKG"}
|
|
@@ -1,77 +1,136 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useWorkspace as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
1
|
+
import { defineComponent as L, computed as V, onMounted as D, openBlock as l, createBlock as y, withCtx as n, createVNode as s, unref as a, createElementVNode as m, createElementBlock as f, Fragment as h, renderList as x, normalizeClass as w, createTextVNode as v, toDisplayString as S, withDirectives as $, vShow as O } from "vue";
|
|
2
|
+
import M from "../../components/Sidebar/SidebarButton.vue.js";
|
|
3
|
+
import N from "../../components/Sidebar/SidebarList.vue.js";
|
|
4
|
+
import B from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
5
|
+
import F from "../../components/SubpageHeader.vue.js";
|
|
6
|
+
import I from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
7
|
+
import R from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
8
|
+
import { useWorkspace as A } from "../../store/workspace.js";
|
|
9
|
+
import { ScalarIcon as j } from "@scalar/components";
|
|
10
|
+
import { createCookie as H } from "@scalar/oas-utils/entities/workspace/cookie";
|
|
11
|
+
import { nanoid as P } from "nanoid";
|
|
12
|
+
import { useRouter as T } from "vue-router";
|
|
13
|
+
import W from "./CookieForm.vue.js";
|
|
14
|
+
import q from "./CookieRaw.vue.js";
|
|
15
|
+
import G from "../../components/Sidebar/Sidebar.vue.js";
|
|
15
16
|
/* empty css */
|
|
16
|
-
|
|
17
|
+
import { useSidebar as J } from "../../hooks/useSidebar.js";
|
|
18
|
+
const K = { class: "flex-1" }, Q = ["onClick"], U = { class: "before:bg-b-3 before:absolute before:left-[calc(1rem_-_1.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, X = ["onClick"], Y = { class: "before:bg-b-3 before:absolute before:left-[calc(1.75rem_-_1.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, xe = /* @__PURE__ */ L({
|
|
17
19
|
__name: "Cookies",
|
|
18
|
-
setup(
|
|
19
|
-
const { cookies:
|
|
20
|
-
const
|
|
21
|
-
uid:
|
|
22
|
-
name:
|
|
20
|
+
setup(Z) {
|
|
21
|
+
const { cookies: p, cookieMutators: g } = A(), { collapsedSidebarFolders: i, toggleSidebarFolder: k } = J(), b = T(), E = () => {
|
|
22
|
+
const t = Object.keys(p).length, e = H({
|
|
23
|
+
uid: P(),
|
|
24
|
+
name: `Cookie ${t}`,
|
|
23
25
|
value: "",
|
|
24
|
-
domain: "",
|
|
26
|
+
domain: "example.com",
|
|
25
27
|
path: "/",
|
|
26
28
|
secure: !1,
|
|
27
29
|
httpOnly: !1,
|
|
28
30
|
sameSite: "None"
|
|
29
31
|
});
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
(
|
|
32
|
+
g.add(e), b.push(e.uid);
|
|
33
|
+
}, z = (t) => {
|
|
34
|
+
g.delete(t);
|
|
35
|
+
const e = Object.values(p).filter(
|
|
36
|
+
(o) => o.uid !== t
|
|
35
37
|
);
|
|
36
|
-
if (
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
} else
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
38
|
+
if (e.length > 1) {
|
|
39
|
+
const o = e[e.length - 1];
|
|
40
|
+
b.push(o.uid);
|
|
41
|
+
} else e.length === 1 && e[0].uid === "default" && b.push("default");
|
|
42
|
+
}, _ = V(() => {
|
|
43
|
+
const t = {};
|
|
44
|
+
return Object.values(p).forEach((e) => {
|
|
45
|
+
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));
|
|
46
|
+
}), t;
|
|
47
|
+
}), C = (t) => i[t];
|
|
48
|
+
return D(() => {
|
|
49
|
+
const t = Object.keys(_.value), e = Object.entries(_.value).flatMap(
|
|
50
|
+
([o, r]) => Object.keys(r).map((d) => o + d)
|
|
51
|
+
);
|
|
52
|
+
t.forEach((o) => {
|
|
53
|
+
i[o] = !0;
|
|
54
|
+
}), e.forEach((o) => {
|
|
55
|
+
i[o] = !0;
|
|
56
|
+
});
|
|
57
|
+
}), (t, e) => (l(), y(F, null, {
|
|
58
|
+
default: n(() => [
|
|
59
|
+
s(I, null, {
|
|
60
|
+
default: n(() => [
|
|
61
|
+
s(a(G), { title: "Cookies" }, {
|
|
62
|
+
content: n(() => [
|
|
63
|
+
m("div", K, [
|
|
64
|
+
s(N, null, {
|
|
65
|
+
default: n(() => [
|
|
66
|
+
(l(!0), f(h, null, x(_.value, (o, r) => (l(), f("div", { key: r }, [
|
|
67
|
+
m("button", {
|
|
68
|
+
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",
|
|
69
|
+
type: "button",
|
|
70
|
+
onClick: (d) => a(k)(r)
|
|
71
|
+
}, [
|
|
72
|
+
s(a(j), {
|
|
73
|
+
class: w(["text-c-3", {
|
|
74
|
+
"rotate-90": a(i)[r]
|
|
75
|
+
}]),
|
|
76
|
+
icon: "ChevronRight",
|
|
77
|
+
size: "sm",
|
|
78
|
+
thickness: "2.5"
|
|
79
|
+
}, null, 8, ["class"]),
|
|
80
|
+
v(" " + S(r), 1)
|
|
81
|
+
], 8, Q),
|
|
82
|
+
$(m("div", U, [
|
|
83
|
+
(l(!0), f(h, null, x(o, (d, c) => (l(), f("div", { key: c }, [
|
|
84
|
+
m("button", {
|
|
85
|
+
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",
|
|
86
|
+
type: "button",
|
|
87
|
+
onClick: (u) => a(k)(r + c)
|
|
88
|
+
}, [
|
|
89
|
+
s(a(j), {
|
|
90
|
+
class: w(["text-c-3", {
|
|
91
|
+
"rotate-90": a(i)[r + c]
|
|
92
|
+
}]),
|
|
93
|
+
icon: "ChevronRight",
|
|
94
|
+
size: "sm",
|
|
95
|
+
thickness: "2.5"
|
|
96
|
+
}, null, 8, ["class"]),
|
|
97
|
+
v(" " + S(c), 1)
|
|
98
|
+
], 8, X),
|
|
99
|
+
$(m("div", Y, [
|
|
100
|
+
(l(!0), f(h, null, x(d, (u) => (l(), y(B, {
|
|
101
|
+
key: u.uid,
|
|
102
|
+
class: "cookie text-xs",
|
|
103
|
+
variable: { name: u.name, uid: u.uid },
|
|
104
|
+
warningMessage: "Are you sure you want to delete this cookie?",
|
|
105
|
+
onDelete: (ee) => z(u.uid)
|
|
106
|
+
}, null, 8, ["variable", "onDelete"]))), 128))
|
|
107
|
+
], 512), [
|
|
108
|
+
[O, C(r + c)]
|
|
109
|
+
])
|
|
110
|
+
]))), 128))
|
|
111
|
+
], 512), [
|
|
112
|
+
[O, C(r)]
|
|
113
|
+
])
|
|
114
|
+
]))), 128))
|
|
56
115
|
]),
|
|
57
116
|
_: 1
|
|
58
117
|
})
|
|
59
118
|
])
|
|
60
119
|
]),
|
|
61
|
-
button:
|
|
62
|
-
|
|
63
|
-
title:
|
|
64
|
-
|
|
120
|
+
button: n(() => [
|
|
121
|
+
s(M, { click: E }, {
|
|
122
|
+
title: n(() => [
|
|
123
|
+
v("Add Item")
|
|
65
124
|
]),
|
|
66
125
|
_: 1
|
|
67
126
|
})
|
|
68
127
|
]),
|
|
69
128
|
_: 1
|
|
70
129
|
}),
|
|
71
|
-
|
|
72
|
-
default:
|
|
73
|
-
|
|
74
|
-
|
|
130
|
+
s(R, { class: "flex-1" }, {
|
|
131
|
+
default: n(() => [
|
|
132
|
+
s(W),
|
|
133
|
+
s(q)
|
|
75
134
|
]),
|
|
76
135
|
_: 1
|
|
77
136
|
})
|
|
@@ -84,5 +143,5 @@ const D = { class: "flex-1" }, U = /* @__PURE__ */ f({
|
|
|
84
143
|
}
|
|
85
144
|
});
|
|
86
145
|
export {
|
|
87
|
-
|
|
146
|
+
xe as default
|
|
88
147
|
};
|
|
@@ -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":";AAihBA,wBAKG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as D, ref as c, onMounted as N, openBlock as r, createBlock as f, withCtx as o, createVNode as a, createElementVNode as _, createElementBlock as d, Fragment as C, renderList as S, unref as u, createTextVNode as $, createSlots as h, createCommentVNode as I, toDisplayString as L, withKeys as B, nextTick as R } from "vue";
|
|
2
|
+
import A from "../../components/CodeInput/CodeInput.vue.js";
|
|
3
|
+
import K from "../../components/Sidebar/Sidebar.vue.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import M from "../../components/Sidebar/SidebarButton.vue.js";
|
|
6
6
|
import T from "../../components/Sidebar/SidebarList.vue.js";
|
|
@@ -13,11 +13,11 @@ import { useWorkspace as W } from "../../store/workspace.js";
|
|
|
13
13
|
import { nanoid as j } from "nanoid";
|
|
14
14
|
import { useRouter as q } from "vue-router";
|
|
15
15
|
import z from "./EnvironmentColors.vue.js";
|
|
16
|
-
const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, de = /* @__PURE__ */
|
|
16
|
+
const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, de = /* @__PURE__ */ D({
|
|
17
17
|
__name: "Environment",
|
|
18
18
|
setup(X) {
|
|
19
19
|
const v = q(), { environments: l, environmentMutators: s } = W(), e = c(null), p = c(null), m = c(!1);
|
|
20
|
-
function
|
|
20
|
+
function y() {
|
|
21
21
|
const t = {
|
|
22
22
|
name: "New Environment",
|
|
23
23
|
uid: j(),
|
|
@@ -28,14 +28,14 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
|
|
|
28
28
|
};
|
|
29
29
|
s.add(t), e.value = t.uid, v.push(e.value);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function E(t) {
|
|
32
32
|
e.value && s.edit(e.value, "raw", t);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
34
|
+
const k = (t) => {
|
|
35
35
|
s.delete(t), e.value === t && (e.value = null);
|
|
36
|
-
},
|
|
36
|
+
}, g = (t) => {
|
|
37
37
|
e.value && (l[e.value].color = t);
|
|
38
|
-
},
|
|
38
|
+
}, b = () => {
|
|
39
39
|
v.currentRoute.value.params.environment === "default" && (e.value = l.default.uid);
|
|
40
40
|
}, x = () => {
|
|
41
41
|
e.value && !l[e.value].isDefault && (m.value = !0, R(() => {
|
|
@@ -46,16 +46,16 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
|
|
|
46
46
|
const n = t.target.value;
|
|
47
47
|
e.value && !l[e.value].isDefault && s.edit(e.value, "name", n);
|
|
48
48
|
};
|
|
49
|
-
return
|
|
49
|
+
return N(b), (t, i) => (r(), f(F, null, {
|
|
50
50
|
default: o(() => [
|
|
51
51
|
a(H, null, {
|
|
52
52
|
default: o(() => [
|
|
53
|
-
a(
|
|
53
|
+
a(K, { title: "Environment" }, {
|
|
54
54
|
content: o(() => [
|
|
55
55
|
_("div", G, [
|
|
56
56
|
a(T, null, {
|
|
57
57
|
default: o(() => [
|
|
58
|
-
(r(!0), d(
|
|
58
|
+
(r(!0), d(C, null, S(u(l), (n) => (r(), f(U, {
|
|
59
59
|
key: n.uid,
|
|
60
60
|
class: "text-xs",
|
|
61
61
|
variable: {
|
|
@@ -64,8 +64,9 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
|
|
|
64
64
|
color: n.color,
|
|
65
65
|
isDefault: n.isDefault
|
|
66
66
|
},
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
warningMessage: "Are you sure you want to delete this environment?",
|
|
68
|
+
onClick: (w) => e.value = n.uid,
|
|
69
|
+
onDelete: (w) => k(n.uid)
|
|
69
70
|
}, null, 8, ["variable", "onClick", "onDelete"]))), 128))
|
|
70
71
|
]),
|
|
71
72
|
_: 1
|
|
@@ -73,7 +74,7 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
|
|
|
73
74
|
])
|
|
74
75
|
]),
|
|
75
76
|
button: o(() => [
|
|
76
|
-
a(M, { click:
|
|
77
|
+
a(M, { click: y }, {
|
|
77
78
|
title: o(() => [
|
|
78
79
|
$("Add Environment Variable")
|
|
79
80
|
]),
|
|
@@ -84,15 +85,15 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
|
|
|
84
85
|
}),
|
|
85
86
|
a(J, { class: "flex-1" }, {
|
|
86
87
|
default: o(() => [
|
|
87
|
-
a(O, null,
|
|
88
|
+
a(O, null, h({
|
|
88
89
|
default: o(() => [
|
|
89
|
-
e.value ? (r(), f(
|
|
90
|
+
e.value ? (r(), f(A, {
|
|
90
91
|
key: 0,
|
|
91
92
|
class: "px-2 py-2.5",
|
|
92
93
|
lineNumbers: "",
|
|
93
94
|
modelValue: u(l)[e.value].raw,
|
|
94
|
-
"onUpdate:modelValue":
|
|
95
|
-
}, null, 8, ["modelValue"])) :
|
|
95
|
+
"onUpdate:modelValue": E
|
|
96
|
+
}, null, 8, ["modelValue"])) : I("", !0)
|
|
96
97
|
]),
|
|
97
98
|
_: 2
|
|
98
99
|
}, [
|
|
@@ -117,7 +118,7 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
|
|
|
117
118
|
_("div", Q, [
|
|
118
119
|
a(z, {
|
|
119
120
|
activeColor: u(l)[e.value].color,
|
|
120
|
-
onSelect:
|
|
121
|
+
onSelect: g
|
|
121
122
|
}, null, 8, ["activeColor"])
|
|
122
123
|
])
|
|
123
124
|
]),
|
|
@@ -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":";AAijCA,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-660ba379"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|