@scalar/api-client 2.5.31 → 2.5.33
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 +33 -0
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +120 -128
- package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +57 -63
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +143 -150
- package/dist/components/CodeInput/codeVariableWidget.js +70 -75
- package/dist/components/CommandPalette/CommandActionInput.vue.js +17 -19
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -27
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +53 -55
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +129 -133
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +84 -98
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +64 -74
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +5 -11
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +164 -183
- 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 +31 -31
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -2
- package/dist/components/EmptyState.vue.js +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +75 -84
- package/dist/components/Form/LabelInput.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue2.js +11 -11
- package/dist/components/ImportCollection/DropEventListener.vue.js +42 -44
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -23
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +141 -149
- package/dist/components/ImportCollection/ImportCollectionModal.vue3.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +22 -23
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +12 -13
- package/dist/components/ImportCollection/PasteEventListener.vue.js +11 -12
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +69 -76
- package/dist/components/ImportCollection/utils/get-openapi-version.js +8 -8
- package/dist/components/ImportCollection/utils/import-collection.js +14 -14
- package/dist/components/OpenApiClientButton.vue.js +1 -1
- package/dist/components/OpenApiClientButton.vue2.js +10 -10
- package/dist/components/ScalarAsciiArt.vue.js +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +19 -22
- package/dist/components/Search/useSearch.js +51 -61
- package/dist/components/SectionFilter.vue.js +1 -1
- package/dist/components/SectionFilter.vue2.js +26 -29
- package/dist/components/Server/ServerDropdown.vue.js +70 -96
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +57 -67
- package/dist/components/Server/ServerSelector.vue.js +44 -55
- package/dist/components/Server/ServerVariablesForm.vue.js +36 -42
- package/dist/components/Server/ServerVariablesSelect.vue.js +6 -6
- package/dist/components/SideNav/DownloadAppButton.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue.js +68 -74
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue.js +107 -122
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/hooks/useFileDialog.js +12 -12
- package/dist/hooks/useResponseBody.js +14 -16
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/layouts/App/ApiClientApp.vue.js +50 -56
- package/dist/layouts/App/ApiClientApp.vue3.js +1 -1
- package/dist/layouts/App/create-api-client-app.js +19 -20
- package/dist/layouts/App/index.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue2.js +18 -21
- package/dist/layouts/Web/ApiClientWeb.vue.js +45 -51
- package/dist/layouts/Web/ApiClientWeb.vue3.js +1 -1
- package/dist/layouts/Web/create-api-client-web.js +19 -20
- package/dist/layouts/Web/index.js +1 -1
- package/dist/libs/create-client.js +102 -109
- package/dist/libs/env-helpers.js +3 -3
- package/dist/libs/event-bus.js +15 -15
- package/dist/libs/extractAttachmentFilename.js +5 -6
- package/dist/libs/find-request.js +9 -10
- package/dist/libs/get-request-uid-by-path-method.js +12 -12
- package/dist/libs/getOpenApiDocumentDetails.js +7 -7
- package/dist/libs/importers/curl.js +3 -3
- package/dist/libs/normalize-headers.js +9 -10
- package/dist/libs/postman.js +15 -17
- package/dist/libs/send-request/build-request-security.js +9 -10
- package/dist/libs/send-request/create-fetch-body.js +11 -12
- package/dist/libs/send-request/create-fetch-query-params.js +13 -13
- package/dist/libs/send-request/create-request-operation.js +83 -84
- package/dist/libs/send-request/decode-buffer.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.js +12 -12
- package/dist/libs/string-template.js +21 -21
- package/dist/libs/validate-parameters.js +5 -8
- package/dist/plugins/plugin-manager.js +11 -17
- package/dist/store/active-entities.js +90 -117
- package/dist/store/collections.js +41 -42
- package/dist/store/import-spec.js +25 -26
- package/dist/store/request-example.js +20 -24
- package/dist/store/requests.js +63 -81
- package/dist/store/router-params.js +7 -7
- package/dist/store/security-schemes.js +35 -36
- package/dist/store/store.js +2 -2
- package/dist/store/tags.js +20 -21
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue2.js +21 -22
- package/dist/views/Collection/CollectionAuthentication.vue.js +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue2.js +43 -47
- package/dist/views/Collection/CollectionEnvironment.vue.js +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue2.js +196 -207
- package/dist/views/Collection/CollectionInfoForm.vue.js +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue2.js +34 -41
- package/dist/views/Collection/CollectionNavigation.vue.js +116 -125
- package/dist/views/Collection/CollectionOverview.vue2.js +22 -25
- package/dist/views/Collection/CollectionServerForm.vue.js +39 -45
- package/dist/views/Collection/CollectionServers.vue2.js +88 -98
- package/dist/views/Collection/CollectionSettings.vue.js +1 -1
- package/dist/views/Collection/CollectionSettings.vue2.js +101 -108
- package/dist/views/Collection/components/EnvironmentForm.vue.js +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +141 -145
- package/dist/views/Collection/components/MarkdownInput.vue.js +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -2
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +15 -15
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +15 -16
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +61 -64
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +9 -10
- package/dist/views/Cookies/CookieModal.vue.js +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +90 -93
- package/dist/views/Environment/Environment.vue2.js +267 -295
- package/dist/views/Environment/EnvironmentModal.vue.js +63 -70
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -42
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +60 -67
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +78 -89
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +37 -44
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -45
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +111 -127
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +120 -139
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +97 -97
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +287 -310
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +86 -94
- package/dist/views/Request/RequestSection/RequestParams.vue.js +37 -38
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +36 -38
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +28 -31
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +49 -52
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +16 -16
- package/dist/views/Request/RequestSection/helpers/getting-started.js +7 -11
- package/dist/views/Request/RequestSection/helpers/update-scheme.js +7 -8
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +199 -211
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +332 -349
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +210 -240
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +38 -41
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +58 -64
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -2
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +20 -23
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +29 -30
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +38 -41
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +28 -29
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +128 -140
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +116 -124
- package/dist/views/Request/consts/mediaTypes.js +2 -3
- package/dist/views/Request/handle-drag.js +24 -28
- package/dist/views/Request/hooks/useOpenApiWatcher.js +26 -33
- package/dist/views/Request/libs/auth.js +37 -43
- package/dist/views/Request/libs/oauth2.js +30 -32
- package/dist/views/Request/libs/watch-mode.js +100 -103
- package/dist/views/Settings/SettingsGeneral.vue.js +206 -236
- package/package.json +22 -22
- package/dist/components/AddressBar/AddressBar.vue3.js +0 -4
- package/dist/components/AddressBar/AddressBarHistory.vue3.js +0 -4
- package/dist/components/CodeInput/CodeInput.vue3.js +0 -4
- package/dist/components/CodeInput/CodeInput.vue4.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue3.js +0 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue3.js +0 -4
- package/dist/components/DataTable/DataTableInput.vue3.js +0 -4
- package/dist/components/EmptyState.vue3.js +0 -4
- package/dist/components/Form/LabelInput.vue3.js +0 -4
- package/dist/components/HttpMethod/HttpMethod.vue3.js +0 -4
- package/dist/components/ImportCollection/ImportCollectionModal.vue2.js +0 -4
- package/dist/components/OpenApiClientButton.vue3.js +0 -4
- package/dist/components/ScalarAsciiArt.vue3.js +0 -4
- package/dist/components/SectionFilter.vue3.js +0 -4
- package/dist/components/Server/ServerDropdownItem.vue3.js +0 -4
- package/dist/components/SideNav/DownloadAppButton.vue3.js +0 -4
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue3.js +0 -4
- package/dist/components/Sidebar/Sidebar.vue3.js +0 -4
- package/dist/components/Sidebar/SidebarListElement.vue3.js +0 -4
- package/dist/components/Sidebar/SidebarListElement.vue4.js +0 -4
- package/dist/components/TopNav/TopNavItem.vue3.js +0 -4
- package/dist/layouts/App/ApiClientApp.vue2.js +0 -4
- package/dist/layouts/Modal/ApiClientModal.vue3.js +0 -4
- package/dist/layouts/Web/ApiClientWeb.vue2.js +0 -4
- package/dist/style.css.js +0 -4
- package/dist/views/Collection/CollectionAuthentication.vue3.js +0 -4
- package/dist/views/Collection/CollectionEnvironment.vue3.js +0 -4
- package/dist/views/Collection/CollectionInfoForm.vue3.js +0 -4
- package/dist/views/Collection/CollectionSettings.vue3.js +0 -4
- package/dist/views/Collection/components/EnvironmentForm.vue3.js +0 -4
- package/dist/views/Collection/components/MarkdownInput.vue3.js +0 -4
- package/dist/views/Cookies/CookieModal.vue3.js +0 -4
- package/dist/views/Request/Request.vue3.js +0 -4
- package/dist/views/Request/RequestRoot.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestBody.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestCodeExample.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestSection.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestTable.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue3.js +0 -4
- package/dist/views/Request/RequestSidebar.vue3.js +0 -4
- package/dist/views/Request/RequestSidebarItem.vue3.js +0 -4
- package/dist/views/Request/RequestSidebarItem.vue4.js +0 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue3.js +0 -4
- package/dist/views/Request/RequestSubpageHeader.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBody.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseSection.vue3.js +0 -4
|
@@ -1,255 +1,230 @@
|
|
|
1
|
-
import { defineComponent as ve, ref as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { LibraryIcon as
|
|
4
|
-
import { useToasts as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { useSidebar as
|
|
16
|
-
import { PathId as
|
|
17
|
-
import { useActiveEntities as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { environmentDragHandlerFactory as
|
|
21
|
-
import { useWorkspace as
|
|
22
|
-
const
|
|
1
|
+
import { defineComponent as ve, ref as C, computed as de, watch as A, onMounted as fe, onBeforeUnmount as pe, createBlock as y, openBlock as d, withCtx as u, createVNode as s, createTextVNode as B, createElementVNode as p, createElementBlock as V, unref as a, Fragment as L, renderList as K, withDirectives as be, normalizeClass as G, toDisplayString as J, createCommentVNode as T, withModifiers as xe, vShow as he, createSlots as Ee } from "vue";
|
|
2
|
+
import { useModal as O, ScalarIcon as H, ScalarButton as Ce, ScalarModal as ke } from "@scalar/components";
|
|
3
|
+
import { LibraryIcon as ge } from "@scalar/icons/library";
|
|
4
|
+
import { useToasts as ye } from "@scalar/use-toasts";
|
|
5
|
+
import { useRouter as _e, useRoute as we } from "vue-router";
|
|
6
|
+
import Me from "../../components/CodeInput/CodeInput.vue.js";
|
|
7
|
+
import De from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
8
|
+
import Ie from "../../components/Sidebar/Sidebar.vue.js";
|
|
9
|
+
import Se from "../../components/Sidebar/SidebarButton.vue.js";
|
|
10
|
+
import $e from "../../components/Sidebar/SidebarList.vue.js";
|
|
11
|
+
import q from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
12
|
+
import Ve from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
13
|
+
import Oe from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
14
|
+
import je from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
15
|
+
import { useSidebar as Fe } from "../../hooks/useSidebar.js";
|
|
16
|
+
import { PathId as l } from "../../routes.js";
|
|
17
|
+
import { useActiveEntities as Ne } from "../../store/active-entities.js";
|
|
18
|
+
import Re from "./EnvironmentColorModal.vue.js";
|
|
19
|
+
import We from "./EnvironmentModal.vue.js";
|
|
20
|
+
import { environmentDragHandlerFactory as Ue } from "./handle-drag.js";
|
|
21
|
+
import { useWorkspace as ze } from "../../store/store.js";
|
|
22
|
+
const Ae = { class: "flex-1" }, Be = ["onClick"], Le = { class: "flex h-5 max-w-[14px] items-center justify-center" }, vn = /* @__PURE__ */ ve({
|
|
23
23
|
__name: "Environment",
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
activeWorkspace:
|
|
27
|
-
activeEnvironment:
|
|
28
|
-
activeWorkspaceCollections:
|
|
29
|
-
activeEnvVariables:
|
|
30
|
-
} =
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
`Environment name already used in ${(t = o.info) == null ? void 0 : t.title}`,
|
|
24
|
+
setup(Ke) {
|
|
25
|
+
const k = _e(), b = we(), {
|
|
26
|
+
activeWorkspace: f,
|
|
27
|
+
activeEnvironment: j,
|
|
28
|
+
activeWorkspaceCollections: c,
|
|
29
|
+
activeEnvVariables: P
|
|
30
|
+
} = Ne(), { events: F, workspaceMutators: Q, collectionMutators: x } = ze(), { collapsedSidebarFolders: g, toggleSidebarFolder: _ } = Fe(), w = O(), M = O(), D = O(), N = C(null), r = C("default"), R = C(""), h = C(void 0), m = C(void 0), I = C(void 0), { toast: W } = ye(), X = (e) => JSON.parse(e);
|
|
31
|
+
function U(e, t, n) {
|
|
32
|
+
e && (t.uid === n ? W(
|
|
33
|
+
`Environment name already used in ${t.info?.title}`,
|
|
35
34
|
"error"
|
|
36
|
-
) :
|
|
35
|
+
) : W("Environment name already used in another collection", "error"));
|
|
37
36
|
}
|
|
38
|
-
const
|
|
39
|
-
(e) =>
|
|
40
|
-
var o;
|
|
41
|
-
return ((o = e.info) == null ? void 0 : o.title) !== "Drafts";
|
|
42
|
-
}
|
|
37
|
+
const E = de(() => c.value.filter(
|
|
38
|
+
(e) => e.info?.title !== "Drafts"
|
|
43
39
|
));
|
|
44
|
-
function
|
|
45
|
-
|
|
40
|
+
function Y(e) {
|
|
41
|
+
E.value.some(
|
|
46
42
|
(n) => {
|
|
47
|
-
const
|
|
43
|
+
const o = Object.keys(
|
|
48
44
|
n["x-scalar-environments"] || {}
|
|
49
45
|
).includes(e.name);
|
|
50
|
-
return
|
|
46
|
+
return U(o, n, e.collectionId), o;
|
|
51
47
|
}
|
|
52
|
-
) || (e.collectionId && (
|
|
48
|
+
) || (e.collectionId && (x.addEnvironment(
|
|
53
49
|
e.name,
|
|
54
50
|
{
|
|
55
51
|
variables: {},
|
|
56
52
|
color: e.color
|
|
57
53
|
},
|
|
58
54
|
e.collectionId
|
|
59
|
-
),
|
|
55
|
+
), g[e.collectionId] || _(e.collectionId), k.push({
|
|
60
56
|
name: "environment.collection",
|
|
61
57
|
params: {
|
|
62
|
-
[
|
|
63
|
-
[
|
|
58
|
+
[l.Collection]: e.collectionId,
|
|
59
|
+
[l.Environment]: e.name
|
|
64
60
|
}
|
|
65
|
-
})),
|
|
61
|
+
})), M.hide());
|
|
66
62
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
69
|
-
if (!F)
|
|
63
|
+
function Z(e) {
|
|
64
|
+
if (!j)
|
|
70
65
|
return;
|
|
71
|
-
const
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
|
|
66
|
+
const t = X(e);
|
|
67
|
+
if (r.value === "default")
|
|
68
|
+
Q.edit(
|
|
69
|
+
f.value?.uid,
|
|
75
70
|
"environments",
|
|
76
|
-
|
|
71
|
+
t
|
|
77
72
|
);
|
|
78
73
|
else {
|
|
79
|
-
const
|
|
80
|
-
(
|
|
81
|
-
var m;
|
|
82
|
-
return (m = r["x-scalar-environments"]) == null ? void 0 : m[s.value ?? ""];
|
|
83
|
-
}
|
|
74
|
+
const n = c.value.find(
|
|
75
|
+
(o) => o["x-scalar-environments"]?.[r.value ?? ""]
|
|
84
76
|
);
|
|
85
|
-
if (
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
if (n?.["x-scalar-environments"]?.[r.value ?? ""]) {
|
|
78
|
+
const o = n["x-scalar-environments"][r.value ?? ""];
|
|
79
|
+
o && (o.variables = t, x.edit(
|
|
80
|
+
n.uid,
|
|
89
81
|
"x-scalar-environments",
|
|
90
|
-
|
|
82
|
+
n["x-scalar-environments"]
|
|
91
83
|
));
|
|
92
84
|
}
|
|
93
85
|
}
|
|
94
86
|
}
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
|
|
87
|
+
const S = (e) => {
|
|
88
|
+
h.value = e, M.show();
|
|
89
|
+
}, ee = (e, t) => {
|
|
90
|
+
m.value = e, h.value = t, I.value = e, D.show();
|
|
91
|
+
}, ne = (e) => {
|
|
92
|
+
N.value = e, R.value = c.value.find(
|
|
93
|
+
(t) => t["x-scalar-environments"]?.[e]
|
|
94
|
+
)?.["x-scalar-environments"]?.[e]?.color ?? "", w.show();
|
|
99
95
|
}, te = (e) => {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
)) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[e]) == null ? void 0 : t.color) ?? "", M.show();
|
|
107
|
-
}, oe = (e) => {
|
|
108
|
-
const o = R.value;
|
|
109
|
-
typeof o == "string" && (d.value.some(
|
|
110
|
-
(t) => {
|
|
111
|
-
var a;
|
|
112
|
-
return (a = t["x-scalar-environments"]) == null ? void 0 : a[o];
|
|
113
|
-
}
|
|
114
|
-
) && d.value.forEach((t) => {
|
|
115
|
-
var a;
|
|
116
|
-
(a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, h.edit(
|
|
117
|
-
t.uid,
|
|
96
|
+
const t = N.value;
|
|
97
|
+
typeof t == "string" && (c.value.some(
|
|
98
|
+
(o) => o["x-scalar-environments"]?.[t]
|
|
99
|
+
) && c.value.forEach((o) => {
|
|
100
|
+
o["x-scalar-environments"]?.[t] && (o["x-scalar-environments"][t].color = e, x.edit(
|
|
101
|
+
o.uid,
|
|
118
102
|
"x-scalar-environments",
|
|
119
|
-
|
|
103
|
+
o["x-scalar-environments"]
|
|
120
104
|
));
|
|
121
|
-
}),
|
|
105
|
+
}), w.hide());
|
|
122
106
|
};
|
|
123
|
-
function
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
h.removeEnvironment(e, t.uid);
|
|
107
|
+
function oe(e) {
|
|
108
|
+
E.value.forEach((n) => {
|
|
109
|
+
x.removeEnvironment(e, n.uid);
|
|
127
110
|
});
|
|
128
|
-
const
|
|
129
|
-
(
|
|
111
|
+
const t = E.value.flatMap(
|
|
112
|
+
(n) => Object.keys(n["x-scalar-environments"] || {})
|
|
130
113
|
);
|
|
131
|
-
if (
|
|
132
|
-
const
|
|
133
|
-
if (!
|
|
114
|
+
if (t.length > 0) {
|
|
115
|
+
const n = t[t.length - 1];
|
|
116
|
+
if (!n)
|
|
134
117
|
return;
|
|
135
|
-
const
|
|
136
|
-
(
|
|
137
|
-
|
|
118
|
+
const o = c.value.find(
|
|
119
|
+
(i) => Object.keys(i["x-scalar-environments"] || {}).includes(
|
|
120
|
+
n
|
|
138
121
|
)
|
|
139
122
|
);
|
|
140
|
-
|
|
123
|
+
r.value = n, k.push({
|
|
141
124
|
name: "environment.collection",
|
|
142
125
|
params: {
|
|
143
|
-
[
|
|
144
|
-
[
|
|
126
|
+
[l.Collection]: o?.uid,
|
|
127
|
+
[l.Environment]: n
|
|
145
128
|
}
|
|
146
|
-
}),
|
|
129
|
+
}), o && !g[o.uid] && _(o.uid);
|
|
147
130
|
} else
|
|
148
|
-
|
|
131
|
+
r.value = "default", k.push({
|
|
149
132
|
name: "environment.default",
|
|
150
133
|
params: {
|
|
151
|
-
[
|
|
134
|
+
[l.Workspace]: f.value?.uid
|
|
152
135
|
}
|
|
153
136
|
});
|
|
154
137
|
}
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
)) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[s.value ?? ""]) == null ? void 0 : t.variables,
|
|
164
|
-
null,
|
|
165
|
-
2
|
|
166
|
-
);
|
|
167
|
-
}, se = (e) => y[e], A = (e) => {
|
|
168
|
-
e != null && e.createNew && x.name === "environment" && $();
|
|
138
|
+
const ae = () => r.value === "default" ? "Global Environment" : r.value, re = () => r.value === "default" ? JSON.stringify(f.value?.environments, null, 2) : JSON.stringify(
|
|
139
|
+
c.value.find(
|
|
140
|
+
(e) => e["x-scalar-environments"]?.[r.value ?? ""]
|
|
141
|
+
)?.["x-scalar-environments"]?.[r.value ?? ""]?.variables,
|
|
142
|
+
null,
|
|
143
|
+
2
|
|
144
|
+
), le = (e) => g[e], z = (e) => {
|
|
145
|
+
e?.createNew && b.name === "environment" && S();
|
|
169
146
|
};
|
|
170
|
-
|
|
171
|
-
() => [
|
|
172
|
-
([e,
|
|
173
|
-
e ?
|
|
147
|
+
A(
|
|
148
|
+
() => [b.params[l.Collection], b.params[l.Environment]],
|
|
149
|
+
([e, t]) => {
|
|
150
|
+
e ? r.value = t : r.value = "default";
|
|
174
151
|
}
|
|
175
|
-
),
|
|
176
|
-
|
|
177
|
-
const e =
|
|
178
|
-
e && !
|
|
179
|
-
}),
|
|
180
|
-
const ie = (e,
|
|
181
|
-
|
|
182
|
-
const t = n ? {
|
|
152
|
+
), fe(() => {
|
|
153
|
+
r.value = b.params[l.Environment] || "default", F.hotKeys.on(z);
|
|
154
|
+
const e = b.params[l.Collection];
|
|
155
|
+
e && !g[e] && _(e);
|
|
156
|
+
}), pe(() => F.hotKeys.off(z));
|
|
157
|
+
const ie = (e, t, n) => {
|
|
158
|
+
const o = n ? {
|
|
183
159
|
name: "environment.collection",
|
|
184
160
|
params: {
|
|
185
|
-
[
|
|
186
|
-
[
|
|
187
|
-
[
|
|
161
|
+
[l.Workspace]: f.value?.uid,
|
|
162
|
+
[l.Collection]: n,
|
|
163
|
+
[l.Environment]: t
|
|
188
164
|
}
|
|
189
165
|
} : {
|
|
190
166
|
name: "environment.default",
|
|
191
167
|
params: {
|
|
192
|
-
[
|
|
193
|
-
[
|
|
168
|
+
[l.Workspace]: f.value?.uid,
|
|
169
|
+
[l.Environment]: t
|
|
194
170
|
}
|
|
195
171
|
};
|
|
196
|
-
e.metaKey ? window.open(
|
|
172
|
+
e.metaKey ? window.open(k.resolve(o).href, "_blank") : k.push(o);
|
|
197
173
|
};
|
|
198
|
-
function
|
|
199
|
-
|
|
174
|
+
function se() {
|
|
175
|
+
m.value = void 0, h.value = void 0, I.value = void 0, D.hide();
|
|
200
176
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
177
|
+
function ue(e) {
|
|
178
|
+
E.value.some(
|
|
203
179
|
(n) => {
|
|
204
|
-
const
|
|
180
|
+
const o = Object.keys(
|
|
205
181
|
n["x-scalar-environments"] || {}
|
|
206
182
|
).includes(e);
|
|
207
|
-
return
|
|
208
|
-
|
|
183
|
+
return U(
|
|
184
|
+
o,
|
|
209
185
|
n,
|
|
210
|
-
|
|
211
|
-
),
|
|
186
|
+
h.value
|
|
187
|
+
), o;
|
|
212
188
|
}
|
|
213
|
-
) || (e &&
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}), n["x-scalar-environments"] = r, h.edit(
|
|
189
|
+
) || (e && m.value !== "default" && c.value.forEach((n) => {
|
|
190
|
+
if (n["x-scalar-environments"]?.[m.value ?? ""]) {
|
|
191
|
+
const o = n["x-scalar-environments"], i = {};
|
|
192
|
+
Object.keys(o).forEach((v) => {
|
|
193
|
+
const $ = o[v];
|
|
194
|
+
$ && (v === m.value ? i[e] = $ : i[v] = $);
|
|
195
|
+
}), n["x-scalar-environments"] = i, x.edit(
|
|
221
196
|
n.uid,
|
|
222
197
|
"x-scalar-environments",
|
|
223
198
|
n["x-scalar-environments"]
|
|
224
199
|
);
|
|
225
200
|
}
|
|
226
|
-
}), e &&
|
|
201
|
+
}), e && r.value === m.value && (r.value = e), m.value = void 0, h.value = void 0, I.value = void 0, D.hide());
|
|
227
202
|
}
|
|
228
|
-
const { handleDragEnd: ce, isDroppable:
|
|
229
|
-
|
|
230
|
-
|
|
203
|
+
const { handleDragEnd: ce, isDroppable: me } = Ue(
|
|
204
|
+
c,
|
|
205
|
+
x
|
|
231
206
|
);
|
|
232
|
-
return
|
|
233
|
-
() =>
|
|
207
|
+
return A(
|
|
208
|
+
() => b.query.openEnvironmentModal,
|
|
234
209
|
(e) => {
|
|
235
|
-
e === "true" &&
|
|
210
|
+
e === "true" && S();
|
|
236
211
|
},
|
|
237
212
|
{ immediate: !0 }
|
|
238
|
-
), (e,
|
|
239
|
-
default:
|
|
240
|
-
|
|
241
|
-
content:
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
default:
|
|
245
|
-
(
|
|
213
|
+
), (e, t) => (d(), y(Ve, null, {
|
|
214
|
+
default: u(() => [
|
|
215
|
+
s(Ie, { title: "Collections" }, {
|
|
216
|
+
content: u(() => [
|
|
217
|
+
p("div", Ae, [
|
|
218
|
+
s($e, null, {
|
|
219
|
+
default: u(() => [
|
|
220
|
+
(d(), y(q, {
|
|
246
221
|
key: "default",
|
|
247
222
|
class: "text-xs",
|
|
248
223
|
isCopyable: !1,
|
|
249
224
|
to: {
|
|
250
225
|
name: "environment",
|
|
251
226
|
params: {
|
|
252
|
-
[l
|
|
227
|
+
[a(l).Environment]: "default"
|
|
253
228
|
}
|
|
254
229
|
},
|
|
255
230
|
type: "environment",
|
|
@@ -260,133 +235,130 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
260
235
|
isDefault: !0
|
|
261
236
|
}
|
|
262
237
|
}, null, 8, ["to"])),
|
|
263
|
-
(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
238
|
+
(d(!0), V(L, null, K(E.value, (n) => (d(), V("li", {
|
|
239
|
+
key: n.uid,
|
|
240
|
+
class: "gap-1/2 flex flex-col"
|
|
241
|
+
}, [
|
|
242
|
+
p("button", {
|
|
243
|
+
class: "hover:bg-b-2 group flex w-full items-center gap-1.5 rounded p-1.5 text-left text-sm font-medium break-words",
|
|
244
|
+
type: "button",
|
|
245
|
+
onClick: (o) => a(_)(n.uid)
|
|
246
|
+
}, [
|
|
247
|
+
p("span", Le, [
|
|
248
|
+
s(a(ge), {
|
|
249
|
+
class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
|
|
250
|
+
src: n["x-scalar-icon"] || "interface-content-folder"
|
|
251
|
+
}, null, 8, ["src"]),
|
|
252
|
+
p("div", {
|
|
253
|
+
class: G({
|
|
254
|
+
"rotate-90": a(g)[n.uid]
|
|
255
|
+
})
|
|
256
|
+
}, [
|
|
257
|
+
s(a(H), {
|
|
258
|
+
class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
|
|
259
|
+
icon: "ChevronRight",
|
|
260
|
+
size: "md"
|
|
261
|
+
})
|
|
262
|
+
], 2)
|
|
263
|
+
]),
|
|
264
|
+
B(" " + J(n.info?.title ?? ""), 1)
|
|
265
|
+
], 8, Be),
|
|
266
|
+
be(p("div", {
|
|
267
|
+
class: G({
|
|
268
|
+
"before:bg-border relative mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-3 before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(n["x-scalar-environments"] || {}).length > 0
|
|
269
|
+
})
|
|
268
270
|
}, [
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
271
|
+
(d(!0), V(L, null, K(n["x-scalar-environments"], (o, i) => (d(), y(q, {
|
|
272
|
+
key: i,
|
|
273
|
+
class: "text-xs",
|
|
274
|
+
collectionId: n.uid,
|
|
275
|
+
isCopyable: !1,
|
|
276
|
+
isDeletable: !0,
|
|
277
|
+
isRenameable: !0,
|
|
278
|
+
isDraggable: !0,
|
|
279
|
+
isDroppable: a(me),
|
|
280
|
+
to: {
|
|
281
|
+
name: "environment.collection",
|
|
282
|
+
params: {
|
|
283
|
+
[a(l).Collection]: n.uid,
|
|
284
|
+
[a(l).Environment]: i
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
type: "environment",
|
|
288
|
+
variable: {
|
|
289
|
+
name: i,
|
|
290
|
+
uid: i,
|
|
291
|
+
color: o.color ?? "#FFFFFF",
|
|
292
|
+
isDefault: !1
|
|
293
|
+
},
|
|
294
|
+
warningMessage: "Are you sure you want to delete this environment?",
|
|
295
|
+
onClick: xe((v) => ie(v, i, n.uid), ["prevent"]),
|
|
296
|
+
onColorModal: (v) => ne(i),
|
|
297
|
+
onDelete: (v) => oe(i),
|
|
298
|
+
onRename: (v) => ee(i, n.uid),
|
|
299
|
+
onOnDragEnd: a(ce)
|
|
300
|
+
}, null, 8, ["collectionId", "isDroppable", "to", "variable", "onClick", "onColorModal", "onDelete", "onRename", "onOnDragEnd"]))), 128)),
|
|
301
|
+
Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (d(), y(a(Ce), {
|
|
302
|
+
key: 0,
|
|
303
|
+
class: "text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",
|
|
304
|
+
variant: "ghost",
|
|
305
|
+
onClick: (o) => S(n.uid)
|
|
306
|
+
}, {
|
|
307
|
+
default: u(() => [
|
|
308
|
+
s(a(H), {
|
|
309
|
+
icon: "Add",
|
|
310
|
+
size: "sm"
|
|
311
|
+
}),
|
|
312
|
+
t[2] || (t[2] = p("span", null, "Add Environment", -1))
|
|
290
313
|
]),
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
(f(!0), O(K, null, G(n["x-scalar-environments"], (a, r) => (f(), _(P, {
|
|
299
|
-
key: r,
|
|
300
|
-
class: "text-xs",
|
|
301
|
-
collectionId: n.uid,
|
|
302
|
-
isCopyable: !1,
|
|
303
|
-
isDeletable: !0,
|
|
304
|
-
isRenameable: !0,
|
|
305
|
-
isDraggable: !0,
|
|
306
|
-
isDroppable: l(de),
|
|
307
|
-
to: {
|
|
308
|
-
name: "environment.collection",
|
|
309
|
-
params: {
|
|
310
|
-
[l(i).Collection]: n.uid,
|
|
311
|
-
[l(i).Environment]: r
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
type: "environment",
|
|
315
|
-
variable: {
|
|
316
|
-
name: r,
|
|
317
|
-
uid: r,
|
|
318
|
-
color: a.color ?? "#FFFFFF",
|
|
319
|
-
isDefault: !1
|
|
320
|
-
},
|
|
321
|
-
warningMessage: "Are you sure you want to delete this environment?",
|
|
322
|
-
onClick: he((m) => ie(m, r, n.uid), ["prevent"]),
|
|
323
|
-
onColorModal: (m) => te(r),
|
|
324
|
-
onDelete: (m) => ae(r),
|
|
325
|
-
onRename: (m) => ne(r, n.uid),
|
|
326
|
-
onOnDragEnd: l(ce)
|
|
327
|
-
}, null, 8, ["collectionId", "isDroppable", "to", "variable", "onClick", "onColorModal", "onDelete", "onRename", "onOnDragEnd"]))), 128)),
|
|
328
|
-
Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (f(), _(l(ke), {
|
|
329
|
-
key: 0,
|
|
330
|
-
class: "text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",
|
|
331
|
-
variant: "ghost",
|
|
332
|
-
onClick: (a) => $(n.uid)
|
|
333
|
-
}, {
|
|
334
|
-
default: c(() => [
|
|
335
|
-
u(l(q), {
|
|
336
|
-
icon: "Add",
|
|
337
|
-
size: "sm"
|
|
338
|
-
}),
|
|
339
|
-
o[2] || (o[2] = b("span", null, "Add Environment", -1))
|
|
340
|
-
]),
|
|
341
|
-
_: 2,
|
|
342
|
-
__: [2]
|
|
343
|
-
}, 1032, ["onClick"])) : H("", !0)
|
|
344
|
-
], 2), [
|
|
345
|
-
[Ee, se(n.uid)]
|
|
346
|
-
])
|
|
347
|
-
]);
|
|
348
|
-
}), 128))
|
|
314
|
+
_: 2,
|
|
315
|
+
__: [2]
|
|
316
|
+
}, 1032, ["onClick"])) : T("", !0)
|
|
317
|
+
], 2), [
|
|
318
|
+
[he, le(n.uid)]
|
|
319
|
+
])
|
|
320
|
+
]))), 128))
|
|
349
321
|
]),
|
|
350
322
|
_: 1
|
|
351
323
|
})
|
|
352
324
|
])
|
|
353
325
|
]),
|
|
354
|
-
button:
|
|
355
|
-
|
|
356
|
-
click:
|
|
326
|
+
button: u(() => [
|
|
327
|
+
s(Se, {
|
|
328
|
+
click: S,
|
|
357
329
|
hotkey: "N"
|
|
358
330
|
}, {
|
|
359
|
-
title:
|
|
360
|
-
|
|
331
|
+
title: u(() => t[3] || (t[3] = [
|
|
332
|
+
B(" Add Environment ")
|
|
361
333
|
])),
|
|
362
334
|
_: 1
|
|
363
335
|
})
|
|
364
336
|
]),
|
|
365
337
|
_: 1
|
|
366
338
|
}),
|
|
367
|
-
|
|
368
|
-
default:
|
|
369
|
-
|
|
370
|
-
default:
|
|
371
|
-
|
|
339
|
+
s(Oe, { class: "flex-1" }, {
|
|
340
|
+
default: u(() => [
|
|
341
|
+
s(je, null, Ee({
|
|
342
|
+
default: u(() => [
|
|
343
|
+
r.value && a(f) ? (d(), y(Me, {
|
|
372
344
|
key: 0,
|
|
373
345
|
class: "py-2 pr-2 pl-px md:px-4",
|
|
374
|
-
envVariables:
|
|
375
|
-
environment:
|
|
346
|
+
envVariables: a(P),
|
|
347
|
+
environment: a(j),
|
|
376
348
|
language: "json",
|
|
377
349
|
lineNumbers: "",
|
|
378
350
|
lint: "",
|
|
379
|
-
modelValue:
|
|
380
|
-
workspace:
|
|
381
|
-
"onUpdate:modelValue":
|
|
382
|
-
}, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) :
|
|
351
|
+
modelValue: re(),
|
|
352
|
+
workspace: a(f),
|
|
353
|
+
"onUpdate:modelValue": Z
|
|
354
|
+
}, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : T("", !0)
|
|
383
355
|
]),
|
|
384
356
|
_: 2
|
|
385
357
|
}, [
|
|
386
|
-
|
|
358
|
+
r.value ? {
|
|
387
359
|
name: "title",
|
|
388
|
-
fn:
|
|
389
|
-
|
|
360
|
+
fn: u(() => [
|
|
361
|
+
p("span", null, J(ae()), 1)
|
|
390
362
|
]),
|
|
391
363
|
key: "0"
|
|
392
364
|
} : void 0
|
|
@@ -394,29 +366,29 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
394
366
|
]),
|
|
395
367
|
_: 1
|
|
396
368
|
}),
|
|
397
|
-
|
|
398
|
-
selectedColor:
|
|
399
|
-
state:
|
|
400
|
-
onCancel:
|
|
401
|
-
onSubmit:
|
|
369
|
+
s(Re, {
|
|
370
|
+
selectedColor: R.value,
|
|
371
|
+
state: a(w),
|
|
372
|
+
onCancel: t[0] || (t[0] = (n) => a(w).hide()),
|
|
373
|
+
onSubmit: te
|
|
402
374
|
}, null, 8, ["selectedColor", "state"]),
|
|
403
|
-
|
|
404
|
-
activeWorkspaceCollections:
|
|
405
|
-
collectionId:
|
|
406
|
-
state:
|
|
407
|
-
onCancel:
|
|
408
|
-
onSubmit:
|
|
375
|
+
s(We, {
|
|
376
|
+
activeWorkspaceCollections: E.value,
|
|
377
|
+
collectionId: h.value,
|
|
378
|
+
state: a(M),
|
|
379
|
+
onCancel: t[1] || (t[1] = (n) => a(M).hide()),
|
|
380
|
+
onSubmit: Y
|
|
409
381
|
}, null, 8, ["activeWorkspaceCollections", "collectionId", "state"]),
|
|
410
|
-
|
|
382
|
+
s(a(ke), {
|
|
411
383
|
size: "xxs",
|
|
412
|
-
state:
|
|
413
|
-
title: `Edit ${
|
|
384
|
+
state: a(D),
|
|
385
|
+
title: `Edit ${m.value}`
|
|
414
386
|
}, {
|
|
415
|
-
default:
|
|
416
|
-
|
|
417
|
-
name:
|
|
418
|
-
onClose:
|
|
419
|
-
onEdit:
|
|
387
|
+
default: u(() => [
|
|
388
|
+
s(De, {
|
|
389
|
+
name: I.value ?? "",
|
|
390
|
+
onClose: se,
|
|
391
|
+
onEdit: ue
|
|
420
392
|
}, null, 8, ["name"])
|
|
421
393
|
]),
|
|
422
394
|
_: 1
|