@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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, ref as m, computed as _, watch as h, createBlock as u, openBlock as v, unref as i, withCtx as o, createVNode as s, createElementVNode as p, createTextVNode as w, normalizeClass as I, toDisplayString as E } from "vue";
|
|
2
2
|
import { ScalarModal as N, ScalarListbox as T, ScalarButton as C, ScalarIcon as $ } from "@scalar/components";
|
|
3
3
|
import { useToasts as z } from "@scalar/use-toasts";
|
|
4
4
|
import B from "../../components/CommandPalette/CommandActionForm.vue.js";
|
|
5
5
|
import D from "../../components/CommandPalette/CommandActionInput.vue.js";
|
|
6
6
|
import P from "./EnvironmentColors.vue.js";
|
|
7
7
|
import { useWorkspace as U } from "../../store/store.js";
|
|
8
|
-
const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */
|
|
8
|
+
const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
|
|
9
9
|
__name: "EnvironmentModal",
|
|
10
10
|
props: {
|
|
11
11
|
state: {},
|
|
@@ -14,7 +14,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["cancel", "submit"],
|
|
16
16
|
setup(x, { emit: g }) {
|
|
17
|
-
const a = x, f = g, { events: F } = U(), n = m(""), r = m("#FFFFFF"), c =
|
|
17
|
+
const a = x, f = g, { events: F } = U(), n = m(""), r = m("#FFFFFF"), c = _(() => [
|
|
18
18
|
...a.activeWorkspaceCollections.filter((t) => t.info?.title !== "Drafts").map((t) => ({
|
|
19
19
|
id: t.uid,
|
|
20
20
|
label: t.info?.title ?? "Untitled Collection"
|
|
@@ -32,7 +32,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
|
|
|
32
32
|
) : e.value = void 0);
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
|
-
const
|
|
35
|
+
const V = () => {
|
|
36
36
|
if (!n.value.trim()) {
|
|
37
37
|
b("Please enter a name before adding an environment.", "error");
|
|
38
38
|
return;
|
|
@@ -47,7 +47,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
|
|
|
47
47
|
type: e.value?.id === "global" ? "global" : "collection",
|
|
48
48
|
collectionId: e.value?.id !== "global" ? e.value?.id : void 0
|
|
49
49
|
});
|
|
50
|
-
},
|
|
50
|
+
}, k = () => {
|
|
51
51
|
a.state.hide(), F.commandPalette.emit({ commandName: "Create Collection" });
|
|
52
52
|
};
|
|
53
53
|
return (t, l) => (v(), u(i(N), {
|
|
@@ -59,7 +59,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
|
|
|
59
59
|
s(B, {
|
|
60
60
|
disabled: !e.value || !n.value.trim(),
|
|
61
61
|
onCancel: l[2] || (l[2] = (d) => f("cancel")),
|
|
62
|
-
onSubmit:
|
|
62
|
+
onSubmit: V
|
|
63
63
|
}, {
|
|
64
64
|
options: o(() => [
|
|
65
65
|
s(i(T), {
|
|
@@ -89,21 +89,20 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
|
|
|
89
89
|
key: 1,
|
|
90
90
|
class: "hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",
|
|
91
91
|
variant: "outlined",
|
|
92
|
-
onClick:
|
|
92
|
+
onClick: k
|
|
93
93
|
}, {
|
|
94
|
-
default: o(() => l[3] || (l[3] = [
|
|
94
|
+
default: o(() => [...l[3] || (l[3] = [
|
|
95
95
|
p("span", { class: "text-c-1" }, "Create Collection", -1)
|
|
96
|
-
])),
|
|
97
|
-
_: 1
|
|
98
|
-
__: [3]
|
|
96
|
+
])]),
|
|
97
|
+
_: 1
|
|
99
98
|
}))
|
|
100
99
|
]),
|
|
101
100
|
_: 1
|
|
102
101
|
}, 8, ["modelValue", "options"])
|
|
103
102
|
]),
|
|
104
|
-
submit: o(() => l[4] || (l[4] = [
|
|
105
|
-
w(" Add Environment ")
|
|
106
|
-
])),
|
|
103
|
+
submit: o(() => [...l[4] || (l[4] = [
|
|
104
|
+
w(" Add Environment ", -1)
|
|
105
|
+
])]),
|
|
107
106
|
default: o(() => [
|
|
108
107
|
p("div", W, [
|
|
109
108
|
s(P, {
|
|
@@ -5,9 +5,9 @@ import { onClickOutside as L } from "@vueuse/core";
|
|
|
5
5
|
import M from "fuse.js";
|
|
6
6
|
import { useRouter as Q } from "vue-router";
|
|
7
7
|
import { getEnvColor as W } from "../../libs/env-helpers.js";
|
|
8
|
-
import { PathId as
|
|
8
|
+
import { PathId as C } from "../../routes.js";
|
|
9
9
|
import { useActiveEntities as $ } from "../../store/active-entities.js";
|
|
10
|
-
import { parseEnvVariables as
|
|
10
|
+
import { parseEnvVariables as _ } from "../../libs/environment-parser.js";
|
|
11
11
|
const H = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "gap-1/2 flex flex-col"
|
|
@@ -28,20 +28,20 @@ const H = {
|
|
|
28
28
|
!m.value || m.value.info?.title === "Drafts" ? o({
|
|
29
29
|
name: "environment.default",
|
|
30
30
|
params: {
|
|
31
|
-
[
|
|
31
|
+
[C.Workspace]: e
|
|
32
32
|
}
|
|
33
33
|
}) : o({
|
|
34
34
|
name: "collection.environment",
|
|
35
35
|
params: {
|
|
36
|
-
[
|
|
36
|
+
[C.Collection]: m.value.uid
|
|
37
37
|
}
|
|
38
38
|
}), d.value = !1;
|
|
39
|
-
}, P = new M(
|
|
39
|
+
}, P = new M(_(s.envVariables), {
|
|
40
40
|
keys: ["key", "value"]
|
|
41
41
|
}), i = w(() => {
|
|
42
42
|
const t = s.query;
|
|
43
43
|
if (!t)
|
|
44
|
-
return
|
|
44
|
+
return _(s.envVariables).slice(-4).filter(({ key: e, value: a }) => e !== "" || a !== "");
|
|
45
45
|
const o = P.search(t, { limit: 10 });
|
|
46
46
|
return o.length > 0 ? o.map((e) => e.item).filter(({ key: e, value: a }) => e !== "" || a !== "") : [];
|
|
47
47
|
}), b = (t) => {
|
|
@@ -113,10 +113,9 @@ const H = {
|
|
|
113
113
|
}, {
|
|
114
114
|
default: k(() => [
|
|
115
115
|
q(l(O), { class: "size-3" }),
|
|
116
|
-
o[0] || (o[0] = g(" Add Variable "))
|
|
116
|
+
o[0] || (o[0] = g(" Add Variable ", -1))
|
|
117
117
|
]),
|
|
118
|
-
_: 1
|
|
119
|
-
__: [0]
|
|
118
|
+
_: 1
|
|
120
119
|
})) : y("", !0),
|
|
121
120
|
o[1] || (o[1] = c("div", { class: "bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg" }, null, -1))
|
|
122
121
|
], 4)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cAsR8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAqTjE,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestRoot.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f141e3af"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,107 +1,106 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isDefined as
|
|
3
|
-
import { safeJSON as
|
|
4
|
-
import { useToasts as
|
|
5
|
-
import { RouterView as
|
|
6
|
-
import
|
|
7
|
-
import { useAnalytics as
|
|
8
|
-
import { useClientConfig as
|
|
9
|
-
import { useSidebar as
|
|
10
|
-
import { validateParameters as
|
|
11
|
-
import { useActiveEntities as
|
|
12
|
-
import { useOpenApiWatcher as
|
|
13
|
-
import
|
|
1
|
+
import { defineComponent as $, ref as c, computed as C, onMounted as H, onBeforeUnmount as Q, createElementBlock as F, openBlock as m, normalizeClass as N, unref as o, createBlock as U, createCommentVNode as _, createElementVNode as O, isRef as G, createVNode as K } from "vue";
|
|
2
|
+
import { isDefined as X } from "@scalar/oas-utils/helpers";
|
|
3
|
+
import { safeJSON as Y } from "@scalar/object-utils/parse";
|
|
4
|
+
import { useToasts as Z } from "@scalar/use-toasts";
|
|
5
|
+
import { RouterView as ee } from "vue-router";
|
|
6
|
+
import te from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
7
|
+
import { useAnalytics as oe } from "../../hooks/useAnalytics.js";
|
|
8
|
+
import { useClientConfig as re } from "../../hooks/useClientConfig.js";
|
|
9
|
+
import { useSidebar as se } from "../../hooks/useSidebar.js";
|
|
10
|
+
import { validateParameters as ae } from "../../libs/validate-parameters.js";
|
|
11
|
+
import { useActiveEntities as ne } from "../../store/active-entities.js";
|
|
12
|
+
import { useOpenApiWatcher as le } from "./hooks/useOpenApiWatcher.js";
|
|
13
|
+
import ue from "./RequestSidebar.vue.js";
|
|
14
14
|
import { usePluginManager as ie } from "../../plugins/hooks/usePluginManager.js";
|
|
15
|
-
import { createRequestOperation as
|
|
16
|
-
import { ERRORS as
|
|
17
|
-
import { useWorkspace as
|
|
18
|
-
import { useLayout as
|
|
19
|
-
const
|
|
15
|
+
import { createRequestOperation as ce } from "../../libs/send-request/create-request-operation.js";
|
|
16
|
+
import { ERRORS as me } from "../../libs/errors.js";
|
|
17
|
+
import { useWorkspace as fe } from "../../store/store.js";
|
|
18
|
+
import { useLayout as de } from "../../hooks/useLayout.js";
|
|
19
|
+
const pe = { class: "flex h-full" }, ve = { class: "flex h-full flex-1 flex-col" }, Te = /* @__PURE__ */ $({
|
|
20
20
|
__name: "RequestRoot",
|
|
21
21
|
emits: ["newTab"],
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
22
|
+
setup(Re) {
|
|
23
|
+
const V = fe(), { toast: u } = Z(), { layout: f } = de(), w = re(), { isSidebarOpen: s } = se(), B = oe(), {
|
|
24
24
|
activeCollection: n,
|
|
25
|
-
activeExample:
|
|
26
|
-
activeEnvironment:
|
|
27
|
-
activeRequest:
|
|
28
|
-
activeWorkspace:
|
|
25
|
+
activeExample: i,
|
|
26
|
+
activeEnvironment: d,
|
|
27
|
+
activeRequest: l,
|
|
28
|
+
activeWorkspace: p,
|
|
29
29
|
activeServer: A
|
|
30
|
-
} =
|
|
31
|
-
() => (
|
|
30
|
+
} = ne(), { cookies: T, requestHistory: P, showSidebar: v, securitySchemes: D, events: r } = V, M = ie(), z = c(), R = c(), S = C(
|
|
31
|
+
() => ae(i.value ?? null)
|
|
32
|
+
), q = c(null), y = C(
|
|
33
|
+
() => (n.value?.useCollectionSecurity ? n.value?.selectedSecuritySchemeUids : l.value?.selectedSecuritySchemeUids) ?? []
|
|
32
34
|
), x = async () => {
|
|
33
|
-
if (!
|
|
35
|
+
if (!l.value || !i.value || !n.value)
|
|
34
36
|
return;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if (S.value.hasBlockingErrors) {
|
|
38
|
+
u("Path parameters must have values.", "error"), r.requestStatus.emit("abort");
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const t = typeof d.value == "object" ? d.value.value : "{}", e = Y.parse(t);
|
|
42
|
+
e.error && console.error("INVALID ENVIRONMENT!");
|
|
43
|
+
const a = e.error || typeof e.data != "object" ? {} : e.data ?? {}, W = p.value?.cookies.map((L) => T[L]).filter(X) ?? [], j = n.value?.info?.title === "Drafts" ? void 0 : A.value, [h, g] = ce({
|
|
44
|
+
request: l.value,
|
|
45
|
+
example: i.value,
|
|
41
46
|
selectedSecuritySchemeUids: y.value,
|
|
42
|
-
proxyUrl:
|
|
43
|
-
environment:
|
|
44
|
-
globalCookies:
|
|
45
|
-
status:
|
|
46
|
-
securitySchemes:
|
|
47
|
-
server:
|
|
48
|
-
pluginManager:
|
|
47
|
+
proxyUrl: p.value?.proxyUrl ?? "",
|
|
48
|
+
environment: a,
|
|
49
|
+
globalCookies: W,
|
|
50
|
+
status: r.requestStatus,
|
|
51
|
+
securitySchemes: D,
|
|
52
|
+
server: j,
|
|
53
|
+
pluginManager: M
|
|
49
54
|
});
|
|
50
|
-
if (
|
|
51
|
-
|
|
55
|
+
if (w.value?.onRequestSent?.(l.value.path ?? ""), h) {
|
|
56
|
+
u(h.message, "error");
|
|
52
57
|
return;
|
|
53
58
|
}
|
|
54
|
-
|
|
59
|
+
R.value = g.controller;
|
|
55
60
|
const [k, E] = await g.sendRequest();
|
|
56
|
-
q.value = E, k ?
|
|
57
|
-
},
|
|
61
|
+
q.value = E, k ? u(k.message, "error") : P.push(J(E));
|
|
62
|
+
}, I = async () => R.value?.abort(me.REQUEST_ABORTED);
|
|
58
63
|
function b() {
|
|
59
|
-
|
|
64
|
+
B?.capture("client-send-request");
|
|
60
65
|
}
|
|
61
66
|
H(() => {
|
|
62
|
-
|
|
63
|
-
}),
|
|
64
|
-
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
() => {
|
|
68
|
-
i.value.clear();
|
|
69
|
-
},
|
|
70
|
-
{ deep: !0 }
|
|
71
|
-
);
|
|
72
|
-
const I = (e) => {
|
|
67
|
+
r.executeRequest.on(x), r.executeRequest.on(b), r.cancelRequest.on(I);
|
|
68
|
+
}), le(), Q(() => {
|
|
69
|
+
r.executeRequest.off(x), r.executeRequest.off(b);
|
|
70
|
+
});
|
|
71
|
+
const J = (t) => {
|
|
73
72
|
try {
|
|
74
|
-
return structuredClone(
|
|
73
|
+
return structuredClone(t);
|
|
75
74
|
} catch {
|
|
76
|
-
const
|
|
77
|
-
return
|
|
75
|
+
const e = { ...t };
|
|
76
|
+
return t.response?.data && (t.response.data instanceof Blob || t.response.data instanceof ArrayBuffer ? e.response.data = t.response.data : e.response.data = JSON.parse(JSON.stringify(t.response.data))), e;
|
|
78
77
|
}
|
|
79
78
|
};
|
|
80
|
-
return (
|
|
79
|
+
return (t, e) => (m(), F("div", {
|
|
81
80
|
ref_key: "element",
|
|
82
|
-
ref:
|
|
83
|
-
class:
|
|
84
|
-
"!mr-0 !mb-0 !border-0":
|
|
81
|
+
ref: z,
|
|
82
|
+
class: N(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
|
|
83
|
+
"!mr-0 !mb-0 !border-0": o(f) === "modal"
|
|
85
84
|
}])
|
|
86
85
|
}, [
|
|
87
|
-
|
|
86
|
+
o(v) ? (m(), U(te, {
|
|
88
87
|
key: 0,
|
|
89
|
-
modelValue:
|
|
90
|
-
"onUpdate:modelValue":
|
|
91
|
-
class:
|
|
92
|
-
{ hidden:
|
|
93
|
-
{ "xl:!flex": !
|
|
94
|
-
{ "!flex":
|
|
88
|
+
modelValue: o(s),
|
|
89
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => G(s) ? s.value = a : null),
|
|
90
|
+
class: N(["absolute top-2 left-3 z-50", [
|
|
91
|
+
{ hidden: o(s) },
|
|
92
|
+
{ "xl:!flex": !o(s) },
|
|
93
|
+
{ "!flex": o(f) === "modal" }
|
|
95
94
|
]])
|
|
96
|
-
}, null, 8, ["modelValue", "class"])) :
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
}, null, 8, ["modelValue", "class"])) : _("", !0),
|
|
96
|
+
O("div", pe, [
|
|
97
|
+
o(v) ? (m(), U(ue, {
|
|
99
98
|
key: 0,
|
|
100
|
-
onNewTab:
|
|
101
|
-
})) :
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
invalidParams:
|
|
99
|
+
onNewTab: e[1] || (e[1] = (a) => t.$emit("newTab", a))
|
|
100
|
+
})) : _("", !0),
|
|
101
|
+
O("div", ve, [
|
|
102
|
+
K(o(ee), {
|
|
103
|
+
invalidParams: S.value.invalidParams,
|
|
105
104
|
requestResult: q.value,
|
|
106
105
|
selectedSecuritySchemeUids: y.value
|
|
107
106
|
}, null, 8, ["invalidParams", "requestResult", "selectedSecuritySchemeUids"])
|
|
@@ -111,5 +110,5 @@ const ve = { class: "flex h-full" }, Re = { class: "flex h-full flex-1 flex-col"
|
|
|
111
110
|
}
|
|
112
111
|
});
|
|
113
112
|
export {
|
|
114
|
-
|
|
113
|
+
Te as default
|
|
115
114
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as h, createBlock as x, openBlock as b, unref as o, withCtx as s, createElementVNode as c, toDisplayString as a, createVNode as r, createTextVNode as i } from "vue";
|
|
2
|
-
import { ScalarModal as
|
|
3
|
-
import { useWorkspace as
|
|
4
|
-
const
|
|
2
|
+
import { ScalarModal as y, ScalarButton as m } from "@scalar/components";
|
|
3
|
+
import { useWorkspace as S } from "../../../../store/store.js";
|
|
4
|
+
const _ = { class: "text-c-2 mb-4 text-sm leading-normal" }, g = { class: "flex justify-between gap-2" }, v = /* @__PURE__ */ h({
|
|
5
5
|
__name: "DeleteRequestAuthModal",
|
|
6
6
|
props: {
|
|
7
7
|
state: {},
|
|
@@ -9,16 +9,16 @@ const S = { class: "text-c-2 mb-4 text-sm leading-normal" }, g = { class: "flex
|
|
|
9
9
|
},
|
|
10
10
|
emits: ["close", "delete"],
|
|
11
11
|
setup(u, { emit: d }) {
|
|
12
|
-
const n = u, l = d, { securitySchemeMutators: p } =
|
|
12
|
+
const n = u, l = d, { securitySchemeMutators: p } = S(), f = () => {
|
|
13
13
|
n.scheme?.id && p.delete(n.scheme.id), l("delete");
|
|
14
14
|
};
|
|
15
|
-
return (t, e) => (b(), x(o(
|
|
15
|
+
return (t, e) => (b(), x(o(y), {
|
|
16
16
|
size: "xxs",
|
|
17
17
|
state: t.state,
|
|
18
18
|
title: "Delete Security Scheme"
|
|
19
19
|
}, {
|
|
20
20
|
default: s(() => [
|
|
21
|
-
c("p",
|
|
21
|
+
c("p", _, " This cannot be undone. You're about to delete the " + a(t.scheme?.label) + " security scheme from the collection. ", 1),
|
|
22
22
|
c("div", g, [
|
|
23
23
|
r(o(m), {
|
|
24
24
|
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
@@ -26,11 +26,10 @@ const S = { class: "text-c-2 mb-4 text-sm leading-normal" }, g = { class: "flex
|
|
|
26
26
|
variant: "outlined",
|
|
27
27
|
onClick: e[0] || (e[0] = (k) => l("close"))
|
|
28
28
|
}, {
|
|
29
|
-
default: s(() => e[1] || (e[1] = [
|
|
30
|
-
i(" Cancel ")
|
|
31
|
-
])),
|
|
32
|
-
_: 1
|
|
33
|
-
__: [1]
|
|
29
|
+
default: s(() => [...e[1] || (e[1] = [
|
|
30
|
+
i(" Cancel ", -1)
|
|
31
|
+
])]),
|
|
32
|
+
_: 1
|
|
34
33
|
}),
|
|
35
34
|
r(o(m), {
|
|
36
35
|
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
@@ -52,11 +52,10 @@ const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class:
|
|
|
52
52
|
type: "password",
|
|
53
53
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => n(`flows.${l.flow.type}.token`, t))
|
|
54
54
|
}), {
|
|
55
|
-
default: o(() => e[10] || (e[10] = [
|
|
56
|
-
u(" Access Token ")
|
|
57
|
-
])),
|
|
58
|
-
_: 1
|
|
59
|
-
__: [10]
|
|
55
|
+
default: o(() => [...e[10] || (e[10] = [
|
|
56
|
+
u(" Access Token ", -1)
|
|
57
|
+
])]),
|
|
58
|
+
_: 1
|
|
60
59
|
}, 16, ["modelValue"])
|
|
61
60
|
]),
|
|
62
61
|
_: 1
|
|
@@ -71,11 +70,10 @@ const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class:
|
|
|
71
70
|
variant: "outlined",
|
|
72
71
|
onClick: e[1] || (e[1] = (t) => n(`flows.${l.flow.type}.token`, ""))
|
|
73
72
|
}, {
|
|
74
|
-
default: o(() => e[11] || (e[11] = [
|
|
75
|
-
u(" Clear ")
|
|
76
|
-
])),
|
|
77
|
-
_: 1
|
|
78
|
-
__: [11]
|
|
73
|
+
default: o(() => [...e[11] || (e[11] = [
|
|
74
|
+
u(" Clear ", -1)
|
|
75
|
+
])]),
|
|
76
|
+
_: 1
|
|
79
77
|
}, 8, ["loading"]),
|
|
80
78
|
P(l.$slots, "oauth-actions")
|
|
81
79
|
])
|
|
@@ -91,22 +89,20 @@ const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class:
|
|
|
91
89
|
placeholder: "https://galaxy.scalar.com/authorize",
|
|
92
90
|
"onUpdate:modelValue": e[2] || (e[2] = (t) => n(`flows.${l.flow.type}.authorizationUrl`, t))
|
|
93
91
|
}), {
|
|
94
|
-
default: o(() => e[12] || (e[12] = [
|
|
95
|
-
u(" Auth URL ")
|
|
96
|
-
])),
|
|
97
|
-
_: 1
|
|
98
|
-
__: [12]
|
|
92
|
+
default: o(() => [...e[12] || (e[12] = [
|
|
93
|
+
u(" Auth URL ", -1)
|
|
94
|
+
])]),
|
|
95
|
+
_: 1
|
|
99
96
|
}, 16, ["modelValue"])) : w("", !0),
|
|
100
97
|
"tokenUrl" in l.flow ? (d(), k(p, m({ key: 1 }, f, {
|
|
101
98
|
modelValue: l.flow.tokenUrl,
|
|
102
99
|
placeholder: "https://galaxy.scalar.com/token",
|
|
103
100
|
"onUpdate:modelValue": e[3] || (e[3] = (t) => n(`flows.${l.flow.type}.tokenUrl`, t))
|
|
104
101
|
}), {
|
|
105
|
-
default: o(() => e[13] || (e[13] = [
|
|
106
|
-
u(" Token URL ")
|
|
107
|
-
])),
|
|
108
|
-
_: 1
|
|
109
|
-
__: [13]
|
|
102
|
+
default: o(() => [...e[13] || (e[13] = [
|
|
103
|
+
u(" Token URL ", -1)
|
|
104
|
+
])]),
|
|
105
|
+
_: 1
|
|
110
106
|
}, 16, ["modelValue"])) : w("", !0)
|
|
111
107
|
]),
|
|
112
108
|
_: 1
|
|
@@ -118,11 +114,10 @@ const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class:
|
|
|
118
114
|
placeholder: "https://galaxy.scalar.com/callback",
|
|
119
115
|
"onUpdate:modelValue": e[4] || (e[4] = (t) => n(`flows.${l.flow.type}.x-scalar-redirect-uri`, t))
|
|
120
116
|
}), {
|
|
121
|
-
default: o(() => e[14] || (e[14] = [
|
|
122
|
-
u(" Redirect URL ")
|
|
123
|
-
])),
|
|
124
|
-
_: 1
|
|
125
|
-
__: [14]
|
|
117
|
+
default: o(() => [...e[14] || (e[14] = [
|
|
118
|
+
u(" Redirect URL ", -1)
|
|
119
|
+
])]),
|
|
120
|
+
_: 1
|
|
126
121
|
}, 16, ["modelValue"])
|
|
127
122
|
]),
|
|
128
123
|
_: 1
|
|
@@ -136,11 +131,10 @@ const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class:
|
|
|
136
131
|
placeholder: "janedoe",
|
|
137
132
|
"onUpdate:modelValue": e[5] || (e[5] = (t) => n(`flows.${l.flow.type}.username`, t))
|
|
138
133
|
}), {
|
|
139
|
-
default: o(() => e[15] || (e[15] = [
|
|
140
|
-
u(" Username ")
|
|
141
|
-
])),
|
|
142
|
-
_: 1
|
|
143
|
-
__: [15]
|
|
134
|
+
default: o(() => [...e[15] || (e[15] = [
|
|
135
|
+
u(" Username ", -1)
|
|
136
|
+
])]),
|
|
137
|
+
_: 1
|
|
144
138
|
}, 16, ["modelValue"])
|
|
145
139
|
]),
|
|
146
140
|
_: 1
|
|
@@ -153,11 +147,10 @@ const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class:
|
|
|
153
147
|
type: "password",
|
|
154
148
|
"onUpdate:modelValue": e[6] || (e[6] = (t) => n(`flows.${l.flow.type}.password`, t))
|
|
155
149
|
}), {
|
|
156
|
-
default: o(() => e[16] || (e[16] = [
|
|
157
|
-
u(" Password ")
|
|
158
|
-
])),
|
|
159
|
-
_: 1
|
|
160
|
-
__: [16]
|
|
150
|
+
default: o(() => [...e[16] || (e[16] = [
|
|
151
|
+
u(" Password ", -1)
|
|
152
|
+
])]),
|
|
153
|
+
_: 1
|
|
161
154
|
}, 16, ["modelValue"])
|
|
162
155
|
]),
|
|
163
156
|
_: 1
|
|
@@ -170,11 +163,10 @@ const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class:
|
|
|
170
163
|
placeholder: "12345",
|
|
171
164
|
"onUpdate:modelValue": e[7] || (e[7] = (t) => n(`flows.${l.flow.type}.x-scalar-client-id`, t))
|
|
172
165
|
}), {
|
|
173
|
-
default: o(() => e[17] || (e[17] = [
|
|
174
|
-
u(" Client ID ")
|
|
175
|
-
])),
|
|
176
|
-
_: 1
|
|
177
|
-
__: [17]
|
|
166
|
+
default: o(() => [...e[17] || (e[17] = [
|
|
167
|
+
u(" Client ID ", -1)
|
|
168
|
+
])]),
|
|
169
|
+
_: 1
|
|
178
170
|
}, 16, ["modelValue"])
|
|
179
171
|
]),
|
|
180
172
|
_: 1
|
|
@@ -187,11 +179,10 @@ const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class:
|
|
|
187
179
|
type: "password",
|
|
188
180
|
"onUpdate:modelValue": e[8] || (e[8] = (t) => n(`flows.${l.flow.type}.clientSecret`, t))
|
|
189
181
|
}), {
|
|
190
|
-
default: o(() => e[18] || (e[18] = [
|
|
191
|
-
u(" Client Secret ")
|
|
192
|
-
])),
|
|
193
|
-
_: 1
|
|
194
|
-
__: [18]
|
|
182
|
+
default: o(() => [...e[18] || (e[18] = [
|
|
183
|
+
u(" Client Secret ", -1)
|
|
184
|
+
])]),
|
|
185
|
+
_: 1
|
|
195
186
|
}, 16, ["modelValue"])
|
|
196
187
|
]),
|
|
197
188
|
_: 1
|
|
@@ -207,11 +198,10 @@ const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class:
|
|
|
207
198
|
t
|
|
208
199
|
))
|
|
209
200
|
}), {
|
|
210
|
-
default: o(() => e[19] || (e[19] = [
|
|
211
|
-
u(" Use PKCE ")
|
|
212
|
-
])),
|
|
213
|
-
_: 1
|
|
214
|
-
__: [19]
|
|
201
|
+
default: o(() => [...e[19] || (e[19] = [
|
|
202
|
+
u(" Use PKCE ", -1)
|
|
203
|
+
])]),
|
|
204
|
+
_: 1
|
|
215
205
|
}, 16, ["enum", "modelValue"])
|
|
216
206
|
]),
|
|
217
207
|
_: 1
|
|
@@ -239,11 +229,10 @@ const O = { class: "flex h-8 items-center justify-end border-t" }, j = { class:
|
|
|
239
229
|
variant: "outlined",
|
|
240
230
|
onClick: C
|
|
241
231
|
}, {
|
|
242
|
-
default: o(() => e[20] || (e[20] = [
|
|
243
|
-
u(" Authorize ")
|
|
244
|
-
])),
|
|
245
|
-
_: 1
|
|
246
|
-
__: [20]
|
|
232
|
+
default: o(() => [...e[20] || (e[20] = [
|
|
233
|
+
u(" Authorize ", -1)
|
|
234
|
+
])]),
|
|
235
|
+
_: 1
|
|
247
236
|
}, 8, ["loading"])
|
|
248
237
|
])
|
|
249
238
|
]),
|
|
@@ -7,7 +7,7 @@ import E from "../../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
|
7
7
|
const F = { class: "flex h-fit w-full" }, I = { class: "flex-1" }, R = { class: "flex items-center gap-1.75" }, L = {
|
|
8
8
|
class: "grid auto-rows-auto",
|
|
9
9
|
style: { gridTemplateColumns: "1fr auto" }
|
|
10
|
-
}, M = { key: 0 }, P = { class: "font-code text-xs" },
|
|
10
|
+
}, M = { key: 0 }, P = { class: "font-code text-xs" }, W = /* @__PURE__ */ V({
|
|
11
11
|
__name: "OAuthScopesInput",
|
|
12
12
|
props: {
|
|
13
13
|
flow: {},
|
|
@@ -65,11 +65,10 @@ const F = { class: "flex h-fit w-full" }, I = { class: "flex-1" }, R = { class:
|
|
|
65
65
|
variant: "ghost",
|
|
66
66
|
onClick: w(b, ["stop"])
|
|
67
67
|
}, {
|
|
68
|
-
default: c(() => t[0] || (t[0] = [
|
|
69
|
-
p(" Deselect All ")
|
|
70
|
-
])),
|
|
71
|
-
_: 1
|
|
72
|
-
__: [0]
|
|
68
|
+
default: c(() => [...t[0] || (t[0] = [
|
|
69
|
+
p(" Deselect All ", -1)
|
|
70
|
+
])]),
|
|
71
|
+
_: 1
|
|
73
72
|
})) : m("", !0),
|
|
74
73
|
h.value ? m("", !0) : (n(), u(l(v), {
|
|
75
74
|
key: 1,
|
|
@@ -78,11 +77,10 @@ const F = { class: "flex h-fit w-full" }, I = { class: "flex-1" }, R = { class:
|
|
|
78
77
|
variant: "ghost",
|
|
79
78
|
onClick: w(C, ["stop"])
|
|
80
79
|
}, {
|
|
81
|
-
default: c(() => t[1] || (t[1] = [
|
|
82
|
-
p(" Select All ")
|
|
83
|
-
])),
|
|
84
|
-
_: 1
|
|
85
|
-
__: [1]
|
|
80
|
+
default: c(() => [...t[1] || (t[1] = [
|
|
81
|
+
p(" Select All ", -1)
|
|
82
|
+
])]),
|
|
83
|
+
_: 1
|
|
86
84
|
})),
|
|
87
85
|
i(l(N), {
|
|
88
86
|
class: "text-c-3 group-hover/scopes-accordion:text-c-2",
|
|
@@ -133,5 +131,5 @@ const F = { class: "flex h-fit w-full" }, I = { class: "flex-1" }, R = { class:
|
|
|
133
131
|
}
|
|
134
132
|
});
|
|
135
133
|
export {
|
|
136
|
-
|
|
134
|
+
W as default
|
|
137
135
|
};
|
|
@@ -157,11 +157,11 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
157
157
|
e[5] || (e[5] = i("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
158
158
|
k(" " + y(a.value[0]?.label), 1)
|
|
159
159
|
], 64)) : a.value.length > 1 ? (u(), h(x, { key: 1 }, [
|
|
160
|
-
e[6] || (e[6] = k(" Multiple ")),
|
|
160
|
+
e[6] || (e[6] = k(" Multiple ", -1)),
|
|
161
161
|
e[7] || (e[7] = i("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
162
162
|
], 64)) : (u(), h(x, { key: 2 }, [
|
|
163
163
|
e[8] || (e[8] = i("span", { class: "sr-only" }, "Select", -1)),
|
|
164
|
-
e[9] || (e[9] = k(" Auth Type "))
|
|
164
|
+
e[9] || (e[9] = k(" Auth Type ", -1))
|
|
165
165
|
], 64)),
|
|
166
166
|
m(s(Z), {
|
|
167
167
|
class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
|