@scalar/api-client 2.0.38 → 2.0.39
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 +18 -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.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/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/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.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItem.vue2.js +56 -48
- 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/Servers/Servers.vue2.js +17 -17
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAoFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;cAJS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;AAiLH,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,62 +1,63 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as k, ref as w, openBlock as l, createElementBlock as s, Fragment as g, createElementVNode as c, unref as a, createVNode as i, withModifiers as N, createCommentVNode as u, withCtx as x, createBlock as $ } from "vue";
|
|
2
2
|
import D from "./Actions/DeleteSidebarListElement.vue.js";
|
|
3
|
-
import { useModal as M, ScalarIcon as
|
|
4
|
-
import { useClipboard as
|
|
5
|
-
const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
|
|
3
|
+
import { useModal as M, ScalarIcon as m, ScalarModal as A } from "@scalar/components";
|
|
4
|
+
import { useClipboard as S } from "../../hooks/useClipboard.js";
|
|
5
|
+
const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" }, z = /* @__PURE__ */ k({
|
|
6
6
|
__name: "SidebarListElementActions",
|
|
7
7
|
props: {
|
|
8
8
|
variable: {}
|
|
9
9
|
},
|
|
10
10
|
emits: ["delete"],
|
|
11
|
-
setup(
|
|
12
|
-
const { variable:
|
|
11
|
+
setup(d, { emit: p }) {
|
|
12
|
+
const { variable: v } = d, b = p, t = w({ action: "None", name: "" }), n = M(), { copyToClipboard: f } = S();
|
|
13
13
|
function h(e) {
|
|
14
|
-
t.value = { action: e, name:
|
|
14
|
+
t.value = { action: e, name: v.name }, n.show();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function C() {
|
|
17
17
|
n.hide(), t.value = { action: "None", name: "" };
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
19
|
+
function y(e) {
|
|
20
|
+
b("delete", e), C();
|
|
21
21
|
}
|
|
22
|
-
return (e, o) => (l(),
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
return (e, o) => (l(), s(g, null, [
|
|
23
|
+
c("div", B, [
|
|
24
|
+
c("button", {
|
|
25
25
|
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
|
|
26
26
|
type: "button",
|
|
27
|
-
onClick: o[0] || (o[0] = (
|
|
27
|
+
onClick: o[0] || (o[0] = (r) => a(f)(e.variable.name))
|
|
28
28
|
}, [
|
|
29
|
-
|
|
29
|
+
i(a(m), {
|
|
30
30
|
class: "h-3 w-3",
|
|
31
31
|
icon: "Clipboard"
|
|
32
32
|
})
|
|
33
33
|
]),
|
|
34
|
-
e.variable.isDefault ?
|
|
34
|
+
e.variable.isDefault ? u("", !0) : (l(), s("button", {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",
|
|
37
37
|
type: "button",
|
|
38
|
-
onClick: o[1] || (o[1] =
|
|
38
|
+
onClick: o[1] || (o[1] = N((r) => h(
|
|
39
39
|
"Delete"
|
|
40
40
|
/* Delete */
|
|
41
41
|
), ["prevent"]))
|
|
42
42
|
}, [
|
|
43
|
-
|
|
43
|
+
i(a(m), {
|
|
44
44
|
class: "h-3.5 w-3.5",
|
|
45
45
|
icon: "Close"
|
|
46
46
|
})
|
|
47
47
|
]))
|
|
48
48
|
]),
|
|
49
|
-
|
|
49
|
+
i(a(A), {
|
|
50
|
+
size: "sm",
|
|
50
51
|
state: a(n),
|
|
51
52
|
title: `${t.value.action} ${t.value.name}`
|
|
52
53
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
t.value.action === "Delete" ? (l(),
|
|
54
|
+
default: x(() => [
|
|
55
|
+
t.value.action === "Delete" ? (l(), $(D, {
|
|
55
56
|
key: 0,
|
|
56
57
|
variableName: t.value.name,
|
|
57
|
-
|
|
58
|
-
onDelete: o[2] || (o[2] = (
|
|
59
|
-
}, null, 8, ["variableName"])) :
|
|
58
|
+
warningMessage: "Are you sure you want to delete this cookie?",
|
|
59
|
+
onDelete: o[2] || (o[2] = (r) => y(e.variable.uid))
|
|
60
|
+
}, null, 8, ["variableName"])) : u("", !0)
|
|
60
61
|
]),
|
|
61
62
|
_: 1
|
|
62
63
|
}, 8, ["state", "title"])
|
|
@@ -64,5 +65,5 @@ const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
|
|
|
64
65
|
}
|
|
65
66
|
});
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
z as default
|
|
68
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/SubpageHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/SubpageHeader.vue"],"names":[],"mappings":"AA0CA,iBAAS,cAAc;qBAmFO,GAAG;EAehC;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
setup(_) {
|
|
6
|
-
return (o, h) => {
|
|
7
|
-
const n = l("router-link");
|
|
8
|
-
return s(), c("div", p, [
|
|
9
|
-
t("div", m, [
|
|
10
|
-
e(n, {
|
|
11
|
-
class: "text-c-2 text-sm font-medium gitbook-show ml-1 flex items-center p-1.5 hover:bg-b-3 rounded cursor-pointer gap-1 active:text-c-1 no-underline",
|
|
12
|
-
to: "/workspace/default/request/default"
|
|
13
|
-
}, {
|
|
14
|
-
default: a(() => [
|
|
15
|
-
e(d(u), {
|
|
16
|
-
icon: "ChevronLeft",
|
|
17
|
-
size: "sm"
|
|
18
|
-
}),
|
|
19
|
-
f
|
|
20
|
-
]),
|
|
21
|
-
_: 1
|
|
22
|
-
})
|
|
23
|
-
]),
|
|
24
|
-
i(o.$slots, "default")
|
|
25
|
-
]);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
});
|
|
1
|
+
import o from "./SubpageHeader.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-49d7e652"]]);
|
|
29
5
|
export {
|
|
30
|
-
|
|
6
|
+
p as default
|
|
31
7
|
};
|
|
@@ -1,4 +1,33 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as a, resolveComponent as d, openBlock as l, createElementBlock as p, createElementVNode as r, createVNode as t, unref as o, withCtx as u, renderSlot as i, pushScopeId as m, popScopeId as _ } from "vue";
|
|
2
|
+
import { ScalarIcon as f } from "@scalar/components";
|
|
3
|
+
import { useRoute as h } from "vue-router";
|
|
4
|
+
const v = (e) => (m("data-v-49d7e652"), e = e(), _(), e), x = { class: "flex flex-1 flex-col rounded-lg rounded-b-none rounded-r-none pt-0 h-full bg-b-2 relative darkmode-subpage-wrapper" }, b = { class: "lg:min-h-header items-center w-full p-1 t-app__top-container flex items-center" }, k = /* @__PURE__ */ v(() => /* @__PURE__ */ r("span", null, "Back To Requests", -1)), I = /* @__PURE__ */ a({
|
|
5
|
+
__name: "SubpageHeader",
|
|
6
|
+
setup(e) {
|
|
7
|
+
const n = h();
|
|
8
|
+
return (s, g) => {
|
|
9
|
+
const c = d("router-link");
|
|
10
|
+
return l(), p("div", x, [
|
|
11
|
+
r("div", b, [
|
|
12
|
+
t(c, {
|
|
13
|
+
class: "text-c-2 text-sm font-medium ml-1 flex items-center p-1.5 hover:bg-b-3 rounded cursor-pointer gap-1 active:text-c-1 no-underline dark:hover:bg-b-2",
|
|
14
|
+
to: `/workspace/${o(n).params.workspace}/request/default`
|
|
15
|
+
}, {
|
|
16
|
+
default: u(() => [
|
|
17
|
+
t(o(f), {
|
|
18
|
+
icon: "ChevronLeft",
|
|
19
|
+
size: "sm"
|
|
20
|
+
}),
|
|
21
|
+
k
|
|
22
|
+
]),
|
|
23
|
+
_: 1
|
|
24
|
+
}, 8, ["to"])
|
|
25
|
+
]),
|
|
26
|
+
i(s.$slots, "default", {}, void 0, !0)
|
|
27
|
+
]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
2
31
|
export {
|
|
3
|
-
|
|
32
|
+
I as default
|
|
4
33
|
};
|