@scalar/api-client 2.2.48 → 2.2.50
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 +41 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +15 -3
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +102 -94
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +54 -58
- package/dist/components/CodeInput/CodeInput.vue.d.ts +9 -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 +95 -93
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +1 -3
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -22
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +13 -13
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +54 -49
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +9 -9
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +11 -8
- package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue2.js +36 -30
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -15
- package/dist/components/Form/Form.vue.d.ts +3 -1
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +30 -25
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +41 -41
- package/dist/components/ImportCollection/ImportNowButton.vue.js +24 -24
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +13 -13
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +19 -19
- package/dist/layouts/App/create-api-client-app.d.ts +387 -477
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +774 -954
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +387 -477
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +390 -479
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +3 -15
- package/dist/libs/env-helpers.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +7 -7
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +3 -1
- package/dist/libs/hot-keys.d.ts.map +1 -1
- package/dist/libs/hot-keys.js +11 -15
- package/dist/libs/hot-keys.test.d.ts +2 -0
- package/dist/libs/hot-keys.test.d.ts.map +1 -0
- package/dist/libs/index.js +27 -26
- package/dist/libs/send-request/build-request-security.d.ts +1 -1
- package/dist/libs/send-request/build-request-security.js +19 -16
- package/dist/libs/send-request/create-request-operation.test.d.ts +10 -10
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.js +37 -34
- package/dist/store/active-entities.d.ts +58 -67
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +61 -74
- package/dist/store/collections.d.ts +90 -90
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +4 -17
- package/dist/store/cookies.d.ts +14 -14
- package/dist/store/environment.d.ts +19 -18
- package/dist/store/environment.d.ts.map +1 -1
- package/dist/store/environment.js +2 -8
- package/dist/store/import-spec.d.ts +16 -106
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +9 -14
- package/dist/store/request-example.d.ts +25 -25
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/request-example.js +15 -20
- package/dist/store/requests.d.ts +84 -84
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/requests.js +17 -40
- package/dist/store/router-params.d.ts +13 -11
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +5 -5
- package/dist/store/security-schemes.d.ts +58 -58
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +1 -3
- package/dist/store/servers.d.ts +17 -17
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/servers.js +2 -9
- package/dist/store/store.d.ts +387 -477
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +2 -4
- package/dist/store/tags.d.ts +28 -28
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/tags.js +19 -34
- package/dist/store/workspace.d.ts +36 -36
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +1 -5
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +18 -18
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +24 -24
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +140 -132
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +2 -2
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +15 -15
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +160 -141
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -7
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +6 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +99 -95
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +4 -0
- 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 +70 -64
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +40 -34
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +6 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +32 -26
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +93 -85
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +9 -0
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +214 -244
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +10 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +77 -80
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +89 -96
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +10 -2
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +59 -66
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +11 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +176 -155
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +6 -0
- 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/RequestSection/RequestTable.vue2.js +97 -100
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +31 -22
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +2 -2
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/getting-started.js +11 -13
- 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 +50 -48
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +38 -44
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +10 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +77 -69
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +4 -1
- 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 +41 -39
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +56 -52
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +68 -68
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.d.ts +1 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.js +38 -55
- package/dist/views/Request/libs/auth.d.ts +2 -2
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +28 -29
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +42 -65
- package/dist/views/Request/libs/request.d.ts +5 -0
- package/dist/views/Request/libs/request.d.ts.map +1 -1
- package/dist/views/Request/libs/request.js +37 -2
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +10 -34
- package/dist/views/Servers/ServerForm.vue.d.ts +1 -8
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.js +21 -22
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +73 -81
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +118 -134
- package/package.json +14 -14
|
@@ -1,50 +1,55 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as ie, ref as h, watch as ue, onMounted as me, onBeforeUnmount as ce, openBlock as v, createBlock as g, withCtx as c, createVNode as u, createElementVNode as p, createElementBlock as $, Fragment as z, renderList as A, unref as s, normalizeClass as B, createTextVNode as K, toDisplayString as F, withDirectives as de, withModifiers as ve, createCommentVNode as G, vShow as fe, createSlots as pe } from "vue";
|
|
2
|
+
import { useModal as N, ScalarIcon as J, ScalarButton as xe, ScalarModal as be } from "@scalar/components";
|
|
3
|
+
import { LibraryIcon as he } from "@scalar/icons";
|
|
4
|
+
import { useToasts as Ce } from "@scalar/use-toasts";
|
|
5
|
+
import { useRouter as Ee, useRoute as ye } from "vue-router";
|
|
6
|
+
import ke from "../../components/CodeInput/CodeInput.vue.js";
|
|
7
|
+
import ge from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
8
|
+
import _e from "../../components/Sidebar/Sidebar.vue.js";
|
|
9
|
+
import we from "../../components/Sidebar/SidebarButton.vue.js";
|
|
10
|
+
import Ie from "../../components/Sidebar/SidebarList.vue.js";
|
|
11
|
+
import T from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
12
|
+
import Se from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
13
|
+
import Me from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
14
|
+
import Ve from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
11
15
|
import { PathId as m } from "../../routes.js";
|
|
12
|
-
import { useActiveEntities as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
import Ne from "./EnvironmentModal.vue.js";
|
|
19
|
-
import { useWorkspace as Oe } from "../../store/store.js";
|
|
20
|
-
import { useSidebar as je } from "../../hooks/useSidebar.js";
|
|
21
|
-
const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-center justify-center max-w-[14px]" }, an = /* @__PURE__ */ se({
|
|
16
|
+
import { useActiveEntities as $e } from "../../store/active-entities.js";
|
|
17
|
+
import Ne from "./EnvironmentColorModal.vue.js";
|
|
18
|
+
import Oe from "./EnvironmentModal.vue.js";
|
|
19
|
+
import { useWorkspace as je } from "../../store/store.js";
|
|
20
|
+
import { useSidebar as Re } from "../../hooks/useSidebar.js";
|
|
21
|
+
const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-[14px] items-center justify-center" }, ln = /* @__PURE__ */ ie({
|
|
22
22
|
__name: "Environment",
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
|
|
23
|
+
setup(We) {
|
|
24
|
+
const C = Ee(), E = ye(), {
|
|
25
|
+
activeWorkspace: x,
|
|
26
|
+
activeEnvironment: O,
|
|
27
|
+
activeWorkspaceCollections: i,
|
|
28
|
+
activeEnvVariables: H
|
|
29
|
+
} = $e(), { events: j, workspaceMutators: P, collectionMutators: y } = je(), { collapsedSidebarFolders: k, toggleSidebarFolder: _ } = Re(), w = N(), I = N(), S = N(), R = h(null), r = h("default"), D = h(""), b = h(void 0), d = h(void 0), M = h(void 0), { toast: L } = Ce(), q = (e) => JSON.parse(e);
|
|
30
|
+
function U(e, o, n) {
|
|
26
31
|
var t;
|
|
27
|
-
e && (o.uid === n ?
|
|
32
|
+
e && (o.uid === n ? L(
|
|
28
33
|
`Environment name already used in ${(t = o.info) == null ? void 0 : t.title}`,
|
|
29
34
|
"error"
|
|
30
|
-
) :
|
|
35
|
+
) : L("Environment name already used in another collection", "error"));
|
|
31
36
|
}
|
|
32
|
-
function
|
|
37
|
+
function Q(e) {
|
|
33
38
|
i.value.some(
|
|
34
39
|
(n) => {
|
|
35
40
|
const t = Object.keys(
|
|
36
41
|
n["x-scalar-environments"] || {}
|
|
37
42
|
).includes(e.name);
|
|
38
|
-
return
|
|
43
|
+
return U(t, n, e.collectionId), t;
|
|
39
44
|
}
|
|
40
|
-
) || (e.collectionId && (
|
|
45
|
+
) || (e.collectionId && (y.addEnvironment(
|
|
41
46
|
e.name,
|
|
42
47
|
{
|
|
43
48
|
variables: {},
|
|
44
49
|
color: e.color
|
|
45
50
|
},
|
|
46
51
|
e.collectionId
|
|
47
|
-
),
|
|
52
|
+
), k[e.collectionId] || _(e.collectionId), C.push({
|
|
48
53
|
name: "environment.collection",
|
|
49
54
|
params: {
|
|
50
55
|
[m.Collection]: e.collectionId,
|
|
@@ -52,13 +57,13 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
52
57
|
}
|
|
53
58
|
})), I.hide());
|
|
54
59
|
}
|
|
55
|
-
function
|
|
60
|
+
function X(e) {
|
|
56
61
|
var o, n;
|
|
57
|
-
if (
|
|
58
|
-
const t =
|
|
62
|
+
if (O) {
|
|
63
|
+
const t = q(e);
|
|
59
64
|
if (r.value === "default")
|
|
60
|
-
|
|
61
|
-
(
|
|
65
|
+
P.edit(
|
|
66
|
+
(o = x.value) == null ? void 0 : o.uid,
|
|
62
67
|
"environments",
|
|
63
68
|
t
|
|
64
69
|
);
|
|
@@ -71,7 +76,7 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
71
76
|
);
|
|
72
77
|
if ((n = a == null ? void 0 : a["x-scalar-environments"]) != null && n[r.value ?? ""]) {
|
|
73
78
|
const l = a["x-scalar-environments"][r.value ?? ""];
|
|
74
|
-
l && (l.variables = t,
|
|
79
|
+
l && (l.variables = t, y.edit(
|
|
75
80
|
a.uid,
|
|
76
81
|
"x-scalar-environments",
|
|
77
82
|
a["x-scalar-environments"]
|
|
@@ -81,19 +86,19 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
81
86
|
}
|
|
82
87
|
}
|
|
83
88
|
const V = (e) => {
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
},
|
|
89
|
+
b.value = e, I.show();
|
|
90
|
+
}, Y = (e, o) => {
|
|
91
|
+
d.value = e, b.value = o, M.value = e, S.show();
|
|
92
|
+
}, Z = (e) => {
|
|
88
93
|
var o, n, t;
|
|
89
|
-
|
|
94
|
+
R.value = e, D.value = ((t = (n = (o = i.value.find(
|
|
90
95
|
(a) => {
|
|
91
96
|
var l;
|
|
92
97
|
return (l = a["x-scalar-environments"]) == null ? void 0 : l[e];
|
|
93
98
|
}
|
|
94
99
|
)) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[e]) == null ? void 0 : t.color) ?? "", w.show();
|
|
95
|
-
},
|
|
96
|
-
const o =
|
|
100
|
+
}, ee = (e) => {
|
|
101
|
+
const o = R.value;
|
|
97
102
|
typeof o == "string" && (i.value.some(
|
|
98
103
|
(t) => {
|
|
99
104
|
var a;
|
|
@@ -101,16 +106,16 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
101
106
|
}
|
|
102
107
|
) && i.value.forEach((t) => {
|
|
103
108
|
var a;
|
|
104
|
-
(a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e,
|
|
109
|
+
(a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, y.edit(
|
|
105
110
|
t.uid,
|
|
106
111
|
"x-scalar-environments",
|
|
107
112
|
t["x-scalar-environments"]
|
|
108
113
|
));
|
|
109
114
|
}), w.hide());
|
|
110
115
|
};
|
|
111
|
-
function
|
|
116
|
+
function ne(e) {
|
|
112
117
|
i.value.forEach((n) => {
|
|
113
|
-
|
|
118
|
+
y.removeEnvironment(e, n.uid);
|
|
114
119
|
});
|
|
115
120
|
const o = i.value.flatMap(
|
|
116
121
|
(n) => Object.keys(n["x-scalar-environments"] || {})
|
|
@@ -123,22 +128,22 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
123
128
|
n
|
|
124
129
|
)
|
|
125
130
|
);
|
|
126
|
-
r.value = n,
|
|
131
|
+
r.value = n, C.push({
|
|
127
132
|
name: "environment.collection",
|
|
128
133
|
params: {
|
|
129
134
|
collectionId: t == null ? void 0 : t.uid,
|
|
130
135
|
environmentId: n
|
|
131
136
|
}
|
|
132
|
-
}), t && !
|
|
137
|
+
}), t && !k[t.uid] && _(t.uid);
|
|
133
138
|
} else
|
|
134
|
-
r.value = "default",
|
|
139
|
+
r.value = "default", C.push({
|
|
135
140
|
name: "environment",
|
|
136
141
|
params: { environment: "default" }
|
|
137
142
|
});
|
|
138
143
|
}
|
|
139
|
-
const
|
|
144
|
+
const te = () => r.value === "default" ? "Global Environment" : r.value, oe = () => {
|
|
140
145
|
var e, o, n, t;
|
|
141
|
-
return r.value === "default" ? JSON.stringify((e =
|
|
146
|
+
return r.value === "default" ? JSON.stringify((e = x.value) == null ? void 0 : e.environments, null, 2) : JSON.stringify(
|
|
142
147
|
(t = (n = (o = i.value.find(
|
|
143
148
|
(a) => {
|
|
144
149
|
var l;
|
|
@@ -148,72 +153,72 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
148
153
|
null,
|
|
149
154
|
2
|
|
150
155
|
);
|
|
151
|
-
},
|
|
152
|
-
e != null && e.createNew &&
|
|
156
|
+
}, ae = (e) => k[e], W = (e) => {
|
|
157
|
+
e != null && e.createNew && E.name === "environment" && V();
|
|
153
158
|
};
|
|
154
|
-
|
|
155
|
-
() => [
|
|
159
|
+
ue(
|
|
160
|
+
() => [E.params[m.Collection], E.params[m.Environment]],
|
|
156
161
|
([e, o]) => {
|
|
157
162
|
e ? r.value = o : r.value = "default";
|
|
158
163
|
}
|
|
159
|
-
),
|
|
160
|
-
r.value =
|
|
161
|
-
const e =
|
|
162
|
-
e && !
|
|
163
|
-
}),
|
|
164
|
-
const
|
|
164
|
+
), me(() => {
|
|
165
|
+
r.value = E.params[m.Environment] || "default", j.hotKeys.on(W);
|
|
166
|
+
const e = E.params[m.Collection];
|
|
167
|
+
e && !k[e] && _(e);
|
|
168
|
+
}), ce(() => j.hotKeys.off(W));
|
|
169
|
+
const le = (e, o, n) => {
|
|
165
170
|
var a, l;
|
|
166
171
|
const t = n ? {
|
|
167
172
|
name: "environment.collection",
|
|
168
173
|
params: {
|
|
169
|
-
[m.Workspace]: (a =
|
|
174
|
+
[m.Workspace]: (a = x.value) == null ? void 0 : a.uid,
|
|
170
175
|
[m.Collection]: n,
|
|
171
176
|
[m.Environment]: o
|
|
172
177
|
}
|
|
173
178
|
} : {
|
|
174
179
|
name: "environment.default",
|
|
175
180
|
params: {
|
|
176
|
-
[m.Workspace]: (l =
|
|
181
|
+
[m.Workspace]: (l = x.value) == null ? void 0 : l.uid,
|
|
177
182
|
[m.Environment]: o
|
|
178
183
|
}
|
|
179
184
|
};
|
|
180
|
-
e.metaKey ? window.open(
|
|
185
|
+
e.metaKey ? window.open(C.resolve(t).href, "_blank") : C.push(t);
|
|
181
186
|
};
|
|
182
|
-
function
|
|
183
|
-
|
|
187
|
+
function re() {
|
|
188
|
+
d.value = void 0, b.value = void 0, M.value = void 0, S.hide();
|
|
184
189
|
}
|
|
185
|
-
function
|
|
190
|
+
function se(e) {
|
|
186
191
|
i.value.some(
|
|
187
192
|
(n) => {
|
|
188
193
|
const t = Object.keys(
|
|
189
194
|
n["x-scalar-environments"] || {}
|
|
190
195
|
).includes(e);
|
|
191
|
-
return
|
|
196
|
+
return U(
|
|
192
197
|
t,
|
|
193
198
|
n,
|
|
194
|
-
|
|
199
|
+
b.value
|
|
195
200
|
), t;
|
|
196
201
|
}
|
|
197
|
-
) || (e &&
|
|
202
|
+
) || (e && d.value !== "default" && i.value.forEach((n) => {
|
|
198
203
|
var t;
|
|
199
|
-
if ((t = n["x-scalar-environments"]) != null && t[
|
|
200
|
-
const a = n["x-scalar-environments"][
|
|
201
|
-
a && (delete n["x-scalar-environments"][
|
|
204
|
+
if ((t = n["x-scalar-environments"]) != null && t[d.value ?? ""]) {
|
|
205
|
+
const a = n["x-scalar-environments"][d.value ?? ""];
|
|
206
|
+
a && (delete n["x-scalar-environments"][d.value ?? ""], n["x-scalar-environments"][e] = a, y.edit(
|
|
202
207
|
n.uid,
|
|
203
208
|
"x-scalar-environments",
|
|
204
209
|
n["x-scalar-environments"]
|
|
205
210
|
));
|
|
206
211
|
}
|
|
207
|
-
}), e && r.value ===
|
|
212
|
+
}), e && r.value === d.value && (r.value = e), d.value = void 0, b.value = void 0, M.value = void 0, S.hide());
|
|
208
213
|
}
|
|
209
|
-
return (e, o) => (v(),
|
|
210
|
-
default:
|
|
211
|
-
u(
|
|
212
|
-
content:
|
|
213
|
-
p("div",
|
|
214
|
-
u(
|
|
215
|
-
default:
|
|
216
|
-
(v(),
|
|
214
|
+
return (e, o) => (v(), g(Se, null, {
|
|
215
|
+
default: c(() => [
|
|
216
|
+
u(_e, { title: "Collections" }, {
|
|
217
|
+
content: c(() => [
|
|
218
|
+
p("div", De, [
|
|
219
|
+
u(Ie, null, {
|
|
220
|
+
default: c(() => [
|
|
221
|
+
(v(), g(T, {
|
|
217
222
|
key: "default",
|
|
218
223
|
class: "text-xs",
|
|
219
224
|
isCopyable: !1,
|
|
@@ -225,42 +230,42 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
225
230
|
isDefault: !0
|
|
226
231
|
}
|
|
227
232
|
})),
|
|
228
|
-
(v(!0), $(
|
|
233
|
+
(v(!0), $(z, null, A(s(i), (n) => {
|
|
229
234
|
var t;
|
|
230
235
|
return v(), $("li", {
|
|
231
236
|
key: n.uid,
|
|
232
|
-
class: "flex flex-col
|
|
237
|
+
class: "gap-1/2 flex flex-col"
|
|
233
238
|
}, [
|
|
234
239
|
p("button", {
|
|
235
|
-
class: "flex
|
|
240
|
+
class: "hover:bg-b-2 group flex w-full items-center gap-1.5 break-words rounded p-1.5 text-left text-sm font-medium",
|
|
236
241
|
type: "button",
|
|
237
242
|
onClick: (a) => s(_)(n.uid)
|
|
238
243
|
}, [
|
|
239
|
-
p("span",
|
|
240
|
-
u(s(
|
|
241
|
-
class: "
|
|
244
|
+
p("span", Ue, [
|
|
245
|
+
u(s(he), {
|
|
246
|
+
class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
|
|
242
247
|
src: n["x-scalar-icon"] || "interface-content-folder"
|
|
243
248
|
}, null, 8, ["src"]),
|
|
244
249
|
p("div", {
|
|
245
|
-
class:
|
|
246
|
-
"rotate-90": s(
|
|
250
|
+
class: B({
|
|
251
|
+
"rotate-90": s(k)[n.uid]
|
|
247
252
|
})
|
|
248
253
|
}, [
|
|
249
254
|
u(s(J), {
|
|
250
|
-
class: "text-c-3 hidden text-sm group-hover:block
|
|
255
|
+
class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
|
|
251
256
|
icon: "ChevronRight",
|
|
252
257
|
size: "md"
|
|
253
258
|
})
|
|
254
259
|
], 2)
|
|
255
260
|
]),
|
|
256
|
-
|
|
257
|
-
], 8,
|
|
261
|
+
K(" " + F(((t = n.info) == null ? void 0 : t.title) ?? ""), 1)
|
|
262
|
+
], 8, Le),
|
|
258
263
|
de(p("div", {
|
|
259
|
-
class:
|
|
260
|
-
"before:bg-border before:
|
|
264
|
+
class: B({
|
|
265
|
+
"before:bg-border before:z-1 relative mb-[.5px] before:pointer-events-none before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(n["x-scalar-environments"] || {}).length > 0
|
|
261
266
|
})
|
|
262
267
|
}, [
|
|
263
|
-
(v(!0), $(
|
|
268
|
+
(v(!0), $(z, null, A(n["x-scalar-environments"], (a, l) => (v(), g(T, {
|
|
264
269
|
key: l,
|
|
265
270
|
class: "text-xs [&>a]:pl-5",
|
|
266
271
|
collectionId: n.uid,
|
|
@@ -275,18 +280,18 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
275
280
|
isDefault: !1
|
|
276
281
|
},
|
|
277
282
|
warningMessage: "Are you sure you want to delete this environment?",
|
|
278
|
-
onClick:
|
|
279
|
-
onColorModal: (f) =>
|
|
280
|
-
onDelete: (f) =>
|
|
281
|
-
onRename: (f) =>
|
|
283
|
+
onClick: ve((f) => le(f, l, n.uid), ["prevent"]),
|
|
284
|
+
onColorModal: (f) => Z(l),
|
|
285
|
+
onDelete: (f) => ne(l),
|
|
286
|
+
onRename: (f) => Y(l, n.uid)
|
|
282
287
|
}, null, 8, ["collectionId", "variable", "onClick", "onColorModal", "onDelete", "onRename"]))), 128)),
|
|
283
|
-
Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (v(),
|
|
288
|
+
Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (v(), g(s(xe), {
|
|
284
289
|
key: 0,
|
|
285
|
-
class: "
|
|
290
|
+
class: "text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",
|
|
286
291
|
variant: "ghost",
|
|
287
292
|
onClick: (a) => V(n.uid)
|
|
288
293
|
}, {
|
|
289
|
-
default:
|
|
294
|
+
default: c(() => [
|
|
290
295
|
u(s(J), {
|
|
291
296
|
icon: "Add",
|
|
292
297
|
size: "sm"
|
|
@@ -294,9 +299,9 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
294
299
|
o[2] || (o[2] = p("span", null, "Add Environment", -1))
|
|
295
300
|
]),
|
|
296
301
|
_: 2
|
|
297
|
-
}, 1032, ["onClick"])) :
|
|
302
|
+
}, 1032, ["onClick"])) : G("", !0)
|
|
298
303
|
], 2), [
|
|
299
|
-
[
|
|
304
|
+
[fe, ae(n.uid)]
|
|
300
305
|
])
|
|
301
306
|
]);
|
|
302
307
|
}), 128))
|
|
@@ -305,40 +310,43 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
305
310
|
})
|
|
306
311
|
])
|
|
307
312
|
]),
|
|
308
|
-
button:
|
|
309
|
-
u(
|
|
313
|
+
button: c(() => [
|
|
314
|
+
u(we, {
|
|
310
315
|
click: V,
|
|
311
316
|
hotkey: "N"
|
|
312
317
|
}, {
|
|
313
|
-
title:
|
|
314
|
-
|
|
318
|
+
title: c(() => o[3] || (o[3] = [
|
|
319
|
+
K(" Add Environment ")
|
|
315
320
|
])),
|
|
316
321
|
_: 1
|
|
317
322
|
})
|
|
318
323
|
]),
|
|
319
324
|
_: 1
|
|
320
325
|
}),
|
|
321
|
-
u(
|
|
322
|
-
default:
|
|
323
|
-
u(
|
|
324
|
-
default:
|
|
325
|
-
r.value ? (v(),
|
|
326
|
+
u(Me, { class: "flex-1" }, {
|
|
327
|
+
default: c(() => [
|
|
328
|
+
u(Ve, null, pe({
|
|
329
|
+
default: c(() => [
|
|
330
|
+
r.value && s(x) ? (v(), g(ke, {
|
|
326
331
|
key: 0,
|
|
327
|
-
class: "border-t pl-px pr-2 md:px-4
|
|
332
|
+
class: "border-t py-2 pl-px pr-2 md:px-4",
|
|
333
|
+
envVariables: s(H),
|
|
334
|
+
environment: s(O),
|
|
328
335
|
isCopyable: "",
|
|
329
336
|
language: "json",
|
|
330
337
|
lineNumbers: "",
|
|
331
338
|
lint: "",
|
|
332
|
-
modelValue:
|
|
333
|
-
|
|
334
|
-
|
|
339
|
+
modelValue: oe(),
|
|
340
|
+
workspace: s(x),
|
|
341
|
+
"onUpdate:modelValue": X
|
|
342
|
+
}, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : G("", !0)
|
|
335
343
|
]),
|
|
336
344
|
_: 2
|
|
337
345
|
}, [
|
|
338
346
|
r.value ? {
|
|
339
347
|
name: "title",
|
|
340
|
-
fn:
|
|
341
|
-
p("span", null,
|
|
348
|
+
fn: c(() => [
|
|
349
|
+
p("span", null, F(te()), 1)
|
|
342
350
|
]),
|
|
343
351
|
key: "0"
|
|
344
352
|
} : void 0
|
|
@@ -346,29 +354,29 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
346
354
|
]),
|
|
347
355
|
_: 1
|
|
348
356
|
}),
|
|
349
|
-
u(
|
|
350
|
-
selectedColor:
|
|
357
|
+
u(Ne, {
|
|
358
|
+
selectedColor: D.value,
|
|
351
359
|
state: s(w),
|
|
352
360
|
onCancel: o[0] || (o[0] = (n) => s(w).hide()),
|
|
353
|
-
onSubmit:
|
|
361
|
+
onSubmit: ee
|
|
354
362
|
}, null, 8, ["selectedColor", "state"]),
|
|
355
|
-
u(
|
|
363
|
+
u(Oe, {
|
|
356
364
|
activeWorkspaceCollections: s(i),
|
|
357
|
-
collectionId:
|
|
365
|
+
collectionId: b.value,
|
|
358
366
|
state: s(I),
|
|
359
367
|
onCancel: o[1] || (o[1] = (n) => s(I).hide()),
|
|
360
|
-
onSubmit:
|
|
368
|
+
onSubmit: Q
|
|
361
369
|
}, null, 8, ["activeWorkspaceCollections", "collectionId", "state"]),
|
|
362
|
-
u(s(
|
|
370
|
+
u(s(be), {
|
|
363
371
|
size: "xxs",
|
|
364
372
|
state: s(S),
|
|
365
|
-
title: `Edit ${
|
|
373
|
+
title: `Edit ${d.value}`
|
|
366
374
|
}, {
|
|
367
|
-
default:
|
|
368
|
-
u(
|
|
375
|
+
default: c(() => [
|
|
376
|
+
u(ge, {
|
|
369
377
|
name: M.value ?? "",
|
|
370
|
-
onClose:
|
|
371
|
-
onEdit:
|
|
378
|
+
onClose: re,
|
|
379
|
+
onEdit: se
|
|
372
380
|
}, null, 8, ["name"])
|
|
373
381
|
]),
|
|
374
382
|
_: 1
|
|
@@ -379,5 +387,5 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
|
|
|
379
387
|
}
|
|
380
388
|
});
|
|
381
389
|
export {
|
|
382
|
-
|
|
390
|
+
ln as default
|
|
383
391
|
};
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
10
10
|
name: string;
|
|
11
11
|
color: string;
|
|
12
12
|
type: string;
|
|
13
|
-
collectionId:
|
|
13
|
+
collectionId: Collection["uid"] | undefined;
|
|
14
14
|
}) => any;
|
|
15
15
|
cancel: () => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
18
18
|
name: string;
|
|
19
19
|
color: string;
|
|
20
20
|
type: string;
|
|
21
|
-
collectionId:
|
|
21
|
+
collectionId: Collection["uid"] | undefined;
|
|
22
22
|
}) => any;
|
|
23
23
|
onCancel?: () => any;
|
|
24
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EnvironmentModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentModal.vue"],"names":[],"mappings":"AA2JA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAYjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,0BAA0B,EAAE,UAAU,EAAE,CAAA;IACxC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC,CAAC;;;cAQU,MAAM;eACL,MAAM;cACP,MAAM;sBACE,UAAU,CAAC,KAAK,CAAC,GAAG,SAAS;;;;;cAHrC,MAAM;eACL,MAAM;cACP,MAAM;sBACE,UAAU,CAAC,KAAK,CAAC,GAAG,SAAS;;;;AAkSjD,wBAQG"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as _, ref as u, computed as h, watch as w, openBlock as m, createBlock as v, unref as i, withCtx as a, createVNode as s, createElementVNode as p, normalizeClass as I, toDisplayString as N, createTextVNode as T } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { ScalarModal as $, ScalarListbox as z, ScalarButton as C, ScalarIcon as B } from "@scalar/components";
|
|
3
|
+
import { useToasts as D } from "@scalar/use-toasts";
|
|
4
|
+
import U from "../../components/CommandPalette/CommandActionForm.vue.js";
|
|
5
|
+
import W from "../../components/CommandPalette/CommandActionInput.vue.js";
|
|
6
6
|
import j from "./EnvironmentColors.vue.js";
|
|
7
7
|
import { useWorkspace as M } from "../../store/store.js";
|
|
8
|
-
const P = { class: "flex gap-2
|
|
8
|
+
const P = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
|
|
9
9
|
__name: "EnvironmentModal",
|
|
10
10
|
props: {
|
|
11
11
|
state: {},
|
|
@@ -27,7 +27,7 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
|
|
|
27
27
|
})
|
|
28
28
|
]), l = u(
|
|
29
29
|
d.value.find((t) => t.id === n.collectionId)
|
|
30
|
-
), { toast: S } =
|
|
30
|
+
), { toast: S } = D(), V = (t) => {
|
|
31
31
|
c.value = t;
|
|
32
32
|
};
|
|
33
33
|
w(
|
|
@@ -53,19 +53,19 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
|
|
|
53
53
|
}, y = () => {
|
|
54
54
|
n.state.hide(), E.commandPalette.emit({ commandName: "Create Collection" });
|
|
55
55
|
};
|
|
56
|
-
return (t, e) => (m(), v(i(
|
|
56
|
+
return (t, e) => (m(), v(i($), {
|
|
57
57
|
bodyClass: "border-t-0 rounded-t-lg",
|
|
58
58
|
size: "xs",
|
|
59
59
|
state: t.state
|
|
60
60
|
}, {
|
|
61
61
|
default: a(() => [
|
|
62
|
-
s(
|
|
62
|
+
s(U, {
|
|
63
63
|
disabled: !l.value,
|
|
64
64
|
onCancel: e[2] || (e[2] = (o) => f("cancel")),
|
|
65
65
|
onSubmit: k
|
|
66
66
|
}, {
|
|
67
67
|
options: a(() => [
|
|
68
|
-
s(i(
|
|
68
|
+
s(i(z), {
|
|
69
69
|
modelValue: l.value,
|
|
70
70
|
"onUpdate:modelValue": e[1] || (e[1] = (o) => l.value = o),
|
|
71
71
|
options: d.value,
|
|
@@ -74,14 +74,14 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
|
|
|
74
74
|
default: a(() => [
|
|
75
75
|
d.value.length > 0 ? (m(), v(i(C), {
|
|
76
76
|
key: 0,
|
|
77
|
-
class: "
|
|
77
|
+
class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
|
|
78
78
|
variant: "outlined"
|
|
79
79
|
}, {
|
|
80
80
|
default: a(() => [
|
|
81
81
|
p("span", {
|
|
82
82
|
class: I(l.value ? "text-c-1" : "text-c-3")
|
|
83
83
|
}, N(l.value ? l.value.label : "Select Collection"), 3),
|
|
84
|
-
s(i(
|
|
84
|
+
s(i(B), {
|
|
85
85
|
class: "text-c-3",
|
|
86
86
|
icon: "ChevronDown",
|
|
87
87
|
size: "xs"
|
|
@@ -90,7 +90,7 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
|
|
|
90
90
|
_: 1
|
|
91
91
|
})) : (m(), v(i(C), {
|
|
92
92
|
key: 1,
|
|
93
|
-
class: "
|
|
93
|
+
class: "hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",
|
|
94
94
|
variant: "outlined",
|
|
95
95
|
onClick: y
|
|
96
96
|
}, {
|
|
@@ -104,7 +104,7 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
|
|
|
104
104
|
}, 8, ["modelValue", "options"])
|
|
105
105
|
]),
|
|
106
106
|
submit: a(() => e[4] || (e[4] = [
|
|
107
|
-
T("Add Environment")
|
|
107
|
+
T(" Add Environment ")
|
|
108
108
|
])),
|
|
109
109
|
default: a(() => [
|
|
110
110
|
p("div", P, [
|
|
@@ -114,10 +114,10 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
|
|
|
114
114
|
selector: "",
|
|
115
115
|
onSelect: V
|
|
116
116
|
}, null, 8, ["activeColor"]),
|
|
117
|
-
s(
|
|
117
|
+
s(W, {
|
|
118
118
|
modelValue: r.value,
|
|
119
119
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => r.value = o),
|
|
120
|
-
class: "!p-0 peer-has-[.color-selector]:hidden
|
|
120
|
+
class: "-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",
|
|
121
121
|
placeholder: "Environment name"
|
|
122
122
|
}, null, 8, ["modelValue"])
|
|
123
123
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;cAuU8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA0bjD,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Request.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-97482b69"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|