@scalar/api-client 2.17.7 → 2.17.8
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 +25 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +5 -5
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +18 -18
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +7 -7
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +44 -5
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -44
- package/dist/style.css +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +149 -126
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +76 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +22 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +79 -64
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +16 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +84 -82
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -1
- package/dist/v2/components/forms/ConfirmationForm.vue.js +43 -5
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +2 -43
- package/dist/v2/components/modals/DeleteModal.vue.js +11 -11
- package/dist/v2/features/operation/Operation.vue.js +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +104 -5
- package/dist/v2/features/settings/DocumentSettings.vue2.js +2 -104
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.js +1 -4
- package/dist/views/Collection/CollectionSettings.vue2.js +5 -5
- package/dist/views/Environment/EnvironmentColorModal.vue.js +6 -6
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +10 -10
|
@@ -1,7 +1,45 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as f, createElementBlock as u, openBlock as d, withModifiers as p, renderSlot as v, createElementVNode as b, createVNode as o, unref as a, withCtx as i, createTextVNode as l, toDisplayString as c } from "vue";
|
|
2
|
+
import { ScalarButton as r } from "@scalar/components";
|
|
3
|
+
const x = { class: "flex justify-between gap-10" }, g = /* @__PURE__ */ f({
|
|
4
|
+
__name: "ConfirmationForm",
|
|
5
|
+
props: {
|
|
6
|
+
label: { default: "Save" },
|
|
7
|
+
variant: { default: "solid" }
|
|
8
|
+
},
|
|
9
|
+
emits: ["cancel", "submit"],
|
|
10
|
+
setup(C, { emit: s }) {
|
|
11
|
+
const n = s;
|
|
12
|
+
return (t, e) => (d(), u("form", {
|
|
13
|
+
class: "flex flex-col gap-4 text-base",
|
|
14
|
+
onSubmit: e[1] || (e[1] = p((m) => n("submit"), ["prevent"]))
|
|
15
|
+
}, [
|
|
16
|
+
v(t.$slots, "default"),
|
|
17
|
+
b("div", x, [
|
|
18
|
+
o(a(r), {
|
|
19
|
+
size: "sm",
|
|
20
|
+
type: "button",
|
|
21
|
+
variant: "outlined",
|
|
22
|
+
onClick: e[0] || (e[0] = (m) => n("cancel"))
|
|
23
|
+
}, {
|
|
24
|
+
default: i(() => [...e[2] || (e[2] = [
|
|
25
|
+
l(" Cancel ", -1)
|
|
26
|
+
])]),
|
|
27
|
+
_: 1
|
|
28
|
+
}),
|
|
29
|
+
o(a(r), {
|
|
30
|
+
size: "sm",
|
|
31
|
+
type: "submit",
|
|
32
|
+
variant: t.variant
|
|
33
|
+
}, {
|
|
34
|
+
default: i(() => [
|
|
35
|
+
l(c(t.label), 1)
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
}, 8, ["variant"])
|
|
39
|
+
])
|
|
40
|
+
], 32));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
5
43
|
export {
|
|
6
|
-
|
|
44
|
+
g as default
|
|
7
45
|
};
|
|
@@ -1,45 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ScalarButton as r } from "@scalar/components";
|
|
3
|
-
const x = { class: "flex justify-between gap-10" }, S = /* @__PURE__ */ m({
|
|
4
|
-
__name: "ConfirmationForm",
|
|
5
|
-
props: {
|
|
6
|
-
label: { default: "Save" },
|
|
7
|
-
variant: { default: "solid" }
|
|
8
|
-
},
|
|
9
|
-
emits: ["cancel", "submit"],
|
|
10
|
-
setup(w, { emit: s }) {
|
|
11
|
-
const o = s;
|
|
12
|
-
return (t, e) => (f(), p("form", {
|
|
13
|
-
class: "flex flex-col gap-4 text-base",
|
|
14
|
-
onSubmit: e[1] || (e[1] = d((u) => o("submit"), ["prevent"]))
|
|
15
|
-
}, [
|
|
16
|
-
c(t.$slots, "default", {}, void 0, !0),
|
|
17
|
-
v("div", x, [
|
|
18
|
-
n(a(r), {
|
|
19
|
-
class: "flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",
|
|
20
|
-
type: "button",
|
|
21
|
-
variant: "outlined",
|
|
22
|
-
onClick: e[0] || (e[0] = (u) => o("cancel"))
|
|
23
|
-
}, {
|
|
24
|
-
default: i(() => [...e[2] || (e[2] = [
|
|
25
|
-
l(" Cancel ", -1)
|
|
26
|
-
])]),
|
|
27
|
-
_: 1
|
|
28
|
-
}),
|
|
29
|
-
n(a(r), {
|
|
30
|
-
class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
|
|
31
|
-
type: "submit",
|
|
32
|
-
variant: t.variant
|
|
33
|
-
}, {
|
|
34
|
-
default: i(() => [
|
|
35
|
-
l(b(t.label), 1)
|
|
36
|
-
]),
|
|
37
|
-
_: 1
|
|
38
|
-
}, 8, ["variant"])
|
|
39
|
-
])
|
|
40
|
-
], 32));
|
|
41
|
-
}
|
|
42
|
-
});
|
|
1
|
+
import f from "./ConfirmationForm.vue.js";
|
|
43
2
|
export {
|
|
44
|
-
|
|
3
|
+
f as default
|
|
45
4
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as s, computed as i, createBlock as
|
|
2
|
-
import { truncate as
|
|
1
|
+
import { defineComponent as s, computed as i, createBlock as c, openBlock as a, unref as p, withCtx as d, createElementBlock as u, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
|
+
import { truncate as _ } from "@scalar/helpers/string/truncate";
|
|
3
3
|
import k from "../forms/ConfirmationForm.vue.js";
|
|
4
4
|
const v = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-c-2 text-sm leading-normal text-pretty"
|
|
7
|
-
},
|
|
7
|
+
}, M = /* @__PURE__ */ s({
|
|
8
8
|
__name: "DeleteModal",
|
|
9
9
|
props: {
|
|
10
10
|
name: {},
|
|
11
11
|
warningMessage: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["close", "delete"],
|
|
14
|
-
setup(
|
|
15
|
-
const t = r,
|
|
16
|
-
return (n, e) => (
|
|
17
|
-
label: `Delete ${
|
|
14
|
+
setup(o, { emit: r }) {
|
|
15
|
+
const t = r, l = i(() => _(o.name));
|
|
16
|
+
return (n, e) => (a(), c(p(k), {
|
|
17
|
+
label: `Delete ${l.value}`,
|
|
18
18
|
variant: "danger",
|
|
19
|
-
onCancel: e[0] || (e[0] = (
|
|
20
|
-
onSubmit: e[1] || (e[1] = (
|
|
19
|
+
onCancel: e[0] || (e[0] = (m) => t("close")),
|
|
20
|
+
onSubmit: e[1] || (e[1] = (m) => t("delete"))
|
|
21
21
|
}, {
|
|
22
22
|
default: d(() => [
|
|
23
|
-
n.warningMessage ? (
|
|
23
|
+
n.warningMessage ? (a(), u("p", v, g(n.warningMessage), 1)) : f("", !0)
|
|
24
24
|
]),
|
|
25
25
|
_: 1
|
|
26
26
|
}, 8, ["label"]));
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
M as default
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/settings/DocumentSettings.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/settings/DocumentSettings.vue"],"names":[],"mappings":"AAyJA,KAAK,WAAW,GAAG;IACjB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,yDAAyD;IACzD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,+CAA+C;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;;;;;;;;AAkTF,wBAOG"}
|
|
@@ -1,7 +1,106 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as v, createElementBlock as d, openBlock as a, Fragment as i, createElementVNode as e, createVNode as n, unref as o, createTextVNode as u, toDisplayString as w, withCtx as m } from "vue";
|
|
2
|
+
import { useModal as x, ScalarToggle as D, ScalarIcon as f, ScalarButton as y, ScalarModal as k } from "@scalar/components";
|
|
3
|
+
import M from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
4
|
+
const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2" }, N = { class: "bg-b-2 rounded-lg border text-sm" }, S = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, B = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, V = { class: "flex items-center" }, T = ["href"], z = { class: "flex flex-col gap-4" }, A = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, O = /* @__PURE__ */ v({
|
|
5
|
+
__name: "DocumentSettings",
|
|
6
|
+
props: {
|
|
7
|
+
documentUrl: {},
|
|
8
|
+
watchMode: { type: Boolean },
|
|
9
|
+
title: {},
|
|
10
|
+
isDraftDocument: { type: Boolean, default: !1 }
|
|
11
|
+
},
|
|
12
|
+
emits: ["delete:document", "update:watchMode"],
|
|
13
|
+
setup(p, { emit: g }) {
|
|
14
|
+
const r = g, s = x(), b = () => {
|
|
15
|
+
p.isDraftDocument || s.show();
|
|
16
|
+
}, h = () => {
|
|
17
|
+
r("delete:document"), s.hide();
|
|
18
|
+
};
|
|
19
|
+
return (l, t) => (a(), d(i, null, [
|
|
20
|
+
e("div", U, [
|
|
21
|
+
e("div", C, [
|
|
22
|
+
t[5] || (t[5] = e("div", { class: "flex h-8 items-center" }, [
|
|
23
|
+
e("h3", { class: "font-bold" }, "Features")
|
|
24
|
+
], -1)),
|
|
25
|
+
e("div", N, [
|
|
26
|
+
e("div", S, [
|
|
27
|
+
t[2] || (t[2] = e("div", null, [
|
|
28
|
+
e("h4", null, "Watch Mode"),
|
|
29
|
+
e("p", { class: "text-c-2 mt-1" }, " When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")
|
|
30
|
+
], -1)),
|
|
31
|
+
n(o(D), {
|
|
32
|
+
class: "w-4",
|
|
33
|
+
disabled: !l.documentUrl,
|
|
34
|
+
modelValue: l.watchMode ?? !1,
|
|
35
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => r("update:watchMode", c))
|
|
36
|
+
}, null, 8, ["disabled", "modelValue"])
|
|
37
|
+
]),
|
|
38
|
+
e("div", B, [
|
|
39
|
+
e("div", V, [
|
|
40
|
+
l.documentUrl ? (a(), d(i, { key: 0 }, [
|
|
41
|
+
t[3] || (t[3] = e("span", { class: "bg-b-2 sticky left-0 pr-2 pl-3" }, "Source", -1)),
|
|
42
|
+
e("a", {
|
|
43
|
+
class: "text-c-2 group rounded pr-3 no-underline hover:underline",
|
|
44
|
+
href: l.documentUrl,
|
|
45
|
+
target: "_blank"
|
|
46
|
+
}, [
|
|
47
|
+
u(w(l.documentUrl) + " ", 1),
|
|
48
|
+
n(o(f), {
|
|
49
|
+
class: "ml-1 hidden w-2.5 group-hover:inline",
|
|
50
|
+
icon: "ExternalLink"
|
|
51
|
+
})
|
|
52
|
+
], 8, T)
|
|
53
|
+
], 64)) : (a(), d(i, { key: 1 }, [
|
|
54
|
+
n(o(f), {
|
|
55
|
+
class: "text-c-2 mr-2 ml-3 w-4",
|
|
56
|
+
icon: "NotAllowed",
|
|
57
|
+
size: "sm"
|
|
58
|
+
}),
|
|
59
|
+
t[4] || (t[4] = e("span", { class: "text-c-2 pr-3" }, " No URL configured. Try importing an OpenAPI document from an URL. ", -1))
|
|
60
|
+
], 64))
|
|
61
|
+
])
|
|
62
|
+
])
|
|
63
|
+
])
|
|
64
|
+
]),
|
|
65
|
+
e("div", z, [
|
|
66
|
+
t[8] || (t[8] = e("h3", { class: "font-bold" }, "Danger Zone", -1)),
|
|
67
|
+
e("div", A, [
|
|
68
|
+
t[7] || (t[7] = e("div", null, [
|
|
69
|
+
e("h4", null, "Delete Collection"),
|
|
70
|
+
e("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")
|
|
71
|
+
], -1)),
|
|
72
|
+
n(o(y), {
|
|
73
|
+
disabled: l.isDraftDocument,
|
|
74
|
+
size: "sm",
|
|
75
|
+
variant: "danger",
|
|
76
|
+
onClick: b
|
|
77
|
+
}, {
|
|
78
|
+
default: m(() => [...t[6] || (t[6] = [
|
|
79
|
+
u(" Delete Collection ", -1)
|
|
80
|
+
])]),
|
|
81
|
+
_: 1
|
|
82
|
+
}, 8, ["disabled"])
|
|
83
|
+
])
|
|
84
|
+
])
|
|
85
|
+
]),
|
|
86
|
+
n(o(k), {
|
|
87
|
+
size: "xxs",
|
|
88
|
+
state: o(s),
|
|
89
|
+
title: `Delete ${l.title}`
|
|
90
|
+
}, {
|
|
91
|
+
default: m(() => [
|
|
92
|
+
n(M, {
|
|
93
|
+
variableName: l.title ?? "",
|
|
94
|
+
warningMessage: "This action cannot be undone.",
|
|
95
|
+
onClose: t[1] || (t[1] = (c) => o(s).hide()),
|
|
96
|
+
onDelete: h
|
|
97
|
+
}, null, 8, ["variableName"])
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 8, ["state", "title"])
|
|
101
|
+
], 64));
|
|
102
|
+
}
|
|
103
|
+
});
|
|
5
104
|
export {
|
|
6
|
-
|
|
105
|
+
O as default
|
|
7
106
|
};
|
|
@@ -1,106 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useModal as v, ScalarToggle as D, ScalarIcon as f, ScalarButton as y, ScalarModal as k } from "@scalar/components";
|
|
3
|
-
import M from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
4
|
-
const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2" }, N = { class: "bg-b-2 rounded-lg border text-sm" }, S = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, B = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, V = { class: "flex items-center" }, T = ["href"], A = { class: "flex flex-col gap-4" }, E = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, _ = /* @__PURE__ */ w({
|
|
5
|
-
__name: "DocumentSettings",
|
|
6
|
-
props: {
|
|
7
|
-
documentUrl: {},
|
|
8
|
-
watchMode: { type: Boolean },
|
|
9
|
-
title: {},
|
|
10
|
-
isDraftDocument: { type: Boolean, default: !1 }
|
|
11
|
-
},
|
|
12
|
-
emits: ["delete:document", "update:watchMode"],
|
|
13
|
-
setup(p, { emit: g }) {
|
|
14
|
-
const r = g, s = v(), b = () => {
|
|
15
|
-
p.isDraftDocument || s.show();
|
|
16
|
-
}, h = () => {
|
|
17
|
-
r("delete:document"), s.hide();
|
|
18
|
-
};
|
|
19
|
-
return (l, t) => (d(), a(i, null, [
|
|
20
|
-
e("div", U, [
|
|
21
|
-
e("div", C, [
|
|
22
|
-
t[5] || (t[5] = e("div", { class: "flex h-8 items-center" }, [
|
|
23
|
-
e("h3", { class: "font-bold" }, "Features")
|
|
24
|
-
], -1)),
|
|
25
|
-
e("div", N, [
|
|
26
|
-
e("div", S, [
|
|
27
|
-
t[2] || (t[2] = e("div", null, [
|
|
28
|
-
e("h4", null, "Watch Mode"),
|
|
29
|
-
e("p", { class: "text-c-2 mt-1" }, " When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")
|
|
30
|
-
], -1)),
|
|
31
|
-
n(o(D), {
|
|
32
|
-
class: "w-4",
|
|
33
|
-
disabled: !l.documentUrl,
|
|
34
|
-
modelValue: l.watchMode ?? !1,
|
|
35
|
-
"onUpdate:modelValue": t[0] || (t[0] = (c) => r("update:watchMode", c))
|
|
36
|
-
}, null, 8, ["disabled", "modelValue"])
|
|
37
|
-
]),
|
|
38
|
-
e("div", B, [
|
|
39
|
-
e("div", V, [
|
|
40
|
-
l.documentUrl ? (d(), a(i, { key: 0 }, [
|
|
41
|
-
t[3] || (t[3] = e("span", { class: "bg-b-2 sticky left-0 pr-2 pl-3" }, "Source", -1)),
|
|
42
|
-
e("a", {
|
|
43
|
-
class: "text-c-2 group rounded pr-3 no-underline hover:underline",
|
|
44
|
-
href: l.documentUrl,
|
|
45
|
-
target: "_blank"
|
|
46
|
-
}, [
|
|
47
|
-
u(x(l.documentUrl) + " ", 1),
|
|
48
|
-
n(o(f), {
|
|
49
|
-
class: "ml-1 hidden w-2.5 group-hover:inline",
|
|
50
|
-
icon: "ExternalLink"
|
|
51
|
-
})
|
|
52
|
-
], 8, T)
|
|
53
|
-
], 64)) : (d(), a(i, { key: 1 }, [
|
|
54
|
-
n(o(f), {
|
|
55
|
-
class: "text-c-2 mr-2 ml-3 w-4",
|
|
56
|
-
icon: "NotAllowed",
|
|
57
|
-
size: "sm"
|
|
58
|
-
}),
|
|
59
|
-
t[4] || (t[4] = e("span", { class: "text-c-2 pr-3" }, " No URL configured. Try importing an OpenAPI document from an URL. ", -1))
|
|
60
|
-
], 64))
|
|
61
|
-
])
|
|
62
|
-
])
|
|
63
|
-
])
|
|
64
|
-
]),
|
|
65
|
-
e("div", A, [
|
|
66
|
-
t[8] || (t[8] = e("h3", { class: "font-bold" }, "Danger Zone", -1)),
|
|
67
|
-
e("div", E, [
|
|
68
|
-
t[7] || (t[7] = e("div", null, [
|
|
69
|
-
e("h4", null, "Delete Collection"),
|
|
70
|
-
e("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")
|
|
71
|
-
], -1)),
|
|
72
|
-
n(o(y), {
|
|
73
|
-
class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
|
|
74
|
-
disabled: l.isDraftDocument,
|
|
75
|
-
variant: "danger",
|
|
76
|
-
onClick: b
|
|
77
|
-
}, {
|
|
78
|
-
default: m(() => [...t[6] || (t[6] = [
|
|
79
|
-
u(" Delete Collection ", -1)
|
|
80
|
-
])]),
|
|
81
|
-
_: 1
|
|
82
|
-
}, 8, ["disabled"])
|
|
83
|
-
])
|
|
84
|
-
])
|
|
85
|
-
]),
|
|
86
|
-
n(o(k), {
|
|
87
|
-
size: "xxs",
|
|
88
|
-
state: o(s),
|
|
89
|
-
title: `Delete ${l.title}`
|
|
90
|
-
}, {
|
|
91
|
-
default: m(() => [
|
|
92
|
-
n(M, {
|
|
93
|
-
variableName: l.title ?? "",
|
|
94
|
-
warningMessage: "This action cannot be undone.",
|
|
95
|
-
onClose: t[1] || (t[1] = (c) => o(s).hide()),
|
|
96
|
-
onDelete: h
|
|
97
|
-
}, null, 8, ["variableName"])
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
}, 8, ["state", "title"])
|
|
101
|
-
], 64));
|
|
102
|
-
}
|
|
103
|
-
});
|
|
1
|
+
import f from "./DocumentSettings.vue.js";
|
|
104
2
|
export {
|
|
105
|
-
|
|
3
|
+
f as default
|
|
106
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionSettings.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CollectionSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionSettings.vue"],"names":[],"mappings":";AAseA,wBAKG"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */
|
|
3
|
-
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f353959a"]]);
|
|
1
|
+
import f from "./CollectionSettings.vue2.js";
|
|
5
2
|
export {
|
|
6
3
|
f as default
|
|
7
4
|
};
|
|
@@ -5,9 +5,9 @@ import N from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js"
|
|
|
5
5
|
import { PathId as v } from "../../routes.js";
|
|
6
6
|
import { useActiveEntities as S } from "../../store/active-entities.js";
|
|
7
7
|
import { useWorkspace as W } from "../../store/store.js";
|
|
8
|
-
const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, V = { class: "flex flex-col gap-2" }, A = { class: "bg-b-2 rounded-lg border text-sm" }, B = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, E = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, I = { class: "flex items-center" }, $ = ["href"],
|
|
8
|
+
const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, V = { class: "flex flex-col gap-2" }, A = { class: "bg-b-2 rounded-lg border text-sm" }, B = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, E = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, I = { class: "flex items-center" }, $ = ["href"], z = { class: "flex flex-col gap-4" }, L = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, H = /* @__PURE__ */ _({
|
|
9
9
|
__name: "CollectionSettings",
|
|
10
|
-
setup(
|
|
10
|
+
setup(O) {
|
|
11
11
|
const { activeCollection: o, activeWorkspace: i, activeWorkspaceCollections: x } = S(), { collectionMutators: u } = W(), { replace: g } = D(), s = C();
|
|
12
12
|
function h() {
|
|
13
13
|
o.value && o.value?.documentUrl && u.edit(
|
|
@@ -75,15 +75,15 @@ const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, V = { cla
|
|
|
75
75
|
])
|
|
76
76
|
])
|
|
77
77
|
]),
|
|
78
|
-
e("div",
|
|
78
|
+
e("div", z, [
|
|
79
79
|
t[8] || (t[8] = e("h3", { class: "font-bold" }, "Danger Zone", -1)),
|
|
80
|
-
e("div",
|
|
80
|
+
e("div", L, [
|
|
81
81
|
t[7] || (t[7] = e("div", null, [
|
|
82
82
|
e("h4", null, "Delete Collection"),
|
|
83
83
|
e("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")
|
|
84
84
|
], -1)),
|
|
85
85
|
n(l(M), {
|
|
86
|
-
|
|
86
|
+
size: "sm",
|
|
87
87
|
variant: "danger",
|
|
88
88
|
onClick: t[0] || (t[0] = (w) => l(s).show())
|
|
89
89
|
}, {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as m, ref as u, createBlock as
|
|
1
|
+
import { defineComponent as m, ref as u, createBlock as f, openBlock as d, unref as p, withCtx as C, createElementVNode as v, createVNode as n } from "vue";
|
|
2
2
|
import { ScalarModal as _ } from "@scalar/components";
|
|
3
3
|
import x from "../../components/Sidebar/Actions/SidebarListElementForm.vue.js";
|
|
4
4
|
import S from "./EnvironmentColors.vue.js";
|
|
5
|
-
const b = { class: "flex flex-col gap-4" },
|
|
5
|
+
const b = { class: "flex flex-col gap-4" }, B = /* @__PURE__ */ m({
|
|
6
6
|
__name: "EnvironmentColorModal",
|
|
7
7
|
props: {
|
|
8
8
|
state: {},
|
|
9
9
|
selectedColor: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["cancel", "submit"],
|
|
12
|
-
setup(
|
|
13
|
-
const s =
|
|
12
|
+
setup(a, { emit: r }) {
|
|
13
|
+
const s = a, o = r, e = u(""), c = (t) => {
|
|
14
14
|
e.value = t;
|
|
15
15
|
}, i = () => {
|
|
16
16
|
o("submit", e.value), e.value = "";
|
|
17
17
|
};
|
|
18
|
-
return (t, l) => (
|
|
18
|
+
return (t, l) => (d(), f(p(_), {
|
|
19
19
|
size: "xxs",
|
|
20
20
|
state: t.state,
|
|
21
21
|
title: "Edit Environment Color"
|
|
@@ -38,5 +38,5 @@ const b = { class: "flex flex-col gap-4" }, M = /* @__PURE__ */ m({
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
B as default
|
|
42
42
|
};
|
|
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
33
33
|
}));
|
|
34
34
|
}, f = (o) => {
|
|
35
35
|
o?.createNew && g.name === "request" && d();
|
|
36
|
-
}, v = "2.17.
|
|
36
|
+
}, v = "2.17.8";
|
|
37
37
|
return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (o, e) => (i(), l("div", W, [
|
|
38
38
|
s("div", {
|
|
39
39
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.17.
|
|
21
|
+
"version": "2.17.8",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -326,25 +326,25 @@
|
|
|
326
326
|
"whatwg-mimetype": "^4.0.0",
|
|
327
327
|
"yaml": "^2.8.0",
|
|
328
328
|
"zod": "^4.1.11",
|
|
329
|
-
"@scalar/
|
|
329
|
+
"@scalar/analytics-client": "1.0.1",
|
|
330
330
|
"@scalar/draggable": "0.3.0",
|
|
331
331
|
"@scalar/helpers": "0.2.6",
|
|
332
332
|
"@scalar/import": "0.4.43",
|
|
333
|
+
"@scalar/components": "0.16.18",
|
|
333
334
|
"@scalar/icons": "0.5.2",
|
|
334
|
-
"@scalar/analytics-client": "1.0.1",
|
|
335
|
-
"@scalar/oas-utils": "0.6.14",
|
|
336
335
|
"@scalar/json-magic": "0.8.10",
|
|
336
|
+
"@scalar/oas-utils": "0.6.15",
|
|
337
|
+
"@scalar/openapi-parser": "0.23.12",
|
|
337
338
|
"@scalar/object-utils": "1.2.20",
|
|
338
|
-
"@scalar/openapi-parser": "0.23.11",
|
|
339
|
-
"@scalar/postman-to-openapi": "0.3.55",
|
|
340
339
|
"@scalar/openapi-types": "0.5.3",
|
|
341
|
-
"@scalar/
|
|
340
|
+
"@scalar/postman-to-openapi": "0.3.56",
|
|
341
|
+
"@scalar/sidebar": "0.7.8",
|
|
342
|
+
"@scalar/snippetz": "0.6.3",
|
|
342
343
|
"@scalar/themes": "0.13.26",
|
|
343
344
|
"@scalar/types": "0.5.6",
|
|
344
|
-
"@scalar/use-codemirror": "0.13.
|
|
345
|
-
"@scalar/snippetz": "0.6.3",
|
|
345
|
+
"@scalar/use-codemirror": "0.13.12",
|
|
346
346
|
"@scalar/use-hooks": "0.3.5",
|
|
347
|
-
"@scalar/workspace-store": "0.24.
|
|
347
|
+
"@scalar/workspace-store": "0.24.5",
|
|
348
348
|
"@scalar/use-toasts": "0.9.1"
|
|
349
349
|
},
|
|
350
350
|
"devDependencies": {
|