@scalar/api-client 2.0.37 → 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 +28 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +15 -12
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +47 -47
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +11 -8
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +23 -20
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +7 -4
- 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 +19 -15
- 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/layouts/App/create-api-client-app.d.ts +5 -5
- package/dist/layouts/Modal/create-api-client-modal.d.ts +10 -10
- package/dist/libs/create-client.d.ts +6 -5
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +12 -12
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +185 -181
- 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 +122 -103
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +8 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +5 -152
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +166 -2
- package/dist/views/Servers/Servers.vue2.js +17 -17
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.0.39
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 016ff7d: fix: dropdown add variable redirection
|
|
8
|
+
- e8cf2f5: fix: back to requests link
|
|
9
|
+
- c1ada84: feat(api-client): add the ability to delete and rename folders and collections
|
|
10
|
+
- 3031929: feat: command palette empty state
|
|
11
|
+
- c1ada84: fix: modal layout and size
|
|
12
|
+
- 808eafb: fix: word break in sidebar and word wrapping from ellipsis
|
|
13
|
+
- 7853b8d: feat: cookie removal
|
|
14
|
+
- Updated dependencies [c1ada84]
|
|
15
|
+
- Updated dependencies [c1ada84]
|
|
16
|
+
- Updated dependencies [e18029f]
|
|
17
|
+
- @scalar/components@0.12.25
|
|
18
|
+
- @scalar/themes@0.9.18
|
|
19
|
+
- @scalar/oas-utils@0.2.21
|
|
20
|
+
|
|
21
|
+
## 2.0.38
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- de25d01: feat(api-client): add the ability to delete and rename folders and collections
|
|
26
|
+
- Updated dependencies [de25d01]
|
|
27
|
+
- @scalar/components@0.12.24
|
|
28
|
+
- @scalar/themes@0.9.17
|
|
29
|
+
- @scalar/oas-utils@0.2.20
|
|
30
|
+
|
|
3
31
|
## 2.0.37
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteCollection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteCollection.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CommandPaletteCollection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteCollection.vue"],"names":[],"mappings":";;;;;AAiNA,wBAMG"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as p, ref as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { ScalarButton as
|
|
1
|
+
import { defineComponent as p, ref as a, onMounted as m, openBlock as f, createElementBlock as h, createElementVNode as e, withDirectives as _, withKeys as x, withModifiers as v, vModelText as w, createVNode as b, unref as C, withCtx as y, createTextVNode as g } from "vue";
|
|
2
|
+
import { useWorkspace as k } from "../../store/workspace.js";
|
|
3
|
+
import { ScalarButton as N } from "@scalar/components";
|
|
4
4
|
const M = { class: "flex w-full flex-col gap-3" }, V = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, B = /* @__PURE__ */ e("label", {
|
|
5
5
|
class: "absolute w-full h-full opacity-0 cursor-text",
|
|
6
6
|
for: "collectionanme"
|
|
7
7
|
}, null, -1), K = ["onKeydown"], E = { class: "flex" }, I = /* @__PURE__ */ e("div", { class: "flex flex-1 gap-2 max-h-8" }, null, -1), P = /* @__PURE__ */ p({
|
|
8
8
|
__name: "CommandPaletteCollection",
|
|
9
9
|
emits: ["close"],
|
|
10
|
-
setup(S, { emit:
|
|
11
|
-
const
|
|
10
|
+
setup(S, { emit: c }) {
|
|
11
|
+
const i = c, { activeWorkspace: r, collectionMutators: u } = k(), o = a(""), l = () => {
|
|
12
12
|
u.add(
|
|
13
13
|
{
|
|
14
14
|
spec: {
|
|
@@ -20,20 +20,23 @@ const M = { class: "flex w-full flex-col gap-3" }, V = { class: "gap-3 rounded b
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
r.value.uid
|
|
23
|
-
),
|
|
24
|
-
}, n =
|
|
23
|
+
), i("close");
|
|
24
|
+
}, n = a(null);
|
|
25
25
|
return m(() => {
|
|
26
26
|
var t;
|
|
27
27
|
(t = n.value) == null || t.focus();
|
|
28
|
-
}), (t, s) => (f(),
|
|
28
|
+
}), (t, s) => (f(), h("div", M, [
|
|
29
29
|
e("div", V, [
|
|
30
30
|
B,
|
|
31
|
-
|
|
31
|
+
_(e("input", {
|
|
32
32
|
id: "collectionanme",
|
|
33
33
|
ref_key: "collectionInput",
|
|
34
34
|
ref: n,
|
|
35
35
|
"onUpdate:modelValue": s[0] || (s[0] = (d) => o.value = d),
|
|
36
|
+
autocomplete: "off",
|
|
36
37
|
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
38
|
+
"data-form-type": "other",
|
|
39
|
+
"data-lpignore": "true",
|
|
37
40
|
label: "Collection Name",
|
|
38
41
|
placeholder: "Collection Name",
|
|
39
42
|
onKeydown: x(v(l, ["prevent"]), ["enter"])
|
|
@@ -43,12 +46,12 @@ const M = { class: "flex w-full flex-col gap-3" }, V = { class: "gap-3 rounded b
|
|
|
43
46
|
]),
|
|
44
47
|
e("div", E, [
|
|
45
48
|
I,
|
|
46
|
-
b(C(
|
|
49
|
+
b(C(N), {
|
|
47
50
|
class: "max-h-8 text-xs p-0 px-3",
|
|
48
51
|
onClick: l
|
|
49
52
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
|
|
53
|
+
default: y(() => [
|
|
54
|
+
g(" Continue ")
|
|
52
55
|
]),
|
|
53
56
|
_: 1
|
|
54
57
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":";IAwIE,oCAAoC;eACzB,MAAM;;;;IADjB,oCAAoC;eACzB,MAAM;;;;AA+SnB,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,76 +1,76 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, ref as u, onMounted as x, openBlock as m, createElementBlock as h, createElementVNode as l, withDirectives as I, withKeys as M, withModifiers as R, vModelText as V, createVNode as a, unref as s, withCtx as n, Fragment as q, renderList as K, createBlock as W, createTextVNode as d, toDisplayString as v } from "vue";
|
|
2
2
|
import _ from "../HttpMethod/HttpMethod.vue.js";
|
|
3
|
-
import { useWorkspace as
|
|
4
|
-
import { ScalarDropdown as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
const
|
|
3
|
+
import { useWorkspace as j } from "../../store/workspace.js";
|
|
4
|
+
import { ScalarDropdown as z, ScalarDropdownItem as T, ScalarButton as w, ScalarIcon as F } from "@scalar/components";
|
|
5
|
+
import { useRouter as L } from "vue-router";
|
|
6
|
+
const P = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, A = /* @__PURE__ */ l("label", {
|
|
7
7
|
class: "absolute w-full h-full opacity-0 cursor-text",
|
|
8
8
|
for: "examplename"
|
|
9
|
-
}, null, -1),
|
|
9
|
+
}, null, -1), G = ["onKeydown"], H = { class: "flex gap-2" }, J = { class: "flex flex-1 max-h-8" }, O = { class: "flex items-center gap-2" }, Q = { class: "max-h-40 custom-scroll" }, oe = /* @__PURE__ */ B({
|
|
10
10
|
__name: "CommandPaletteExample",
|
|
11
11
|
props: {
|
|
12
12
|
metaData: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["close"],
|
|
15
|
-
setup(b) {
|
|
16
|
-
const
|
|
17
|
-
activeRequest:
|
|
18
|
-
activeWorkspace:
|
|
19
|
-
activeWorkspaceRequests:
|
|
20
|
-
requests:
|
|
21
|
-
requestExampleMutators:
|
|
22
|
-
} =
|
|
15
|
+
setup(b, { emit: k }) {
|
|
16
|
+
const y = b, g = k, { push: C } = L(), {
|
|
17
|
+
activeRequest: D,
|
|
18
|
+
activeWorkspace: E,
|
|
19
|
+
activeWorkspaceRequests: S,
|
|
20
|
+
requests: N,
|
|
21
|
+
requestExampleMutators: $
|
|
22
|
+
} = j(), c = u(""), o = u(
|
|
23
23
|
// Ensure we pre-select the correct request
|
|
24
|
-
|
|
25
|
-
), p = (e) =>
|
|
24
|
+
N[y.metaData ?? ""] ?? D.value
|
|
25
|
+
), p = (e) => o.value = e, i = u(null);
|
|
26
26
|
x(() => {
|
|
27
27
|
var e;
|
|
28
|
-
return (e =
|
|
28
|
+
return (e = i.value) == null ? void 0 : e.focus();
|
|
29
29
|
});
|
|
30
30
|
const f = () => {
|
|
31
|
-
const e =
|
|
32
|
-
|
|
31
|
+
const e = $.add(
|
|
32
|
+
o.value,
|
|
33
33
|
c.value
|
|
34
34
|
);
|
|
35
|
-
e &&
|
|
36
|
-
`/workspace/${
|
|
37
|
-
);
|
|
35
|
+
e && (C(
|
|
36
|
+
`/workspace/${E.value.uid}/request/${o.value.uid}/examples/${e.uid}`
|
|
37
|
+
), g("close"));
|
|
38
38
|
};
|
|
39
39
|
return x(() => {
|
|
40
40
|
var e;
|
|
41
|
-
(e =
|
|
42
|
-
}), (e, r) => (m(), h("div",
|
|
43
|
-
l("div",
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
(e = i.value) == null || e.focus();
|
|
42
|
+
}), (e, r) => (m(), h("div", P, [
|
|
43
|
+
l("div", U, [
|
|
44
|
+
A,
|
|
45
|
+
I(l("input", {
|
|
46
46
|
id: "examplename",
|
|
47
47
|
ref_key: "exampleInput",
|
|
48
|
-
ref:
|
|
48
|
+
ref: i,
|
|
49
49
|
"onUpdate:modelValue": r[0] || (r[0] = (t) => c.value = t),
|
|
50
50
|
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
51
51
|
label: "Example Name",
|
|
52
52
|
placeholder: "Example Name",
|
|
53
|
-
onKeydown:
|
|
54
|
-
}, null, 40,
|
|
55
|
-
[
|
|
53
|
+
onKeydown: M(R(f, ["prevent"]), ["enter"])
|
|
54
|
+
}, null, 40, G), [
|
|
55
|
+
[V, c.value]
|
|
56
56
|
])
|
|
57
57
|
]),
|
|
58
|
-
l("div",
|
|
59
|
-
l("div",
|
|
60
|
-
|
|
58
|
+
l("div", H, [
|
|
59
|
+
l("div", J, [
|
|
60
|
+
a(s(z), {
|
|
61
61
|
placement: "bottom",
|
|
62
62
|
resize: ""
|
|
63
63
|
}, {
|
|
64
64
|
items: n(() => [
|
|
65
|
-
l("div",
|
|
66
|
-
(m(!0), h(
|
|
65
|
+
l("div", Q, [
|
|
66
|
+
(m(!0), h(q, null, K(s(S), (t) => (m(), W(s(T), {
|
|
67
67
|
key: t.uid,
|
|
68
68
|
class: "flex h-7 w-full items-center justify-between px-1 pr-[26px]",
|
|
69
|
-
onClick: (
|
|
69
|
+
onClick: (X) => p(t)
|
|
70
70
|
}, {
|
|
71
71
|
default: n(() => [
|
|
72
72
|
d(v(t.summary) + " ", 1),
|
|
73
|
-
|
|
73
|
+
a(_, {
|
|
74
74
|
method: t.method
|
|
75
75
|
}, null, 8, ["method"])
|
|
76
76
|
]),
|
|
@@ -79,18 +79,18 @@ const F = { class: "flex w-full flex-col gap-3" }, L = { class: "gap-3 rounded b
|
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
81
|
default: n(() => [
|
|
82
|
-
|
|
82
|
+
a(s(w), {
|
|
83
83
|
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
84
84
|
variant: "outlined",
|
|
85
|
-
onClick: r[1] || (r[1] = (t) => p(
|
|
85
|
+
onClick: r[1] || (r[1] = (t) => p(o.value))
|
|
86
86
|
}, {
|
|
87
87
|
default: n(() => [
|
|
88
|
-
d(v(
|
|
89
|
-
l("div",
|
|
90
|
-
|
|
91
|
-
method:
|
|
88
|
+
d(v(o.value.summary) + " ", 1),
|
|
89
|
+
l("div", O, [
|
|
90
|
+
a(_, {
|
|
91
|
+
method: o.value.method
|
|
92
92
|
}, null, 8, ["method"]),
|
|
93
|
-
|
|
93
|
+
a(s(F), {
|
|
94
94
|
class: "text-c-3",
|
|
95
95
|
icon: "ChevronDown",
|
|
96
96
|
size: "xs"
|
|
@@ -103,7 +103,7 @@ const F = { class: "flex w-full flex-col gap-3" }, L = { class: "gap-3 rounded b
|
|
|
103
103
|
_: 1
|
|
104
104
|
})
|
|
105
105
|
]),
|
|
106
|
-
|
|
106
|
+
a(s(w), {
|
|
107
107
|
class: "max-h-8 text-xs p-0 px-3",
|
|
108
108
|
onClick: f
|
|
109
109
|
}, {
|
|
@@ -117,5 +117,5 @@ const F = { class: "flex w-full flex-col gap-3" }, L = { class: "gap-3 rounded b
|
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
export {
|
|
120
|
-
|
|
120
|
+
oe as default
|
|
121
121
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteFolder.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteFolder.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CommandPaletteFolder.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteFolder.vue"],"names":[],"mappings":";;;;;AAgUA,wBAMG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, ref as
|
|
1
|
+
import { defineComponent as g, ref as r, computed as v, onMounted as y, openBlock as V, createElementBlock as k, createElementVNode as a, withDirectives as N, withKeys as S, withModifiers as F, vModelText as I, createVNode as n, unref as i, withCtx as c, normalizeClass as M, toDisplayString as B, createTextVNode as D } from "vue";
|
|
2
2
|
import { useWorkspace as K } from "../../store/workspace.js";
|
|
3
3
|
import { ScalarListbox as z, ScalarButton as x, ScalarIcon as E } from "@scalar/components";
|
|
4
4
|
const T = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, W = /* @__PURE__ */ a("label", {
|
|
@@ -8,8 +8,8 @@ const T = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded b
|
|
|
8
8
|
__name: "CommandPaletteFolder",
|
|
9
9
|
emits: ["close"],
|
|
10
10
|
setup(q, { emit: h }) {
|
|
11
|
-
var
|
|
12
|
-
const _ = h, { activeWorkspaceCollections: b, folderMutators: w, activeCollection: C } = K(), s =
|
|
11
|
+
var p;
|
|
12
|
+
const _ = h, { activeWorkspaceCollections: b, folderMutators: w, activeCollection: C } = K(), s = r(""), d = r(((p = C.value) == null ? void 0 : p.uid) ?? ""), u = v(
|
|
13
13
|
() => b.value.map((e) => {
|
|
14
14
|
var l, o;
|
|
15
15
|
return {
|
|
@@ -17,7 +17,7 @@ const T = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded b
|
|
|
17
17
|
label: ((o = (l = e.spec) == null ? void 0 : l.info) == null ? void 0 : o.title) ?? ""
|
|
18
18
|
};
|
|
19
19
|
})
|
|
20
|
-
), t =
|
|
20
|
+
), t = v({
|
|
21
21
|
get: () => u.value.find(
|
|
22
22
|
({ id: e }) => e === d.value
|
|
23
23
|
),
|
|
@@ -31,7 +31,7 @@ const T = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded b
|
|
|
31
31
|
},
|
|
32
32
|
d.value
|
|
33
33
|
), _("close"));
|
|
34
|
-
}, m =
|
|
34
|
+
}, m = r(null);
|
|
35
35
|
return y(() => {
|
|
36
36
|
var e;
|
|
37
37
|
(e = m.value) == null || e.focus();
|
|
@@ -43,7 +43,10 @@ const T = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded b
|
|
|
43
43
|
ref_key: "folderInput",
|
|
44
44
|
ref: m,
|
|
45
45
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => s.value = o),
|
|
46
|
+
autocomplete: "off",
|
|
46
47
|
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
48
|
+
"data-form-type": "other",
|
|
49
|
+
"data-lpignore": "true",
|
|
47
50
|
label: "Folder Name",
|
|
48
51
|
placeholder: "Folder Name",
|
|
49
52
|
onKeydown: S(F(f, ["prevent"]), ["enter"])
|
|
@@ -58,12 +61,12 @@ const T = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded b
|
|
|
58
61
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => t.value = o),
|
|
59
62
|
options: u.value
|
|
60
63
|
}, {
|
|
61
|
-
default:
|
|
64
|
+
default: c(() => [
|
|
62
65
|
n(i(x), {
|
|
63
66
|
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
64
67
|
variant: "outlined"
|
|
65
68
|
}, {
|
|
66
|
-
default:
|
|
69
|
+
default: c(() => [
|
|
67
70
|
a("span", {
|
|
68
71
|
class: M(t.value ? "text-c-1" : "text-c-3")
|
|
69
72
|
}, B(t.value ? t.value.label : "Select Collection"), 3),
|
|
@@ -83,7 +86,7 @@ const T = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded b
|
|
|
83
86
|
class: "max-h-8 text-xs p-0 px-3",
|
|
84
87
|
onClick: f
|
|
85
88
|
}, {
|
|
86
|
-
default:
|
|
89
|
+
default: c(() => [
|
|
87
90
|
D(" Create Folder ")
|
|
88
91
|
]),
|
|
89
92
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":";;;;;AAshBA,wBAMG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, ref as d, computed as v, onMounted as T, openBlock as k, createElementBlock as W, createElementVNode as u, withDirectives as $, withKeys as G, withModifiers as L, vModelText as O, createVNode as o, unref as s, withCtx as
|
|
1
|
+
import { defineComponent as K, ref as d, computed as v, onMounted as T, openBlock as k, createElementBlock as W, createElementVNode as u, withDirectives as $, withKeys as G, withModifiers as L, vModelText as O, createVNode as o, unref as s, withCtx as r, normalizeClass as M, toDisplayString as S, createBlock as P, createCommentVNode as A, createTextVNode as H } from "vue";
|
|
2
2
|
import J from "../HttpMethod/HttpMethod.vue.js";
|
|
3
3
|
import { useWorkspace as Q } from "../../store/workspace.js";
|
|
4
4
|
import { ScalarListbox as U, ScalarButton as p, ScalarIcon as N } from "@scalar/components";
|
|
@@ -6,7 +6,7 @@ import { useRouter as X } from "vue-router";
|
|
|
6
6
|
const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, ee = /* @__PURE__ */ u("label", {
|
|
7
7
|
class: "absolute w-full h-full opacity-0 cursor-text",
|
|
8
8
|
for: "requestname"
|
|
9
|
-
}, null, -1), te = ["onKeydown"], le = { class: "flex" }, ae = { class: "flex flex-1 gap-2 max-h-8" },
|
|
9
|
+
}, null, -1), te = ["onKeydown"], le = { class: "flex" }, ae = { class: "flex flex-1 gap-2 max-h-8" }, re = /* @__PURE__ */ K({
|
|
10
10
|
__name: "CommandPaletteRequest",
|
|
11
11
|
emits: ["close"],
|
|
12
12
|
setup(oe, { emit: R }) {
|
|
@@ -18,7 +18,7 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
|
|
|
18
18
|
requestMutators: j,
|
|
19
19
|
activeRequest: z,
|
|
20
20
|
folders: x
|
|
21
|
-
} = Q(), i = d(""),
|
|
21
|
+
} = Q(), i = d(""), f = d("GET"), c = d(((g = D.value) == null ? void 0 : g.uid) ?? ""), b = v(
|
|
22
22
|
() => h.value.map((e) => {
|
|
23
23
|
var t;
|
|
24
24
|
return {
|
|
@@ -27,13 +27,13 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
|
|
|
27
27
|
};
|
|
28
28
|
})
|
|
29
29
|
), n = v({
|
|
30
|
-
get: () => b.value.find(({ id: e }) => e ===
|
|
30
|
+
get: () => b.value.find(({ id: e }) => e === c.value),
|
|
31
31
|
set: (e) => {
|
|
32
|
-
e != null && e.id && (
|
|
32
|
+
e != null && e.id && (c.value = e.id);
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), m = v(
|
|
35
35
|
() => h.value.flatMap(
|
|
36
|
-
(e) => e.uid ===
|
|
36
|
+
(e) => e.uid === c.value ? e.childUids.flatMap((t) => {
|
|
37
37
|
const l = x[t];
|
|
38
38
|
return l ? [
|
|
39
39
|
{
|
|
@@ -51,21 +51,21 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
|
|
|
51
51
|
}
|
|
52
52
|
)) == null ? void 0 : q.uid) ?? ""
|
|
53
53
|
), a = v({
|
|
54
|
-
get: () =>
|
|
54
|
+
get: () => m.value.find(({ id: e }) => e === _.value),
|
|
55
55
|
set: (e) => {
|
|
56
56
|
e != null && e.id && (_.value = e.id);
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
function F(e) {
|
|
60
|
-
|
|
60
|
+
f.value = e;
|
|
61
61
|
}
|
|
62
62
|
const w = () => {
|
|
63
63
|
var l, y, V;
|
|
64
|
-
if (!
|
|
64
|
+
if (!c.value && !((l = a.value) != null && l.id)) return;
|
|
65
65
|
const e = ((y = a.value) == null ? void 0 : y.id) ?? ((V = n.value) == null ? void 0 : V.id), t = j.add(
|
|
66
66
|
{
|
|
67
67
|
path: "",
|
|
68
|
-
method:
|
|
68
|
+
method: f.value.toUpperCase(),
|
|
69
69
|
description: i.value,
|
|
70
70
|
operationId: i.value,
|
|
71
71
|
summary: i.value,
|
|
@@ -86,7 +86,10 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
|
|
|
86
86
|
ref_key: "requestInput",
|
|
87
87
|
ref: C,
|
|
88
88
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => i.value = l),
|
|
89
|
+
autocomplete: "off",
|
|
89
90
|
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
91
|
+
"data-form-type": "other",
|
|
92
|
+
"data-lpignore": "true",
|
|
90
93
|
label: "Request Name",
|
|
91
94
|
placeholder: "Request Name",
|
|
92
95
|
onKeydown: G(L(w, ["prevent"]), ["enter"])
|
|
@@ -99,7 +102,7 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
|
|
|
99
102
|
o(J, {
|
|
100
103
|
isEditable: !0,
|
|
101
104
|
isSquare: "",
|
|
102
|
-
method:
|
|
105
|
+
method: f.value,
|
|
103
106
|
onChange: F
|
|
104
107
|
}, null, 8, ["method"]),
|
|
105
108
|
o(s(U), {
|
|
@@ -107,12 +110,12 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
|
|
|
107
110
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => n.value = l),
|
|
108
111
|
options: b.value
|
|
109
112
|
}, {
|
|
110
|
-
default:
|
|
113
|
+
default: r(() => [
|
|
111
114
|
o(s(p), {
|
|
112
115
|
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
113
116
|
variant: "outlined"
|
|
114
117
|
}, {
|
|
115
|
-
default:
|
|
118
|
+
default: r(() => [
|
|
116
119
|
u("span", {
|
|
117
120
|
class: M(n.value ? "text-c-1" : "text-c-3")
|
|
118
121
|
}, S(n.value ? n.value.label : "Select Collection"), 3),
|
|
@@ -127,18 +130,18 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
|
|
|
127
130
|
]),
|
|
128
131
|
_: 1
|
|
129
132
|
}, 8, ["modelValue", "options"]),
|
|
130
|
-
|
|
133
|
+
m.value.length ? (k(), P(s(U), {
|
|
131
134
|
key: 0,
|
|
132
135
|
modelValue: a.value,
|
|
133
136
|
"onUpdate:modelValue": t[2] || (t[2] = (l) => a.value = l),
|
|
134
|
-
options:
|
|
137
|
+
options: m.value
|
|
135
138
|
}, {
|
|
136
|
-
default:
|
|
139
|
+
default: r(() => [
|
|
137
140
|
o(s(p), {
|
|
138
141
|
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
139
142
|
variant: "outlined"
|
|
140
143
|
}, {
|
|
141
|
-
default:
|
|
144
|
+
default: r(() => [
|
|
142
145
|
u("span", {
|
|
143
146
|
class: M(a.value ? "text-c-1" : "text-c-3")
|
|
144
147
|
}, S(a.value ? a.value.label : "Select Folder"), 3),
|
|
@@ -158,7 +161,7 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
|
|
|
158
161
|
class: "max-h-8 text-xs p-0 px-3",
|
|
159
162
|
onClick: w
|
|
160
163
|
}, {
|
|
161
|
-
default:
|
|
164
|
+
default: r(() => [
|
|
162
165
|
H(" Create Request ")
|
|
163
166
|
]),
|
|
164
167
|
_: 1
|
|
@@ -168,5 +171,5 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
|
|
|
168
171
|
}
|
|
169
172
|
});
|
|
170
173
|
export {
|
|
171
|
-
|
|
174
|
+
re as default
|
|
172
175
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteWorkspace.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteWorkspace.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CommandPaletteWorkspace.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteWorkspace.vue"],"names":[],"mappings":";;;;;AAsMA,wBAMG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as d, ref as l, onMounted as m, openBlock as f, createElementBlock as h, createElementVNode as o, withDirectives as w, withKeys as _, withModifiers as x, vModelText as k, createVNode as v, unref as b, withCtx as y, createTextVNode as
|
|
2
|
-
import { useWorkspace as
|
|
1
|
+
import { defineComponent as d, ref as l, onMounted as m, openBlock as f, createElementBlock as h, createElementVNode as o, withDirectives as w, withKeys as _, withModifiers as x, vModelText as k, createVNode as v, unref as b, withCtx as y, createTextVNode as g } from "vue";
|
|
2
|
+
import { useWorkspace as N } from "../../store/workspace.js";
|
|
3
3
|
import { ScalarButton as C } from "@scalar/components";
|
|
4
4
|
import { useRouter as M } from "vue-router";
|
|
5
5
|
const V = { class: "flex w-full flex-col gap-3" }, W = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, B = /* @__PURE__ */ o("label", {
|
|
@@ -9,7 +9,7 @@ const V = { class: "flex w-full flex-col gap-3" }, W = { class: "gap-3 rounded b
|
|
|
9
9
|
__name: "CommandPaletteWorkspace",
|
|
10
10
|
emits: ["close"],
|
|
11
11
|
setup(S, { emit: r }) {
|
|
12
|
-
const c = r, { push: i } = M(), { workspaceMutators: u } =
|
|
12
|
+
const c = r, { push: i } = M(), { workspaceMutators: u } = N(), t = l(""), s = () => {
|
|
13
13
|
const e = u.add({
|
|
14
14
|
name: t.value
|
|
15
15
|
});
|
|
@@ -26,8 +26,11 @@ const V = { class: "flex w-full flex-col gap-3" }, W = { class: "gap-3 rounded b
|
|
|
26
26
|
ref_key: "workspaceInput",
|
|
27
27
|
ref: a,
|
|
28
28
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
|
|
29
|
+
autocomplete: "off",
|
|
29
30
|
autofocus: "",
|
|
30
31
|
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
32
|
+
"data-form-type": "other",
|
|
33
|
+
"data-lpignore": "true",
|
|
31
34
|
label: "Workspace Name",
|
|
32
35
|
placeholder: "Workspace Name",
|
|
33
36
|
onKeydown: _(x(s, ["prevent"]), ["enter"])
|
|
@@ -42,7 +45,7 @@ const V = { class: "flex w-full flex-col gap-3" }, W = { class: "gap-3 rounded b
|
|
|
42
45
|
onClick: s
|
|
43
46
|
}, {
|
|
44
47
|
default: y(() => [
|
|
45
|
-
|
|
48
|
+
g(" Continue ")
|
|
46
49
|
]),
|
|
47
50
|
_: 1
|
|
48
51
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAwYA;;;;GAIG;;AACH,wBAuaI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
|
|
@@ -2,7 +2,7 @@ import o from "./TheCommandPalette.vue2.js";
|
|
|
2
2
|
import { PaletteComponents as s } from "./TheCommandPalette.vue2.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3cd38882"]]);
|
|
6
6
|
export {
|
|
7
7
|
s as PaletteComponents,
|
|
8
8
|
a as default
|