@scalar/api-client 2.3.25 → 2.3.27
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 +49 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +75 -72
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +48 -45
- package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -0
- 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 +46 -43
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +82 -92
- package/dist/components/Form/Form.vue.d.ts +2 -2
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +17 -14
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +30 -30
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +16 -0
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +3 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +76 -54
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts +2 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +5 -4
- package/dist/hooks/useClientConfig.d.ts +6 -6
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +3 -3
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +6 -6
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +3 -3
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +3 -3
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/env-helpers.d.ts +10 -2
- package/dist/libs/env-helpers.d.ts.map +1 -1
- package/dist/libs/env-helpers.js +4 -2
- package/dist/libs/environment-parser.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +9 -9
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/string-template.d.ts.map +1 -1
- package/dist/libs/string-template.js +35 -21
- package/dist/routes.d.ts +10 -10
- package/dist/store/active-entities.js +34 -34
- package/dist/store/environment.js +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +3 -3
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionCookies.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionOverview.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionScripts.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.js +39 -34
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +58 -78
- package/dist/views/Collection/CollectionSync.vue.d.ts +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts +1 -1
- package/dist/views/Cookies/CookieRaw.vue.d.ts +1 -1
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +208 -188
- package/dist/views/Environment/EnvironmentColors.vue.js +5 -5
- package/dist/views/Environment/EnvironmentModal.vue.js +21 -21
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +9 -9
- package/dist/views/Environment/handle-drag.d.ts +13 -0
- package/dist/views/Environment/handle-drag.d.ts.map +1 -0
- package/dist/views/Environment/handle-drag.js +32 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +111 -88
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +1 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +62 -56
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +4 -4
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +42 -47
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
- package/dist/views/Request/libs/watch-mode.js +2 -2
- package/package.json +13 -13
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as b, ref as d, computed as
|
|
1
|
+
import { defineComponent as b, ref as d, computed as g, openBlock as n, createBlock as s, normalizeClass as B, withCtx as C, createElementBlock as i, renderSlot as u, createTextVNode as $, createCommentVNode as p, createElementVNode as O, Fragment as I, mergeProps as y, unref as h } from "vue";
|
|
2
2
|
import { ScalarIconButton as A } from "@scalar/components";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
3
|
+
import W from "../CodeInput/CodeInput.vue.js";
|
|
4
|
+
import q from "./DataTableCell.vue.js";
|
|
5
|
+
import E from "./DataTableInputSelect.vue.js";
|
|
6
|
+
const F = ["for"], S = { class: "row-1 relative min-w-0" }, T = ["readOnly", "type", "value"], N = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "centered-y text-orange absolute right-7 text-xs"
|
|
9
|
-
},
|
|
9
|
+
}, L = /* @__PURE__ */ b({
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "DataTableInput",
|
|
12
12
|
props: {
|
|
@@ -23,64 +23,67 @@ const S = ["for"], T = { class: "row-1 overflow-x-auto" }, N = ["readOnly", "typ
|
|
|
23
23
|
environment: {},
|
|
24
24
|
envVariables: {},
|
|
25
25
|
workspace: {},
|
|
26
|
-
description: {}
|
|
26
|
+
description: {},
|
|
27
|
+
lineWrapping: { type: Boolean, default: !1 }
|
|
27
28
|
},
|
|
28
29
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
}, f =
|
|
33
|
-
() =>
|
|
30
|
+
setup(v, { emit: c }) {
|
|
31
|
+
const a = v, t = c, r = d(!0), w = d(!1), m = d(null), V = () => {
|
|
32
|
+
w.value || t("inputBlur");
|
|
33
|
+
}, f = g(
|
|
34
|
+
() => a.type === "password" ? "text" : a.type ?? "text"
|
|
34
35
|
), k = () => {
|
|
35
36
|
var e, l;
|
|
36
|
-
!((e =
|
|
37
|
+
!((e = a.enum) != null && e.length) && !a.readOnly && ((l = m.value) == null || l.focus());
|
|
37
38
|
};
|
|
38
|
-
return (e, l) => (n(), s(
|
|
39
|
+
return (e, l) => (n(), s(q, {
|
|
39
40
|
class: B(["row relative", e.containerClass])
|
|
40
41
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
e.$slots.default ? (n(),
|
|
42
|
+
default: C(() => [
|
|
43
|
+
e.$slots.default ? (n(), i("div", {
|
|
43
44
|
key: 0,
|
|
44
45
|
class: "text-c-1 flex items-center pl-3 pr-0",
|
|
45
46
|
for: e.id ?? "",
|
|
46
47
|
onClick: k
|
|
47
48
|
}, [
|
|
48
|
-
|
|
49
|
-
l[5] || (l[5] =
|
|
50
|
-
], 8,
|
|
51
|
-
O("div",
|
|
52
|
-
|
|
49
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
50
|
+
l[5] || (l[5] = $(": "))
|
|
51
|
+
], 8, F)) : p("", !0),
|
|
52
|
+
O("div", S, [
|
|
53
|
+
a.enum && a.enum.length ? (n(), s(E, {
|
|
53
54
|
key: 0,
|
|
54
|
-
canAddCustomValue:
|
|
55
|
-
modelValue:
|
|
56
|
-
value:
|
|
57
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
58
|
-
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (n(),
|
|
59
|
-
|
|
55
|
+
canAddCustomValue: a.canAddCustomEnumValue,
|
|
56
|
+
modelValue: a.modelValue,
|
|
57
|
+
value: a.enum,
|
|
58
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => t("update:modelValue", o))
|
|
59
|
+
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (n(), i(I, { key: 1 }, [
|
|
60
|
+
r.value && e.type === "password" ? (n(), i("input", y({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
|
|
60
61
|
autocomplete: "off",
|
|
61
|
-
class: "text-c-1 disabled:text-c-2 py-1.25 peer w-full min-w-0 border-none px-2 -outline-offset-1",
|
|
62
|
+
class: ["text-c-1 disabled:text-c-2 py-1.25 peer w-full min-w-0 border-none px-2 -outline-offset-1", { "scalar-password-input": e.type === "password" }],
|
|
62
63
|
"data-1p-ignore": "",
|
|
63
64
|
readOnly: e.readOnly,
|
|
64
65
|
spellcheck: "false",
|
|
65
66
|
type: f.value,
|
|
66
67
|
value: e.modelValue,
|
|
67
|
-
onInput: l[1] || (l[1] = (
|
|
68
|
+
onInput: l[1] || (l[1] = (o) => t(
|
|
68
69
|
"update:modelValue",
|
|
69
|
-
|
|
70
|
+
o.target.value ?? ""
|
|
70
71
|
))
|
|
71
|
-
}), null, 16,
|
|
72
|
+
}), null, 16, T)) : (n(), s(W, y({ key: 1 }, e.$attrs, {
|
|
72
73
|
id: e.id,
|
|
73
74
|
ref_key: "codeInput",
|
|
74
75
|
ref: m,
|
|
75
76
|
class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none -outline-offset-1", [
|
|
76
77
|
e.type === "password" && e.description && "pr-12",
|
|
77
|
-
e.description && "pr-8"
|
|
78
|
+
e.description && "pr-8",
|
|
79
|
+
e.type === "password" && "scalar-password-input"
|
|
78
80
|
]],
|
|
79
81
|
description: e.description,
|
|
80
82
|
disableCloseBrackets: "",
|
|
81
83
|
disableTabIndent: "",
|
|
82
84
|
envVariables: e.envVariables,
|
|
83
85
|
environment: e.environment,
|
|
86
|
+
lineWrapping: !!e.lineWrapping,
|
|
84
87
|
max: e.max,
|
|
85
88
|
min: e.min,
|
|
86
89
|
modelValue: e.modelValue ?? "",
|
|
@@ -89,22 +92,22 @@ const S = ["for"], T = { class: "row-1 overflow-x-auto" }, N = ["readOnly", "typ
|
|
|
89
92
|
spellcheck: "false",
|
|
90
93
|
type: f.value,
|
|
91
94
|
workspace: e.workspace,
|
|
92
|
-
onBlur:
|
|
93
|
-
onFocus: l[2] || (l[2] = (
|
|
94
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
95
|
-
}), null, 16, ["id", "class", "description", "envVariables", "environment", "max", "min", "modelValue", "readOnly", "required", "type", "workspace"]))
|
|
95
|
+
onBlur: V,
|
|
96
|
+
onFocus: l[2] || (l[2] = (o) => t("inputFocus")),
|
|
97
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => t("update:modelValue", o))
|
|
98
|
+
}), null, 16, ["id", "class", "description", "envVariables", "environment", "lineWrapping", "max", "min", "modelValue", "readOnly", "required", "type", "workspace"]))
|
|
96
99
|
], 64))
|
|
97
100
|
]),
|
|
98
|
-
e.$slots.warning ? (n(),
|
|
99
|
-
|
|
101
|
+
e.$slots.warning ? (n(), i("div", N, [
|
|
102
|
+
u(e.$slots, "warning", {}, void 0, !0)
|
|
100
103
|
])) : p("", !0),
|
|
101
|
-
|
|
104
|
+
u(e.$slots, "icon", {}, void 0, !0),
|
|
102
105
|
e.type === "password" ? (n(), s(h(A), {
|
|
103
106
|
key: 2,
|
|
104
107
|
class: "-ml-.5 mr-1.25 p-1.25 h-6 w-6 self-center",
|
|
105
|
-
icon:
|
|
106
|
-
label:
|
|
107
|
-
onClick: l[4] || (l[4] = (
|
|
108
|
+
icon: r.value ? "Show" : "Hide",
|
|
109
|
+
label: r.value ? "Show Password" : "Hide Password",
|
|
110
|
+
onClick: l[4] || (l[4] = (o) => r.value = !r.value)
|
|
108
111
|
}, null, 8, ["icon", "label"])) : p("", !0)
|
|
109
112
|
]),
|
|
110
113
|
_: 3
|
|
@@ -112,5 +115,5 @@ const S = ["for"], T = { class: "row-1 overflow-x-auto" }, N = ["readOnly", "typ
|
|
|
112
115
|
}
|
|
113
116
|
});
|
|
114
117
|
export {
|
|
115
|
-
|
|
118
|
+
L as default
|
|
116
119
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=EnvironmentSelector.vue.d.ts.map
|
|
@@ -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":";AA2cA,wBAMG"}
|
|
@@ -1,123 +1,113 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarDropdown as L, ScalarDropdownItem as
|
|
3
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as b, computed as E, watch as B, onMounted as D, openBlock as c, createBlock as u, unref as n, withCtx as s, createElementBlock as M, Fragment as V, renderList as W, withModifiers as w, createVNode as l, createTextVNode as h, toDisplayString as k, createElementVNode as v, createCommentVNode as j } from "vue";
|
|
2
|
+
import { ScalarDropdown as L, ScalarDropdownItem as d, ScalarListboxCheckbox as g, ScalarDropdownDivider as T, ScalarIcon as $, ScalarButton as z } from "@scalar/components";
|
|
3
|
+
import { useRouter as A } from "vue-router";
|
|
4
|
+
import { PathId as F } from "../../routes.js";
|
|
4
5
|
import { useActiveEntities as O } from "../../store/active-entities.js";
|
|
5
|
-
import { useWorkspace as
|
|
6
|
-
import { useLayout as
|
|
7
|
-
const q = { class: "m-0 flex items-center gap-1.5 whitespace-nowrap font-medium" }, G = { class: "flex h-4 w-4 items-center justify-center" },
|
|
6
|
+
import { useWorkspace as P } from "../../store/store.js";
|
|
7
|
+
import { useLayout as R } from "../../hooks/useLayout.js";
|
|
8
|
+
const q = { class: "m-0 flex items-center gap-1.5 whitespace-nowrap font-medium" }, G = { class: "flex h-4 w-4 items-center justify-center" }, ee = /* @__PURE__ */ b({
|
|
8
9
|
__name: "EnvironmentSelector",
|
|
9
10
|
setup(H) {
|
|
10
|
-
const { activeCollection: a, activeWorkspace: i, activeEnvironment:
|
|
11
|
+
const { activeCollection: a, activeWorkspace: i, activeEnvironment: m } = O(), { collectionMutators: _ } = P(), { layout: S } = R(), C = A(), p = (e) => {
|
|
11
12
|
a.value && i.value && (_.edit(
|
|
12
13
|
a.value.uid,
|
|
13
14
|
"x-scalar-active-environment",
|
|
14
15
|
e
|
|
15
16
|
), i.value.activeEnvironmentId = e);
|
|
16
|
-
},
|
|
17
|
+
}, y = () => {
|
|
17
18
|
var e;
|
|
18
19
|
return C.push({
|
|
19
|
-
name: "environment",
|
|
20
|
+
name: "environment.default",
|
|
20
21
|
params: {
|
|
21
|
-
|
|
22
|
+
[F.Workspace]: (e = i.value) == null ? void 0 : e.uid
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
|
-
},
|
|
25
|
-
const { value: e } =
|
|
26
|
-
return (e == null ? void 0 : e.
|
|
27
|
-
}), N =
|
|
25
|
+
}, I = E(() => {
|
|
26
|
+
const { value: e } = m, { value: t } = a;
|
|
27
|
+
return (e == null ? void 0 : e.name) || (t == null ? void 0 : t["x-scalar-active-environment"]) || "No Environment";
|
|
28
|
+
}), N = E(() => {
|
|
28
29
|
const { value: e } = a, t = e == null ? void 0 : e["x-scalar-environments"];
|
|
29
30
|
return t ? Object.entries(t).map(([o, r]) => ({
|
|
30
31
|
...r,
|
|
31
32
|
uid: o,
|
|
32
33
|
name: o
|
|
33
34
|
})) : [];
|
|
34
|
-
}),
|
|
35
|
+
}), f = (e) => {
|
|
35
36
|
const t = e["x-scalar-active-environment"];
|
|
36
37
|
t && a.value && i.value ? (a.value["x-scalar-active-environment"] = t, i.value.activeEnvironmentId = t) : i.value && (i.value.activeEnvironmentId = "");
|
|
37
38
|
};
|
|
38
39
|
return B(
|
|
39
40
|
a,
|
|
40
|
-
(e) => e &&
|
|
41
|
+
(e) => e && f(e)
|
|
41
42
|
), D(() => {
|
|
42
|
-
a.value &&
|
|
43
|
-
}), (e, t) => (c(),
|
|
44
|
-
s(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
];
|
|
59
|
-
}),
|
|
60
|
-
_: 2
|
|
61
|
-
}, 1032, ["onClick"]))), 128)),
|
|
62
|
-
s(n(m), {
|
|
63
|
-
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
64
|
-
onClick: t[0] || (t[0] = h((o) => d(""), ["stop"]))
|
|
65
|
-
}, {
|
|
66
|
-
default: l(() => {
|
|
67
|
-
var o, r;
|
|
68
|
-
return [
|
|
69
|
-
u("div", {
|
|
70
|
-
class: V([
|
|
71
|
-
"flex h-4 w-4 items-center justify-center rounded-full p-[3px]",
|
|
72
|
-
((o = n(v)) == null ? void 0 : o.uid) === "" && ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === "" ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
|
|
73
|
-
])
|
|
74
|
-
}, [
|
|
75
|
-
s(n(g), {
|
|
76
|
-
class: "size-2.5",
|
|
77
|
-
icon: "Checkmark",
|
|
78
|
-
thickness: "3"
|
|
79
|
-
})
|
|
80
|
-
], 2),
|
|
81
|
-
t[1] || (t[1] = E(" No Environment "))
|
|
82
|
-
];
|
|
83
|
-
}),
|
|
84
|
-
_: 1
|
|
43
|
+
a.value && f(a.value);
|
|
44
|
+
}), (e, t) => (c(), u(n(L), { teleport: "" }, {
|
|
45
|
+
items: s(() => [
|
|
46
|
+
(c(!0), M(V, null, W(N.value, (o) => (c(), u(n(d), {
|
|
47
|
+
key: o.uid,
|
|
48
|
+
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
49
|
+
onClick: w((r) => p(o.uid), ["stop"])
|
|
50
|
+
}, {
|
|
51
|
+
default: s(() => {
|
|
52
|
+
var r;
|
|
53
|
+
return [
|
|
54
|
+
l(n(g), {
|
|
55
|
+
selected: ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === o.uid
|
|
56
|
+
}, null, 8, ["selected"]),
|
|
57
|
+
h(" " + k(o.name), 1)
|
|
58
|
+
];
|
|
85
59
|
}),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
])
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
60
|
+
_: 2
|
|
61
|
+
}, 1032, ["onClick"]))), 128)),
|
|
62
|
+
l(n(d), {
|
|
63
|
+
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
64
|
+
onClick: t[0] || (t[0] = w((o) => p(""), ["stop"]))
|
|
65
|
+
}, {
|
|
66
|
+
default: s(() => {
|
|
67
|
+
var o, r, x;
|
|
68
|
+
return [
|
|
69
|
+
l(n(g), {
|
|
70
|
+
selected: ((o = n(m)) == null ? void 0 : o.uid) === "" && ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === "" || ((x = n(m)) == null ? void 0 : x.name) === "No Environment"
|
|
71
|
+
}, null, 8, ["selected"]),
|
|
72
|
+
t[1] || (t[1] = h(" No Environment "))
|
|
73
|
+
];
|
|
74
|
+
}),
|
|
75
|
+
_: 1
|
|
76
|
+
}),
|
|
77
|
+
l(n(T)),
|
|
78
|
+
n(S) !== "modal" ? (c(), u(n(d), {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: "flex items-center gap-1.5",
|
|
81
|
+
onClick: y
|
|
82
|
+
}, {
|
|
83
|
+
default: s(() => [
|
|
84
|
+
v("div", G, [
|
|
85
|
+
l(n($), {
|
|
86
|
+
icon: "Brackets",
|
|
87
|
+
size: "sm"
|
|
88
|
+
})
|
|
112
89
|
]),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
90
|
+
t[2] || (t[2] = v("span", { class: "leading-none" }, "Manage Environments", -1))
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})) : j("", !0)
|
|
94
|
+
]),
|
|
95
|
+
default: s(() => [
|
|
96
|
+
l(n(z), {
|
|
97
|
+
class: "text-c-1 hover:bg-b-2 line-clamp-1 h-auto w-fit justify-start px-1.5 py-1.5 font-normal",
|
|
98
|
+
fullWidth: "",
|
|
99
|
+
variant: "ghost"
|
|
100
|
+
}, {
|
|
101
|
+
default: s(() => [
|
|
102
|
+
v("h2", q, k(I.value), 1)
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
})
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}));
|
|
119
109
|
}
|
|
120
110
|
});
|
|
121
111
|
export {
|
|
122
|
-
|
|
112
|
+
ee as default
|
|
123
113
|
};
|
|
@@ -16,10 +16,10 @@ declare function __VLS_template(): {
|
|
|
16
16
|
title?(_: {}): any;
|
|
17
17
|
};
|
|
18
18
|
refs: {};
|
|
19
|
-
rootEl:
|
|
19
|
+
rootEl: any;
|
|
20
20
|
};
|
|
21
21
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
22
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
24
|
export default _default;
|
|
25
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAWlE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;KACpB,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,EAC/B,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,KACrC,IAAI,CAAA;CACV,CAAC;AAYF,iBAAS,cAAc;WAsIT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, useId as v, openBlock as l, createBlock as r, createSlots as c, withCtx as o, createElementVNode as n, unref as t, createElementBlock as m, Fragment as y, renderList as h, normalizeClass as g, createVNode as p, toDisplayString as u, createCommentVNode as V, renderSlot as w } from "vue";
|
|
2
2
|
import { ScalarIcon as E } from "@scalar/components";
|
|
3
3
|
import C from "../DataTable/DataTable.vue.js";
|
|
4
4
|
import S from "../DataTable/DataTableInput.vue.js";
|
|
5
5
|
import U from "../DataTable/DataTableRow.vue.js";
|
|
6
6
|
import $ from "../ViewLayout/ViewLayoutSection.vue.js";
|
|
7
|
-
import { useActiveEntities as
|
|
8
|
-
const
|
|
7
|
+
import { useActiveEntities as z } from "../../store/active-entities.js";
|
|
8
|
+
const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"], I = { class: "centered-y bg-b-2 flex-center z-1 absolute right-1 rounded px-1 py-0.5" }, q = /* @__PURE__ */ b({
|
|
9
9
|
__name: "Form",
|
|
10
10
|
props: {
|
|
11
11
|
title: {},
|
|
@@ -13,24 +13,27 @@ const D = { key: 0 }, F = { class: "custom-scroll flex flex-1 flex-col gap-1.5"
|
|
|
13
13
|
data: {},
|
|
14
14
|
onUpdate: { type: Function }
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const { activeEnvVariables:
|
|
18
|
-
return (e, T) => (l(), r($,
|
|
16
|
+
setup(N) {
|
|
17
|
+
const { activeEnvVariables: f, activeEnvironment: k, activeWorkspace: s } = z(), i = v();
|
|
18
|
+
return (e, T) => (l(), r($, { class: "rounded-b-lg" }, c({
|
|
19
19
|
default: o(() => [
|
|
20
|
-
n("div",
|
|
20
|
+
n("div", D, [
|
|
21
21
|
Object.keys(e.data).length > 0 && t(s) ? (l(), r(C, {
|
|
22
22
|
key: 0,
|
|
23
|
-
columns: [""]
|
|
23
|
+
columns: [""],
|
|
24
|
+
class: "rounded-b-lg"
|
|
24
25
|
}, {
|
|
25
26
|
default: o(() => [
|
|
26
27
|
(l(!0), m(y, null, h(e.options, (a, d) => (l(), r(U, {
|
|
27
28
|
key: d,
|
|
28
|
-
class:
|
|
29
|
+
class: g({ "border-t": d === 0 })
|
|
29
30
|
}, {
|
|
30
31
|
default: o(() => [
|
|
31
32
|
p(S, {
|
|
33
|
+
class: "pr-9",
|
|
34
|
+
lineWrapping: "",
|
|
32
35
|
id: t(i),
|
|
33
|
-
envVariables: t(
|
|
36
|
+
envVariables: t(f),
|
|
34
37
|
environment: t(k),
|
|
35
38
|
modelValue: e.data[a.key] ?? "",
|
|
36
39
|
placeholder: a.placeholder,
|
|
@@ -38,14 +41,14 @@ const D = { key: 0 }, F = { class: "custom-scroll flex flex-1 flex-col gap-1.5"
|
|
|
38
41
|
"onUpdate:modelValue": (_) => e.onUpdate(a.key, _)
|
|
39
42
|
}, c({
|
|
40
43
|
default: o(() => [
|
|
41
|
-
n("label", { for: t(i) },
|
|
44
|
+
n("label", { for: t(i) }, u(a.label), 9, F)
|
|
42
45
|
]),
|
|
43
46
|
_: 2
|
|
44
47
|
}, [
|
|
45
48
|
a.key === "description" ? {
|
|
46
49
|
name: "icon",
|
|
47
50
|
fn: o(() => [
|
|
48
|
-
n("div",
|
|
51
|
+
n("div", I, [
|
|
49
52
|
p(t(E), {
|
|
50
53
|
icon: "Markdown",
|
|
51
54
|
size: "lg"
|
|
@@ -60,7 +63,7 @@ const D = { key: 0 }, F = { class: "custom-scroll flex flex-1 flex-col gap-1.5"
|
|
|
60
63
|
}, 1032, ["class"]))), 128))
|
|
61
64
|
]),
|
|
62
65
|
_: 1
|
|
63
|
-
})) :
|
|
66
|
+
})) : V("", !0)
|
|
64
67
|
])
|
|
65
68
|
]),
|
|
66
69
|
_: 2
|
|
@@ -68,7 +71,7 @@ const D = { key: 0 }, F = { class: "custom-scroll flex flex-1 flex-col gap-1.5"
|
|
|
68
71
|
e.title || e.$slots.title ? {
|
|
69
72
|
name: "title",
|
|
70
73
|
fn: o(() => [
|
|
71
|
-
e.title ? (l(), m("span",
|
|
74
|
+
e.title ? (l(), m("span", B, u(e.title), 1)) : w(e.$slots, "title", { key: 1 })
|
|
72
75
|
]),
|
|
73
76
|
key: "0"
|
|
74
77
|
} : void 0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationLogo.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/IntegrationLogo.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IntegrationLogo.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/IntegrationLogo.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAC;;AA0GF,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAkSA,wBAMG"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as w, openBlock as r, createElementBlock as n, normalizeClass as d, unref as e, createVNode as t, withCtx as a, createElementVNode as c, Fragment as k, renderList as b, createTextVNode as u, toDisplayString as y, createCommentVNode as C } from "vue";
|
|
2
|
+
import { ScalarIcon as S } from "@scalar/components";
|
|
3
|
+
import { useRouter as L } from "vue-router";
|
|
4
4
|
import { ROUTES as B } from "../../constants.js";
|
|
5
5
|
import { PathId as _ } from "../../routes.js";
|
|
6
6
|
import E from "./DownloadAppButton.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import N from "./SideHelp.vue.js";
|
|
8
8
|
import g from "./SideNavGroup.vue.js";
|
|
9
|
-
import
|
|
9
|
+
import v from "./SideNavRouterLink.vue.js";
|
|
10
10
|
import { useActiveEntities as V } from "../../store/active-entities.js";
|
|
11
11
|
import { useLayout as j } from "../../hooks/useLayout.js";
|
|
12
12
|
const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "hidden items-center justify-center sm:ml-1.5 sm:flex"
|
|
15
|
-
}, K = /* @__PURE__ */
|
|
15
|
+
}, K = /* @__PURE__ */ w({
|
|
16
16
|
__name: "SideNav",
|
|
17
17
|
setup($) {
|
|
18
|
-
const { currentRoute:
|
|
19
|
-
return (z,
|
|
18
|
+
const { currentRoute: s } = L(), { layout: i } = j(), { activeWorkspace: l } = V();
|
|
19
|
+
return (z, p) => (r(), n("nav", {
|
|
20
20
|
"aria-label": "App Navigation",
|
|
21
21
|
class: d([
|
|
22
22
|
"app-drag-region flex items-center justify-center gap-1.5 pt-2 sm:justify-between",
|
|
@@ -25,36 +25,36 @@ const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W
|
|
|
25
25
|
role: "navigation"
|
|
26
26
|
}, [
|
|
27
27
|
t(g, { class: "app-no-drag-region" }, {
|
|
28
|
-
default:
|
|
29
|
-
|
|
28
|
+
default: a(() => [
|
|
29
|
+
c("a", {
|
|
30
30
|
class: d(["ml-1 mr-3 hidden items-center", {
|
|
31
31
|
"sm:flex": e(i) === "web"
|
|
32
32
|
}]),
|
|
33
33
|
href: "https://www.scalar.com",
|
|
34
34
|
target: "_blank"
|
|
35
35
|
}, [
|
|
36
|
-
t(e(
|
|
36
|
+
t(e(S), {
|
|
37
37
|
icon: "Logo",
|
|
38
38
|
size: "xl"
|
|
39
39
|
})
|
|
40
40
|
], 2),
|
|
41
|
-
(r(!0),
|
|
41
|
+
(r(!0), n(k, null, b(e(B).filter(
|
|
42
42
|
(o) => o.to.name !== "settings.default"
|
|
43
|
-
), ({ icon: o, to:
|
|
43
|
+
), ({ icon: o, to: x, displayName: m }, h) => {
|
|
44
44
|
var f;
|
|
45
|
-
return r(),
|
|
46
|
-
t(
|
|
47
|
-
active: e(
|
|
45
|
+
return r(), n("li", { key: h }, [
|
|
46
|
+
t(v, {
|
|
47
|
+
active: e(s).name === m.toLowerCase() || m.toLowerCase() === "environment" && e(s).name === "environment.collection",
|
|
48
48
|
icon: o,
|
|
49
49
|
to: {
|
|
50
|
-
...
|
|
50
|
+
...x,
|
|
51
51
|
params: {
|
|
52
|
-
[e(_).Workspace]: ((f = e(
|
|
52
|
+
[e(_).Workspace]: ((f = e(l)) == null ? void 0 : f.uid) ?? "default"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
u(y(
|
|
56
|
+
default: a(() => [
|
|
57
|
+
u(y(m), 1)
|
|
58
58
|
]),
|
|
59
59
|
_: 2
|
|
60
60
|
}, 1032, ["active", "icon", "to"])
|
|
@@ -64,32 +64,32 @@ const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W
|
|
|
64
64
|
_: 1
|
|
65
65
|
}),
|
|
66
66
|
t(g, { class: "app-no-drag-region" }, {
|
|
67
|
-
default:
|
|
67
|
+
default: a(() => {
|
|
68
68
|
var o;
|
|
69
69
|
return [
|
|
70
|
-
|
|
71
|
-
t(
|
|
72
|
-
active: e(
|
|
70
|
+
c("li", A, [
|
|
71
|
+
t(v, {
|
|
72
|
+
active: e(s).name === "settings",
|
|
73
73
|
icon: "Settings",
|
|
74
74
|
to: {
|
|
75
75
|
name: "settings.default",
|
|
76
76
|
params: {
|
|
77
|
-
[e(_).Workspace]: (o = e(
|
|
77
|
+
[e(_).Workspace]: (o = e(l)) == null ? void 0 : o.uid
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}, {
|
|
81
|
-
default:
|
|
81
|
+
default: a(() => p[0] || (p[0] = [
|
|
82
82
|
u(" Settings ")
|
|
83
83
|
])),
|
|
84
84
|
_: 1
|
|
85
85
|
}, 8, ["active", "to"])
|
|
86
86
|
]),
|
|
87
|
-
|
|
88
|
-
t(
|
|
87
|
+
c("li", R, [
|
|
88
|
+
t(N)
|
|
89
89
|
]),
|
|
90
|
-
e(i) !== "desktop" ? (r(),
|
|
90
|
+
e(i) !== "desktop" ? (r(), n("li", W, [
|
|
91
91
|
t(E)
|
|
92
|
-
])) :
|
|
92
|
+
])) : C("", !0)
|
|
93
93
|
];
|
|
94
94
|
}),
|
|
95
95
|
_: 1
|