@scalar/api-client 2.1.10 → 2.1.12
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 +39 -0
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +18 -18
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.js +27 -23
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +32 -31
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +43 -42
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +26 -25
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +31 -30
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +35 -34
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +28 -27
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +18 -17
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +14 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +112 -103
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +7 -0
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/DropEventListener.vue.js +75 -0
- package/dist/components/ImportCollection/DropEventListener.vue2.js +4 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts +12 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +30 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue2.js +4 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +20 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +101 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue2.js +4 -0
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +22 -0
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/ImportNowButton.vue.js +85 -0
- package/dist/components/ImportCollection/ImportNowButton.vue2.js +4 -0
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +16 -0
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +19 -0
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +7 -0
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/PasteEventListener.vue.js +24 -0
- package/dist/components/ImportCollection/PasteEventListener.vue2.js +4 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +7 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +15 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue2.js +4 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +28 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +55 -0
- package/dist/components/ImportCollection/index.d.ts +2 -0
- package/dist/components/ImportCollection/index.d.ts.map +1 -0
- package/dist/components/ImportCollection/index.js +4 -0
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts +5 -0
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.js +20 -0
- package/dist/components/ImportCollection/utils/isDocument.d.ts +3 -0
- package/dist/components/ImportCollection/utils/isDocument.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/isDocument.js +7 -0
- package/dist/components/ImportCollection/utils/isUrl.d.ts +3 -0
- package/dist/components/ImportCollection/utils/isUrl.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/isUrl.js +6 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +129 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +258 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +130 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +54 -41
- package/dist/libs/send-request.d.ts +37 -1
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +24 -19
- package/dist/router.js +1 -1
- package/dist/store/import-spec.d.ts +128 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +24 -23
- package/dist/store/store.d.ts +256 -4
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -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 +82 -88
- 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 +106 -97
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +26 -26
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +39 -39
- package/package.json +13 -8
- package/dist/views/Components/Schemas/Schemas.vue.d.ts +0 -3
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseEmpty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-43fc1968"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as y, onMounted as k, onBeforeUnmount as R, openBlock as a, createElementBlock as c, createElementVNode as e, unref as t, createTextVNode as s, toDisplayString as v, createCommentVNode as p, createVNode as n, pushScopeId as g, popScopeId as b } from "vue";
|
|
2
|
+
import C from "../../../assets/computer.ascii.js";
|
|
3
|
+
import B from "../../../components/ScalarAsciiArt.vue.js";
|
|
4
4
|
import u from "../../../components/ScalarHotkey.vue.js";
|
|
5
|
-
import { useWorkspace as
|
|
5
|
+
import { useWorkspace as N } from "../../../store/store.js";
|
|
6
6
|
import { hotKeyBus as d } from "../../../libs/event-busses/hot-keys-bus.js";
|
|
7
|
-
import { executeRequestBus as
|
|
7
|
+
import { executeRequestBus as S } from "../../../libs/event-busses/execute-request-bus.js";
|
|
8
8
|
import { commandPaletteBus as q } from "../../../libs/event-busses/command-palette-bus.js";
|
|
9
|
-
const f = (
|
|
9
|
+
const f = (o) => (g("data-v-43fc1968"), o = o(), b(), o), V = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, w = { class: "flex h-[calc(100%_-_50px)] flex-col items-center justify-center" }, E = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "scalar-version-number"
|
|
12
|
-
},
|
|
12
|
+
}, I = /* @__PURE__ */ f(() => /* @__PURE__ */ e("b", null, "Beta", -1)), P = /* @__PURE__ */ f(() => /* @__PURE__ */ e("div", { class: "mt-1" }, [
|
|
13
13
|
/* @__PURE__ */ e("a", {
|
|
14
14
|
href: "https://github.com/scalar/scalar/issues/2669",
|
|
15
15
|
target: "_blank"
|
|
16
|
-
}, "Roadmap")
|
|
17
|
-
], -1)),
|
|
16
|
+
}, " Roadmap ")
|
|
17
|
+
], -1)), A = { class: "text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm" }, T = /* @__PURE__ */ y({
|
|
18
18
|
__name: "ResponseEmpty",
|
|
19
|
-
setup(
|
|
20
|
-
const { isReadOnly: _, activeWorkspace: h } =
|
|
19
|
+
setup(o) {
|
|
20
|
+
const { isReadOnly: _, activeWorkspace: h } = N(), r = () => {
|
|
21
21
|
q.emit({ commandName: "Create Request" });
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
return
|
|
26
|
-
e("div",
|
|
27
|
-
|
|
28
|
-
s(" Scalar
|
|
29
|
-
|
|
22
|
+
}, i = (l) => {
|
|
23
|
+
l.openCommandPaletteRequest && r();
|
|
24
|
+
}, x = "2.1.12";
|
|
25
|
+
return k(() => d.on(i)), R(() => d.off(i)), (l, m) => (a(), c("div", V, [
|
|
26
|
+
e("div", w, [
|
|
27
|
+
t(h).isReadOnly ? p("", !0) : (a(), c("div", E, [
|
|
28
|
+
s(" Scalar V" + v(t(x)) + " ", 1),
|
|
29
|
+
I,
|
|
30
30
|
s(" Release "),
|
|
31
|
-
|
|
31
|
+
P
|
|
32
32
|
])),
|
|
33
|
-
n(
|
|
34
|
-
art:
|
|
33
|
+
n(B, {
|
|
34
|
+
art: t(C),
|
|
35
35
|
class: "text-c-3"
|
|
36
36
|
}, null, 8, ["art"])
|
|
37
37
|
]),
|
|
38
|
-
e("div",
|
|
38
|
+
e("div", A, [
|
|
39
39
|
e("button", {
|
|
40
40
|
class: "flex items-center gap-1.5",
|
|
41
41
|
type: "button",
|
|
42
|
-
onClick:
|
|
42
|
+
onClick: m[0] || (m[0] = (K) => t(S).emit())
|
|
43
43
|
}, [
|
|
44
44
|
s(" Send Request "),
|
|
45
45
|
n(u, { hotkey: "↵" })
|
|
46
46
|
]),
|
|
47
|
-
|
|
47
|
+
t(_) ? p("", !0) : (a(), c("button", {
|
|
48
48
|
key: 0,
|
|
49
49
|
class: "flex items-center gap-1.5",
|
|
50
50
|
type: "button",
|
|
@@ -58,5 +58,5 @@ const f = (t) => (R("data-v-54db086c"), t = t(), v(), t), B = { class: "relative
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
T as default
|
|
62
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AA07BA,wBAKG"}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as R, computed as O, ref as M, openBlock as u, createElementBlock as W, createElementVNode as o, createVNode as t, unref as e, withCtx as s, Fragment as A, renderList as I, createBlock as x, withModifiers as r, normalizeClass as L, toDisplayString as z } from "vue";
|
|
2
2
|
import U from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
3
3
|
import V from "../../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
4
|
-
import { useModal as
|
|
4
|
+
import { useModal as C, ScalarDropdown as $, ScalarDropdownItem as m, ScalarIcon as i, ScalarTooltip as q, ScalarButton as S, ScalarDropdownDivider as F, ScalarModal as N } from "@scalar/components";
|
|
5
5
|
import { useRouter as P } from "vue-router";
|
|
6
6
|
import { useWorkspace as Y } from "../../../store/store.js";
|
|
7
7
|
import { commandPaletteBus as G } from "../../../libs/event-busses/command-palette-bus.js";
|
|
8
|
-
const H = { class: "
|
|
8
|
+
const H = { class: "flex items-center text-sm w-[inherit]" }, J = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, K = { class: "line-clamp-1 text-left w-[calc(100%-10px)]" }, Q = { class: "text-ellipsis overflow-hidden" }, X = /* @__PURE__ */ o("span", null, "Rename", -1), Z = /* @__PURE__ */ o("span", null, "Delete", -1), ee = /* @__PURE__ */ o("div", { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, [
|
|
9
9
|
/* @__PURE__ */ o("div", { class: "flex items-center text-c-2" }, [
|
|
10
10
|
/* @__PURE__ */ o("span", null, "Only workspace cannot be deleted.")
|
|
11
11
|
])
|
|
12
|
-
], -1), te = /* @__PURE__ */ o("span", null, "Delete", -1), se = { class: "flex items-center justify-center h-4 w-4" }, ne = /* @__PURE__ */ o("span", null, "Create Workspace", -1), ue = /* @__PURE__ */
|
|
12
|
+
], -1), te = /* @__PURE__ */ o("span", null, "Delete", -1), se = { class: "flex items-center justify-center h-4 w-4" }, ne = /* @__PURE__ */ o("span", null, "Create Workspace", -1), ue = /* @__PURE__ */ R({
|
|
13
13
|
__name: "WorkspaceDropdown",
|
|
14
14
|
setup(oe) {
|
|
15
|
-
const { activeWorkspace: f, workspaces: d, workspaceMutators: _ } = Y(), { push: g } = P(),
|
|
15
|
+
const { activeWorkspace: f, workspaces: d, workspaceMutators: _ } = Y(), { push: g } = P(), T = (n) => {
|
|
16
16
|
n !== f.value.uid && g(`/workspace/${n}`);
|
|
17
|
-
}, b =
|
|
18
|
-
h.value = d[n].name,
|
|
19
|
-
},
|
|
20
|
-
n.trim() && (_.edit(
|
|
17
|
+
}, b = O(() => Object.keys(d).length === 1), E = () => G.emit({ commandName: "Create Workspace" }), h = M(""), c = M(""), v = C(), w = C(), y = (n) => {
|
|
18
|
+
h.value = d[n].name, c.value = n, v.show();
|
|
19
|
+
}, j = (n) => {
|
|
20
|
+
n.trim() && (_.edit(c.value, "name", n.trim()), v.hide());
|
|
21
21
|
}, D = (n) => {
|
|
22
|
-
h.value = d[n].name,
|
|
23
|
-
},
|
|
22
|
+
h.value = d[n].name, c.value = n, w.show();
|
|
23
|
+
}, B = async () => {
|
|
24
24
|
if (!b.value) {
|
|
25
|
-
const n = f.value.uid ===
|
|
26
|
-
if (delete a[
|
|
25
|
+
const n = f.value.uid === c.value, a = { ...d };
|
|
26
|
+
if (delete a[c.value], _.delete(c.value), n) {
|
|
27
27
|
const p = Object.keys(a)[0];
|
|
28
28
|
await g(`/workspace/${p}/`);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
w.hide();
|
|
32
32
|
};
|
|
33
|
-
return (n, a) => (u(), W(
|
|
33
|
+
return (n, a) => (u(), W("div", null, [
|
|
34
34
|
o("div", H, [
|
|
35
|
-
t(e(
|
|
35
|
+
t(e($), null, {
|
|
36
36
|
items: s(() => [
|
|
37
|
-
(u(!0), W(
|
|
37
|
+
(u(!0), W(A, null, I(e(d), (p, l) => (u(), x(e(m), {
|
|
38
38
|
key: l,
|
|
39
39
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden w-full",
|
|
40
|
-
onClick:
|
|
40
|
+
onClick: r((k) => T(l), ["stop"])
|
|
41
41
|
}, {
|
|
42
42
|
default: s(() => [
|
|
43
43
|
o("div", {
|
|
@@ -52,13 +52,13 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
52
52
|
thickness: "3.5"
|
|
53
53
|
})
|
|
54
54
|
], 2),
|
|
55
|
-
o("span", Q,
|
|
56
|
-
t(e(
|
|
55
|
+
o("span", Q, z(p.name), 1),
|
|
56
|
+
t(e($), { teleport: ".scalar-client" }, {
|
|
57
57
|
items: s(() => [
|
|
58
58
|
t(e(m), {
|
|
59
59
|
class: "flex gap-2",
|
|
60
|
-
onMousedown: (
|
|
61
|
-
onTouchend:
|
|
60
|
+
onMousedown: (k) => y(l),
|
|
61
|
+
onTouchend: r((k) => y(l), ["prevent"])
|
|
62
62
|
}, {
|
|
63
63
|
default: s(() => [
|
|
64
64
|
t(e(i), {
|
|
@@ -71,7 +71,7 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
71
71
|
]),
|
|
72
72
|
_: 2
|
|
73
73
|
}, 1032, ["onMousedown", "onTouchend"]),
|
|
74
|
-
b.value ? (u(),
|
|
74
|
+
b.value ? (u(), x(e(q), {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: "z-10",
|
|
77
77
|
side: "bottom"
|
|
@@ -80,9 +80,9 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
80
80
|
t(e(m), {
|
|
81
81
|
class: "flex gap-2 w-full",
|
|
82
82
|
disabled: "",
|
|
83
|
-
onMousedown: a[0] || (a[0] =
|
|
83
|
+
onMousedown: a[0] || (a[0] = r(() => {
|
|
84
84
|
}, ["prevent"])),
|
|
85
|
-
onTouchend: a[1] || (a[1] =
|
|
85
|
+
onTouchend: a[1] || (a[1] = r(() => {
|
|
86
86
|
}, ["prevent"]))
|
|
87
87
|
}, {
|
|
88
88
|
default: s(() => [
|
|
@@ -101,11 +101,11 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
101
101
|
ee
|
|
102
102
|
]),
|
|
103
103
|
_: 1
|
|
104
|
-
})) : (u(),
|
|
104
|
+
})) : (u(), x(e(m), {
|
|
105
105
|
key: 1,
|
|
106
106
|
class: "flex !gap-2",
|
|
107
|
-
onMousedown:
|
|
108
|
-
onTouchend:
|
|
107
|
+
onMousedown: r((k) => D(l), ["prevent"]),
|
|
108
|
+
onTouchend: r((k) => D(l), ["prevent"])
|
|
109
109
|
}, {
|
|
110
110
|
default: s(() => [
|
|
111
111
|
t(e(i), {
|
|
@@ -120,7 +120,7 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
120
120
|
}, 1032, ["onMousedown", "onTouchend"]))
|
|
121
121
|
]),
|
|
122
122
|
default: s(() => [
|
|
123
|
-
t(e(
|
|
123
|
+
t(e(S), {
|
|
124
124
|
class: "px-0.5 py-0 hover:bg-b-3 group-hover/item:flex aspect-square ml-auto -mr-1 h-fit",
|
|
125
125
|
size: "sm",
|
|
126
126
|
type: "button",
|
|
@@ -143,7 +143,7 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
143
143
|
t(e(F)),
|
|
144
144
|
t(e(m), {
|
|
145
145
|
class: "flex items-center gap-1.5",
|
|
146
|
-
onClick:
|
|
146
|
+
onClick: E
|
|
147
147
|
}, {
|
|
148
148
|
default: s(() => [
|
|
149
149
|
o("div", se, [
|
|
@@ -159,14 +159,14 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
159
159
|
})
|
|
160
160
|
]),
|
|
161
161
|
default: s(() => [
|
|
162
|
-
t(e(
|
|
162
|
+
t(e(S), {
|
|
163
163
|
class: "font-normal h-full justify-start line-clamp-1 py-1.5 px-1.5 text-c-1 hover:bg-b-2 w-fit",
|
|
164
164
|
fullWidth: "",
|
|
165
165
|
variant: "ghost"
|
|
166
166
|
}, {
|
|
167
167
|
default: s(() => [
|
|
168
168
|
o("div", J, [
|
|
169
|
-
o("h2", K,
|
|
169
|
+
o("h2", K, z(e(f).name), 1),
|
|
170
170
|
t(e(i), {
|
|
171
171
|
class: "size-2.5",
|
|
172
172
|
icon: "ChevronDown",
|
|
@@ -180,22 +180,22 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
180
180
|
_: 1
|
|
181
181
|
})
|
|
182
182
|
]),
|
|
183
|
-
t(e(
|
|
183
|
+
t(e(N), {
|
|
184
184
|
size: "xxs",
|
|
185
|
-
state: e(
|
|
185
|
+
state: e(w),
|
|
186
186
|
title: "Delete workspace"
|
|
187
187
|
}, {
|
|
188
188
|
default: s(() => [
|
|
189
189
|
t(U, {
|
|
190
190
|
variableName: h.value,
|
|
191
191
|
warningMessage: "This cannot be undone. You’re about to delete the workspace and everything inside it.",
|
|
192
|
-
onClose: a[2] || (a[2] = (p) => e(
|
|
193
|
-
onDelete:
|
|
192
|
+
onClose: a[2] || (a[2] = (p) => e(w).hide()),
|
|
193
|
+
onDelete: B
|
|
194
194
|
}, null, 8, ["variableName"])
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
197
197
|
}, 8, ["state"]),
|
|
198
|
-
t(e(
|
|
198
|
+
t(e(N), {
|
|
199
199
|
size: "xxs",
|
|
200
200
|
state: e(v),
|
|
201
201
|
title: "Rename Workspace"
|
|
@@ -204,12 +204,12 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
204
204
|
t(V, {
|
|
205
205
|
name: h.value,
|
|
206
206
|
onClose: a[3] || (a[3] = (p) => e(v).hide()),
|
|
207
|
-
onEdit:
|
|
207
|
+
onEdit: j
|
|
208
208
|
}, null, 8, ["name"])
|
|
209
209
|
]),
|
|
210
210
|
_: 1
|
|
211
211
|
}, 8, ["state"])
|
|
212
|
-
]
|
|
212
|
+
]));
|
|
213
213
|
}
|
|
214
214
|
});
|
|
215
215
|
export {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.1.
|
|
21
|
+
"version": "2.1.12",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -77,6 +77,10 @@
|
|
|
77
77
|
"import": "./dist/components/Sidebar/index.js",
|
|
78
78
|
"types": "./dist/components/Sidebar/index.d.ts"
|
|
79
79
|
},
|
|
80
|
+
"./components/ImportCollection": {
|
|
81
|
+
"import": "./dist/components/ImportCollection/index.js",
|
|
82
|
+
"types": "./dist/components/ImportCollection/index.d.ts"
|
|
83
|
+
},
|
|
80
84
|
"./components/HttpMethod": {
|
|
81
85
|
"import": "./dist/components/HttpMethod/index.js",
|
|
82
86
|
"types": "./dist/components/HttpMethod/index.d.ts"
|
|
@@ -124,17 +128,18 @@
|
|
|
124
128
|
"vue": "^3.4.29",
|
|
125
129
|
"vue-router": "^4.3.0",
|
|
126
130
|
"whatwg-mimetype": "^4.0.0",
|
|
131
|
+
"yaml": "^2.4.5",
|
|
127
132
|
"zod": "^3.23.8",
|
|
128
|
-
"@scalar/components": "0.12.
|
|
133
|
+
"@scalar/components": "0.12.50",
|
|
129
134
|
"@scalar/draggable": "0.1.5",
|
|
130
135
|
"@scalar/icons": "0.1.0",
|
|
131
|
-
"@scalar/oas-utils": "0.2.
|
|
132
|
-
"@scalar/object-utils": "1.1.9",
|
|
133
|
-
"@scalar/openapi-parser": "0.8.4",
|
|
136
|
+
"@scalar/oas-utils": "0.2.51",
|
|
134
137
|
"@scalar/openapi-types": "0.1.1",
|
|
135
|
-
"@scalar/
|
|
136
|
-
"@scalar/
|
|
137
|
-
"@scalar/
|
|
138
|
+
"@scalar/object-utils": "1.1.9",
|
|
139
|
+
"@scalar/openapi-parser": "0.8.5",
|
|
140
|
+
"@scalar/themes": "0.9.33",
|
|
141
|
+
"@scalar/types": "0.0.12",
|
|
142
|
+
"@scalar/use-codemirror": "0.11.16",
|
|
138
143
|
"@scalar/use-toasts": "0.7.6",
|
|
139
144
|
"@scalar/use-tooltip": "1.0.2"
|
|
140
145
|
},
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
3
|
-
//# sourceMappingURL=Schemas.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schemas.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Components/Schemas/Schemas.vue"],"names":[],"mappings":";AA0DA,wBAKG"}
|