@scalar/api-client 2.2.28 → 2.2.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 +23 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue2.js +31 -32
- package/dist/components/DataTable/index.js +12 -12
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +4 -4
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +2 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +39 -28
- package/dist/hooks/useLayout.js +1 -1
- package/dist/libs/find-request.d.ts +53 -0
- package/dist/libs/find-request.d.ts.map +1 -0
- package/dist/libs/find-request.js +22 -0
- package/dist/libs/importers/index.d.ts +1 -1
- package/dist/libs/importers/index.d.ts.map +1 -1
- package/dist/libs/index.d.ts +1 -0
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +31 -29
- package/dist/store/active-entities.d.ts +18 -14
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +30 -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 +49 -43
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +56 -51
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +3 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +38 -41
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +6 -1
- 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 +154 -44
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +53 -192
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +84 -88
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -2
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +2 -2
- package/dist/views/Request/RequestSection/index.d.ts +2 -0
- package/dist/views/Request/RequestSection/index.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/index.js +4 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +89 -90
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/index.d.ts +2 -0
- package/dist/views/Request/ResponseSection/index.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/index.js +4 -0
- package/package.json +18 -8
|
@@ -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":";AA6jBA,wBAMG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, computed as K, onMounted as R, onBeforeUnmount as F, openBlock as
|
|
1
|
+
import { defineComponent as D, computed as K, onMounted as R, onBeforeUnmount as F, openBlock as l, createBlock as $, withCtx as a, createVNode as s, unref as n, createElementVNode as c, createElementBlock as p, Fragment as k, renderList as x, normalizeClass as j, toDisplayString as N, withDirectives as O, createTextVNode as z, withModifiers as A, vShow as E } from "vue";
|
|
2
2
|
import H from "../../components/Sidebar/SidebarButton.vue.js";
|
|
3
3
|
import I from "../../components/Sidebar/SidebarList.vue.js";
|
|
4
4
|
import P from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
@@ -12,10 +12,10 @@ import Q from "./CookieRaw.vue.js";
|
|
|
12
12
|
import { useWorkspace as X } from "../../store/store.js";
|
|
13
13
|
import Y from "../../components/Sidebar/Sidebar.vue.js";
|
|
14
14
|
import { useSidebar as Z } from "../../hooks/useSidebar.js";
|
|
15
|
-
const ee = { class: "flex-1" }, te = ["onClick"], oe = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-
|
|
15
|
+
const ee = { class: "flex-1" }, te = ["onClick"], oe = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, re = ["onClick"], se = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1.75rem_-1px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, ve = /* @__PURE__ */ D({
|
|
16
16
|
__name: "Cookies",
|
|
17
|
-
setup(
|
|
18
|
-
const { cookies: b, cookieMutators:
|
|
17
|
+
setup(le) {
|
|
18
|
+
const { cookies: b, cookieMutators: _, events: v } = X(), { collapsedSidebarFolders: u, toggleSidebarFolder: g } = Z(), d = q(), M = G(), y = () => {
|
|
19
19
|
const e = Object.keys(b).length, t = W.parse({
|
|
20
20
|
name: `Cookie ${e}`,
|
|
21
21
|
value: "",
|
|
@@ -25,92 +25,98 @@ const ee = { class: "flex-1" }, te = ["onClick"], oe = { class: "before:bg-borde
|
|
|
25
25
|
httpOnly: !1,
|
|
26
26
|
sameSite: "None"
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
_.add(t), d.push(t.uid);
|
|
29
29
|
}, V = (e) => {
|
|
30
30
|
var o;
|
|
31
|
-
|
|
31
|
+
_.delete(e);
|
|
32
32
|
const t = Object.values(b).filter(
|
|
33
33
|
(r) => r.uid !== e
|
|
34
34
|
);
|
|
35
35
|
if (t.length > 1) {
|
|
36
36
|
const r = t[t.length - 1];
|
|
37
|
-
r &&
|
|
38
|
-
} else t.length === 1 && ((o = t[0]) == null ? void 0 : o.uid) === "default" &&
|
|
37
|
+
r && d.push(r.uid);
|
|
38
|
+
} else t.length === 1 && ((o = t[0]) == null ? void 0 : o.uid) === "default" && d.push("default");
|
|
39
39
|
}, h = K(() => {
|
|
40
40
|
const e = {};
|
|
41
41
|
return Object.values(b).forEach((t) => {
|
|
42
42
|
const o = t.domain ?? "", r = t.path ?? "";
|
|
43
43
|
e[o] || (e[o] = {}), e[o][r] || (e[o][r] = []), e[o][r].push(t);
|
|
44
44
|
}), e;
|
|
45
|
-
}),
|
|
46
|
-
e != null && e.createNew && M.name === "cookies" &&
|
|
45
|
+
}), C = (e) => u[e], w = (e) => {
|
|
46
|
+
e != null && e.createNew && M.name === "cookies" && y();
|
|
47
47
|
}, B = (e, t) => {
|
|
48
48
|
const o = `/workspace/default/cookies/${t}`;
|
|
49
|
-
e.metaKey ? window.open(o, "_blank") :
|
|
49
|
+
e.metaKey ? window.open(o, "_blank") : d.push({ path: o });
|
|
50
50
|
};
|
|
51
51
|
return R(() => {
|
|
52
52
|
const e = Object.keys(h.value), t = Object.entries(h.value).flatMap(
|
|
53
|
-
([o, r]) => Object.keys(r).map((
|
|
53
|
+
([o, r]) => Object.keys(r).map((m) => o + m)
|
|
54
54
|
);
|
|
55
55
|
e.forEach((o) => {
|
|
56
|
-
|
|
56
|
+
u[o] = !0;
|
|
57
57
|
}), t.forEach((o) => {
|
|
58
|
-
|
|
59
|
-
}),
|
|
60
|
-
}), F(() =>
|
|
58
|
+
u[o] = !0;
|
|
59
|
+
}), v.hotKeys.on(w);
|
|
60
|
+
}), F(() => v.hotKeys.off(w)), (e, t) => (l(), $(T, null, {
|
|
61
61
|
default: a(() => [
|
|
62
|
-
s(
|
|
62
|
+
s(n(Y), { title: "Cookies" }, {
|
|
63
63
|
content: a(() => [
|
|
64
|
-
|
|
64
|
+
c("div", ee, [
|
|
65
65
|
s(I, null, {
|
|
66
66
|
default: a(() => [
|
|
67
|
-
(
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
(l(!0), p(k, null, x(h.value, (o, r) => (l(), p("div", {
|
|
68
|
+
key: r,
|
|
69
|
+
class: "flex flex-col gap-px"
|
|
70
|
+
}, [
|
|
71
|
+
c("button", {
|
|
72
|
+
class: "hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded text-left text-sm p-1.5 focus-visible:z-10 hover:bg-sidebar-active-b indent-padding-left",
|
|
70
73
|
type: "button",
|
|
71
|
-
onClick: (
|
|
74
|
+
onClick: (m) => n(g)(r)
|
|
72
75
|
}, [
|
|
73
|
-
s(
|
|
74
|
-
class:
|
|
75
|
-
"rotate-90":
|
|
76
|
+
s(n(L), {
|
|
77
|
+
class: j(["h-5 -ml-px text-c-3 w-4", {
|
|
78
|
+
"rotate-90": n(u)[r]
|
|
76
79
|
}]),
|
|
77
80
|
icon: "ChevronRight",
|
|
78
81
|
size: "md"
|
|
79
82
|
}, null, 8, ["class"]),
|
|
80
|
-
|
|
83
|
+
c("span", null, N(r), 1)
|
|
81
84
|
], 8, te),
|
|
82
|
-
|
|
83
|
-
(
|
|
84
|
-
f
|
|
85
|
-
|
|
85
|
+
O(c("div", oe, [
|
|
86
|
+
(l(!0), p(k, null, x(o, (m, f) => (l(), p("div", {
|
|
87
|
+
key: f,
|
|
88
|
+
class: "flex flex-col gap-px"
|
|
89
|
+
}, [
|
|
90
|
+
c("button", {
|
|
91
|
+
class: "flex 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
92
|
type: "button",
|
|
87
|
-
onClick: (i) =>
|
|
93
|
+
onClick: (i) => n(g)(r + f)
|
|
88
94
|
}, [
|
|
89
|
-
s(
|
|
90
|
-
class:
|
|
91
|
-
"rotate-90":
|
|
95
|
+
s(n(L), {
|
|
96
|
+
class: j(["-ml-px text-c-3", {
|
|
97
|
+
"rotate-90": n(u)[r + f]
|
|
92
98
|
}]),
|
|
93
99
|
icon: "ChevronRight",
|
|
94
100
|
size: "md"
|
|
95
101
|
}, null, 8, ["class"]),
|
|
96
|
-
|
|
102
|
+
z(" " + N(f), 1)
|
|
97
103
|
], 8, re),
|
|
98
|
-
|
|
99
|
-
(
|
|
104
|
+
O(c("div", se, [
|
|
105
|
+
(l(!0), p(k, null, x(m, (i) => (l(), $(P, {
|
|
100
106
|
key: i.uid,
|
|
101
107
|
class: "cookie text-xs",
|
|
102
108
|
type: "cookies",
|
|
103
109
|
variable: { name: i.name, uid: i.uid },
|
|
104
110
|
warningMessage: "Are you sure you want to delete this cookie?",
|
|
105
|
-
onClick: A((
|
|
106
|
-
onDelete: (
|
|
111
|
+
onClick: A((S) => B(S, i.uid), ["prevent"]),
|
|
112
|
+
onDelete: (S) => V(i.uid)
|
|
107
113
|
}, null, 8, ["variable", "onClick", "onDelete"]))), 128))
|
|
108
114
|
], 512), [
|
|
109
|
-
[
|
|
115
|
+
[E, C(r + f)]
|
|
110
116
|
])
|
|
111
117
|
]))), 128))
|
|
112
118
|
], 512), [
|
|
113
|
-
[
|
|
119
|
+
[E, C(r)]
|
|
114
120
|
])
|
|
115
121
|
]))), 128))
|
|
116
122
|
]),
|
|
@@ -120,11 +126,11 @@ const ee = { class: "flex-1" }, te = ["onClick"], oe = { class: "before:bg-borde
|
|
|
120
126
|
]),
|
|
121
127
|
button: a(() => [
|
|
122
128
|
s(H, {
|
|
123
|
-
click:
|
|
129
|
+
click: y,
|
|
124
130
|
hotkey: "N"
|
|
125
131
|
}, {
|
|
126
132
|
title: a(() => t[0] || (t[0] = [
|
|
127
|
-
|
|
133
|
+
z("Add Cookie")
|
|
128
134
|
])),
|
|
129
135
|
_: 1
|
|
130
136
|
})
|
|
@@ -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":";AAk2CA,wBAMG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as re, ref as
|
|
1
|
+
import { defineComponent as re, ref as x, watch as se, onMounted as ie, onBeforeUnmount as ue, openBlock as m, createBlock as C, withCtx as d, createVNode as u, createElementVNode as f, createElementBlock as M, Fragment as U, renderList as z, unref as s, normalizeClass as A, createTextVNode as B, toDisplayString as W, withDirectives as de, withModifiers as ce, createCommentVNode as K, vShow as me, createSlots as ve } from "vue";
|
|
2
2
|
import fe from "../../components/CodeInput/CodeInput.vue.js";
|
|
3
3
|
import pe from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
4
4
|
import xe from "../../components/Sidebar/Sidebar.vue.js";
|
|
@@ -10,17 +10,17 @@ import Ce from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
|
10
10
|
import ke from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
11
11
|
import { useActiveEntities as Ee } from "../../store/active-entities.js";
|
|
12
12
|
import { useModal as $, ScalarIcon as G, ScalarButton as ge, ScalarModal as _e } from "@scalar/components";
|
|
13
|
-
import { LibraryIcon as
|
|
14
|
-
import { useToasts as
|
|
13
|
+
import { LibraryIcon as we } from "@scalar/icons";
|
|
14
|
+
import { useToasts as Ie } from "@scalar/use-toasts";
|
|
15
15
|
import { useRouter as Se, useRoute as Me } from "vue-router";
|
|
16
16
|
import $e from "./EnvironmentColorModal.vue.js";
|
|
17
17
|
import Ve from "./EnvironmentModal.vue.js";
|
|
18
18
|
import { useWorkspace as Ne } from "../../store/store.js";
|
|
19
19
|
import { useSidebar as Oe } from "../../hooks/useSidebar.js";
|
|
20
|
-
const Re = { class: "flex-1" }, je = ["onClick"],
|
|
20
|
+
const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-center justify-center max-w-[14px]" }, tn = /* @__PURE__ */ re({
|
|
21
21
|
__name: "Environment",
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
22
|
+
setup(Le) {
|
|
23
|
+
const b = Se(), k = Me(), { activeWorkspace: V, activeEnvironment: J, activeWorkspaceCollections: i } = Ee(), { events: N, workspaceMutators: T, collectionMutators: h } = Ne(), { collapsedSidebarFolders: y, toggleSidebarFolder: E } = Oe(), g = $(), _ = $(), w = $(), O = x(null), l = x("default"), R = x(""), p = x(void 0), c = x(void 0), I = x(void 0), { toast: j } = Ie(), H = (e) => JSON.parse(e);
|
|
24
24
|
function D(e, o, n) {
|
|
25
25
|
var t;
|
|
26
26
|
e && (o.uid === n ? j(
|
|
@@ -36,14 +36,14 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
36
36
|
).includes(e.name);
|
|
37
37
|
return D(t, n, e.collectionId), t;
|
|
38
38
|
}
|
|
39
|
-
) || (e.collectionId && (
|
|
39
|
+
) || (e.collectionId && (h.addEnvironment(
|
|
40
40
|
e.name,
|
|
41
41
|
{
|
|
42
42
|
variables: {},
|
|
43
43
|
color: e.color
|
|
44
44
|
},
|
|
45
45
|
e.collectionId
|
|
46
|
-
),
|
|
46
|
+
), y[e.collectionId] || E(e.collectionId), b.push({
|
|
47
47
|
name: "environment.collection",
|
|
48
48
|
params: {
|
|
49
49
|
collectionId: e.collectionId,
|
|
@@ -70,7 +70,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
70
70
|
);
|
|
71
71
|
if ((n = a == null ? void 0 : a["x-scalar-environments"]) != null && n[l.value ?? ""]) {
|
|
72
72
|
const r = a["x-scalar-environments"][l.value ?? ""];
|
|
73
|
-
r && (r.variables = t,
|
|
73
|
+
r && (r.variables = t, h.edit(
|
|
74
74
|
a.uid,
|
|
75
75
|
"x-scalar-environments",
|
|
76
76
|
a["x-scalar-environments"]
|
|
@@ -80,9 +80,9 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
const S = (e) => {
|
|
83
|
-
|
|
83
|
+
p.value = e, _.show();
|
|
84
84
|
}, Q = (e, o) => {
|
|
85
|
-
c.value = e,
|
|
85
|
+
c.value = e, p.value = o, I.value = e, w.show();
|
|
86
86
|
}, X = (e) => {
|
|
87
87
|
var o, n, t;
|
|
88
88
|
O.value = e, R.value = ((t = (n = (o = i.value.find(
|
|
@@ -100,7 +100,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
100
100
|
}
|
|
101
101
|
) && i.value.forEach((t) => {
|
|
102
102
|
var a;
|
|
103
|
-
(a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e,
|
|
103
|
+
(a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, h.edit(
|
|
104
104
|
t.uid,
|
|
105
105
|
"x-scalar-environments",
|
|
106
106
|
t["x-scalar-environments"]
|
|
@@ -109,7 +109,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
109
109
|
};
|
|
110
110
|
function Z(e) {
|
|
111
111
|
i.value.forEach((n) => {
|
|
112
|
-
|
|
112
|
+
h.removeEnvironment(e, n.uid);
|
|
113
113
|
});
|
|
114
114
|
const o = i.value.flatMap(
|
|
115
115
|
(n) => Object.keys(n["x-scalar-environments"] || {})
|
|
@@ -122,15 +122,15 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
122
122
|
n
|
|
123
123
|
)
|
|
124
124
|
);
|
|
125
|
-
l.value = n,
|
|
125
|
+
l.value = n, b.push({
|
|
126
126
|
name: "environment.collection",
|
|
127
127
|
params: {
|
|
128
128
|
collectionId: t == null ? void 0 : t.uid,
|
|
129
129
|
environmentId: n
|
|
130
130
|
}
|
|
131
|
-
}), t && !
|
|
131
|
+
}), t && !y[t.uid] && E(t.uid);
|
|
132
132
|
} else
|
|
133
|
-
l.value = "default",
|
|
133
|
+
l.value = "default", b.push({
|
|
134
134
|
name: "environment",
|
|
135
135
|
params: { environment: "default" }
|
|
136
136
|
});
|
|
@@ -147,7 +147,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
147
147
|
null,
|
|
148
148
|
2
|
|
149
149
|
);
|
|
150
|
-
}, te = (e) =>
|
|
150
|
+
}, te = (e) => y[e], L = (e) => {
|
|
151
151
|
e != null && e.createNew && k.name === "environment" && S();
|
|
152
152
|
};
|
|
153
153
|
se(
|
|
@@ -157,15 +157,15 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
157
157
|
}
|
|
158
158
|
), ie(() => {
|
|
159
159
|
l.value = k.params.environmentId || "default", N.hotKeys.on(L);
|
|
160
|
-
const { collectionId: e } =
|
|
161
|
-
e && !
|
|
160
|
+
const { collectionId: e } = b.currentRoute.value.params;
|
|
161
|
+
e && !y[e] && E(e);
|
|
162
162
|
}), ue(() => N.hotKeys.off(L));
|
|
163
163
|
const oe = (e, o, n) => {
|
|
164
164
|
const t = n ? `/workspace/default/environment/${n}/${o}` : `/workspace/default/environment/${o}`;
|
|
165
|
-
e.metaKey ? window.open(t, "_blank") :
|
|
165
|
+
e.metaKey ? window.open(t, "_blank") : b.push({ path: t });
|
|
166
166
|
};
|
|
167
167
|
function ae() {
|
|
168
|
-
c.value = void 0,
|
|
168
|
+
c.value = void 0, p.value = void 0, I.value = void 0, w.hide();
|
|
169
169
|
}
|
|
170
170
|
function le(e) {
|
|
171
171
|
i.value.some(
|
|
@@ -176,29 +176,29 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
176
176
|
return D(
|
|
177
177
|
t,
|
|
178
178
|
n,
|
|
179
|
-
|
|
179
|
+
p.value
|
|
180
180
|
), t;
|
|
181
181
|
}
|
|
182
182
|
) || (e && c.value !== "default" && i.value.forEach((n) => {
|
|
183
183
|
var t;
|
|
184
184
|
if ((t = n["x-scalar-environments"]) != null && t[c.value ?? ""]) {
|
|
185
185
|
const a = n["x-scalar-environments"][c.value ?? ""];
|
|
186
|
-
a && (delete n["x-scalar-environments"][c.value ?? ""], n["x-scalar-environments"][e] = a,
|
|
186
|
+
a && (delete n["x-scalar-environments"][c.value ?? ""], n["x-scalar-environments"][e] = a, h.edit(
|
|
187
187
|
n.uid,
|
|
188
188
|
"x-scalar-environments",
|
|
189
189
|
n["x-scalar-environments"]
|
|
190
190
|
));
|
|
191
191
|
}
|
|
192
|
-
}), e && l.value === c.value && (l.value = e), c.value = void 0,
|
|
192
|
+
}), e && l.value === c.value && (l.value = e), c.value = void 0, p.value = void 0, I.value = void 0, w.hide());
|
|
193
193
|
}
|
|
194
|
-
return (e, o) => (m(),
|
|
194
|
+
return (e, o) => (m(), C(ye, null, {
|
|
195
195
|
default: d(() => [
|
|
196
196
|
u(xe, { title: "Collections" }, {
|
|
197
197
|
content: d(() => [
|
|
198
|
-
|
|
198
|
+
f("div", Re, [
|
|
199
199
|
u(he, null, {
|
|
200
200
|
default: d(() => [
|
|
201
|
-
(m(),
|
|
201
|
+
(m(), C(F, {
|
|
202
202
|
key: "default",
|
|
203
203
|
class: "text-xs",
|
|
204
204
|
isCopyable: !1,
|
|
@@ -216,31 +216,36 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
216
216
|
key: n.uid,
|
|
217
217
|
class: "flex flex-col gap-0.25"
|
|
218
218
|
}, [
|
|
219
|
-
|
|
219
|
+
f("button", {
|
|
220
220
|
class: "flex font-medium gap-1.5 group items-center p-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
|
|
221
221
|
type: "button",
|
|
222
222
|
onClick: (a) => s(E)(n.uid)
|
|
223
223
|
}, [
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
224
|
+
f("span", De, [
|
|
225
|
+
u(s(we), {
|
|
226
|
+
class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
|
|
227
|
+
src: n["x-scalar-icon"] || "interface-content-folder"
|
|
228
|
+
}, null, 8, ["src"]),
|
|
229
|
+
f("div", {
|
|
230
|
+
class: A({
|
|
231
|
+
"rotate-90": s(y)[n.uid]
|
|
232
|
+
})
|
|
233
|
+
}, [
|
|
234
|
+
u(s(G), {
|
|
235
|
+
class: "text-c-3 hidden text-sm group-hover:block",
|
|
236
|
+
icon: "ChevronRight",
|
|
237
|
+
size: "md"
|
|
238
|
+
})
|
|
239
|
+
], 2)
|
|
240
|
+
]),
|
|
236
241
|
B(" " + W(((t = n.info) == null ? void 0 : t.title) ?? ""), 1)
|
|
237
242
|
], 8, je),
|
|
238
|
-
de(
|
|
243
|
+
de(f("div", {
|
|
239
244
|
class: A({
|
|
240
|
-
"before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-
|
|
245
|
+
"before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative": Object.keys(n["x-scalar-environments"] || {}).length > 0
|
|
241
246
|
})
|
|
242
247
|
}, [
|
|
243
|
-
(m(!0), M(U, null, z(n["x-scalar-environments"], (a, r) => (m(),
|
|
248
|
+
(m(!0), M(U, null, z(n["x-scalar-environments"], (a, r) => (m(), C(F, {
|
|
244
249
|
key: r,
|
|
245
250
|
class: "text-xs [&>a]:pl-5",
|
|
246
251
|
collectionId: n.uid,
|
|
@@ -260,7 +265,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
260
265
|
onDelete: (v) => Z(r),
|
|
261
266
|
onRename: (v) => Q(r, n.uid)
|
|
262
267
|
}, null, 8, ["collectionId", "variable", "onClick", "onColorModal", "onDelete", "onRename"]))), 128)),
|
|
263
|
-
Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (m(),
|
|
268
|
+
Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (m(), C(s(ge), {
|
|
264
269
|
key: 0,
|
|
265
270
|
class: "mb-[.5px] flex gap-1.5 h-8 text-c-1 pl-6 py-0 justify-start text-xs w-full hover:bg-b-2",
|
|
266
271
|
variant: "ghost",
|
|
@@ -272,7 +277,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
272
277
|
icon: "Add",
|
|
273
278
|
thickness: "3"
|
|
274
279
|
}),
|
|
275
|
-
o[2] || (o[2] =
|
|
280
|
+
o[2] || (o[2] = f("span", null, "Add Environment", -1))
|
|
276
281
|
]),
|
|
277
282
|
_: 2
|
|
278
283
|
}, 1032, ["onClick"])) : K("", !0)
|
|
@@ -303,7 +308,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
303
308
|
default: d(() => [
|
|
304
309
|
u(ke, null, ve({
|
|
305
310
|
default: d(() => [
|
|
306
|
-
l.value ? (m(),
|
|
311
|
+
l.value ? (m(), C(fe, {
|
|
307
312
|
key: 0,
|
|
308
313
|
class: "pl-px pr-2 md:px-4 py-2",
|
|
309
314
|
isCopyable: "",
|
|
@@ -319,7 +324,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
319
324
|
l.value ? {
|
|
320
325
|
name: "title",
|
|
321
326
|
fn: d(() => [
|
|
322
|
-
|
|
327
|
+
f("span", null, W(ee()), 1)
|
|
323
328
|
]),
|
|
324
329
|
key: "0"
|
|
325
330
|
} : void 0
|
|
@@ -335,19 +340,19 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
335
340
|
}, null, 8, ["selectedColor", "state"]),
|
|
336
341
|
u(Ve, {
|
|
337
342
|
activeWorkspaceCollections: s(i),
|
|
338
|
-
collectionId:
|
|
343
|
+
collectionId: p.value,
|
|
339
344
|
state: s(_),
|
|
340
345
|
onCancel: o[1] || (o[1] = (n) => s(_).hide()),
|
|
341
346
|
onSubmit: q
|
|
342
347
|
}, null, 8, ["activeWorkspaceCollections", "collectionId", "state"]),
|
|
343
348
|
u(s(_e), {
|
|
344
349
|
size: "xxs",
|
|
345
|
-
state: s(
|
|
350
|
+
state: s(w),
|
|
346
351
|
title: `Edit ${c.value}`
|
|
347
352
|
}, {
|
|
348
353
|
default: d(() => [
|
|
349
354
|
u(pe, {
|
|
350
|
-
name:
|
|
355
|
+
name: I.value ?? "",
|
|
351
356
|
onClose: ae,
|
|
352
357
|
onEdit: le
|
|
353
358
|
}, null, 8, ["name"])
|
|
@@ -360,5 +365,5 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
|
|
|
360
365
|
}
|
|
361
366
|
});
|
|
362
367
|
export {
|
|
363
|
-
|
|
368
|
+
tn as default
|
|
364
369
|
};
|
|
@@ -7,11 +7,13 @@ type __VLS_Props = {
|
|
|
7
7
|
scheme: {
|
|
8
8
|
id: string;
|
|
9
9
|
label: string;
|
|
10
|
-
} |
|
|
10
|
+
} | null;
|
|
11
11
|
};
|
|
12
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
|
+
delete: () => any;
|
|
13
14
|
close: () => any;
|
|
14
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onDelete?: (() => any) | undefined;
|
|
15
17
|
onClose?: (() => any) | undefined;
|
|
16
18
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
19
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteRequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteRequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue"],"names":[],"mappings":"AAsDA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC5D,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAC7C,CAAC;;;;;;;;AAwJF,wBAQG"}
|
|
@@ -7,11 +7,11 @@ const k = { class: "mb-4 leading-normal text-c-2 text-sm" }, C = { class: "flex
|
|
|
7
7
|
state: {},
|
|
8
8
|
scheme: {}
|
|
9
9
|
},
|
|
10
|
-
emits: ["close"],
|
|
10
|
+
emits: ["close", "delete"],
|
|
11
11
|
setup(p, { emit: f }) {
|
|
12
12
|
const l = p, c = f, { securitySchemeMutators: h } = g(), x = () => {
|
|
13
13
|
var e;
|
|
14
|
-
(e = l.scheme) != null && e.id && h.delete(l.scheme.id), c("
|
|
14
|
+
(e = l.scheme) != null && e.id && h.delete(l.scheme.id), c("delete");
|
|
15
15
|
};
|
|
16
16
|
return (e, t) => (y(), S(s(_), {
|
|
17
17
|
size: "xxs",
|
|
@@ -2,7 +2,6 @@ import type { UpdateScheme } from '../../../../store/index.js';
|
|
|
2
2
|
import type { Oauth2Flow } from '@scalar/oas-utils/entities/spec';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
flow: Oauth2Flow;
|
|
5
|
-
layout: 'client' | 'reference';
|
|
6
5
|
updateScheme: UpdateScheme;
|
|
7
6
|
};
|
|
8
7
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AAuGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAKjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAC;;AAoPF,wBAOG"}
|