@scalar/api-client 2.8.1 → 2.9.0
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 +58 -0
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -10
- package/dist/components/CodeInput/CodeInput.vue2.js +5 -5
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +18 -20
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +13 -14
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +3 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
- package/dist/components/IconSelector.vue.js +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
- package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
- package/dist/components/OpenApiClientButton.vue2.js +1 -1
- package/dist/components/Server/ServerSelector.vue.js +1 -2
- package/dist/components/SideNav/SideHelp.vue.js +13 -19
- package/dist/components/SideNav/SideNav.vue.js +4 -5
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/TopNav/TopNav.vue.js +8 -10
- package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +9 -11
- package/dist/hooks/useClientConfig.d.ts +3 -0
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -15
- package/dist/layouts/App/create-api-client-app.d.ts +3646 -3645
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +24 -18
- package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +28 -46
- package/dist/layouts/Modal/index.d.ts +2 -2
- package/dist/layouts/Modal/index.d.ts.map +1 -1
- package/dist/layouts/Modal/index.js +2 -5
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +15 -12
- package/dist/libs/create-client.d.ts +2 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/postman.d.ts +1 -1
- package/dist/libs/postman.d.ts.map +1 -1
- package/dist/libs/postman.js +12 -12
- package/dist/libs/validate-parameters.d.ts +10 -2
- package/dist/libs/validate-parameters.d.ts.map +1 -1
- package/dist/libs/validate-parameters.js +13 -6
- package/dist/routes.d.ts +3 -184
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +6 -6
- package/dist/store/active-entities.d.ts +1 -1
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +2 -2
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
- package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
- package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
- package/dist/v2/components/TempReplaceMe.vue.js +12 -0
- package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
- package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
- package/dist/v2/components/resize/Resize.vue.js +8 -0
- package/dist/v2/components/resize/Resize.vue2.js +36 -0
- package/dist/v2/components/resize/index.d.ts +3 -0
- package/dist/v2/components/resize/index.d.ts.map +1 -0
- package/dist/v2/components/resize/index.js +4 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
- package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
- package/dist/v2/components/sidebar/index.d.ts +4 -0
- package/dist/v2/components/sidebar/index.d.ts.map +1 -0
- package/dist/v2/components/sidebar/index.js +8 -0
- package/dist/v2/features/app/App.vue.d.ts +16 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -0
- package/dist/v2/features/app/App.vue.js +72 -0
- package/dist/v2/features/app/App.vue3.js +5 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
- package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
- package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
- package/dist/v2/features/app/components/index.d.ts +2 -0
- package/dist/v2/features/app/components/index.d.ts.map +1 -0
- package/dist/v2/features/app/components/index.js +5 -0
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
- package/dist/v2/features/app/helpers/routes.d.ts +103 -0
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/routes.js +115 -0
- package/dist/v2/features/app/index.d.ts +2 -0
- package/dist/v2/features/app/index.d.ts.map +1 -0
- package/dist/v2/features/app/index.js +4 -0
- package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
- package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
- package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
- package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
- package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
- package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.js +4 -0
- package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Form.vue.js +83 -0
- package/dist/v2/features/collection/components/Form.vue2.js +4 -0
- package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
- package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
- package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
- package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.js +4 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
- package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.js +4 -0
- package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
- package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.js +7 -0
- package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
- package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
- package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
- package/dist/v2/features/environments/Environments.test.d.ts +2 -0
- package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
- package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
- package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/Environments.vue.js +65 -0
- package/dist/v2/features/environments/Environments.vue2.js +4 -0
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
- package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
- package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
- package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.js +104 -0
- package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
- package/dist/v2/features/environments/index.d.ts +5 -0
- package/dist/v2/features/environments/index.d.ts.map +1 -0
- package/dist/v2/features/environments/index.js +6 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
- package/dist/v2/features/global-cookies/index.d.ts +2 -0
- package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/index.js +4 -0
- package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
- package/dist/v2/features/modal/Modal.vue.js +7 -0
- package/dist/v2/features/modal/Modal.vue2.js +81 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
- package/dist/v2/features/modal/index.d.ts +2 -0
- package/dist/v2/features/modal/index.d.ts.map +1 -0
- package/dist/v2/features/modal/index.js +4 -0
- package/dist/v2/features/operation/Operation.test.d.ts +2 -0
- package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
- package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
- package/dist/v2/features/operation/Operation.vue.js +124 -0
- package/dist/v2/features/operation/Operation.vue2.js +4 -0
- package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
- package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
- package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
- package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
- package/dist/v2/features/operation/components/Header.vue.js +7 -0
- package/dist/v2/features/operation/components/Header.vue2.js +97 -0
- package/dist/v2/features/operation/index.d.ts +3 -0
- package/dist/v2/features/operation/index.d.ts.map +1 -0
- package/dist/v2/features/operation/index.js +4 -0
- package/dist/v2/features/settings/Settings.test.d.ts +2 -0
- package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
- package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
- package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/Settings.vue.js +268 -0
- package/dist/v2/features/settings/Settings.vue2.js +4 -0
- package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
- package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
- package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
- package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/components/Section.vue.js +24 -0
- package/dist/v2/features/settings/components/Section.vue2.js +4 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
- package/dist/v2/features/settings/index.d.ts +2 -0
- package/dist/v2/features/settings/index.d.ts.map +1 -0
- package/dist/v2/features/settings/index.js +4 -0
- package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
- package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
- package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
- package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.js +13 -0
- package/dist/v2/plugins.d.ts +44 -0
- package/dist/v2/plugins.d.ts.map +1 -0
- package/dist/v2/types/layout.d.ts +10 -0
- package/dist/v2/types/layout.d.ts.map +1 -0
- package/dist/views/Collection/Collection.vue2.js +6 -6
- package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
- package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
- package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +43 -50
- package/dist/views/Collection/CollectionSettings.vue.js +2 -2
- package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
- package/dist/views/Collection/CollectionSync.vue2.js +3 -3
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
- package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
- package/dist/views/Cookies/CookieModal.vue2.js +6 -6
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +5 -6
- package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +79 -80
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
- 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 +96 -78
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
- package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
- package/dist/views/Request/RequestSidebar.vue2.js +7 -8
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
- package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
- package/package.json +30 -25
- package/dist/hooks/useKeyMap.d.ts +0 -2
- package/dist/hooks/useKeyMap.d.ts.map +0 -1
- package/dist/hooks/useKeyMap.js +0 -9
- package/dist/router.d.ts +0 -8
- package/dist/router.d.ts.map +0 -1
- package/dist/router.js +0 -20
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineComponent as g, createBlock as t, openBlock as l, unref as r, withCtx as s, createElementVNode as d, renderSlot as k, createCommentVNode as c, createElementBlock as u, normalizeStyle as p, createTextVNode as F, toDisplayString as v, createVNode as b } from "vue";
|
|
2
|
+
import { ScalarButton as i } from "@scalar/components";
|
|
3
|
+
import { Draggable as w } from "@scalar/draggable";
|
|
4
|
+
import { ScalarIconTrash as R } from "@scalar/icons";
|
|
5
|
+
import V from "./EnvironmentVariablesTable.vue.js";
|
|
6
|
+
const h = { class: "bg-b-2 flex cursor-grab justify-between rounded-t-lg px-1 py-1 text-sm" }, C = { class: "flex items-center gap-1" }, D = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "flex h-6 w-6 items-center justify-center p-1"
|
|
9
|
+
}, E = {
|
|
10
|
+
key: 3,
|
|
11
|
+
class: "px-1 py-0.5 text-sm"
|
|
12
|
+
}, j = /* @__PURE__ */ g({
|
|
13
|
+
__name: "Environment",
|
|
14
|
+
props: {
|
|
15
|
+
name: {},
|
|
16
|
+
color: {},
|
|
17
|
+
variables: {},
|
|
18
|
+
isReadonly: { type: Boolean, default: !1 },
|
|
19
|
+
environment: {},
|
|
20
|
+
envVariables: {}
|
|
21
|
+
},
|
|
22
|
+
emits: ["delete", "reorder", "add:variable", "update:name", "update:color", "update:variable", "delete:variable"],
|
|
23
|
+
setup(B, { emit: f }) {
|
|
24
|
+
const o = f, y = (e, a) => {
|
|
25
|
+
o("reorder", e, a);
|
|
26
|
+
};
|
|
27
|
+
return (e, a) => (l(), t(r(w), {
|
|
28
|
+
id: e.name,
|
|
29
|
+
class: "rounded-lg border",
|
|
30
|
+
isDraggable: !0,
|
|
31
|
+
isDroppable: !0,
|
|
32
|
+
parentIds: [],
|
|
33
|
+
onOnDragEnd: y
|
|
34
|
+
}, {
|
|
35
|
+
default: s(() => [
|
|
36
|
+
d("div", h, [
|
|
37
|
+
d("div", C, [
|
|
38
|
+
e.isReadonly ? (l(), u("div", D, [
|
|
39
|
+
d("span", {
|
|
40
|
+
class: "h-2.5 w-2.5 rounded-full",
|
|
41
|
+
style: p({ backgroundColor: e.color || "#FFFFFF" })
|
|
42
|
+
}, null, 4)
|
|
43
|
+
])) : (l(), t(r(i), {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "hover:bg-b-3 flex h-6 w-6 p-1",
|
|
46
|
+
disabled: e.isReadonly,
|
|
47
|
+
variant: "ghost",
|
|
48
|
+
onClick: a[0] || (a[0] = (n) => o("update:color"))
|
|
49
|
+
}, {
|
|
50
|
+
default: s(() => [
|
|
51
|
+
d("span", {
|
|
52
|
+
class: "h-2.5 w-2.5 rounded-full",
|
|
53
|
+
style: p({ backgroundColor: e.color || "#FFFFFF" })
|
|
54
|
+
}, null, 4)
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}, 8, ["disabled"])),
|
|
58
|
+
e.isReadonly ? (l(), u("span", E, v(e.name), 1)) : (l(), t(r(i), {
|
|
59
|
+
key: 2,
|
|
60
|
+
class: "hover:bg-b-3 rounded px-1 py-0.5 text-sm",
|
|
61
|
+
disabled: e.isReadonly,
|
|
62
|
+
variant: "ghost",
|
|
63
|
+
onClick: a[1] || (a[1] = (n) => o("update:name"))
|
|
64
|
+
}, {
|
|
65
|
+
default: s(() => [
|
|
66
|
+
F(v(e.name), 1)
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, ["disabled"]))
|
|
70
|
+
]),
|
|
71
|
+
e.isReadonly ? c("", !0) : (l(), t(r(i), {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: "text-c-2 hover:text-c-1 hover:bg-b-3 h-fit rounded p-1",
|
|
74
|
+
size: "sm",
|
|
75
|
+
variant: "ghost",
|
|
76
|
+
onClick: a[2] || (a[2] = (n) => o("delete"))
|
|
77
|
+
}, {
|
|
78
|
+
default: s(() => [
|
|
79
|
+
b(r(R), { class: "size-3.5" })
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
}))
|
|
83
|
+
]),
|
|
84
|
+
k(e.$slots, "default", {}, () => [
|
|
85
|
+
b(V, {
|
|
86
|
+
data: e.variables,
|
|
87
|
+
envVariables: e.envVariables,
|
|
88
|
+
environment: e.environment,
|
|
89
|
+
onAddRow: a[3] || (a[3] = (n) => o("add:variable", { name: n.name, value: n.value })),
|
|
90
|
+
onDeleteRow: a[4] || (a[4] = (n) => o("delete:variable", { id: n })),
|
|
91
|
+
onUpdateRow: a[5] || (a[5] = (n, m) => o("update:variable", {
|
|
92
|
+
id: n,
|
|
93
|
+
value: { name: m.name, value: m.value }
|
|
94
|
+
}))
|
|
95
|
+
}, null, 8, ["data", "envVariables", "environment"])
|
|
96
|
+
])
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
}, 8, ["id"]));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export {
|
|
103
|
+
j as default
|
|
104
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ModalState } from '@scalar/components';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Modal visibility and control state */
|
|
4
|
+
state: ModalState;
|
|
5
|
+
/** Currently selected color */
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
submit: (payload: {
|
|
10
|
+
color: string;
|
|
11
|
+
}) => any;
|
|
12
|
+
cancel: () => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onSubmit?: ((payload: {
|
|
15
|
+
color: string;
|
|
16
|
+
}) => any) | undefined;
|
|
17
|
+
onCancel?: (() => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=EnvironmentColorUpdateModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentColorUpdateModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentColorUpdateModal.vue"],"names":[],"mappings":"AA+DA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,yCAAyC;IACzC,KAAK,EAAE,UAAU,CAAA;IACjB,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;;eAKoC,MAAM;;;;;eAAN,MAAM;;;;AA8H5C,wBAOG"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as m, ref as c, watch as u, createBlock as f, openBlock as d, unref as p, withCtx as C, createElementVNode as v, createVNode as i } from "vue";
|
|
2
|
+
import { ScalarModal as b } from "@scalar/components";
|
|
3
|
+
import x from "../../../../components/Sidebar/Actions/SidebarListElementForm.vue.js";
|
|
4
|
+
import E from "./EnvironmentColors.vue.js";
|
|
5
|
+
const w = { class: "flex flex-col gap-4" }, N = /* @__PURE__ */ m({
|
|
6
|
+
__name: "EnvironmentColorUpdateModal",
|
|
7
|
+
props: {
|
|
8
|
+
state: {},
|
|
9
|
+
color: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["cancel", "submit"],
|
|
12
|
+
setup(l, { emit: a }) {
|
|
13
|
+
const r = a, o = c(l.color);
|
|
14
|
+
u(
|
|
15
|
+
() => l.color,
|
|
16
|
+
(e) => {
|
|
17
|
+
o.value = e;
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
const n = (e) => {
|
|
21
|
+
l.state.hide(), e === "cancel" && r("cancel"), e === "submit" && r("submit", { color: o.value });
|
|
22
|
+
};
|
|
23
|
+
return (e, t) => (d(), f(p(b), {
|
|
24
|
+
size: "xxs",
|
|
25
|
+
state: e.state,
|
|
26
|
+
title: "Edit Environment Color",
|
|
27
|
+
onClose: t[3] || (t[3] = () => n("cancel"))
|
|
28
|
+
}, {
|
|
29
|
+
default: C(() => [
|
|
30
|
+
v("div", w, [
|
|
31
|
+
i(E, {
|
|
32
|
+
activeColor: o.value,
|
|
33
|
+
class: "w-full p-1",
|
|
34
|
+
onSelect: t[0] || (t[0] = (s) => o.value = s)
|
|
35
|
+
}, null, 8, ["activeColor"]),
|
|
36
|
+
i(x, {
|
|
37
|
+
onCancel: t[1] || (t[1] = () => n("cancel")),
|
|
38
|
+
onSubmit: t[2] || (t[2] = () => n("submit"))
|
|
39
|
+
})
|
|
40
|
+
])
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["state"]));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
N as default
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentColors.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentColors.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
activeColor: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
+
select: (color: string) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
+
onSelect?: ((color: string) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=EnvironmentColors.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentColors.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentColors.vue"],"names":[],"mappings":"AA2IA,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AAoQF,wBAOG"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { defineComponent as z, ref as d, computed as m, createElementBlock as v, openBlock as s, createElementVNode as r, Fragment as B, renderList as E, normalizeStyle as C, createBlock as h, createCommentVNode as x, unref as f, withDirectives as I, vModelText as D, createVNode as V, nextTick as $ } from "vue";
|
|
2
|
+
import { ScalarIcon as p } from "@scalar/components";
|
|
3
|
+
const j = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "flex min-h-10 min-w-[296px] flex-row items-center justify-between gap-1.5 space-x-1"
|
|
6
|
+
}, N = ["onClick"], R = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "flex min-h-10 flex-1 items-center gap-2 rounded"
|
|
9
|
+
}, S = ["placeholder"], T = "linear-gradient(to right, rgb(235, 87, 87), rgb(242, 201, 76), rgb(76, 183, 130), rgb(78, 167, 252), rgb(250, 96, 122));", O = /* @__PURE__ */ z({
|
|
10
|
+
__name: "EnvironmentColors",
|
|
11
|
+
props: {
|
|
12
|
+
activeColor: {}
|
|
13
|
+
},
|
|
14
|
+
emits: ["select"],
|
|
15
|
+
setup(c, { emit: y }) {
|
|
16
|
+
const w = y, a = d(""), t = m({
|
|
17
|
+
get: () => a.value,
|
|
18
|
+
set: (e) => {
|
|
19
|
+
e && !e.startsWith("#") ? a.value = `#${e}` : a.value = e, e && (n.value = !0);
|
|
20
|
+
}
|
|
21
|
+
}), u = d(null), n = d(!1), i = [
|
|
22
|
+
{ color: "#FFFFFF" },
|
|
23
|
+
{ color: "#EF0006" },
|
|
24
|
+
{ color: "#EDBE20" },
|
|
25
|
+
{ color: "#069061" },
|
|
26
|
+
{ color: "#FB892C" },
|
|
27
|
+
{ color: "#0082D0" },
|
|
28
|
+
{ color: "#5203D1" },
|
|
29
|
+
{ color: "#FFC0CB" }
|
|
30
|
+
], F = m(() => c.activeColor && !i.some((e) => e.color === c.activeColor) || t.value), k = m(() => `background: ${F.value ? c.activeColor ?? t.value : T}`), b = () => {
|
|
31
|
+
n.value = !n.value, $(() => {
|
|
32
|
+
u.value && u.value.focus();
|
|
33
|
+
});
|
|
34
|
+
}, g = (e) => {
|
|
35
|
+
w("select", e);
|
|
36
|
+
};
|
|
37
|
+
return (e, l) => n.value ? (s(), v("div", R, [
|
|
38
|
+
l[3] || (l[3] = r("span", { class: "absolute h-5 w-5 rounded-full border border-dashed" }, null, -1)),
|
|
39
|
+
r("span", {
|
|
40
|
+
class: "z-[1] h-5 w-5 rounded-full",
|
|
41
|
+
style: C(k.value)
|
|
42
|
+
}, null, 4),
|
|
43
|
+
I(r("input", {
|
|
44
|
+
ref_key: "customColorInputRef",
|
|
45
|
+
ref: u,
|
|
46
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
|
|
47
|
+
class: "w-full flex-1 border-transparent text-sm outline-none",
|
|
48
|
+
placeholder: e.activeColor || "#000000",
|
|
49
|
+
type: "text",
|
|
50
|
+
onInput: l[1] || (l[1] = (o) => g(t.value))
|
|
51
|
+
}, null, 40, S), [
|
|
52
|
+
[D, t.value]
|
|
53
|
+
]),
|
|
54
|
+
r("button", {
|
|
55
|
+
class: "text-c-3 hover:bg-b-2 rounded-lg p-1.5",
|
|
56
|
+
type: "button",
|
|
57
|
+
onClick: b
|
|
58
|
+
}, [
|
|
59
|
+
V(f(p), {
|
|
60
|
+
icon: "Checkmark",
|
|
61
|
+
size: "xs"
|
|
62
|
+
})
|
|
63
|
+
])
|
|
64
|
+
])) : (s(), v("div", j, [
|
|
65
|
+
(s(), v(B, null, E(i, (o) => r("div", {
|
|
66
|
+
key: o.color,
|
|
67
|
+
class: "flex h-5 w-5 cursor-pointer items-center justify-center rounded-full",
|
|
68
|
+
"data-testid": "color-option",
|
|
69
|
+
style: C({ backgroundColor: o.color }),
|
|
70
|
+
onClick: (G) => g(o.color)
|
|
71
|
+
}, [
|
|
72
|
+
e.activeColor === o.color && !t.value ? (s(), h(f(p), {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: "text-c-btn",
|
|
75
|
+
icon: "Checkmark",
|
|
76
|
+
size: "xs"
|
|
77
|
+
})) : x("", !0)
|
|
78
|
+
], 12, N)), 64)),
|
|
79
|
+
l[2] || (l[2] = r("hr", { class: "border-ghost h-5 w-0.5 border-l" }, null, -1)),
|
|
80
|
+
r("label", {
|
|
81
|
+
class: "z-10 flex h-5 w-5 cursor-pointer flex-row items-center justify-center gap-2 rounded-full",
|
|
82
|
+
style: C(k.value),
|
|
83
|
+
onClick: b
|
|
84
|
+
}, [
|
|
85
|
+
!n.value && (e.activeColor === t.value || e.activeColor && !i.some((o) => o.color === e.activeColor)) ? (s(), h(f(p), {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "text-c-btn",
|
|
88
|
+
icon: "Checkmark",
|
|
89
|
+
size: "xs"
|
|
90
|
+
})) : x("", !0)
|
|
91
|
+
], 4)
|
|
92
|
+
]));
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
O as default
|
|
97
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ModalState } from '@scalar/components';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
state: ModalState;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
submit: (environment: {
|
|
7
|
+
name: string;
|
|
8
|
+
color: string;
|
|
9
|
+
}) => any;
|
|
10
|
+
cancel: () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onSubmit?: ((environment: {
|
|
13
|
+
name: string;
|
|
14
|
+
color: string;
|
|
15
|
+
}) => any) | undefined;
|
|
16
|
+
onCancel?: (() => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=EnvironmentCreateModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentCreateModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentCreateModal.vue"],"names":[],"mappings":"AAAA,OA6EO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;CAClB,CAAC;;;cAQU,MAAM;eACL,MAAM;;;;;cADP,MAAM;eACL,MAAM;;;;AA4JnB,wBAOG"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as f, ref as i, createBlock as v, openBlock as F, unref as C, withCtx as a, createVNode as n, createElementVNode as b, createTextVNode as _ } from "vue";
|
|
2
|
+
import { ScalarModal as x } from "@scalar/components";
|
|
3
|
+
import V from "../../../../components/CommandPalette/CommandActionForm.vue.js";
|
|
4
|
+
import S from "../../../../components/CommandPalette/CommandActionInput.vue.js";
|
|
5
|
+
import E from "./EnvironmentColors.vue.js";
|
|
6
|
+
const N = { class: "flex items-start gap-2" }, M = /* @__PURE__ */ f({
|
|
7
|
+
__name: "EnvironmentCreateModal",
|
|
8
|
+
props: {
|
|
9
|
+
state: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["cancel", "submit"],
|
|
12
|
+
setup(d, { emit: u }) {
|
|
13
|
+
const r = u, e = i(""), o = i("#FFFFFF"), s = () => {
|
|
14
|
+
e.value = "", o.value = "#FFFFFF";
|
|
15
|
+
}, m = () => {
|
|
16
|
+
r("cancel"), s();
|
|
17
|
+
}, c = () => {
|
|
18
|
+
e.value.trim() && (r("submit", {
|
|
19
|
+
name: e.value.trim(),
|
|
20
|
+
color: o.value
|
|
21
|
+
}), s(), d.state.hide());
|
|
22
|
+
};
|
|
23
|
+
return (p, t) => (F(), v(C(x), {
|
|
24
|
+
bodyClass: "border-t-0 rounded-t-lg",
|
|
25
|
+
size: "xs",
|
|
26
|
+
state: p.state,
|
|
27
|
+
onClose: m
|
|
28
|
+
}, {
|
|
29
|
+
default: a(() => [
|
|
30
|
+
n(V, {
|
|
31
|
+
disabled: !e.value.trim(),
|
|
32
|
+
onCancel: m,
|
|
33
|
+
onSubmit: c
|
|
34
|
+
}, {
|
|
35
|
+
submit: a(() => [...t[2] || (t[2] = [
|
|
36
|
+
_("Add Environment", -1)
|
|
37
|
+
])]),
|
|
38
|
+
default: a(() => [
|
|
39
|
+
b("div", N, [
|
|
40
|
+
n(E, {
|
|
41
|
+
activeColor: o.value,
|
|
42
|
+
class: "peer",
|
|
43
|
+
selector: "",
|
|
44
|
+
onSelect: t[0] || (t[0] = (l) => o.value = l)
|
|
45
|
+
}, null, 8, ["activeColor"]),
|
|
46
|
+
n(S, {
|
|
47
|
+
modelValue: e.value,
|
|
48
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => e.value = l),
|
|
49
|
+
class: "-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",
|
|
50
|
+
placeholder: "Environment name"
|
|
51
|
+
}, null, 8, ["modelValue"])
|
|
52
|
+
])
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["disabled"])
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["state"]));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
M as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ModalState } from '@scalar/components';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
state: ModalState;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
submit: () => any;
|
|
8
|
+
cancel: () => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onSubmit?: (() => any) | undefined;
|
|
11
|
+
onCancel?: (() => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=EnvironmentDeleteModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentDeleteModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentDeleteModal.vue"],"names":[],"mappings":"AAoDA,OAAO,EAA6B,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE/E,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;;;;;;;AAwHF,wBAOG"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as m, createBlock as u, openBlock as f, unref as n, withCtx as o, createElementVNode as a, createVNode as l, createTextVNode as i } from "vue";
|
|
2
|
+
import { ScalarModal as p, ScalarButton as r } from "@scalar/components";
|
|
3
|
+
const x = { class: "flex justify-between" }, y = /* @__PURE__ */ m({
|
|
4
|
+
__name: "EnvironmentDeleteModal",
|
|
5
|
+
props: {
|
|
6
|
+
state: {},
|
|
7
|
+
name: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["cancel", "submit"],
|
|
10
|
+
setup(b, { emit: d }) {
|
|
11
|
+
const s = d;
|
|
12
|
+
return (t, e) => (f(), u(n(p), {
|
|
13
|
+
bodyClass: "border-t-0 rounded-t-lg flex flex-col gap-4",
|
|
14
|
+
size: "xxs",
|
|
15
|
+
state: t.state,
|
|
16
|
+
title: `Delete ${t.name}`
|
|
17
|
+
}, {
|
|
18
|
+
default: o(() => [
|
|
19
|
+
e[4] || (e[4] = a("p", { class: "text-c-2 text-sm leading-normal text-pretty" }, " Are you sure you want to delete this environment? This action cannot be undone. ", -1)),
|
|
20
|
+
a("div", x, [
|
|
21
|
+
l(n(r), {
|
|
22
|
+
size: "sm",
|
|
23
|
+
variant: "outlined",
|
|
24
|
+
onClick: e[0] || (e[0] = () => {
|
|
25
|
+
s("cancel"), t.state.hide();
|
|
26
|
+
})
|
|
27
|
+
}, {
|
|
28
|
+
default: o(() => [...e[2] || (e[2] = [
|
|
29
|
+
i(" Cancel ", -1)
|
|
30
|
+
])]),
|
|
31
|
+
_: 1
|
|
32
|
+
}),
|
|
33
|
+
l(n(r), {
|
|
34
|
+
size: "sm",
|
|
35
|
+
variant: "danger",
|
|
36
|
+
onClick: e[1] || (e[1] = () => {
|
|
37
|
+
s("submit"), t.state.hide();
|
|
38
|
+
})
|
|
39
|
+
}, {
|
|
40
|
+
default: o(() => [...e[3] || (e[3] = [
|
|
41
|
+
i(" Delete Environment ", -1)
|
|
42
|
+
])]),
|
|
43
|
+
_: 1
|
|
44
|
+
})
|
|
45
|
+
])
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["state", "title"]));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
y as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ModalState } from '@scalar/components';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
state: ModalState;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
submit: (payload: {
|
|
8
|
+
name: string;
|
|
9
|
+
}) => any;
|
|
10
|
+
cancel: () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onSubmit?: ((payload: {
|
|
13
|
+
name: string;
|
|
14
|
+
}) => any) | undefined;
|
|
15
|
+
onCancel?: (() => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=EnvironmentNameUpdateModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentNameUpdateModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentNameUpdateModal.vue"],"names":[],"mappings":"AAuCA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;;cAKmC,MAAM;;;;;cAAN,MAAM;;;;AAiF3C,wBAOG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as o, createBlock as i, openBlock as s, unref as r, withCtx as l, createVNode as p } from "vue";
|
|
2
|
+
import { ScalarModal as d } from "@scalar/components";
|
|
3
|
+
import f from "../../../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
4
|
+
const b = /* @__PURE__ */ o({
|
|
5
|
+
__name: "EnvironmentNameUpdateModal",
|
|
6
|
+
props: {
|
|
7
|
+
state: {},
|
|
8
|
+
name: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["cancel", "submit"],
|
|
11
|
+
setup(u, { emit: a }) {
|
|
12
|
+
const n = a;
|
|
13
|
+
return (e, t) => (s(), i(r(d), {
|
|
14
|
+
size: "xxs",
|
|
15
|
+
state: e.state,
|
|
16
|
+
title: `Edit ${e.name}`
|
|
17
|
+
}, {
|
|
18
|
+
default: l(() => [
|
|
19
|
+
p(f, {
|
|
20
|
+
name: e.name,
|
|
21
|
+
onClose: t[0] || (t[0] = () => {
|
|
22
|
+
n("cancel"), e.state.hide();
|
|
23
|
+
}),
|
|
24
|
+
onEdit: t[1] || (t[1] = (m) => {
|
|
25
|
+
n("submit", { name: m }), e.state.hide();
|
|
26
|
+
})
|
|
27
|
+
}, null, 8, ["name"])
|
|
28
|
+
]),
|
|
29
|
+
_: 1
|
|
30
|
+
}, 8, ["state", "title"]));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
b as default
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentVariablesTable.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesTable.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
2
|
+
import type { EnvVariable } from '../../../../store/index.js';
|
|
3
|
+
type TableRow = {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
data: TableRow[];
|
|
9
|
+
/** TODO: remove once we migrate */
|
|
10
|
+
environment: Environment;
|
|
11
|
+
envVariables: EnvVariable[];
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
|
+
updateRow: (index: number, payload: Partial<TableRow>) => any;
|
|
15
|
+
addRow: (payload: Partial<TableRow>) => any;
|
|
16
|
+
deleteRow: (index: number) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onUpdateRow?: ((index: number, payload: Partial<TableRow>) => any) | undefined;
|
|
19
|
+
onAddRow?: ((payload: Partial<TableRow>) => any) | undefined;
|
|
20
|
+
onDeleteRow?: ((index: number) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
export default _default;
|
|
23
|
+
//# sourceMappingURL=EnvironmentVariablesTable.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentVariablesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesTable.vue"],"names":[],"mappings":"AAyJA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAUzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAEhB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;;;AAqTF,wBAOG"}
|