@scalar/api-client 2.1.28 → 2.1.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/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServerItem.vue.js +15 -15
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +43 -43
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +14 -14
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +17 -17
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +7 -7
- package/dist/layouts/App/create-api-client-app.d.ts +4 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts +8 -8
- package/dist/layouts/Web/create-api-client-web.d.ts +4 -4
- package/dist/libs/create-client.d.ts +4 -4
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +63 -60
- package/dist/libs/string-template.d.ts.map +1 -1
- package/dist/libs/string-template.js +6 -6
- package/dist/store/request-example.d.ts +2 -2
- package/dist/store/store.d.ts +8 -8
- package/dist/store/workspace.d.ts +2 -2
- package/dist/style.css +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 +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.1.30
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6ecb7cc: fix: large response performance problems due to chrome bug, increase virtualization threshold
|
|
8
|
+
- 32ad241: fix: favors accent over blur color for active elment state
|
|
9
|
+
- Updated dependencies [2b540b9]
|
|
10
|
+
- Updated dependencies [32ad241]
|
|
11
|
+
- @scalar/openapi-types@0.1.4
|
|
12
|
+
- @scalar/components@0.12.57
|
|
13
|
+
- @scalar/oas-utils@0.2.60
|
|
14
|
+
- @scalar/openapi-parser@0.8.7
|
|
15
|
+
- @scalar/types@0.0.17
|
|
16
|
+
- @scalar/use-codemirror@0.11.24
|
|
17
|
+
- @scalar/themes@0.9.41
|
|
18
|
+
|
|
19
|
+
## 2.1.29
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- c658a7a: fix: support server variables in request sending
|
|
24
|
+
- d51d303: fix: add environment variables in auth request fields
|
|
25
|
+
|
|
3
26
|
## 2.1.28
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBarServerItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServerItem.vue"],"names":[],"mappings":"AAuEA,MAAM,MAAM,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;;kBAIxC,YAAY;UACpB,YAAY,GAAG,SAAS;;kBADhB,YAAY;UACpB,YAAY,GAAG,SAAS;;AAJhC,
|
|
1
|
+
{"version":3,"file":"AddressBarServerItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServerItem.vue"],"names":[],"mappings":"AAuEA,MAAM,MAAM,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;;kBAIxC,YAAY;UACpB,YAAY,GAAG,SAAS;;kBADhB,YAAY;UACpB,YAAY,GAAG,SAAS;;AAJhC,wBAiKK"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as v, openBlock as f, createBlock as m, unref as i, withCtx as S, createElementVNode as
|
|
1
|
+
import { defineComponent as v, openBlock as f, createBlock as m, unref as i, withCtx as S, createElementVNode as a, normalizeClass as x, createVNode as h, toDisplayString as w } from "vue";
|
|
2
2
|
import { ScalarDropdownItem as k, ScalarIcon as C } from "@scalar/components";
|
|
3
|
-
import { useWorkspace as
|
|
4
|
-
const
|
|
3
|
+
import { useWorkspace as g } from "../../store/store.js";
|
|
4
|
+
const y = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, B = /* @__PURE__ */ v({
|
|
5
5
|
__name: "AddressBarServerItem",
|
|
6
6
|
props: {
|
|
7
7
|
serverOption: {},
|
|
8
8
|
type: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const r =
|
|
10
|
+
setup(l) {
|
|
11
|
+
const r = l, {
|
|
12
12
|
activeCollection: o,
|
|
13
13
|
activeRequest: s,
|
|
14
14
|
activeServer: n,
|
|
15
|
-
collectionMutators:
|
|
16
|
-
requestMutators:
|
|
17
|
-
} =
|
|
18
|
-
r.type === "collection" && o.value ?
|
|
15
|
+
collectionMutators: c,
|
|
16
|
+
requestMutators: p
|
|
17
|
+
} = g(), d = (e) => {
|
|
18
|
+
r.type === "collection" && o.value ? c.edit(
|
|
19
19
|
o.value.uid,
|
|
20
20
|
"selectedServerUid",
|
|
21
21
|
e
|
|
22
|
-
) : r.type === "request" && s.value &&
|
|
22
|
+
) : r.type === "request" && s.value && p.edit(
|
|
23
23
|
s.value.uid,
|
|
24
24
|
"selectedServerUid",
|
|
25
25
|
e
|
|
@@ -31,13 +31,13 @@ const g = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, B = /* @
|
|
|
31
31
|
return (e, t) => (f(), m(i(k), {
|
|
32
32
|
class: "flex !gap-1.5 group font-code text-xxs whitespace-nowrap text-ellipsis overflow-hidden",
|
|
33
33
|
value: e.serverOption.id,
|
|
34
|
-
onClick: t[0] || (t[0] = (
|
|
34
|
+
onClick: t[0] || (t[0] = (O) => d(e.serverOption.id))
|
|
35
35
|
}, {
|
|
36
36
|
default: S(() => [
|
|
37
|
-
|
|
37
|
+
a("div", {
|
|
38
38
|
class: x([
|
|
39
|
-
"flex size-4 items-center justify-center rounded-full p-[3px]
|
|
40
|
-
u(e.serverOption.id) ? "bg-
|
|
39
|
+
"flex size-4 items-center justify-center rounded-full p-[3px]",
|
|
40
|
+
u(e.serverOption.id) ? "bg-c-accent text-b-1" : "group-hover:shadow-border text-transparent"
|
|
41
41
|
])
|
|
42
42
|
}, [
|
|
43
43
|
h(i(C), {
|
|
@@ -46,7 +46,7 @@ const g = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, B = /* @
|
|
|
46
46
|
thickness: "3.5"
|
|
47
47
|
})
|
|
48
48
|
], 2),
|
|
49
|
-
|
|
49
|
+
a("span", y, w(e.serverOption.label), 1)
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
}, 8, ["value"]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AA0OA,iBAAS,cAAc;qBAiNM,GAAG;qBACF,GAAG;kBACN,GAAG;EA6B7B;AACD,QAAA,MAAM,eAAe;SAtTZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;cAPD,OAAO;2BAGM,OAAO;cACpB,OAAO;6EA2TpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAexG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ a(t, [["__scopeId", "data-v-0417d80a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, ref as d, computed as w, openBlock as l, createBlock as i, normalizeClass as b, withCtx as k, createElementBlock as s, renderSlot as m, createCommentVNode as u, createElementVNode as C, Fragment as B, createVNode as g, mergeProps as $, unref as h } from "vue";
|
|
2
|
+
import x from "../CodeInput/CodeInput.vue.js";
|
|
2
3
|
import { ScalarIconButton as q } from "@scalar/components";
|
|
3
4
|
import A from "./DataTableCell.vue.js";
|
|
4
5
|
import E from "./DataTableInputSelect.vue.js";
|
|
5
6
|
const F = {
|
|
6
7
|
key: 0,
|
|
7
8
|
class: "text-c-2 flex min-w-[120px] items-center border-r-1/2 pl-2 pr-0"
|
|
8
|
-
}, I = { class: "row-1" }, O =
|
|
9
|
+
}, I = { class: "row-1" }, O = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
|
|
11
|
-
},
|
|
12
|
+
}, S = {
|
|
12
13
|
key: 1,
|
|
13
14
|
class: "absolute centered-y right-7 text-orange text-xs"
|
|
14
|
-
},
|
|
15
|
+
}, U = /* @__PURE__ */ V({
|
|
15
16
|
inheritAttrs: !1,
|
|
16
17
|
__name: "DataTableInput",
|
|
17
18
|
props: {
|
|
@@ -27,65 +28,64 @@ const F = {
|
|
|
27
28
|
max: {}
|
|
28
29
|
},
|
|
29
30
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
30
|
-
setup(
|
|
31
|
-
const o =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return (e, t) => (a(), i(A, {
|
|
31
|
+
setup(p, { emit: c }) {
|
|
32
|
+
const o = p, r = c, a = d(!0);
|
|
33
|
+
d("");
|
|
34
|
+
const f = d(!1), y = () => {
|
|
35
|
+
f.value || r("inputBlur");
|
|
36
|
+
}, v = w(
|
|
37
|
+
() => o.type === "password" ? a.value ? "password" : "text" : o.type ?? "text"
|
|
38
|
+
);
|
|
39
|
+
return (e, t) => (l(), i(A, {
|
|
40
40
|
class: b(["relative row", e.containerClass])
|
|
41
41
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
e.$slots.default ? (
|
|
44
|
-
|
|
45
|
-
])) :
|
|
46
|
-
|
|
47
|
-
o.enum && o.enum.length ? (
|
|
42
|
+
default: k(() => [
|
|
43
|
+
e.$slots.default ? (l(), s("div", F, [
|
|
44
|
+
m(e.$slots, "default", {}, void 0, !0)
|
|
45
|
+
])) : u("", !0),
|
|
46
|
+
C("div", I, [
|
|
47
|
+
o.enum && o.enum.length ? (l(), i(E, {
|
|
48
48
|
key: 0,
|
|
49
49
|
canAddCustomValue: e.canAddCustomEnumValue,
|
|
50
50
|
modelValue: o.modelValue,
|
|
51
51
|
value: o.enum,
|
|
52
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
53
|
-
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (
|
|
54
|
-
|
|
52
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => r("update:modelValue", n))
|
|
53
|
+
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (l(), s(B, { key: 1 }, [
|
|
54
|
+
g(x, $(e.$attrs, {
|
|
55
55
|
id: e.id,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer outline-none",
|
|
57
|
+
disableCloseBrackets: "",
|
|
58
|
+
disableTabIndent: "",
|
|
59
59
|
max: e.max,
|
|
60
60
|
min: e.min,
|
|
61
|
+
modelValue: e.modelValue ?? "",
|
|
61
62
|
readOnly: e.readOnly,
|
|
62
63
|
required: e.required,
|
|
63
64
|
spellcheck: "false",
|
|
64
|
-
type:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
e.required ? (a(), r("div", S, " Required ")) : s("", !0)
|
|
65
|
+
type: v.value,
|
|
66
|
+
onBlur: y,
|
|
67
|
+
onFocus: t[1] || (t[1] = (n) => r("inputFocus")),
|
|
68
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => r("update:modelValue", n))
|
|
69
|
+
}), null, 16, ["id", "max", "min", "modelValue", "readOnly", "required", "type"]),
|
|
70
|
+
e.required ? (l(), s("div", O, " Required ")) : u("", !0)
|
|
71
71
|
], 64))
|
|
72
72
|
]),
|
|
73
|
-
e.$slots.warning ? (
|
|
74
|
-
|
|
75
|
-
])) :
|
|
76
|
-
|
|
77
|
-
e.type === "password" ? (
|
|
73
|
+
e.$slots.warning ? (l(), s("div", S, [
|
|
74
|
+
m(e.$slots, "warning", {}, void 0, !0)
|
|
75
|
+
])) : u("", !0),
|
|
76
|
+
m(e.$slots, "icon", {}, void 0, !0),
|
|
77
|
+
e.type === "password" ? (l(), i(h(q), {
|
|
78
78
|
key: 2,
|
|
79
79
|
class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
|
|
80
|
-
icon:
|
|
81
|
-
label:
|
|
82
|
-
onClick: t[
|
|
83
|
-
}, null, 8, ["icon", "label"])) :
|
|
80
|
+
icon: a.value ? "Show" : "Hide",
|
|
81
|
+
label: a.value ? "Show Password" : "Hide Password",
|
|
82
|
+
onClick: t[3] || (t[3] = (n) => a.value = !a.value)
|
|
83
|
+
}, null, 8, ["icon", "label"])) : u("", !0)
|
|
84
84
|
]),
|
|
85
85
|
_: 3
|
|
86
86
|
}, 8, ["class"]));
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
export {
|
|
90
|
-
|
|
90
|
+
U as default
|
|
91
91
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";gBAgJgB,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;gBAFf,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;uBAAP,OAAO;;AAuU/B,wBAUG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, computed as z, ref as i, watch as V, nextTick as A, openBlock as
|
|
1
|
+
import { defineComponent as b, computed as z, ref as i, watch as V, nextTick as A, openBlock as u, createElementBlock as p, withDirectives as N, withKeys as T, vModelText as j, createBlock as m, unref as a, withCtx as r, Fragment as I, renderList as E, createElementVNode as d, normalizeClass as K, createVNode as c, createTextVNode as R, toDisplayString as k, createCommentVNode as $ } from "vue";
|
|
2
2
|
import { ScalarDropdown as F, ScalarDropdownItem as y, ScalarIcon as f, ScalarDropdownDivider as L, ScalarButton as M } from "@scalar/components";
|
|
3
3
|
const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex items-center justify-center h-4 w-4" }, O = /* @__PURE__ */ b({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
@@ -9,42 +9,42 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
|
|
|
9
9
|
},
|
|
10
10
|
emits: ["update:modelValue"],
|
|
11
11
|
setup(C, { emit: g }) {
|
|
12
|
-
const v = C, x = g, S = z(() => v.value ?? []), o = i(v.modelValue.toString()), s = i(!1),
|
|
13
|
-
V(
|
|
12
|
+
const v = C, x = g, S = z(() => v.value ?? []), o = i(v.modelValue.toString()), s = i(!1), n = i(""), h = i(null);
|
|
13
|
+
V(n, (e) => {
|
|
14
14
|
x("update:modelValue", e);
|
|
15
15
|
});
|
|
16
16
|
const w = (e) => {
|
|
17
17
|
o.value = e, x("update:modelValue", e), s.value = !1;
|
|
18
18
|
}, _ = () => {
|
|
19
|
-
|
|
19
|
+
n.value.trim() && (w(n.value), n.value = "");
|
|
20
20
|
}, D = () => {
|
|
21
|
-
|
|
21
|
+
n.value.trim() || (o.value = "", s.value = !1);
|
|
22
22
|
}, B = (e) => o.value === e;
|
|
23
23
|
return V(s, (e) => {
|
|
24
24
|
e && A(() => {
|
|
25
25
|
var t;
|
|
26
26
|
(t = h.value) == null || t.focus();
|
|
27
27
|
});
|
|
28
|
-
}), (e, t) => (
|
|
29
|
-
s.value ? N((
|
|
28
|
+
}), (e, t) => (u(), p("div", U, [
|
|
29
|
+
s.value ? N((u(), p("input", {
|
|
30
30
|
key: 0,
|
|
31
31
|
ref_key: "inputRef",
|
|
32
32
|
ref: h,
|
|
33
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) =>
|
|
33
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => n.value = l),
|
|
34
34
|
class: "border-none text-c-1 min-w-0 w-full px-2 py-1.5 outline-none",
|
|
35
35
|
placeholder: "Value",
|
|
36
36
|
type: "text",
|
|
37
37
|
onBlur: D,
|
|
38
38
|
onKeyup: T(_, ["enter"])
|
|
39
39
|
}, null, 544)), [
|
|
40
|
-
[j,
|
|
41
|
-
]) : (
|
|
40
|
+
[j, n.value]
|
|
41
|
+
]) : (u(), m(a(F), {
|
|
42
42
|
key: 1,
|
|
43
43
|
resize: "",
|
|
44
44
|
value: o.value
|
|
45
45
|
}, {
|
|
46
46
|
items: r(() => [
|
|
47
|
-
(
|
|
47
|
+
(u(!0), p(I, null, E(S.value, (l) => (u(), m(a(y), {
|
|
48
48
|
key: l,
|
|
49
49
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
50
50
|
value: l,
|
|
@@ -53,8 +53,8 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
|
|
|
53
53
|
default: r(() => [
|
|
54
54
|
d("div", {
|
|
55
55
|
class: K([
|
|
56
|
-
"flex items-center justify-center rounded-full p-[3px] w-4 h-4
|
|
57
|
-
B(l) ? "bg-
|
|
56
|
+
"flex items-center justify-center rounded-full p-[3px] w-4 h-4",
|
|
57
|
+
B(l) ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
|
|
58
58
|
])
|
|
59
59
|
}, [
|
|
60
60
|
c(a(f), {
|
|
@@ -68,7 +68,7 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
|
|
|
68
68
|
_: 2
|
|
69
69
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
70
70
|
c(a(L)),
|
|
71
|
-
e.canAddCustomValue ? (
|
|
71
|
+
e.canAddCustomValue ? (u(), m(a(y), {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "flex items-center gap-1.5",
|
|
74
74
|
onClick: t[1] || (t[1] = (l) => s.value = !0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAidA,wBAKG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, computed as S, openBlock as
|
|
2
|
-
import { ScalarDropdown as z, ScalarDropdownItem as u, ScalarIcon as
|
|
1
|
+
import { defineComponent as y, computed as S, openBlock as c, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as N, renderList as D, createBlock as v, withModifiers as x, createElementVNode as s, normalizeClass as h, createTextVNode as d, toDisplayString as w, createCommentVNode as j } from "vue";
|
|
2
|
+
import { ScalarDropdown as z, ScalarDropdownItem as u, ScalarIcon as l, ScalarDropdownDivider as B, ScalarButton as I } from "@scalar/components";
|
|
3
3
|
import { useRouter as V } from "vue-router";
|
|
4
4
|
import { useWorkspace as M } from "../../store/store.js";
|
|
5
5
|
const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace-nowrap" }, $ = { class: "flex items-center justify-center h-4 w-4" }, A = /* @__PURE__ */ y({
|
|
@@ -10,18 +10,18 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
|
|
|
10
10
|
activeWorkspace: i,
|
|
11
11
|
workspaceMutators: k,
|
|
12
12
|
activeEnvironment: g,
|
|
13
|
-
isReadOnly:
|
|
14
|
-
} = M(),
|
|
13
|
+
isReadOnly: C
|
|
14
|
+
} = M(), E = V(), p = (a) => {
|
|
15
15
|
k.edit(i.value.uid, "activeEnvironmentId", a);
|
|
16
|
-
},
|
|
16
|
+
}, _ = () => E.push(`/workspace/${i.value.uid}/environment`), b = S(() => [
|
|
17
17
|
// Always add the default environment
|
|
18
18
|
m.default,
|
|
19
19
|
...Object.values(m).filter((a) => a.uid !== "default")
|
|
20
20
|
]);
|
|
21
|
-
return (a, o) => (
|
|
21
|
+
return (a, o) => (c(), f("div", null, [
|
|
22
22
|
n(e(z), null, {
|
|
23
23
|
items: r(() => [
|
|
24
|
-
(
|
|
24
|
+
(c(!0), f(N, null, D(b.value, (t) => (c(), v(e(u), {
|
|
25
25
|
key: t.uid,
|
|
26
26
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
27
27
|
onClick: x((R) => p(t.uid), ["stop"])
|
|
@@ -29,11 +29,11 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
|
|
|
29
29
|
default: r(() => [
|
|
30
30
|
s("div", {
|
|
31
31
|
class: h([
|
|
32
|
-
"flex items-center justify-center rounded-full p-[3px] w-4 h-4
|
|
33
|
-
e(i).activeEnvironmentId === t.uid ? "bg-
|
|
32
|
+
"flex items-center justify-center rounded-full p-[3px] w-4 h-4",
|
|
33
|
+
e(i).activeEnvironmentId === t.uid ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
|
|
34
34
|
])
|
|
35
35
|
}, [
|
|
36
|
-
n(e(
|
|
36
|
+
n(e(l), {
|
|
37
37
|
class: "size-2.5",
|
|
38
38
|
icon: "Checkmark",
|
|
39
39
|
thickness: "3.5"
|
|
@@ -50,11 +50,11 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
|
|
|
50
50
|
default: r(() => [
|
|
51
51
|
s("div", {
|
|
52
52
|
class: h([
|
|
53
|
-
"flex items-center justify-center rounded-full p-[3px] w-4 h-4
|
|
54
|
-
e(i).activeEnvironmentId === "" ? "bg-
|
|
53
|
+
"flex items-center justify-center rounded-full p-[3px] w-4 h-4",
|
|
54
|
+
e(i).activeEnvironmentId === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
|
|
55
55
|
])
|
|
56
56
|
}, [
|
|
57
|
-
n(e(
|
|
57
|
+
n(e(l), {
|
|
58
58
|
class: "size-2.5",
|
|
59
59
|
icon: "Checkmark",
|
|
60
60
|
thickness: "3.5"
|
|
@@ -65,14 +65,14 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
|
|
|
65
65
|
_: 1
|
|
66
66
|
}),
|
|
67
67
|
n(e(B)),
|
|
68
|
-
e(
|
|
68
|
+
e(C) ? j("", !0) : (c(), v(e(u), {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "flex items-center gap-1.5",
|
|
71
|
-
onClick:
|
|
71
|
+
onClick: _
|
|
72
72
|
}, {
|
|
73
73
|
default: r(() => [
|
|
74
74
|
s("div", $, [
|
|
75
|
-
n(e(
|
|
75
|
+
n(e(l), {
|
|
76
76
|
icon: "Brackets",
|
|
77
77
|
size: "sm"
|
|
78
78
|
})
|
|
@@ -93,7 +93,7 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
|
|
|
93
93
|
return [
|
|
94
94
|
s("h2", W, [
|
|
95
95
|
d(w(((t = e(g)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
|
|
96
|
-
n(e(
|
|
96
|
+
n(e(l), {
|
|
97
97
|
class: "size-3",
|
|
98
98
|
icon: "ChevronDown",
|
|
99
99
|
thickness: "3"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/WorkspaceSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"WorkspaceSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/WorkspaceSelector.vue"],"names":[],"mappings":";AAgeA,wBAKG"}
|
|
@@ -30,8 +30,8 @@ const L = { class: "flex items-center text-sm w-[inherit]" }, P = { class: "font
|
|
|
30
30
|
default: r(() => [
|
|
31
31
|
t("div", {
|
|
32
32
|
class: M([
|
|
33
|
-
"flex items-center justify-center rounded-full p-[3px] w-4 h-4
|
|
34
|
-
e(i).uid === p ? "bg-
|
|
33
|
+
"flex items-center justify-center rounded-full p-[3px] w-4 h-4",
|
|
34
|
+
e(i).uid === p ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
|
|
35
35
|
])
|
|
36
36
|
}, [
|
|
37
37
|
s(e(u), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;qBAwBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,+QAKnB,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,12 +1,12 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
return o(),
|
|
6
|
-
|
|
1
|
+
import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
|
|
2
|
+
import l from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const n = {}, c = { class: "flex flex-col min-h-0 flex-1 xl:overflow-hidden md:flex-row leading-3" };
|
|
4
|
+
function f(e, s) {
|
|
5
|
+
return o(), r("div", c, [
|
|
6
|
+
t(e.$slots, "default")
|
|
7
7
|
]);
|
|
8
8
|
}
|
|
9
|
-
const a = /* @__PURE__ */
|
|
9
|
+
const a = /* @__PURE__ */ l(n, [["render", f]]);
|
|
10
10
|
export {
|
|
11
11
|
a as default
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewLayoutContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutContent.vue"],"names":[],"mappings":"AAgBA,iBAAS,cAAc;qBA2BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,+QAKnB,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,12 +1,12 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
t(
|
|
1
|
+
import { openBlock as e, createElementBlock as o, renderSlot as t } from "vue";
|
|
2
|
+
import l from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const c = {}, s = { class: "*:border-t-1/2 first:*:border-t-0 xl:*:border-t-0 xl:*:border-l-1/2 xl:first:*:border-l-0 flex xl:flex-row flex-col custom-scroll pr-0" };
|
|
4
|
+
function n(r, f) {
|
|
5
|
+
return e(), o("div", s, [
|
|
6
|
+
t(r.$slots, "default")
|
|
7
7
|
]);
|
|
8
8
|
}
|
|
9
|
-
const x = /* @__PURE__ */
|
|
9
|
+
const x = /* @__PURE__ */ l(c, [["render", n]]);
|
|
10
10
|
export {
|
|
11
11
|
x as default
|
|
12
12
|
};
|