@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
|
@@ -4,9 +4,9 @@ import { useRouter as X } from "vue-router";
|
|
|
4
4
|
import b from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
5
5
|
import Y from "../../components/Sidebar/Actions/EditSidebarListCollection.vue.js";
|
|
6
6
|
import Z from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
7
|
+
import { PathId as u } from "../../routes.js";
|
|
7
8
|
import { useActiveEntities as _ } from "../../store/active-entities.js";
|
|
8
9
|
import { createInitialRequest as ee } from "../../store/requests.js";
|
|
9
|
-
import { PathId as u } from "../../routes.js";
|
|
10
10
|
import { useWorkspace as te } from "../../store/store.js";
|
|
11
11
|
const fe = /* @__PURE__ */ L({
|
|
12
12
|
__name: "RequestSidebarItemMenu",
|
|
@@ -15,9 +15,9 @@ const fe = /* @__PURE__ */ L({
|
|
|
15
15
|
},
|
|
16
16
|
emits: ["closeMenu", "toggleWatchMode", "clearDrafts"],
|
|
17
17
|
setup(x, { emit: z }) {
|
|
18
|
-
const s = x,
|
|
18
|
+
const s = x, M = z, { replace: k } = X(), {
|
|
19
19
|
activeRouterParams: E,
|
|
20
|
-
activeWorkspaceCollections:
|
|
20
|
+
activeWorkspaceCollections: y,
|
|
21
21
|
activeWorkspaceRequests: N
|
|
22
22
|
} = _(), { events: S, requestMutators: T } = te(), d = $(), v = $(), g = $(), A = () => S.commandPalette.emit({
|
|
23
23
|
commandName: "Add Example",
|
|
@@ -28,7 +28,7 @@ const fe = /* @__PURE__ */ L({
|
|
|
28
28
|
s.menuItem.item?.edit(t, e), d.hide();
|
|
29
29
|
}, B = () => {
|
|
30
30
|
if (s.menuItem.item?.delete(), !N.value.length) {
|
|
31
|
-
const { request: t } = ee(), e =
|
|
31
|
+
const { request: t } = ee(), e = y.value.find(
|
|
32
32
|
(m) => m.info?.title === "Drafts"
|
|
33
33
|
);
|
|
34
34
|
e && (T.add(t, e.uid), k({
|
|
@@ -48,8 +48,8 @@ const fe = /* @__PURE__ */ L({
|
|
|
48
48
|
params: {
|
|
49
49
|
[u.Request]: "default"
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
52
|
-
const t =
|
|
51
|
+
}), y.value[0]) {
|
|
52
|
+
const t = y.value[0].requests[0];
|
|
53
53
|
k({
|
|
54
54
|
name: "request",
|
|
55
55
|
params: {
|
|
@@ -59,15 +59,15 @@ const fe = /* @__PURE__ */ L({
|
|
|
59
59
|
}
|
|
60
60
|
v.hide();
|
|
61
61
|
}, f = P(null);
|
|
62
|
-
F([() => s.menuItem.open, f],
|
|
62
|
+
F([() => s.menuItem.open, f], ([t]) => {
|
|
63
63
|
t && f.value?.$parent?.$el && f.value.$parent.$el.focus();
|
|
64
64
|
});
|
|
65
|
-
const h = () => s.menuItem.open &&
|
|
65
|
+
const h = () => s.menuItem.open && M("closeMenu");
|
|
66
66
|
K(() => window.addEventListener("click", h)), j(() => window.removeEventListener("click", h));
|
|
67
67
|
const U = () => {
|
|
68
|
-
|
|
68
|
+
M("toggleWatchMode", s.menuItem.item);
|
|
69
69
|
}, V = () => {
|
|
70
|
-
|
|
70
|
+
M("clearDrafts"), g.hide();
|
|
71
71
|
}, D = G(() => s.menuItem.item?.title === "Drafts");
|
|
72
72
|
return (t, e) => (l(), w(C, null, [
|
|
73
73
|
t.menuItem.targetRef && t.menuItem.open ? (l(), o(n(O), {
|
|
@@ -95,8 +95,7 @@ const fe = /* @__PURE__ */ L({
|
|
|
95
95
|
}),
|
|
96
96
|
e[8] || (e[8] = c("span", null, "Add Example", -1))
|
|
97
97
|
]),
|
|
98
|
-
_: 1
|
|
99
|
-
__: [8]
|
|
98
|
+
_: 1
|
|
100
99
|
})) : r("", !0),
|
|
101
100
|
D.value ? r("", !0) : (l(), o(n(p), {
|
|
102
101
|
key: 1,
|
|
@@ -154,8 +153,7 @@ const fe = /* @__PURE__ */ L({
|
|
|
154
153
|
}),
|
|
155
154
|
e[9] || (e[9] = c("span", null, "Delete", -1))
|
|
156
155
|
]),
|
|
157
|
-
_: 1
|
|
158
|
-
__: [9]
|
|
156
|
+
_: 1
|
|
159
157
|
})),
|
|
160
158
|
D.value ? (l(), o(n(p), {
|
|
161
159
|
key: 4,
|
|
@@ -171,8 +169,7 @@ const fe = /* @__PURE__ */ L({
|
|
|
171
169
|
}),
|
|
172
170
|
e[10] || (e[10] = c("span", null, "Clear Drafts", -1))
|
|
173
171
|
]),
|
|
174
|
-
_: 1
|
|
175
|
-
__: [10]
|
|
172
|
+
_: 1
|
|
176
173
|
})) : r("", !0)
|
|
177
174
|
]),
|
|
178
175
|
_: 1
|
|
@@ -26,9 +26,9 @@ const h = {
|
|
|
26
26
|
defaultOpen: !1,
|
|
27
27
|
itemCount: s.headers.length
|
|
28
28
|
}, {
|
|
29
|
-
title: e(() => t[0] || (t[0] = [
|
|
30
|
-
n("Request Headers")
|
|
31
|
-
])),
|
|
29
|
+
title: e(() => [...t[0] || (t[0] = [
|
|
30
|
+
n("Request Headers", -1)
|
|
31
|
+
])]),
|
|
32
32
|
default: e(() => [
|
|
33
33
|
s.headers.length ? (r(), l("div", h, [
|
|
34
34
|
a(b, {
|
|
@@ -39,18 +39,16 @@ const h = {
|
|
|
39
39
|
a(c, { class: "sr-only !block" }, {
|
|
40
40
|
default: e(() => [
|
|
41
41
|
a(u(_), null, {
|
|
42
|
-
default: e(() => t[1] || (t[1] = [
|
|
43
|
-
n("Header Key")
|
|
44
|
-
])),
|
|
45
|
-
_: 1
|
|
46
|
-
__: [1]
|
|
42
|
+
default: e(() => [...t[1] || (t[1] = [
|
|
43
|
+
n("Header Key", -1)
|
|
44
|
+
])]),
|
|
45
|
+
_: 1
|
|
47
46
|
}),
|
|
48
47
|
a(u(_), null, {
|
|
49
|
-
default: e(() => t[2] || (t[2] = [
|
|
50
|
-
n("Header Value")
|
|
51
|
-
])),
|
|
52
|
-
_: 1
|
|
53
|
-
__: [2]
|
|
48
|
+
default: e(() => [...t[2] || (t[2] = [
|
|
49
|
+
n("Header Value", -1)
|
|
50
|
+
])]),
|
|
51
|
+
_: 1
|
|
54
52
|
})
|
|
55
53
|
]),
|
|
56
54
|
_: 1
|
|
@@ -55,11 +55,10 @@ const D = {
|
|
|
55
55
|
type: a(i).essence
|
|
56
56
|
}, null, 8, ["alpha", "mode", "src", "type"])) : r("", !0),
|
|
57
57
|
!e.value?.raw && !e.value?.preview ? (t(), n(E, { key: 2 }, {
|
|
58
|
-
default: d(() => u[1] || (u[1] = [
|
|
59
|
-
h(" Binary file ")
|
|
60
|
-
])),
|
|
61
|
-
_: 1
|
|
62
|
-
__: [1]
|
|
58
|
+
default: d(() => [...u[1] || (u[1] = [
|
|
59
|
+
h(" Binary file ", -1)
|
|
60
|
+
])]),
|
|
61
|
+
_: 1
|
|
63
62
|
})) : r("", !0)
|
|
64
63
|
])) : r("", !0)
|
|
65
64
|
]),
|
|
@@ -51,11 +51,10 @@ const c = ["src"], k = ["src", "type"], w = ["src", "type"], B = ["data", "type"
|
|
|
51
51
|
onError: o[3] || (o[3] = (t) => r.value = !0)
|
|
52
52
|
}, null, 40, B))
|
|
53
53
|
], 2)) : (s(), y(v, { key: 1 }, {
|
|
54
|
-
default: f(() => o[4] || (o[4] = [
|
|
55
|
-
m("Preview unavailable")
|
|
56
|
-
])),
|
|
57
|
-
_: 1
|
|
58
|
-
__: [4]
|
|
54
|
+
default: f(() => [...o[4] || (o[4] = [
|
|
55
|
+
m("Preview unavailable", -1)
|
|
56
|
+
])]),
|
|
57
|
+
_: 1
|
|
59
58
|
}));
|
|
60
59
|
}
|
|
61
60
|
});
|
|
@@ -18,7 +18,7 @@ const R = /* @__PURE__ */ c({
|
|
|
18
18
|
});
|
|
19
19
|
return (w, t) => (x(), f(_, { class: "!max-h-100% response-body-virtual overflow-x-auto" }, u({
|
|
20
20
|
title: r(() => [
|
|
21
|
-
t[0] || (t[0] = y("Body"))
|
|
21
|
+
t[0] || (t[0] = y("Body", -1))
|
|
22
22
|
]),
|
|
23
23
|
default: r(() => [
|
|
24
24
|
t[1] || (t[1] = h("div", { class: "font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5" }, " This response body is massive! Syntax highlighting won't work here. ", -1)),
|
|
@@ -13,9 +13,9 @@ const d = {
|
|
|
13
13
|
},
|
|
14
14
|
setup(x) {
|
|
15
15
|
return (s, l) => (e(), r(k, { defaultOpen: !1 }, {
|
|
16
|
-
title: t(() => l[0] || (l[0] = [
|
|
17
|
-
p("Cookies")
|
|
18
|
-
])),
|
|
16
|
+
title: t(() => [...l[0] || (l[0] = [
|
|
17
|
+
p("Cookies", -1)
|
|
18
|
+
])]),
|
|
19
19
|
default: t(() => [
|
|
20
20
|
(e(), n(a, { key: 0 }, [
|
|
21
21
|
s.cookies.length ? (e(), r(u, {
|
|
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
33
33
|
}));
|
|
34
34
|
}, f = (o) => {
|
|
35
35
|
o?.createNew && g.name === "request" && d();
|
|
36
|
-
}, v = "2.
|
|
36
|
+
}, v = "2.9.0";
|
|
37
37
|
return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (o, e) => (i(), l("div", W, [
|
|
38
38
|
s("div", {
|
|
39
39
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
|
@@ -74,7 +74,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
74
74
|
type: "button",
|
|
75
75
|
onClick: e[0] || (e[0] = (k) => t(a).commandPalette.emit())
|
|
76
76
|
}, [
|
|
77
|
-
e[5] || (e[5] = c(" Get Started ")),
|
|
77
|
+
e[5] || (e[5] = c(" Get Started ", -1)),
|
|
78
78
|
u(t(p), { hotkey: "k" })
|
|
79
79
|
])) : m("", !0),
|
|
80
80
|
t(n) === "desktop" ? (i(), l("button", {
|
|
@@ -83,7 +83,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
83
83
|
type: "button",
|
|
84
84
|
onClick: e[1] || (e[1] = (k) => d())
|
|
85
85
|
}, [
|
|
86
|
-
e[6] || (e[6] = c(" New Request ")),
|
|
86
|
+
e[6] || (e[6] = c(" New Request ", -1)),
|
|
87
87
|
u(t(p), { hotkey: "N" })
|
|
88
88
|
])) : m("", !0),
|
|
89
89
|
s("button", {
|
|
@@ -91,7 +91,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
91
91
|
type: "button",
|
|
92
92
|
onClick: e[2] || (e[2] = (k) => t(a).executeRequest.emit())
|
|
93
93
|
}, [
|
|
94
|
-
e[7] || (e[7] = c(" Send Request ")),
|
|
94
|
+
e[7] || (e[7] = c(" Send Request ", -1)),
|
|
95
95
|
u(t(p), { hotkey: "↵" })
|
|
96
96
|
])
|
|
97
97
|
])
|
|
@@ -26,9 +26,9 @@ const h = {
|
|
|
26
26
|
defaultOpen: !1,
|
|
27
27
|
itemCount: s.headers.length
|
|
28
28
|
}, {
|
|
29
|
-
title: e(() => r[0] || (r[0] = [
|
|
30
|
-
n("Response Headers")
|
|
31
|
-
])),
|
|
29
|
+
title: e(() => [...r[0] || (r[0] = [
|
|
30
|
+
n("Response Headers", -1)
|
|
31
|
+
])]),
|
|
32
32
|
default: e(() => [
|
|
33
33
|
s.headers.length ? (t(), l("div", h, [
|
|
34
34
|
a(b, {
|
|
@@ -39,18 +39,16 @@ const h = {
|
|
|
39
39
|
a(p, { class: "sr-only !block" }, {
|
|
40
40
|
default: e(() => [
|
|
41
41
|
a(d(_), null, {
|
|
42
|
-
default: e(() => r[1] || (r[1] = [
|
|
43
|
-
n("Header Key")
|
|
44
|
-
])),
|
|
45
|
-
_: 1
|
|
46
|
-
__: [1]
|
|
42
|
+
default: e(() => [...r[1] || (r[1] = [
|
|
43
|
+
n("Header Key", -1)
|
|
44
|
+
])]),
|
|
45
|
+
_: 1
|
|
47
46
|
}),
|
|
48
47
|
a(d(_), null, {
|
|
49
|
-
default: e(() => r[2] || (r[2] = [
|
|
50
|
-
n("Header Value")
|
|
51
|
-
])),
|
|
52
|
-
_: 1
|
|
53
|
-
__: [2]
|
|
48
|
+
default: e(() => [...r[2] || (r[2] = [
|
|
49
|
+
n("Header Value", -1)
|
|
50
|
+
])]),
|
|
51
|
+
_: 1
|
|
54
52
|
})
|
|
55
53
|
]),
|
|
56
54
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, ref as c, createBlock as d, openBlock as l, Transition as m, withCtx as r, createElementBlock as f, createCommentVNode as p, unref as e, createVNode as i, createTextVNode as g } from "vue";
|
|
2
|
-
import { useLoadingState as v, ScalarLoading as
|
|
2
|
+
import { useLoadingState as v, ScalarLoading as x, ScalarButton as _ } from "@scalar/components";
|
|
3
3
|
import { useWorkspace as k } from "../../../store/store.js";
|
|
4
4
|
const L = {
|
|
5
5
|
key: 0,
|
|
@@ -13,20 +13,19 @@ const L = {
|
|
|
13
13
|
}), (s, o) => (l(), d(m, null, {
|
|
14
14
|
default: r(() => [
|
|
15
15
|
e(t).isLoading ? (l(), f("div", L, [
|
|
16
|
-
i(e(
|
|
16
|
+
i(e(x), {
|
|
17
17
|
class: "text-c-3",
|
|
18
18
|
loadingState: e(t),
|
|
19
19
|
size: "3xl"
|
|
20
20
|
}, null, 8, ["loadingState"]),
|
|
21
|
-
i(e(
|
|
21
|
+
i(e(_), {
|
|
22
22
|
variant: "ghost",
|
|
23
23
|
onClick: o[0] || (o[0] = (C) => e(n).cancelRequest.emit())
|
|
24
24
|
}, {
|
|
25
|
-
default: r(() => o[1] || (o[1] = [
|
|
26
|
-
g(" Cancel ")
|
|
27
|
-
])),
|
|
28
|
-
_: 1
|
|
29
|
-
__: [1]
|
|
25
|
+
default: r(() => [...o[1] || (o[1] = [
|
|
26
|
+
g(" Cancel ", -1)
|
|
27
|
+
])]),
|
|
28
|
+
_: 1
|
|
30
29
|
})
|
|
31
30
|
])) : p("", !0)
|
|
32
31
|
]),
|
|
@@ -8,14 +8,14 @@ import { useWorkspace as H } from "../../../store/store.js";
|
|
|
8
8
|
const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-0 flex items-center gap-1.5 font-bold" }, Q = { class: "line-clamp-1 text-left" }, X = { class: "overflow-hidden text-ellipsis" }, Z = { class: "flex h-4 w-4 items-center justify-center" }, re = /* @__PURE__ */ A({
|
|
9
9
|
__name: "WorkspaceDropdown",
|
|
10
10
|
setup(ee) {
|
|
11
|
-
const { activeWorkspace: c } = G(), { workspaces: r, workspaceMutators: w, events: E } = H(), { push:
|
|
12
|
-
o !== c.value?.uid &&
|
|
11
|
+
const { activeWorkspace: c } = G(), { workspaces: r, workspaceMutators: w, events: E } = H(), { push: x } = F(), T = (o) => {
|
|
12
|
+
o !== c.value?.uid && x({
|
|
13
13
|
name: "workspace",
|
|
14
14
|
params: {
|
|
15
15
|
workspace: o
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
},
|
|
18
|
+
}, _ = L(() => Object.keys(r).length === 1), j = () => E.commandPalette.emit({ commandName: "Create Workspace" }), d = W(""), i = W(""), u = S(), p = S(), g = (o) => {
|
|
19
19
|
const t = r[o];
|
|
20
20
|
t && (d.value = t.name, i.value = o, u.show());
|
|
21
21
|
}, B = (o) => {
|
|
@@ -24,11 +24,11 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
|
|
|
24
24
|
const t = r[o];
|
|
25
25
|
t && (d.value = t.name, i.value = o, p.show());
|
|
26
26
|
}, R = async () => {
|
|
27
|
-
if (!
|
|
27
|
+
if (!_.value) {
|
|
28
28
|
const o = c.value?.uid === i.value, t = { ...r };
|
|
29
29
|
if (delete t[i.value], w.delete(i.value), o) {
|
|
30
30
|
const a = Object.keys(t)[0];
|
|
31
|
-
await
|
|
31
|
+
await x({
|
|
32
32
|
name: "workspace",
|
|
33
33
|
params: {
|
|
34
34
|
workspace: a
|
|
@@ -71,10 +71,9 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
|
|
|
71
71
|
}),
|
|
72
72
|
t[2] || (t[2] = l("span", null, "Rename", -1))
|
|
73
73
|
]),
|
|
74
|
-
_:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
x.value ? O("", !0) : (f(), D(e(h), {
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["onMousedown", "onTouchend"]),
|
|
76
|
+
_.value ? O("", !0) : (f(), D(e(h), {
|
|
78
77
|
key: 0,
|
|
79
78
|
class: "flex gap-2",
|
|
80
79
|
onMousedown: v((m) => b(a.uid), ["prevent"]),
|
|
@@ -89,9 +88,8 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
|
|
|
89
88
|
}),
|
|
90
89
|
t[3] || (t[3] = l("span", null, "Delete", -1))
|
|
91
90
|
]),
|
|
92
|
-
_:
|
|
93
|
-
|
|
94
|
-
}, 1032, ["onMousedown", "onTouchend"]))
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["onMousedown", "onTouchend"]))
|
|
95
93
|
]),
|
|
96
94
|
default: n(() => [
|
|
97
95
|
s(e(N), {
|
|
@@ -128,8 +126,7 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
|
|
|
128
126
|
]),
|
|
129
127
|
t[4] || (t[4] = l("span", null, "Create Workspace", -1))
|
|
130
128
|
]),
|
|
131
|
-
_: 1
|
|
132
|
-
__: [4]
|
|
129
|
+
_: 1
|
|
133
130
|
})
|
|
134
131
|
]),
|
|
135
132
|
default: n(() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ErrorResponse } from '../../../libs/errors.js';
|
|
2
1
|
import type { Oauth2Flow, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { ErrorResponse } from '../../../libs/errors.js';
|
|
3
3
|
/** Oauth2 security schemes which are not implicit */
|
|
4
4
|
type NonImplicitFlow = Exclude<Oauth2Flow, {
|
|
5
5
|
type: 'implicit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAIzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAY3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,UAAU;AAChB,wEAAwE;AACxE,cAAc,MAAM;AACpB,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA+J/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,eAAe,EACrB,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA0F/B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, createElementBlock as
|
|
1
|
+
import { defineComponent as E, createElementBlock as w, openBlock as c, createElementVNode as r, createVNode as a, withCtx as l, createBlock as u, createCommentVNode as p, unref as e, normalizeClass as i, createTextVNode as n, toDisplayString as C, Fragment as z, renderList as $, normalizeStyle as _ } from "vue";
|
|
2
2
|
import { cva as L, ScalarButton as x, cx as m, ScalarIcon as b } from "@scalar/components";
|
|
3
3
|
import { themeLabels as j } from "@scalar/themes";
|
|
4
4
|
import N from "../../components/ImportCollection/IntegrationLogo.vue.js";
|
|
@@ -43,31 +43,31 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}), h = (d) => U.edit(o.value?.uid, "proxyUrl", d);
|
|
46
|
-
return (d, t) => (c(),
|
|
46
|
+
return (d, t) => (c(), w("div", W, [
|
|
47
47
|
r("div", F, [
|
|
48
48
|
r("div", O, [
|
|
49
49
|
t[13] || (t[13] = r("div", null, [
|
|
50
50
|
r("h2", { class: "mt-10 text-xl font-bold" }, "Settings")
|
|
51
51
|
], -1)),
|
|
52
52
|
a(y, null, {
|
|
53
|
-
title: l(() => t[3] || (t[3] = [
|
|
54
|
-
n(" CORS Proxy ")
|
|
55
|
-
])),
|
|
56
|
-
description: l(() => t[4] || (t[4] = [
|
|
57
|
-
n(" Browsers block cross-origin requests for security. We provide a public proxy to "),
|
|
53
|
+
title: l(() => [...t[3] || (t[3] = [
|
|
54
|
+
n(" CORS Proxy ", -1)
|
|
55
|
+
])]),
|
|
56
|
+
description: l(() => [...t[4] || (t[4] = [
|
|
57
|
+
n(" Browsers block cross-origin requests for security. We provide a public proxy to ", -1),
|
|
58
58
|
r("a", {
|
|
59
59
|
class: "hover:text-c-1 underline-offset-2",
|
|
60
60
|
href: "https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",
|
|
61
61
|
target: "_blank"
|
|
62
62
|
}, " bypass CORS issues ", -1),
|
|
63
|
-
n(" . Check the "),
|
|
63
|
+
n(" . Check the ", -1),
|
|
64
64
|
r("a", {
|
|
65
65
|
class: "hover:text-c-1 underline-offset-2",
|
|
66
66
|
href: "https://github.com/scalar/scalar/tree/main/examples/proxy-server",
|
|
67
67
|
target: "_blank"
|
|
68
68
|
}, " source code on GitHub ", -1),
|
|
69
|
-
n(" . ")
|
|
70
|
-
])),
|
|
69
|
+
n(" . ", -1)
|
|
70
|
+
])]),
|
|
71
71
|
default: l(() => [
|
|
72
72
|
r("div", D, [
|
|
73
73
|
a(e(x), {
|
|
@@ -93,10 +93,9 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
93
93
|
thickness: "3.5"
|
|
94
94
|
})) : p("", !0)
|
|
95
95
|
], 2),
|
|
96
|
-
t[5] || (t[5] = n(" Use proxy.scalar.com (default) "))
|
|
96
|
+
t[5] || (t[5] = n(" Use proxy.scalar.com (default) ", -1))
|
|
97
97
|
]),
|
|
98
|
-
_: 1
|
|
99
|
-
__: [5]
|
|
98
|
+
_: 1
|
|
100
99
|
}, 8, ["class"]),
|
|
101
100
|
e(f) && e(f) !== g ? (c(), u(e(x), {
|
|
102
101
|
key: 0,
|
|
@@ -122,7 +121,7 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
122
121
|
thickness: "3.5"
|
|
123
122
|
})) : p("", !0)
|
|
124
123
|
], 2),
|
|
125
|
-
n(" Use custom proxy (" +
|
|
124
|
+
n(" Use custom proxy (" + C(e(f)) + ") ", 1)
|
|
126
125
|
]),
|
|
127
126
|
_: 1
|
|
128
127
|
}, 8, ["class"])) : p("", !0),
|
|
@@ -144,26 +143,25 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
144
143
|
thickness: "3.5"
|
|
145
144
|
}))
|
|
146
145
|
], 2),
|
|
147
|
-
t[6] || (t[6] = n(" Skip the proxy "))
|
|
146
|
+
t[6] || (t[6] = n(" Skip the proxy ", -1))
|
|
148
147
|
]),
|
|
149
|
-
_: 1
|
|
150
|
-
__: [6]
|
|
148
|
+
_: 1
|
|
151
149
|
}, 8, ["class"])
|
|
152
150
|
])
|
|
153
151
|
]),
|
|
154
152
|
_: 1
|
|
155
153
|
}),
|
|
156
154
|
a(y, null, {
|
|
157
|
-
title: l(() => t[7] || (t[7] = [
|
|
158
|
-
n(" Themes ")
|
|
159
|
-
])),
|
|
160
|
-
description: l(() => t[8] || (t[8] = [
|
|
161
|
-
n(" We've got a whole rainbow of themes for you to play with: ")
|
|
162
|
-
])),
|
|
155
|
+
title: l(() => [...t[7] || (t[7] = [
|
|
156
|
+
n(" Themes ", -1)
|
|
157
|
+
])]),
|
|
158
|
+
description: l(() => [...t[8] || (t[8] = [
|
|
159
|
+
n(" We've got a whole rainbow of themes for you to play with: ", -1)
|
|
160
|
+
])]),
|
|
163
161
|
default: l(() => [
|
|
164
162
|
r("div", G, [
|
|
165
163
|
r("div", q, [
|
|
166
|
-
(c(),
|
|
164
|
+
(c(), w(z, null, $(T, (s) => a(e(x), {
|
|
167
165
|
key: s,
|
|
168
166
|
class: i(
|
|
169
167
|
e(m)(
|
|
@@ -188,24 +186,24 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
188
186
|
thickness: "3.5"
|
|
189
187
|
})) : p("", !0)
|
|
190
188
|
], 2),
|
|
191
|
-
n(" " +
|
|
189
|
+
n(" " + C(e(j)[s]), 1)
|
|
192
190
|
]),
|
|
193
191
|
r("div", M, [
|
|
194
192
|
r("span", {
|
|
195
193
|
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
196
|
-
style:
|
|
194
|
+
style: _({
|
|
197
195
|
backgroundColor: v(s).light
|
|
198
196
|
})
|
|
199
197
|
}, null, 4),
|
|
200
198
|
r("span", {
|
|
201
199
|
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
202
|
-
style:
|
|
200
|
+
style: _({
|
|
203
201
|
backgroundColor: v(s).dark
|
|
204
202
|
})
|
|
205
203
|
}, null, 4),
|
|
206
204
|
r("span", {
|
|
207
205
|
class: "border-c-3 inline-block h-5 w-5 rounded-full",
|
|
208
|
-
style:
|
|
206
|
+
style: _({
|
|
209
207
|
backgroundColor: v(s).accent
|
|
210
208
|
})
|
|
211
209
|
}, null, 4)
|
|
@@ -219,15 +217,15 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
219
217
|
_: 1
|
|
220
218
|
}),
|
|
221
219
|
a(y, null, {
|
|
222
|
-
title: l(() => t[9] || (t[9] = [
|
|
223
|
-
n(" Framework Themes ")
|
|
224
|
-
])),
|
|
225
|
-
description: l(() => t[10] || (t[10] = [
|
|
226
|
-
n(" Are you a real fan? Show your support by using your favorite framework's theme! ")
|
|
227
|
-
])),
|
|
220
|
+
title: l(() => [...t[9] || (t[9] = [
|
|
221
|
+
n(" Framework Themes ", -1)
|
|
222
|
+
])]),
|
|
223
|
+
description: l(() => [...t[10] || (t[10] = [
|
|
224
|
+
n(" Are you a real fan? Show your support by using your favorite framework's theme! ", -1)
|
|
225
|
+
])]),
|
|
228
226
|
default: l(() => [
|
|
229
227
|
r("div", X, [
|
|
230
|
-
(c(),
|
|
228
|
+
(c(), w(z, null, $(B, (s) => a(e(x), {
|
|
231
229
|
key: s,
|
|
232
230
|
class: i(
|
|
233
231
|
e(m)(
|
|
@@ -252,7 +250,7 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
252
250
|
thickness: "3.5"
|
|
253
251
|
})) : p("", !0)
|
|
254
252
|
], 2),
|
|
255
|
-
n(" " +
|
|
253
|
+
n(" " + C(e(j)[s]), 1)
|
|
256
254
|
]),
|
|
257
255
|
r("div", J, [
|
|
258
256
|
r("div", K, [
|
|
@@ -267,12 +265,12 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
267
265
|
_: 1
|
|
268
266
|
}),
|
|
269
267
|
a(y, null, {
|
|
270
|
-
title: l(() => t[11] || (t[11] = [
|
|
271
|
-
n(" Appearance ")
|
|
272
|
-
])),
|
|
273
|
-
description: l(() => t[12] || (t[12] = [
|
|
274
|
-
n(" Choose between light, dark, or system-based appearance for your workspace. ")
|
|
275
|
-
])),
|
|
268
|
+
title: l(() => [...t[11] || (t[11] = [
|
|
269
|
+
n(" Appearance ", -1)
|
|
270
|
+
])]),
|
|
271
|
+
description: l(() => [...t[12] || (t[12] = [
|
|
272
|
+
n(" Choose between light, dark, or system-based appearance for your workspace. ", -1)
|
|
273
|
+
])]),
|
|
276
274
|
default: l(() => [
|
|
277
275
|
a(R)
|
|
278
276
|
]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as x, createElementBlock as y, openBlock as o, createVNode as l, unref as e, normalizeClass as s, withCtx as c, createElementVNode as i, createTextVNode as d, createBlock as u, createCommentVNode as f } from "vue";
|
|
2
2
|
import { cva as g, ScalarButton as m, cx as p, ScalarIcon as k } from "@scalar/components";
|
|
3
3
|
import { useColorMode as v } from "@scalar/use-hooks/useColorMode";
|
|
4
|
-
const C = { class: "flex flex-col gap-2" },
|
|
4
|
+
const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
|
|
5
5
|
__name: "SettingsAppearance",
|
|
6
6
|
setup(h) {
|
|
7
7
|
const { colorMode: r, setColorMode: n } = v(), a = g({
|
|
@@ -31,10 +31,9 @@ const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
|
|
|
31
31
|
thickness: "3.5"
|
|
32
32
|
})) : f("", !0)
|
|
33
33
|
], 2),
|
|
34
|
-
t[3] || (t[3] = d(" System Preference (default) "))
|
|
34
|
+
t[3] || (t[3] = d(" System Preference (default) ", -1))
|
|
35
35
|
]),
|
|
36
|
-
_: 1
|
|
37
|
-
__: [3]
|
|
36
|
+
_: 1
|
|
38
37
|
}, 8, ["class"]),
|
|
39
38
|
l(e(m), {
|
|
40
39
|
class: s(e(p)(e(a)({ active: e(r) === "light" }))),
|
|
@@ -53,10 +52,9 @@ const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
|
|
|
53
52
|
thickness: "3.5"
|
|
54
53
|
})) : f("", !0)
|
|
55
54
|
], 2),
|
|
56
|
-
t[4] || (t[4] = d(" Light Mode Always "))
|
|
55
|
+
t[4] || (t[4] = d(" Light Mode Always ", -1))
|
|
57
56
|
]),
|
|
58
|
-
_: 1
|
|
59
|
-
__: [4]
|
|
57
|
+
_: 1
|
|
60
58
|
}, 8, ["class"]),
|
|
61
59
|
l(e(m), {
|
|
62
60
|
class: s(e(p)(e(a)({ active: e(r) === "dark" }))),
|
|
@@ -75,14 +73,13 @@ const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
|
|
|
75
73
|
thickness: "3.5"
|
|
76
74
|
})) : f("", !0)
|
|
77
75
|
], 2),
|
|
78
|
-
t[5] || (t[5] = d(" Dark Mode Always "))
|
|
76
|
+
t[5] || (t[5] = d(" Dark Mode Always ", -1))
|
|
79
77
|
]),
|
|
80
|
-
_: 1
|
|
81
|
-
__: [5]
|
|
78
|
+
_: 1
|
|
82
79
|
}, 8, ["class"])
|
|
83
80
|
]));
|
|
84
81
|
}
|
|
85
82
|
});
|
|
86
83
|
export {
|
|
87
|
-
|
|
84
|
+
z as default
|
|
88
85
|
};
|