@scalar/api-client 2.8.0 → 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 +90 -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.vue.d.ts +4 -4
- 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/HttpMethod/HttpMethod.vue.d.ts +2 -2
- 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 +9 -6
- 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 +3644 -3643
- 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 +20 -20
- 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 +25 -25
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +23 -23
- package/dist/libs/find-request.d.ts +2 -2
- 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/send-request/create-request-operation.js +8 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
- 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/plugins/plugin-manager.d.ts +1 -1
- 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 +3 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +2 -2
- package/dist/store/requests.d.ts +22 -22
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/store.d.ts +20 -20
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +8 -6
- 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 +52 -27
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"use-document-watcher.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-document-watcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,gBAAgB,EAA4B,MAAM,KAAK,CAAA;AAErE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,kBAAkB,GAAI,0CAIhC;IACD,YAAY,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACtC,KAAK,EAAE,cAAc,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,SA4DA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-document-watcher.test.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-document-watcher.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
+
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
|
|
3
|
+
import type { ComputedRef } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* Top level state mutation handling for the workspace store in the client
|
|
6
|
+
*/
|
|
7
|
+
export declare const useWorkspaceClientEvents: (eventBus: WorkspaceEventBus, document: ComputedRef<WorkspaceDocument | null>) => void;
|
|
8
|
+
//# sourceMappingURL=use-workspace-client-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-workspace-client-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-workspace-client-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAElF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEtC;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,iBAAiB,EAC3B,UAAU,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,SAehD,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { mergeObjects as i } from "@scalar/workspace-store/helpers/merge-object";
|
|
2
|
+
const l = (a, e) => {
|
|
3
|
+
a.on(
|
|
4
|
+
"update:document-icon",
|
|
5
|
+
(o) => e.value && (e.value["x-scalar-client-config-icon"] = o)
|
|
6
|
+
), a.on(
|
|
7
|
+
"update:document-info",
|
|
8
|
+
(o) => e.value && (e.value.info = i(e.value.info, o))
|
|
9
|
+
);
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
l as useWorkspaceClientEvents
|
|
13
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ResponseInstance } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation';
|
|
3
|
+
import type { Component } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* ClientPlugin is used to extend the API Client with custom hooks and UI components.
|
|
6
|
+
*
|
|
7
|
+
* Example usage:
|
|
8
|
+
*
|
|
9
|
+
* const myPlugin: ClientPlugin = {
|
|
10
|
+
* hooks: {
|
|
11
|
+
* beforeRequest: (request) => {
|
|
12
|
+
* // Modify the request before it is sent
|
|
13
|
+
* request.headers.set('X-Custom-Header', 'foo');
|
|
14
|
+
* return request;
|
|
15
|
+
* },
|
|
16
|
+
* responseReceived: async (response, operation) => {
|
|
17
|
+
* // Handle post-response logic
|
|
18
|
+
* const data = await response.json();
|
|
19
|
+
* console.log('Received:', data, 'for operation:', operation.operationId);
|
|
20
|
+
* }
|
|
21
|
+
* },
|
|
22
|
+
* components: {
|
|
23
|
+
* request: MyRequestComponent, // Custom Vue component for rendering the request section
|
|
24
|
+
* response: MyResponseComponent // Custom Vue component for rendering the response section
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
export type ClientPlugin = {
|
|
29
|
+
hooks?: Partial<{
|
|
30
|
+
beforeRequest: (request: Request) => Request | Promise<Request>;
|
|
31
|
+
responseReceived: (response: Response, operation: Record<string, any>) => void | Promise<void>;
|
|
32
|
+
}>;
|
|
33
|
+
components?: Partial<{
|
|
34
|
+
request: Component<{
|
|
35
|
+
operation: OperationObject;
|
|
36
|
+
selectedExample?: string;
|
|
37
|
+
}>;
|
|
38
|
+
response: Component<{
|
|
39
|
+
request?: Request;
|
|
40
|
+
response?: ResponseInstance;
|
|
41
|
+
}>;
|
|
42
|
+
}>;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/v2/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;QACd,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;QAC/D,gBAAgB,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;KAC/F,CAAC,CAAA;IACF,UAAU,CAAC,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,SAAS,CAAC;YAAE,SAAS,EAAE,eAAe,CAAC;YAAC,eAAe,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;QAC5E,QAAQ,EAAE,SAAS,CAAC;YAAE,OAAO,CAAC,EAAE,OAAO,CAAC;YAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;SAAE,CAAC,CAAA;KACxE,CAAC,CAAA;CACH,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The layout of the client
|
|
3
|
+
* - modal: has no router, just sets active entities directly
|
|
4
|
+
* - web: uses the standard HTML5 history API
|
|
5
|
+
* - desktop: the electron app, uses the file routing API
|
|
6
|
+
*
|
|
7
|
+
* @default 'desktop'
|
|
8
|
+
*/
|
|
9
|
+
export type ClientLayout = 'modal' | 'web' | 'desktop';
|
|
10
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/v2/types/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA"}
|
|
@@ -3,13 +3,13 @@ import { useScroll as x } from "@vueuse/core";
|
|
|
3
3
|
import { useRouter as v, RouterView as w } from "vue-router";
|
|
4
4
|
import k from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
5
5
|
import y from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
6
|
-
import q from "
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
6
|
+
import { PathId as q } from "../../routes.js";
|
|
7
|
+
import C from "./CollectionNavigation.vue.js";
|
|
8
|
+
import { useActiveEntities as R } from "../../store/active-entities.js";
|
|
9
9
|
const S = { class: "w-full md:mx-auto md:max-w-[720px]" }, P = /* @__PURE__ */ f({
|
|
10
10
|
__name: "Collection",
|
|
11
11
|
setup(V) {
|
|
12
|
-
const { activeCollection: i } =
|
|
12
|
+
const { activeCollection: i } = R(), m = v(), o = l(null), { y: c } = x(o), a = u(() => c.value > 104);
|
|
13
13
|
return n(
|
|
14
14
|
i,
|
|
15
15
|
(t) => {
|
|
@@ -17,7 +17,7 @@ const S = { class: "w-full md:mx-auto md:max-w-[720px]" }, P = /* @__PURE__ */ f
|
|
|
17
17
|
const r = t.requests[0];
|
|
18
18
|
m.push({
|
|
19
19
|
name: "request",
|
|
20
|
-
params: { [
|
|
20
|
+
params: { [q.Request]: r }
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
},
|
|
@@ -32,7 +32,7 @@ const S = { class: "w-full md:mx-auto md:max-w-[720px]" }, P = /* @__PURE__ */ f
|
|
|
32
32
|
default: s(() => [
|
|
33
33
|
e(y, { class: "xl:h-fit" }, {
|
|
34
34
|
default: s(() => [
|
|
35
|
-
e(
|
|
35
|
+
e(C, { isSticky: a.value }, null, 8, ["isSticky"]),
|
|
36
36
|
d("div", S, [
|
|
37
37
|
e(h(w))
|
|
38
38
|
])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, ref as k, computed as J, createBlock as F, openBlock as
|
|
1
|
+
import { defineComponent as q, ref as k, computed as J, createBlock as F, openBlock as _, withCtx as u, createElementVNode as a, createVNode as r, createElementBlock as L, createTextVNode as M, Fragment as U, renderList as G, unref as e, createCommentVNode as H, normalizeStyle as K, toDisplayString as P } from "vue";
|
|
2
2
|
import { useModal as C, ScalarButton as y, ScalarIcon as Q, ScalarModal as I } from "@scalar/components";
|
|
3
3
|
import { Draggable as X } from "@scalar/draggable";
|
|
4
4
|
import { ScalarIconTrash as Y } from "@scalar/icons";
|
|
@@ -13,7 +13,7 @@ import { useWorkspace as ae } from "../../store/store.js";
|
|
|
13
13
|
const re = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, ie = { class: "flex flex-col gap-4" }, ce = { class: "rounded-lg border" }, de = { class: "bg-b-2 flex cursor-grab items-center justify-between rounded-t-lg px-1 py-1 text-sm" }, ue = { class: "flex items-center" }, ve = ["onClick"], me = { class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4" }, $e = /* @__PURE__ */ q({
|
|
14
14
|
__name: "CollectionEnvironment",
|
|
15
15
|
setup(fe) {
|
|
16
|
-
const { activeCollection: n, activeWorkspace: w, activeEnvVariables: S } = se(), { collectionMutators: m } = ae(), x = C(), b = C(), h = C(), g = C(), $ = k(""), l = k(null),
|
|
16
|
+
const { activeCollection: n, activeWorkspace: w, activeEnvVariables: S } = se(), { collectionMutators: m } = ae(), x = C(), b = C(), h = C(), g = C(), $ = k(""), l = k(null), E = k(void 0), D = J(() => n.value?.["x-scalar-environments"] ? Object.entries(n.value["x-scalar-environments"]).map(
|
|
17
17
|
([o, t]) => ({
|
|
18
18
|
uid: o,
|
|
19
19
|
name: o,
|
|
@@ -54,9 +54,9 @@ const re = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, ie = { c
|
|
|
54
54
|
t
|
|
55
55
|
), x.hide();
|
|
56
56
|
}, A = (o) => {
|
|
57
|
-
l.value = o,
|
|
57
|
+
l.value = o, E.value = o, g.show();
|
|
58
58
|
}, B = () => {
|
|
59
|
-
l.value = null,
|
|
59
|
+
l.value = null, E.value = void 0, g.hide();
|
|
60
60
|
}, W = (o) => {
|
|
61
61
|
if (!n.value?.uid || !l.value)
|
|
62
62
|
return;
|
|
@@ -72,7 +72,7 @@ const re = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, ie = { c
|
|
|
72
72
|
n.value.uid,
|
|
73
73
|
"x-scalar-environments",
|
|
74
74
|
i
|
|
75
|
-
), l.value = null,
|
|
75
|
+
), l.value = null, E.value = void 0, g.hide();
|
|
76
76
|
}, R = (o, t) => {
|
|
77
77
|
if (!n.value?.uid)
|
|
78
78
|
return;
|
|
@@ -88,7 +88,7 @@ const re = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, ie = { c
|
|
|
88
88
|
i
|
|
89
89
|
));
|
|
90
90
|
};
|
|
91
|
-
return (o, t) => (
|
|
91
|
+
return (o, t) => (_(), F(te, null, {
|
|
92
92
|
default: u(() => [
|
|
93
93
|
a("div", re, [
|
|
94
94
|
a("div", ie, [
|
|
@@ -104,7 +104,7 @@ const re = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, ie = { c
|
|
|
104
104
|
])
|
|
105
105
|
])
|
|
106
106
|
], -1)),
|
|
107
|
-
(
|
|
107
|
+
(_(!0), L(U, null, G(D.value, (s) => (_(), F(e(X), {
|
|
108
108
|
key: s.name,
|
|
109
109
|
id: s.name,
|
|
110
110
|
isDraggable: !0,
|
|
@@ -142,10 +142,10 @@ const re = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, ie = { c
|
|
|
142
142
|
default: u(() => [
|
|
143
143
|
r(e(Y), { class: "size-3.5" })
|
|
144
144
|
]),
|
|
145
|
-
_:
|
|
146
|
-
},
|
|
145
|
+
_: 1
|
|
146
|
+
}, 8, ["onClick"])
|
|
147
147
|
]),
|
|
148
|
-
e(n) && e(w) ? (
|
|
148
|
+
e(n) && e(w) ? (_(), F(le, {
|
|
149
149
|
key: 0,
|
|
150
150
|
collection: e(n),
|
|
151
151
|
environment: s,
|
|
@@ -172,8 +172,7 @@ const re = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, ie = { c
|
|
|
172
172
|
}),
|
|
173
173
|
t[4] || (t[4] = a("span", null, "Add Environment", -1))
|
|
174
174
|
]),
|
|
175
|
-
_: 1
|
|
176
|
-
__: [4]
|
|
175
|
+
_: 1
|
|
177
176
|
})
|
|
178
177
|
])
|
|
179
178
|
]),
|
|
@@ -212,7 +211,7 @@ const re = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, ie = { c
|
|
|
212
211
|
}, {
|
|
213
212
|
default: u(() => [
|
|
214
213
|
r(ee, {
|
|
215
|
-
name:
|
|
214
|
+
name: E.value ?? "",
|
|
216
215
|
onClose: B,
|
|
217
216
|
onEdit: W
|
|
218
217
|
}, null, 8, ["name"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionServerForm.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionServerForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CollectionServerForm.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionServerForm.vue"],"names":[],"mappings":"AAqKA,KAAK,WAAW,GAAG;IACf,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAC7B,CAAC;;kBAFc,MAAM,GAAG,MAAM,EAAE;eACpB,MAAM,GAAG,MAAM,EAAE;;AA6MhC,wBAOG"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { REGEX as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const $ = /* @__PURE__ */ h({
|
|
1
|
+
import { defineComponent as _, computed as c, watch as h, createElementBlock as u, openBlock as o, normalizeClass as k, createCommentVNode as n, Fragment as x, createVNode as y, createBlock as U } from "vue";
|
|
2
|
+
import { REGEX as C } from "@scalar/oas-utils/helpers";
|
|
3
|
+
import E from "../../components/Form/Form.vue.js";
|
|
4
|
+
import g from "../../components/Server/ServerVariablesForm.vue.js";
|
|
5
|
+
import { useActiveEntities as S } from "../../store/active-entities.js";
|
|
6
|
+
import { useWorkspace as B } from "../../store/store.js";
|
|
7
|
+
const W = /* @__PURE__ */ _({
|
|
9
8
|
__name: "CollectionServerForm",
|
|
10
9
|
props: {
|
|
11
10
|
collectionId: { default: "" },
|
|
12
11
|
serverUid: { default: "" }
|
|
13
12
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const l =
|
|
13
|
+
setup(v) {
|
|
14
|
+
const l = v, { activeWorkspaceCollections: s } = S(), { servers: d, serverMutators: i } = B(), p = [
|
|
16
15
|
{
|
|
17
16
|
label: "URL",
|
|
18
17
|
key: "url",
|
|
@@ -25,71 +24,52 @@ const $ = /* @__PURE__ */ h({
|
|
|
25
24
|
placeholder: "Production",
|
|
26
25
|
type: "text"
|
|
27
26
|
}
|
|
28
|
-
],
|
|
29
|
-
const
|
|
30
|
-
(
|
|
27
|
+
], e = c(() => {
|
|
28
|
+
const r = s.value.find(
|
|
29
|
+
(a) => a.uid === l.collectionId
|
|
31
30
|
);
|
|
32
|
-
return
|
|
33
|
-
}),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
(
|
|
37
|
-
if (!
|
|
31
|
+
return d[r && typeof l.serverUid == "string" && l.serverUid === "default" ? r.servers[0] ?? "" : r?.servers.find((a) => a === l.serverUid) ?? ""];
|
|
32
|
+
}), f = c(() => e.value?.url ? e.value.url.match(C.PATH)?.map((r) => r.slice(1, -1)) ?? [] : []);
|
|
33
|
+
h(
|
|
34
|
+
f,
|
|
35
|
+
(r) => {
|
|
36
|
+
if (!e.value)
|
|
38
37
|
return;
|
|
39
|
-
const
|
|
40
|
-
Object.keys(
|
|
41
|
-
|
|
42
|
-
}),
|
|
43
|
-
t
|
|
44
|
-
}),
|
|
45
|
-
key: "variables",
|
|
46
|
-
value: t,
|
|
47
|
-
options: {
|
|
48
|
-
disableOldStoreUpdate: !0
|
|
49
|
-
}
|
|
50
|
-
});
|
|
38
|
+
const a = e.value.variables ? { ...e.value.variables } : {};
|
|
39
|
+
Object.keys(a).forEach((t) => {
|
|
40
|
+
r.includes(t) || delete a[t];
|
|
41
|
+
}), r.forEach((t) => {
|
|
42
|
+
a[t] || (a[t] = { default: "" });
|
|
43
|
+
}), i.edit(e.value.uid, "variables", a);
|
|
51
44
|
},
|
|
52
45
|
{ immediate: !0 }
|
|
53
46
|
);
|
|
54
|
-
const
|
|
55
|
-
!
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
options: {
|
|
59
|
-
disableOldStoreUpdate: !0
|
|
60
|
-
}
|
|
61
|
-
}));
|
|
62
|
-
}, _ = (e, t) => {
|
|
63
|
-
if (!r.value)
|
|
47
|
+
const m = (r, a) => {
|
|
48
|
+
!s.value || !e.value || i.edit(e.value.uid, r, a);
|
|
49
|
+
}, b = (r, a) => {
|
|
50
|
+
if (!e.value)
|
|
64
51
|
return;
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
disableOldStoreUpdate: !0
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}, i = x("wrapper-ref");
|
|
74
|
-
return (e, t) => (s(), v("div", {
|
|
75
|
-
ref: "wrapper-ref",
|
|
76
|
-
class: C(["divide-0.5 flex w-full flex-col divide-y rounded-b-lg text-sm", r.value?.variables && "bg-b-1"])
|
|
52
|
+
const t = e.value.variables || {};
|
|
53
|
+
t[r] = { ...t[r], default: a }, i.edit(e.value.uid, "variables", t);
|
|
54
|
+
};
|
|
55
|
+
return (r, a) => (o(), u("div", {
|
|
56
|
+
class: k(["divide-0.5 flex w-full flex-col divide-y rounded-b-lg text-sm", e.value?.variables && "bg-b-1"])
|
|
77
57
|
}, [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
data:
|
|
81
|
-
onUpdate:
|
|
82
|
-
options:
|
|
58
|
+
e.value ? (o(), u(x, { key: 0 }, [
|
|
59
|
+
y(E, {
|
|
60
|
+
data: e.value,
|
|
61
|
+
onUpdate: m,
|
|
62
|
+
options: p
|
|
83
63
|
}, null, 8, ["data"]),
|
|
84
|
-
|
|
64
|
+
e.value.variables ? (o(), U(g, {
|
|
85
65
|
key: 0,
|
|
86
|
-
variables:
|
|
87
|
-
"onUpdate:variable":
|
|
66
|
+
variables: e.value.variables,
|
|
67
|
+
"onUpdate:variable": b
|
|
88
68
|
}, null, 8, ["variables"])) : n("", !0)
|
|
89
69
|
], 64)) : n("", !0)
|
|
90
70
|
], 2));
|
|
91
71
|
}
|
|
92
72
|
});
|
|
93
73
|
export {
|
|
94
|
-
|
|
74
|
+
W as default
|
|
95
75
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionServers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionServers.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CollectionServers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Collection/CollectionServers.vue"],"names":[],"mappings":";AA8cA,wBAKG"}
|
|
@@ -1,101 +1,94 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { ScalarIconTrash as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
const F = {
|
|
10
|
-
ref: "wrapper-ref",
|
|
11
|
-
class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8"
|
|
12
|
-
}, O = { class: "flex flex-col gap-4" }, W = { class: "rounded-lg border" }, Y = { class: "bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm" }, q = {
|
|
1
|
+
import { defineComponent as k, ref as y, computed as C, createElementBlock as d, openBlock as r, createElementVNode as a, createVNode as o, createStaticVNode as w, Fragment as A, renderList as M, createBlock as f, createCommentVNode as N, unref as e, toDisplayString as D, withCtx as v } from "vue";
|
|
2
|
+
import { useModal as I, ScalarMarkdown as $, ScalarButton as m, ScalarIcon as j, ScalarModal as z } from "@scalar/components";
|
|
3
|
+
import { ScalarIconTrash as B } from "@scalar/icons";
|
|
4
|
+
import U from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
5
|
+
import { useActiveEntities as V } from "../../store/active-entities.js";
|
|
6
|
+
import E from "./CollectionServerForm.vue.js";
|
|
7
|
+
import { useWorkspace as L } from "../../store/store.js";
|
|
8
|
+
const P = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, T = { class: "flex flex-col gap-4" }, F = { class: "rounded-lg border" }, O = { class: "bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm" }, R = {
|
|
13
9
|
key: 1,
|
|
14
10
|
class: "self-center"
|
|
15
|
-
},
|
|
11
|
+
}, W = { class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4" }, ee = /* @__PURE__ */ k({
|
|
16
12
|
__name: "CollectionServers",
|
|
17
|
-
setup(
|
|
18
|
-
const { activeCollection: t } =
|
|
19
|
-
(
|
|
13
|
+
setup(Y) {
|
|
14
|
+
const { activeCollection: t } = V(), { servers: u, events: p, serverMutators: x } = L(), i = I(), n = y(null), h = C(() => !u || !t.value?.servers ? [] : Object.values(u).filter(
|
|
15
|
+
(c) => t.value?.servers.includes(c.uid)
|
|
20
16
|
)), _ = () => p.commandPalette.emit({
|
|
21
17
|
commandName: "Add Server"
|
|
22
18
|
}), S = () => {
|
|
23
|
-
!t.value?.uid || !
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
s[2] || (s[2] = M('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Servers</h3></div><p class="text-sm"> Add different base URLs for your API. You can use <code class="font-code text-c-2">{variables}</code> for dynamic parts. </p></div></div>', 1)),
|
|
32
|
-
(o(!0), u(N, null, D(h.value, (l, k) => (o(), u("div", {
|
|
19
|
+
!t.value?.uid || !n.value || (x.delete(n.value, t.value.uid), i.hide());
|
|
20
|
+
}, g = (c) => {
|
|
21
|
+
n.value = c, i.show();
|
|
22
|
+
};
|
|
23
|
+
return (c, s) => (r(), d("div", P, [
|
|
24
|
+
a("div", T, [
|
|
25
|
+
s[2] || (s[2] = w('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Servers</h3></div><p class="text-sm"> Add different base URLs for your API. You can use <code class="font-code text-c-2">{variables}</code> for dynamic parts. </p></div></div>', 1)),
|
|
26
|
+
(r(!0), d(A, null, M(h.value, (l, b) => (r(), d("div", {
|
|
33
27
|
key: l.uid
|
|
34
28
|
}, [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
l.description ? (
|
|
29
|
+
a("div", F, [
|
|
30
|
+
a("div", O, [
|
|
31
|
+
l.description ? (r(), f(e($), {
|
|
38
32
|
key: 0,
|
|
39
33
|
class: "self-center",
|
|
40
34
|
value: l.description
|
|
41
|
-
}, null, 8, ["value"])) : (
|
|
42
|
-
|
|
35
|
+
}, null, 8, ["value"])) : (r(), d("span", R, "Server " + D(b + 1), 1)),
|
|
36
|
+
o(e(m), {
|
|
43
37
|
class: "hover:bg-b-3 hover:text-c-1 h-fit p-1.25",
|
|
44
38
|
variant: "ghost",
|
|
45
|
-
onClick: (
|
|
39
|
+
onClick: (q) => g(l.uid)
|
|
46
40
|
}, {
|
|
47
41
|
default: v(() => [
|
|
48
|
-
|
|
42
|
+
o(e(B), { class: "size-3.5" })
|
|
49
43
|
]),
|
|
50
|
-
_:
|
|
51
|
-
},
|
|
44
|
+
_: 1
|
|
45
|
+
}, 8, ["onClick"])
|
|
52
46
|
]),
|
|
53
|
-
e(t) ? (
|
|
47
|
+
e(t) ? (r(), f(E, {
|
|
54
48
|
key: 0,
|
|
55
49
|
collectionId: e(t).uid,
|
|
56
50
|
serverUid: l.uid
|
|
57
|
-
}, null, 8, ["collectionId", "serverUid"])) :
|
|
51
|
+
}, null, 8, ["collectionId", "serverUid"])) : N("", !0)
|
|
58
52
|
])
|
|
59
53
|
]))), 128)),
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
a("div", W, [
|
|
55
|
+
o(e(m), {
|
|
62
56
|
class: "hover:bg-b-2 hover:text-c-1 flex items-center gap-2",
|
|
63
57
|
size: "sm",
|
|
64
58
|
variant: "ghost",
|
|
65
59
|
onClick: _
|
|
66
60
|
}, {
|
|
67
61
|
default: v(() => [
|
|
68
|
-
|
|
62
|
+
o(e(j), {
|
|
69
63
|
class: "inline-flex",
|
|
70
64
|
icon: "Add",
|
|
71
65
|
size: "sm",
|
|
72
66
|
thickness: "1.5"
|
|
73
67
|
}),
|
|
74
|
-
s[1] || (s[1] =
|
|
68
|
+
s[1] || (s[1] = a("span", null, "Add Server", -1))
|
|
75
69
|
]),
|
|
76
|
-
_: 1
|
|
77
|
-
__: [1]
|
|
70
|
+
_: 1
|
|
78
71
|
})
|
|
79
72
|
])
|
|
80
73
|
]),
|
|
81
|
-
|
|
74
|
+
o(e(z), {
|
|
82
75
|
size: "xxs",
|
|
83
|
-
state: e(
|
|
84
|
-
title: `Delete ${
|
|
76
|
+
state: e(i),
|
|
77
|
+
title: `Delete ${n.value ? e(u)[n.value]?.url : "Server"}`
|
|
85
78
|
}, {
|
|
86
79
|
default: v(() => [
|
|
87
|
-
|
|
80
|
+
o(U, {
|
|
88
81
|
variableName: "Server",
|
|
89
82
|
warningMessage: "Are you sure you want to delete this server? This action cannot be undone.",
|
|
90
|
-
onClose: s[0] || (s[0] = (l) => e(
|
|
83
|
+
onClose: s[0] || (s[0] = (l) => e(i).hide()),
|
|
91
84
|
onDelete: S
|
|
92
85
|
})
|
|
93
86
|
]),
|
|
94
87
|
_: 1
|
|
95
88
|
}, 8, ["state", "title"])
|
|
96
|
-
]
|
|
89
|
+
]));
|
|
97
90
|
}
|
|
98
91
|
});
|
|
99
92
|
export {
|
|
100
|
-
|
|
93
|
+
ee as default
|
|
101
94
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CollectionSettings.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f353959a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -2,8 +2,8 @@ import { defineComponent as _, createElementBlock as r, openBlock as d, Fragment
|
|
|
2
2
|
import { useModal as C, ScalarToggle as y, ScalarIcon as p, ScalarButton as M, ScalarModal as U } from "@scalar/components";
|
|
3
3
|
import { useRouter as D } from "vue-router";
|
|
4
4
|
import N from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
5
|
-
import { useActiveEntities as S } from "../../store/active-entities.js";
|
|
6
5
|
import { PathId as v } from "../../routes.js";
|
|
6
|
+
import { useActiveEntities as S } from "../../store/active-entities.js";
|
|
7
7
|
import { useWorkspace as W } from "../../store/store.js";
|
|
8
8
|
const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, V = { class: "flex flex-col gap-2" }, A = { class: "bg-b-2 rounded-lg border text-sm" }, B = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, E = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, I = { class: "flex items-center" }, $ = ["href"], L = { class: "flex flex-col gap-4" }, O = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, H = /* @__PURE__ */ _({
|
|
9
9
|
__name: "CollectionSettings",
|
|
@@ -87,11 +87,10 @@ const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, V = { cla
|
|
|
87
87
|
variant: "danger",
|
|
88
88
|
onClick: t[0] || (t[0] = (w) => l(s).show())
|
|
89
89
|
}, {
|
|
90
|
-
default: f(() => t[6] || (t[6] = [
|
|
91
|
-
m(" Delete Collection ")
|
|
92
|
-
])),
|
|
93
|
-
_: 1
|
|
94
|
-
__: [6]
|
|
90
|
+
default: f(() => [...t[6] || (t[6] = [
|
|
91
|
+
m(" Delete Collection ", -1)
|
|
92
|
+
])]),
|
|
93
|
+
_: 1
|
|
95
94
|
})
|
|
96
95
|
])
|
|
97
96
|
])
|