@scalar/api-client 2.2.50 → 2.2.52
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 +57 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +30 -30
- 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 +22 -22
- package/dist/components/CodeInput/CodeInput.vue.d.ts +4 -2
- 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 +38 -38
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +13 -13
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +143 -114
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +59 -51
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +85 -82
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +11 -11
- package/dist/components/DataTable/DataTableCheckbox.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue.d.ts +175 -6
- 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 +57 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
- package/dist/components/DataTable/DataTableText.vue.js +1 -1
- package/dist/components/EmptyState.vue.js +1 -1
- package/dist/components/EmptyState.vue2.js +4 -4
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +13 -13
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +56 -36
- package/dist/components/Form/LabelInput.vue.d.ts +14 -0
- package/dist/components/Form/LabelInput.vue.d.ts.map +1 -0
- package/dist/components/Form/LabelInput.vue.js +7 -0
- package/dist/components/Form/LabelInput.vue2.js +42 -0
- package/dist/components/HelpfulLink.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -3
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +1 -1
- package/dist/components/IconSelector.vue.js +3 -3
- package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +8 -8
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -1
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -15
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +2 -2
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.js +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +13 -13
- package/dist/components/ScalarAsciiArt.vue.js +3 -3
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +5 -13
- package/dist/components/Server/ServerDropdown.vue.d.ts +0 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +40 -57
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +0 -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 -20
- package/dist/components/Server/ServerSelector.vue.d.ts +12 -0
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -0
- package/dist/components/Server/ServerSelector.vue.js +85 -0
- package/dist/components/Server/ServerSelector.vue2.js +4 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +1 -1
- package/dist/components/Server/index.d.ts +1 -0
- package/dist/components/Server/index.d.ts.map +1 -1
- package/dist/components/Server/index.js +6 -4
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue.js +2 -2
- package/dist/components/SideNav/DownloadAppButton.vue2.js +6 -6
- package/dist/components/SideNav/SideHelp.vue.js +12 -12
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +73 -58
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +3 -3
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +2 -2
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.js +17 -28
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +12 -12
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +4 -4
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +3 -3
- package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -4
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +6 -6
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +36 -46
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +7 -7
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +1 -8
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +20 -21
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +104 -85
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +16 -10
- package/dist/components/ViewLayout/ViewLayout.vue2.js +4 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +29 -29
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +20 -13
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +4 -0
- package/dist/constants.d.ts +16 -12
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +35 -6
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +5 -7
- package/dist/hooks/useFileDialog.d.ts +1 -1
- package/dist/hooks/useFileDialog.d.ts.map +1 -1
- package/dist/hooks/useFileDialog.js +1 -6
- package/dist/hooks/useResponseBody.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.js +3 -9
- package/dist/hooks/useSidebar.d.ts +19 -2
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +25 -9
- package/dist/hooks/useSidebar.test.d.ts +2 -0
- package/dist/hooks/useSidebar.test.d.ts.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +41 -35
- package/dist/layouts/App/MainLayout.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +207 -255
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +8 -8
- package/dist/layouts/Modal/create-api-client-modal.d.ts +414 -510
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +35 -29
- package/dist/layouts/Web/create-api-client-web.d.ts +207 -255
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +200 -248
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +79 -63
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.js +1 -3
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -1
- package/dist/libs/importers/curl.d.ts.map +1 -1
- package/dist/libs/importers/curl.js +2 -12
- package/dist/libs/isUrl.d.ts.map +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +1 -9
- package/dist/libs/normalize-headers.d.ts.map +1 -1
- package/dist/libs/normalize-headers.js +2 -6
- package/dist/libs/parse-curl.d.ts.map +1 -1
- package/dist/libs/parse-curl.js +1 -5
- package/dist/libs/postman.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.js +1 -2
- package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +6 -12
- package/dist/libs/send-request/create-request-operation.test.d.ts +0 -3
- 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 +1 -4
- package/dist/router.d.ts.map +1 -1
- package/dist/routes.d.ts +62 -14
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +93 -75
- package/dist/store/active-entities.d.ts +32 -32
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +43 -39
- package/dist/store/collections.d.ts +164 -164
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/cookies.d.ts.map +1 -1
- package/dist/store/cookies.js +1 -5
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/request-example.d.ts +2 -2
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +8 -8
- package/dist/store/store-context.d.ts.map +1 -1
- package/dist/store/store.d.ts +200 -248
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/tailwind/desktop-variants.d.ts.map +1 -1
- package/dist/types/vue.d.ts.map +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Collection/Collection.vue.js +4 -0
- package/dist/views/Collection/Collection.vue2.js +50 -0
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionAuthentication.vue.js +4 -0
- package/dist/views/Collection/CollectionAuthentication.vue2.js +16 -0
- package/dist/views/Collection/CollectionCookies.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionCookies.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionCookies.vue.js +4 -0
- package/dist/views/Collection/CollectionCookies.vue2.js +16 -0
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionEnvironment.vue.js +4 -0
- package/dist/views/Collection/CollectionEnvironment.vue2.js +16 -0
- package/dist/views/{Servers/Servers.vue.d.ts → Collection/CollectionInfoForm.vue.d.ts} +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionInfoForm.vue.js +7 -0
- package/dist/views/Collection/CollectionInfoForm.vue2.js +70 -0
- package/dist/views/Collection/CollectionNavigation.vue.d.ts +6 -0
- package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionNavigation.vue.js +142 -0
- package/dist/views/Collection/CollectionNavigation.vue2.js +4 -0
- package/dist/views/Collection/CollectionOverview.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionOverview.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionOverview.vue.js +4 -0
- package/dist/views/Collection/CollectionOverview.vue2.js +37 -0
- package/dist/views/Collection/CollectionScripts.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionScripts.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionScripts.vue.js +4 -0
- package/dist/views/Collection/CollectionScripts.vue2.js +16 -0
- package/dist/views/Collection/CollectionServerForm.vue.d.ts +10 -0
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionServerForm.vue.js +74 -0
- package/dist/views/Collection/CollectionServerForm.vue2.js +4 -0
- package/dist/views/{Servers/ServerForm.vue.d.ts → Collection/CollectionServers.vue.d.ts} +1 -1
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionServers.vue.js +4 -0
- package/dist/views/Collection/CollectionServers.vue2.js +124 -0
- package/dist/views/Collection/CollectionSettings.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionSettings.vue.js +7 -0
- package/dist/views/Collection/CollectionSettings.vue2.js +124 -0
- package/dist/views/Collection/CollectionSync.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionSync.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionSync.vue.js +4 -0
- package/dist/views/Collection/CollectionSync.vue2.js +16 -0
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +16 -0
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -0
- package/dist/views/Collection/components/MarkdownInput.vue.js +7 -0
- package/dist/views/Collection/components/MarkdownInput.vue2.js +95 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +7 -7
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +1 -3
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +1 -5
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +1 -5
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +18 -23
- package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieModal.vue.js +1 -1
- package/dist/views/Cookies/CookieModal.vue2.js +7 -7
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +96 -78
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +125 -112
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.js +5 -5
- package/dist/views/Environment/EnvironmentColors.vue.js +8 -8
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +16 -16
- 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 +117 -170
- package/dist/views/Request/RequestRoot.vue.d.ts +13 -0
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestRoot.vue.js +7 -0
- package/dist/views/Request/RequestRoot.vue2.js +78 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +9 -9
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +104 -89
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +59 -65
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +22 -23
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +14 -14
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +6 -6
- 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 +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +38 -38
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +34 -33
- 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 +5 -5
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +2 -6
- package/dist/views/Request/RequestSidebar.vue.d.ts +3 -10
- 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 +186 -188
- 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 +290 -173
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -13
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -4
- 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 +51 -51
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +12 -12
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +1 -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 +20 -20
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +25 -26
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +7 -7
- 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 +7 -7
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +12 -37
- package/dist/views/Request/libs/request.d.ts +4 -0
- package/dist/views/Request/libs/request.d.ts.map +1 -1
- package/dist/views/Request/libs/request.js +2 -1
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +63 -63
- package/dist/views/Request/types/sidebar-item.d.ts +1 -1
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +8 -8
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +9 -11
- package/dist/views/Settings/components/SettingsAppearance.vue.js +6 -6
- package/dist/vitest.setup.d.ts +16 -0
- package/dist/vitest.setup.d.ts.map +1 -0
- package/package.json +16 -21
- package/dist/views/Servers/ServerForm.vue.d.ts.map +0 -1
- package/dist/views/Servers/ServerForm.vue.js +0 -39
- package/dist/views/Servers/ServerForm.vue2.js +0 -4
- package/dist/views/Servers/Servers.vue.d.ts.map +0 -1
- package/dist/views/Servers/Servers.vue.js +0 -4
- package/dist/views/Servers/Servers.vue2.js +0 -168
- package/dist/views/Servers/index.d.ts +0 -2
- package/dist/views/Servers/index.d.ts.map +0 -1
- package/dist/views/Servers/index.js +0 -4
|
@@ -1,82 +1,82 @@
|
|
|
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
|
|
2
|
-
import { useModal as
|
|
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 m, createElementVNode as p, unref as r, createElementBlock as V, Fragment as A, renderList as B, normalizeClass as L, 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 O, ScalarIcon as J, ScalarButton as xe, ScalarModal as be } from "@scalar/components";
|
|
3
3
|
import { LibraryIcon as he } from "@scalar/icons";
|
|
4
4
|
import { useToasts as Ce } from "@scalar/use-toasts";
|
|
5
|
-
import { useRouter as Ee, useRoute as
|
|
6
|
-
import
|
|
5
|
+
import { useRouter as Ee, useRoute as ke } from "vue-router";
|
|
6
|
+
import ye from "../../components/CodeInput/CodeInput.vue.js";
|
|
7
7
|
import ge from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
8
8
|
import _e from "../../components/Sidebar/Sidebar.vue.js";
|
|
9
9
|
import we from "../../components/Sidebar/SidebarButton.vue.js";
|
|
10
10
|
import Ie from "../../components/Sidebar/SidebarList.vue.js";
|
|
11
11
|
import T from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
const De = { class: "flex-1" },
|
|
12
|
+
import Me from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
13
|
+
import Se from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
14
|
+
import $e from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
15
|
+
import { useSidebar as Ve } from "../../hooks/useSidebar.js";
|
|
16
|
+
import { PathId as i } from "../../routes.js";
|
|
17
|
+
import { useActiveEntities as Oe } from "../../store/active-entities.js";
|
|
18
|
+
import je from "./EnvironmentColorModal.vue.js";
|
|
19
|
+
import Ne from "./EnvironmentModal.vue.js";
|
|
20
|
+
import { useWorkspace as Re } from "../../store/store.js";
|
|
21
|
+
const De = { class: "flex-1" }, Ue = ["onClick"], We = { class: "flex h-5 max-w-[14px] items-center justify-center" }, ln = /* @__PURE__ */ ie({
|
|
22
22
|
__name: "Environment",
|
|
23
|
-
setup(
|
|
24
|
-
const C = Ee(), E =
|
|
23
|
+
setup(ze) {
|
|
24
|
+
const C = Ee(), E = ke(), {
|
|
25
25
|
activeWorkspace: x,
|
|
26
|
-
activeEnvironment:
|
|
27
|
-
activeWorkspaceCollections:
|
|
26
|
+
activeEnvironment: j,
|
|
27
|
+
activeWorkspaceCollections: u,
|
|
28
28
|
activeEnvVariables: H
|
|
29
|
-
} =
|
|
30
|
-
function
|
|
29
|
+
} = Oe(), { events: N, workspaceMutators: P, collectionMutators: k } = Re(), { collapsedSidebarFolders: y, toggleSidebarFolder: _ } = Ve(), w = O(), I = O(), M = O(), R = h(null), s = h("default"), D = h(""), b = h(void 0), d = h(void 0), S = h(void 0), { toast: U } = Ce(), q = (e) => JSON.parse(e);
|
|
30
|
+
function W(e, o, n) {
|
|
31
31
|
var t;
|
|
32
|
-
e && (o.uid === n ?
|
|
32
|
+
e && (o.uid === n ? U(
|
|
33
33
|
`Environment name already used in ${(t = o.info) == null ? void 0 : t.title}`,
|
|
34
34
|
"error"
|
|
35
|
-
) :
|
|
35
|
+
) : U("Environment name already used in another collection", "error"));
|
|
36
36
|
}
|
|
37
37
|
function Q(e) {
|
|
38
|
-
|
|
38
|
+
u.value.some(
|
|
39
39
|
(n) => {
|
|
40
40
|
const t = Object.keys(
|
|
41
41
|
n["x-scalar-environments"] || {}
|
|
42
42
|
).includes(e.name);
|
|
43
|
-
return
|
|
43
|
+
return W(t, n, e.collectionId), t;
|
|
44
44
|
}
|
|
45
|
-
) || (e.collectionId && (
|
|
45
|
+
) || (e.collectionId && (k.addEnvironment(
|
|
46
46
|
e.name,
|
|
47
47
|
{
|
|
48
48
|
variables: {},
|
|
49
49
|
color: e.color
|
|
50
50
|
},
|
|
51
51
|
e.collectionId
|
|
52
|
-
),
|
|
52
|
+
), y[e.collectionId] || _(e.collectionId), C.push({
|
|
53
53
|
name: "environment.collection",
|
|
54
54
|
params: {
|
|
55
|
-
[
|
|
56
|
-
[
|
|
55
|
+
[i.Collection]: e.collectionId,
|
|
56
|
+
[i.Environment]: e.name
|
|
57
57
|
}
|
|
58
58
|
})), I.hide());
|
|
59
59
|
}
|
|
60
60
|
function X(e) {
|
|
61
61
|
var o, n;
|
|
62
|
-
if (
|
|
62
|
+
if (j) {
|
|
63
63
|
const t = q(e);
|
|
64
|
-
if (
|
|
64
|
+
if (s.value === "default")
|
|
65
65
|
P.edit(
|
|
66
66
|
(o = x.value) == null ? void 0 : o.uid,
|
|
67
67
|
"environments",
|
|
68
68
|
t
|
|
69
69
|
);
|
|
70
70
|
else {
|
|
71
|
-
const a =
|
|
71
|
+
const a = u.value.find(
|
|
72
72
|
(l) => {
|
|
73
73
|
var f;
|
|
74
|
-
return (f = l["x-scalar-environments"]) == null ? void 0 : f[
|
|
74
|
+
return (f = l["x-scalar-environments"]) == null ? void 0 : f[s.value ?? ""];
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
|
-
if ((n = a == null ? void 0 : a["x-scalar-environments"]) != null && n[
|
|
78
|
-
const l = a["x-scalar-environments"][
|
|
79
|
-
l && (l.variables = t,
|
|
77
|
+
if ((n = a == null ? void 0 : a["x-scalar-environments"]) != null && n[s.value ?? ""]) {
|
|
78
|
+
const l = a["x-scalar-environments"][s.value ?? ""];
|
|
79
|
+
l && (l.variables = t, k.edit(
|
|
80
80
|
a.uid,
|
|
81
81
|
"x-scalar-environments",
|
|
82
82
|
a["x-scalar-environments"]
|
|
@@ -85,13 +85,13 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const $ = (e) => {
|
|
89
89
|
b.value = e, I.show();
|
|
90
90
|
}, Y = (e, o) => {
|
|
91
|
-
d.value = e, b.value = o,
|
|
91
|
+
d.value = e, b.value = o, S.value = e, M.show();
|
|
92
92
|
}, Z = (e) => {
|
|
93
93
|
var o, n, t;
|
|
94
|
-
R.value = e, D.value = ((t = (n = (o =
|
|
94
|
+
R.value = e, D.value = ((t = (n = (o = u.value.find(
|
|
95
95
|
(a) => {
|
|
96
96
|
var l;
|
|
97
97
|
return (l = a["x-scalar-environments"]) == null ? void 0 : l[e];
|
|
@@ -99,14 +99,14 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
|
|
|
99
99
|
)) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[e]) == null ? void 0 : t.color) ?? "", w.show();
|
|
100
100
|
}, ee = (e) => {
|
|
101
101
|
const o = R.value;
|
|
102
|
-
typeof o == "string" && (
|
|
102
|
+
typeof o == "string" && (u.value.some(
|
|
103
103
|
(t) => {
|
|
104
104
|
var a;
|
|
105
105
|
return (a = t["x-scalar-environments"]) == null ? void 0 : a[o];
|
|
106
106
|
}
|
|
107
|
-
) &&
|
|
107
|
+
) && u.value.forEach((t) => {
|
|
108
108
|
var a;
|
|
109
|
-
(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, k.edit(
|
|
110
110
|
t.uid,
|
|
111
111
|
"x-scalar-environments",
|
|
112
112
|
t["x-scalar-environments"]
|
|
@@ -114,114 +114,120 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
|
|
|
114
114
|
}), w.hide());
|
|
115
115
|
};
|
|
116
116
|
function ne(e) {
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
u.value.forEach((n) => {
|
|
118
|
+
k.removeEnvironment(e, n.uid);
|
|
119
119
|
});
|
|
120
|
-
const o =
|
|
120
|
+
const o = u.value.flatMap(
|
|
121
121
|
(n) => Object.keys(n["x-scalar-environments"] || {})
|
|
122
122
|
);
|
|
123
123
|
if (o.length > 0) {
|
|
124
124
|
const n = o[o.length - 1];
|
|
125
125
|
if (!n) return;
|
|
126
|
-
const t =
|
|
126
|
+
const t = u.value.find(
|
|
127
127
|
(a) => Object.keys(a["x-scalar-environments"] || {}).includes(
|
|
128
128
|
n
|
|
129
129
|
)
|
|
130
130
|
);
|
|
131
|
-
|
|
131
|
+
s.value = n, C.push({
|
|
132
132
|
name: "environment.collection",
|
|
133
133
|
params: {
|
|
134
134
|
collectionId: t == null ? void 0 : t.uid,
|
|
135
135
|
environmentId: n
|
|
136
136
|
}
|
|
137
|
-
}), t && !
|
|
137
|
+
}), t && !y[t.uid] && _(t.uid);
|
|
138
138
|
} else
|
|
139
|
-
|
|
139
|
+
s.value = "default", C.push({
|
|
140
140
|
name: "environment",
|
|
141
141
|
params: { environment: "default" }
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
const te = () =>
|
|
144
|
+
const te = () => s.value === "default" ? "Global Environment" : s.value, oe = () => {
|
|
145
145
|
var e, o, n, t;
|
|
146
|
-
return
|
|
147
|
-
(t = (n = (o =
|
|
146
|
+
return s.value === "default" ? JSON.stringify((e = x.value) == null ? void 0 : e.environments, null, 2) : JSON.stringify(
|
|
147
|
+
(t = (n = (o = u.value.find(
|
|
148
148
|
(a) => {
|
|
149
149
|
var l;
|
|
150
|
-
return (l = a["x-scalar-environments"]) == null ? void 0 : l[
|
|
150
|
+
return (l = a["x-scalar-environments"]) == null ? void 0 : l[s.value ?? ""];
|
|
151
151
|
}
|
|
152
|
-
)) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[
|
|
152
|
+
)) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[s.value ?? ""]) == null ? void 0 : t.variables,
|
|
153
153
|
null,
|
|
154
154
|
2
|
|
155
155
|
);
|
|
156
|
-
}, ae = (e) =>
|
|
157
|
-
e != null && e.createNew && E.name === "environment" &&
|
|
156
|
+
}, ae = (e) => y[e], z = (e) => {
|
|
157
|
+
e != null && e.createNew && E.name === "environment" && $();
|
|
158
158
|
};
|
|
159
159
|
ue(
|
|
160
|
-
() => [E.params[
|
|
160
|
+
() => [E.params[i.Collection], E.params[i.Environment]],
|
|
161
161
|
([e, o]) => {
|
|
162
|
-
e ?
|
|
162
|
+
e ? s.value = o : s.value = "default";
|
|
163
163
|
}
|
|
164
164
|
), me(() => {
|
|
165
|
-
|
|
166
|
-
const e = E.params[
|
|
167
|
-
e && !
|
|
168
|
-
}), ce(() =>
|
|
165
|
+
s.value = E.params[i.Environment] || "default", N.hotKeys.on(z);
|
|
166
|
+
const e = E.params[i.Collection];
|
|
167
|
+
e && !y[e] && _(e);
|
|
168
|
+
}), ce(() => N.hotKeys.off(z));
|
|
169
169
|
const le = (e, o, n) => {
|
|
170
170
|
var a, l;
|
|
171
171
|
const t = n ? {
|
|
172
172
|
name: "environment.collection",
|
|
173
173
|
params: {
|
|
174
|
-
[
|
|
175
|
-
[
|
|
176
|
-
[
|
|
174
|
+
[i.Workspace]: (a = x.value) == null ? void 0 : a.uid,
|
|
175
|
+
[i.Collection]: n,
|
|
176
|
+
[i.Environment]: o
|
|
177
177
|
}
|
|
178
178
|
} : {
|
|
179
179
|
name: "environment.default",
|
|
180
180
|
params: {
|
|
181
|
-
[
|
|
182
|
-
[
|
|
181
|
+
[i.Workspace]: (l = x.value) == null ? void 0 : l.uid,
|
|
182
|
+
[i.Environment]: o
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
e.metaKey ? window.open(C.resolve(t).href, "_blank") : C.push(t);
|
|
186
186
|
};
|
|
187
187
|
function re() {
|
|
188
|
-
d.value = void 0, b.value = void 0,
|
|
188
|
+
d.value = void 0, b.value = void 0, S.value = void 0, M.hide();
|
|
189
189
|
}
|
|
190
190
|
function se(e) {
|
|
191
|
-
|
|
191
|
+
u.value.some(
|
|
192
192
|
(n) => {
|
|
193
193
|
const t = Object.keys(
|
|
194
194
|
n["x-scalar-environments"] || {}
|
|
195
195
|
).includes(e);
|
|
196
|
-
return
|
|
196
|
+
return W(
|
|
197
197
|
t,
|
|
198
198
|
n,
|
|
199
199
|
b.value
|
|
200
200
|
), t;
|
|
201
201
|
}
|
|
202
|
-
) || (e && d.value !== "default" &&
|
|
202
|
+
) || (e && d.value !== "default" && u.value.forEach((n) => {
|
|
203
203
|
var t;
|
|
204
204
|
if ((t = n["x-scalar-environments"]) != null && t[d.value ?? ""]) {
|
|
205
205
|
const a = n["x-scalar-environments"][d.value ?? ""];
|
|
206
|
-
a && (delete n["x-scalar-environments"][d.value ?? ""], n["x-scalar-environments"][e] = a,
|
|
206
|
+
a && (delete n["x-scalar-environments"][d.value ?? ""], n["x-scalar-environments"][e] = a, k.edit(
|
|
207
207
|
n.uid,
|
|
208
208
|
"x-scalar-environments",
|
|
209
209
|
n["x-scalar-environments"]
|
|
210
210
|
));
|
|
211
211
|
}
|
|
212
|
-
}), e &&
|
|
212
|
+
}), e && s.value === d.value && (s.value = e), d.value = void 0, b.value = void 0, S.value = void 0, M.hide());
|
|
213
213
|
}
|
|
214
|
-
return (e, o) => (v(), g(
|
|
214
|
+
return (e, o) => (v(), g(Me, null, {
|
|
215
215
|
default: c(() => [
|
|
216
|
-
|
|
216
|
+
m(_e, { title: "Collections" }, {
|
|
217
217
|
content: c(() => [
|
|
218
218
|
p("div", De, [
|
|
219
|
-
|
|
219
|
+
m(Ie, null, {
|
|
220
220
|
default: c(() => [
|
|
221
221
|
(v(), g(T, {
|
|
222
222
|
key: "default",
|
|
223
223
|
class: "text-xs",
|
|
224
224
|
isCopyable: !1,
|
|
225
|
+
to: {
|
|
226
|
+
name: "environment.default",
|
|
227
|
+
params: {
|
|
228
|
+
[r(i).Environment]: "default"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
225
231
|
type: "environment",
|
|
226
232
|
variable: {
|
|
227
233
|
name: "Global Environment",
|
|
@@ -229,29 +235,29 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
|
|
|
229
235
|
icon: "Globe",
|
|
230
236
|
isDefault: !0
|
|
231
237
|
}
|
|
232
|
-
})),
|
|
233
|
-
(v(!0),
|
|
238
|
+
}, null, 8, ["to"])),
|
|
239
|
+
(v(!0), V(A, null, B(r(u), (n) => {
|
|
234
240
|
var t;
|
|
235
|
-
return v(),
|
|
241
|
+
return v(), V("li", {
|
|
236
242
|
key: n.uid,
|
|
237
243
|
class: "gap-1/2 flex flex-col"
|
|
238
244
|
}, [
|
|
239
245
|
p("button", {
|
|
240
246
|
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",
|
|
241
247
|
type: "button",
|
|
242
|
-
onClick: (a) =>
|
|
248
|
+
onClick: (a) => r(_)(n.uid)
|
|
243
249
|
}, [
|
|
244
|
-
p("span",
|
|
245
|
-
|
|
250
|
+
p("span", We, [
|
|
251
|
+
m(r(he), {
|
|
246
252
|
class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
|
|
247
253
|
src: n["x-scalar-icon"] || "interface-content-folder"
|
|
248
254
|
}, null, 8, ["src"]),
|
|
249
255
|
p("div", {
|
|
250
|
-
class:
|
|
251
|
-
"rotate-90":
|
|
256
|
+
class: L({
|
|
257
|
+
"rotate-90": r(y)[n.uid]
|
|
252
258
|
})
|
|
253
259
|
}, [
|
|
254
|
-
|
|
260
|
+
m(r(J), {
|
|
255
261
|
class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
|
|
256
262
|
icon: "ChevronRight",
|
|
257
263
|
size: "md"
|
|
@@ -259,19 +265,26 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
|
|
|
259
265
|
], 2)
|
|
260
266
|
]),
|
|
261
267
|
K(" " + F(((t = n.info) == null ? void 0 : t.title) ?? ""), 1)
|
|
262
|
-
], 8,
|
|
268
|
+
], 8, Ue),
|
|
263
269
|
de(p("div", {
|
|
264
|
-
class:
|
|
270
|
+
class: L({
|
|
265
271
|
"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
|
|
266
272
|
})
|
|
267
273
|
}, [
|
|
268
|
-
(v(!0),
|
|
274
|
+
(v(!0), V(A, null, B(n["x-scalar-environments"], (a, l) => (v(), g(T, {
|
|
269
275
|
key: l,
|
|
270
276
|
class: "text-xs [&>a]:pl-5",
|
|
271
277
|
collectionId: n.uid,
|
|
272
278
|
isCopyable: !1,
|
|
273
279
|
isDeletable: !0,
|
|
274
280
|
isRenameable: !0,
|
|
281
|
+
to: {
|
|
282
|
+
name: "collection.environment",
|
|
283
|
+
params: {
|
|
284
|
+
[r(i).Collection]: n.uid,
|
|
285
|
+
[r(i).Environment]: l
|
|
286
|
+
}
|
|
287
|
+
},
|
|
275
288
|
type: "environment",
|
|
276
289
|
variable: {
|
|
277
290
|
name: l,
|
|
@@ -284,15 +297,15 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
|
|
|
284
297
|
onColorModal: (f) => Z(l),
|
|
285
298
|
onDelete: (f) => ne(l),
|
|
286
299
|
onRename: (f) => Y(l, n.uid)
|
|
287
|
-
}, null, 8, ["collectionId", "variable", "onClick", "onColorModal", "onDelete", "onRename"]))), 128)),
|
|
288
|
-
Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (v(), g(
|
|
300
|
+
}, null, 8, ["collectionId", "to", "variable", "onClick", "onColorModal", "onDelete", "onRename"]))), 128)),
|
|
301
|
+
Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (v(), g(r(xe), {
|
|
289
302
|
key: 0,
|
|
290
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",
|
|
291
304
|
variant: "ghost",
|
|
292
|
-
onClick: (a) =>
|
|
305
|
+
onClick: (a) => $(n.uid)
|
|
293
306
|
}, {
|
|
294
307
|
default: c(() => [
|
|
295
|
-
|
|
308
|
+
m(r(J), {
|
|
296
309
|
icon: "Add",
|
|
297
310
|
size: "sm"
|
|
298
311
|
}),
|
|
@@ -311,8 +324,8 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
|
|
|
311
324
|
])
|
|
312
325
|
]),
|
|
313
326
|
button: c(() => [
|
|
314
|
-
|
|
315
|
-
click:
|
|
327
|
+
m(we, {
|
|
328
|
+
click: $,
|
|
316
329
|
hotkey: "N"
|
|
317
330
|
}, {
|
|
318
331
|
title: c(() => o[3] || (o[3] = [
|
|
@@ -323,27 +336,27 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
|
|
|
323
336
|
]),
|
|
324
337
|
_: 1
|
|
325
338
|
}),
|
|
326
|
-
|
|
339
|
+
m(Se, { class: "flex-1" }, {
|
|
327
340
|
default: c(() => [
|
|
328
|
-
|
|
341
|
+
m($e, null, pe({
|
|
329
342
|
default: c(() => [
|
|
330
|
-
|
|
343
|
+
s.value && r(x) ? (v(), g(ye, {
|
|
331
344
|
key: 0,
|
|
332
|
-
class: "
|
|
333
|
-
envVariables:
|
|
334
|
-
environment:
|
|
345
|
+
class: "py-2 pl-px pr-2 md:px-4",
|
|
346
|
+
envVariables: r(H),
|
|
347
|
+
environment: r(j),
|
|
335
348
|
isCopyable: "",
|
|
336
349
|
language: "json",
|
|
337
350
|
lineNumbers: "",
|
|
338
351
|
lint: "",
|
|
339
352
|
modelValue: oe(),
|
|
340
|
-
workspace:
|
|
353
|
+
workspace: r(x),
|
|
341
354
|
"onUpdate:modelValue": X
|
|
342
355
|
}, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : G("", !0)
|
|
343
356
|
]),
|
|
344
357
|
_: 2
|
|
345
358
|
}, [
|
|
346
|
-
|
|
359
|
+
s.value ? {
|
|
347
360
|
name: "title",
|
|
348
361
|
fn: c(() => [
|
|
349
362
|
p("span", null, F(te()), 1)
|
|
@@ -354,27 +367,27 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
|
|
|
354
367
|
]),
|
|
355
368
|
_: 1
|
|
356
369
|
}),
|
|
357
|
-
|
|
370
|
+
m(je, {
|
|
358
371
|
selectedColor: D.value,
|
|
359
|
-
state:
|
|
360
|
-
onCancel: o[0] || (o[0] = (n) =>
|
|
372
|
+
state: r(w),
|
|
373
|
+
onCancel: o[0] || (o[0] = (n) => r(w).hide()),
|
|
361
374
|
onSubmit: ee
|
|
362
375
|
}, null, 8, ["selectedColor", "state"]),
|
|
363
|
-
|
|
364
|
-
activeWorkspaceCollections:
|
|
376
|
+
m(Ne, {
|
|
377
|
+
activeWorkspaceCollections: r(u),
|
|
365
378
|
collectionId: b.value,
|
|
366
|
-
state:
|
|
367
|
-
onCancel: o[1] || (o[1] = (n) =>
|
|
379
|
+
state: r(I),
|
|
380
|
+
onCancel: o[1] || (o[1] = (n) => r(I).hide()),
|
|
368
381
|
onSubmit: Q
|
|
369
382
|
}, null, 8, ["activeWorkspaceCollections", "collectionId", "state"]),
|
|
370
|
-
|
|
383
|
+
m(r(be), {
|
|
371
384
|
size: "xxs",
|
|
372
|
-
state:
|
|
385
|
+
state: r(M),
|
|
373
386
|
title: `Edit ${d.value}`
|
|
374
387
|
}, {
|
|
375
388
|
default: c(() => [
|
|
376
|
-
|
|
377
|
-
name:
|
|
389
|
+
m(ge, {
|
|
390
|
+
name: S.value ?? "",
|
|
378
391
|
onClose: re,
|
|
379
392
|
onEdit: se
|
|
380
393
|
}, null, 8, ["name"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentColorModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentColorModal.vue"],"names":[],"mappings":"AAgDA,OAAO,
|
|
1
|
+
{"version":3,"file":"EnvironmentColorModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentColorModal.vue"],"names":[],"mappings":"AAgDA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AASjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;;;;;;;;AAoJF,wBAQG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, ref as u, openBlock as d, createBlock as f, unref as p, withCtx as C, createElementVNode as v, createVNode as n } from "vue";
|
|
2
|
-
import _ from "
|
|
3
|
-
import
|
|
2
|
+
import { ScalarModal as _ } from "@scalar/components";
|
|
3
|
+
import x from "../../components/Sidebar/Actions/SidebarListElementForm.vue.js";
|
|
4
4
|
import S from "./EnvironmentColors.vue.js";
|
|
5
5
|
const b = { class: "flex flex-col gap-4" }, M = /* @__PURE__ */ m({
|
|
6
6
|
__name: "EnvironmentColorModal",
|
|
@@ -15,7 +15,7 @@ const b = { class: "flex flex-col gap-4" }, M = /* @__PURE__ */ m({
|
|
|
15
15
|
}, i = () => {
|
|
16
16
|
o("submit", e.value), e.value = "";
|
|
17
17
|
};
|
|
18
|
-
return (t, l) => (d(), f(p(
|
|
18
|
+
return (t, l) => (d(), f(p(_), {
|
|
19
19
|
size: "xxs",
|
|
20
20
|
state: t.state,
|
|
21
21
|
title: "Edit Environment Color"
|
|
@@ -24,10 +24,10 @@ const b = { class: "flex flex-col gap-4" }, M = /* @__PURE__ */ m({
|
|
|
24
24
|
v("div", b, [
|
|
25
25
|
n(S, {
|
|
26
26
|
activeColor: e.value || s.selectedColor,
|
|
27
|
-
class: "p-1
|
|
27
|
+
class: "w-full p-1",
|
|
28
28
|
onSelect: c
|
|
29
29
|
}, null, 8, ["activeColor"]),
|
|
30
|
-
n(
|
|
30
|
+
n(x, {
|
|
31
31
|
onCancel: l[0] || (l[0] = (E) => o("cancel")),
|
|
32
32
|
onSubmit: i
|
|
33
33
|
})
|
|
@@ -47,7 +47,7 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ F({
|
|
|
47
47
|
], 6)) : c("", !0),
|
|
48
48
|
u.value || !e.selector ? (t(), d("div", {
|
|
49
49
|
key: 1,
|
|
50
|
-
class: s(["color-selector flex flex-row
|
|
50
|
+
class: s(["color-selector flex flex-row items-center justify-between gap-1.5 space-x-1", e.selector ? "h-4" : "min-h-10 min-w-[296px]"])
|
|
51
51
|
}, [
|
|
52
52
|
(t(), d(w, null, j(k, (r) => n("div", {
|
|
53
53
|
key: r.color,
|
|
@@ -62,9 +62,9 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ F({
|
|
|
62
62
|
size: "xs"
|
|
63
63
|
}, null, 8, ["class"])) : c("", !0)
|
|
64
64
|
], 14, R)), 64)),
|
|
65
|
-
i[2] || (i[2] = n("hr", { class: "
|
|
65
|
+
i[2] || (i[2] = n("hr", { class: "border-ghost h-5 w-0.5 border-l" }, null, -1)),
|
|
66
66
|
n("label", {
|
|
67
|
-
class: s(["cursor-pointer flex
|
|
67
|
+
class: s(["z-10 flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
|
|
68
68
|
style: f(b.value),
|
|
69
69
|
onClick: y
|
|
70
70
|
}, [
|
|
@@ -79,20 +79,20 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ F({
|
|
|
79
79
|
], 64)),
|
|
80
80
|
a.value ? (t(), d("div", {
|
|
81
81
|
key: 1,
|
|
82
|
-
class: s(["color-selector flex flex-1 gap-2
|
|
82
|
+
class: s(["color-selector flex flex-1 items-center gap-2 rounded", e.selector ? "h-4" : "min-h-10"])
|
|
83
83
|
}, [
|
|
84
84
|
n("span", {
|
|
85
|
-
class: s(["absolute border border-dashed
|
|
85
|
+
class: s(["absolute rounded-full border border-dashed", e.selector ? "h-4 w-4" : "h-5 w-5"])
|
|
86
86
|
}, null, 2),
|
|
87
87
|
n("span", {
|
|
88
|
-
class: s(["
|
|
88
|
+
class: s(["z-[1] rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
|
|
89
89
|
style: f(b.value)
|
|
90
90
|
}, null, 6),
|
|
91
91
|
D(n("input", {
|
|
92
92
|
ref_key: "customColorInputRef",
|
|
93
93
|
ref: C,
|
|
94
94
|
"onUpdate:modelValue": i[0] || (i[0] = (r) => o.value = r),
|
|
95
|
-
class: "
|
|
95
|
+
class: "w-full flex-1 border-transparent text-sm outline-none",
|
|
96
96
|
placeholder: l.activeColor || "#000000",
|
|
97
97
|
type: "text",
|
|
98
98
|
onInput: i[1] || (i[1] = (r) => g(o.value))
|
|
@@ -100,7 +100,7 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ F({
|
|
|
100
100
|
[V, o.value]
|
|
101
101
|
]),
|
|
102
102
|
n("button", {
|
|
103
|
-
class: "text-c-3 hover:bg-b-2 p-1.5
|
|
103
|
+
class: "text-c-3 hover:bg-b-2 rounded-lg p-1.5",
|
|
104
104
|
type: "button",
|
|
105
105
|
onClick: y
|
|
106
106
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAOzE,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAInE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,YAAY,CAAA;IAE1B,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAwDiC,IAAI,GAAG,MAAM;;;;;;;AAqPhD,wBAQG"}
|