@scalar/api-client 2.5.26 → 2.5.28
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 +55 -0
- package/dist/analytics.d.ts +69 -0
- package/dist/analytics.d.ts.map +1 -0
- package/dist/analytics.js +25 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +6 -5
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +9 -9
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +10 -13
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +67 -60
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +59 -52
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +5 -5
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts +1 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts +8 -12
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts +5 -10
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.d.ts +5 -10
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +10 -199
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableRow.vue.d.ts +6 -11
- package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableText.vue.d.ts +5 -10
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
- package/dist/components/EmptyState.vue.d.ts +1 -1
- package/dist/components/EmptyState.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.d.ts +5 -10
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/LabelInput.vue.d.ts +1 -1
- package/dist/components/Form/LabelInput.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.d.ts +6 -11
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IconSelector.vue.d.ts +7 -11
- package/dist/components/IconSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts +5 -10
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +1 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.d.ts +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/OpenApiClientButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.d.ts +1 -1
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts +7 -11
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/SectionFilter.vue.d.ts +7 -9
- package/dist/components/SectionFilter.vue.d.ts.map +1 -1
- package/dist/components/SectionFilterButton.vue.d.ts +6 -11
- package/dist/components/SectionFilterButton.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +42 -35
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +47 -39
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +35 -31
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavGroup.vue.d.ts +6 -11
- package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.d.ts +7 -11
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +5 -10
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +1 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +6 -11
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts +12 -16
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts +5 -10
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +4 -4
- package/dist/components/Sidebar/SidebarList.vue.d.ts +6 -11
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.d.ts +1 -1
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts +6 -11
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +15 -18
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts +5 -10
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts +7 -11
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.d.ts +32 -26
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/hooks/useFileDialog.d.ts +2 -0
- package/dist/hooks/useFileDialog.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/index.js +9 -8
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.d.ts +5 -10
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +150 -106
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +23 -14
- package/dist/layouts/App/index.js +4 -3
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +210 -210
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +148 -106
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +24 -15
- package/dist/layouts/Web/index.js +4 -3
- package/dist/libs/create-client.d.ts +105 -105
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +23 -23
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/formatters.d.ts.map +1 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts.map +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/normalize-headers.d.ts.map +1 -1
- package/dist/libs/parse-curl.d.ts.map +1 -1
- package/dist/libs/parse-curl.js +26 -25
- package/dist/libs/send-request/build-request-security.d.ts +3 -1
- package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
- package/dist/libs/send-request/build-request-security.js +19 -18
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts +6 -6
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/libs/validate-parameters.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +6 -6
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +64 -64
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +16 -16
- package/dist/store/store.d.ts +107 -107
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +38 -38
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionCookies.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionOverview.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionScripts.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.js +64 -44
- package/dist/views/Collection/CollectionServers.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +56 -50
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSync.vue.d.ts.map +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +15 -14
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue.d.ts +1 -1
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +1 -1
- package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- 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 +84 -78
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +8 -12
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +66 -64
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +4 -109
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +27 -27
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +6 -11
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +9 -9
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.d.ts +5 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +15 -14
- package/dist/views/Request/libs/request.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue.d.ts +1 -1
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.d.ts +1 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -1
- package/dist/views/Settings/components/SettingsSection.vue.d.ts +7 -17
- package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +1 -1
- package/package.json +18 -15
|
@@ -8,6 +8,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
8
8
|
onSelect?: ((color: string) => any) | undefined;
|
|
9
9
|
}>, {
|
|
10
10
|
selector: boolean;
|
|
11
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
export default _default;
|
|
13
13
|
//# sourceMappingURL=EnvironmentColors.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentColors.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentColors.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EnvironmentColors.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentColors.vue"],"names":[],"mappings":"AAkKA,KAAK,WAAW,GAAG;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;;;;;;cADW,OAAO;;AA+StB,wBAQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentModal.vue"],"names":[],"mappings":"AA+JA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"EnvironmentModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentModal.vue"],"names":[],"mappings":"AA+JA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAUjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,0BAA0B,EAAE,UAAU,EAAE,CAAA;IACxC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC,CAAC;;;cAQU,MAAM;eACL,MAAM;cACP,MAAM;sBACE,UAAU,CAAC,KAAK,CAAC,GAAG,SAAS;;;;;cAHrC,MAAM;eACL,MAAM;cACP,MAAM;sBACE,UAAU,CAAC,KAAK,CAAC,GAAG,SAAS;;;;AAsSjD,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAsMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAOzE,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAsMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAOzE,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAInE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,YAAY,CAAA;IAE1B,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAyEiC,IAAI,GAAG,MAAM;;;;;;;AAiQhD,wBAQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":"AAyIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AASnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;
|
|
1
|
+
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":"AAyIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AASnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAOrF,KAAK,WAAW,GAAG;IACf,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,aAAa,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACzC,CAAC;;;cAG0C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA+OjE,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cAiR8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAsTjE,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestRoot.vue2.js";
|
|
2
2
|
import "./RequestRoot.vue3.js";
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e187bc5a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,120 +1,126 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isDefined as
|
|
3
|
-
import { safeJSON as
|
|
4
|
-
import { useToasts as
|
|
5
|
-
import { RouterView as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
1
|
+
import { defineComponent as K, ref as m, computed as X, onMounted as Y, onBeforeUnmount as Z, watch as ee, createElementBlock as te, openBlock as p, normalizeClass as B, unref as r, createBlock as T, createCommentVNode as P, createElementVNode as D, isRef as oe, createVNode as re } from "vue";
|
|
2
|
+
import { isDefined as se } from "@scalar/oas-utils/helpers";
|
|
3
|
+
import { safeJSON as ae } from "@scalar/object-utils/parse";
|
|
4
|
+
import { useToasts as ne } from "@scalar/use-toasts";
|
|
5
|
+
import { RouterView as le } from "vue-router";
|
|
6
|
+
import { useAnalytics as ue } from "../../analytics.js";
|
|
7
|
+
import ce from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
8
|
+
import { useClientConfig as ie } from "../../hooks/useClientConfig.js";
|
|
9
|
+
import { useSidebar as me } from "../../hooks/useSidebar.js";
|
|
10
|
+
import { validateParameters as fe } from "../../libs/validate-parameters.js";
|
|
11
|
+
import { useActiveEntities as de } from "../../store/active-entities.js";
|
|
12
|
+
import { useOpenApiWatcher as pe } from "./hooks/useOpenApiWatcher.js";
|
|
13
|
+
import ve from "./RequestSidebar.vue.js";
|
|
14
|
+
import { usePluginManager as Re } from "../../plugins/hooks/usePluginManager.js";
|
|
15
|
+
import { createRequestOperation as Se } from "../../libs/send-request/create-request-operation.js";
|
|
16
|
+
import { ERRORS as qe } from "../../libs/errors.js";
|
|
17
|
+
import { useWorkspace as ye } from "../../store/store.js";
|
|
18
|
+
import { useLayout as xe } from "../../hooks/useLayout.js";
|
|
19
|
+
const be = { class: "flex h-full" }, he = { class: "flex h-full flex-1 flex-col" }, We = /* @__PURE__ */ K({
|
|
19
20
|
__name: "RequestRoot",
|
|
20
21
|
emits: ["newTab"],
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
22
|
+
setup(ge) {
|
|
23
|
+
const M = ye(), { toast: v } = ne(), { layout: R } = xe(), z = ie(), { isSidebarOpen: a } = me(), f = ue(), {
|
|
23
24
|
activeCollection: l,
|
|
24
|
-
activeExample:
|
|
25
|
+
activeExample: u,
|
|
25
26
|
activeEnvironment: S,
|
|
26
|
-
activeRequest:
|
|
27
|
-
activeWorkspace:
|
|
28
|
-
activeServer:
|
|
29
|
-
} =
|
|
27
|
+
activeRequest: c,
|
|
28
|
+
activeWorkspace: q,
|
|
29
|
+
activeServer: I
|
|
30
|
+
} = de(), { cookies: J, requestHistory: W, showSidebar: y, securitySchemes: j, events: s } = M, L = Re(), $ = m(), x = m(), d = m(/* @__PURE__ */ new Set()), b = m(null), h = X(
|
|
30
31
|
() => {
|
|
31
32
|
var e, t, o;
|
|
32
|
-
return ((e = l.value) != null && e.useCollectionSecurity ? (t = l.value) == null ? void 0 : t.selectedSecuritySchemeUids : (o =
|
|
33
|
+
return ((e = l.value) != null && e.useCollectionSecurity ? (t = l.value) == null ? void 0 : t.selectedSecuritySchemeUids : (o = c.value) == null ? void 0 : o.selectedSecuritySchemeUids) ?? [];
|
|
33
34
|
}
|
|
34
|
-
),
|
|
35
|
-
var
|
|
36
|
-
if (!
|
|
35
|
+
), g = async () => {
|
|
36
|
+
var _, w, O, V, i, A;
|
|
37
|
+
if (!c.value || !u.value || !l.value)
|
|
37
38
|
return;
|
|
38
|
-
|
|
39
|
-
const e = typeof S.value == "object" ? S.value.value : "{}", t =
|
|
39
|
+
d.value = fe(u.value);
|
|
40
|
+
const e = typeof S.value == "object" ? S.value.value : "{}", t = ae.parse(e);
|
|
40
41
|
t.error && console.error("INVALID ENVIRONMENT!");
|
|
41
|
-
const o = t.error || typeof t.data != "object" ? {} : t.data ?? {},
|
|
42
|
-
request:
|
|
43
|
-
example:
|
|
44
|
-
selectedSecuritySchemeUids:
|
|
45
|
-
proxyUrl: ((
|
|
42
|
+
const o = t.error || typeof t.data != "object" ? {} : t.data ?? {}, n = ((_ = q.value) == null ? void 0 : _.cookies.map((G) => J[G]).filter(se)) ?? [], F = ((O = (w = l.value) == null ? void 0 : w.info) == null ? void 0 : O.title) === "Drafts" ? void 0 : I.value, [E, C] = Se({
|
|
43
|
+
request: c.value,
|
|
44
|
+
example: u.value,
|
|
45
|
+
selectedSecuritySchemeUids: h.value,
|
|
46
|
+
proxyUrl: ((V = q.value) == null ? void 0 : V.proxyUrl) ?? "",
|
|
46
47
|
environment: o,
|
|
47
|
-
globalCookies:
|
|
48
|
-
status:
|
|
49
|
-
securitySchemes:
|
|
50
|
-
server:
|
|
51
|
-
pluginManager:
|
|
48
|
+
globalCookies: n,
|
|
49
|
+
status: s.requestStatus,
|
|
50
|
+
securitySchemes: j,
|
|
51
|
+
server: F,
|
|
52
|
+
pluginManager: L
|
|
52
53
|
});
|
|
53
|
-
if ((
|
|
54
|
-
|
|
54
|
+
if ((A = (i = z.value) == null ? void 0 : i.onRequestSent) == null || A.call(i, c.value.path ?? ""), E) {
|
|
55
|
+
v(E.message, "error");
|
|
55
56
|
return;
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
-
const [
|
|
59
|
-
|
|
60
|
-
},
|
|
58
|
+
x.value = C.controller;
|
|
59
|
+
const [N, U] = await C.sendRequest();
|
|
60
|
+
b.value = U, N ? v(N.message, "error") : W.push(Q(U));
|
|
61
|
+
}, H = async () => {
|
|
61
62
|
var e;
|
|
62
|
-
return (e =
|
|
63
|
+
return (e = x.value) == null ? void 0 : e.abort(qe.REQUEST_ABORTED);
|
|
63
64
|
};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
65
|
+
function k() {
|
|
66
|
+
f == null || f.capture("client-send-request");
|
|
67
|
+
}
|
|
68
|
+
Y(() => {
|
|
69
|
+
s.executeRequest.on(g), s.executeRequest.on(k), s.cancelRequest.on(H);
|
|
70
|
+
}), pe(), Z(() => {
|
|
71
|
+
s.executeRequest.off(g), s.executeRequest.off(k);
|
|
72
|
+
}), ee(
|
|
67
73
|
() => {
|
|
68
74
|
var e;
|
|
69
|
-
return (e =
|
|
75
|
+
return (e = u.value) == null ? void 0 : e.parameters;
|
|
70
76
|
},
|
|
71
77
|
() => {
|
|
72
|
-
|
|
78
|
+
d.value.clear();
|
|
73
79
|
},
|
|
74
80
|
{ deep: !0 }
|
|
75
81
|
);
|
|
76
|
-
const
|
|
82
|
+
const Q = (e) => {
|
|
77
83
|
var t;
|
|
78
84
|
try {
|
|
79
85
|
return structuredClone(e);
|
|
80
86
|
} catch {
|
|
81
|
-
const
|
|
82
|
-
return (t = e.response) != null && t.data && (e.response.data instanceof Blob || e.response.data instanceof ArrayBuffer ?
|
|
87
|
+
const n = { ...e };
|
|
88
|
+
return (t = e.response) != null && t.data && (e.response.data instanceof Blob || e.response.data instanceof ArrayBuffer ? n.response.data = e.response.data : n.response.data = JSON.parse(JSON.stringify(e.response.data))), n;
|
|
83
89
|
}
|
|
84
90
|
};
|
|
85
|
-
return (e, t) => (
|
|
91
|
+
return (e, t) => (p(), te("div", {
|
|
86
92
|
ref_key: "element",
|
|
87
|
-
ref:
|
|
88
|
-
class:
|
|
89
|
-
"!mr-0 !mb-0 !border-0": r(
|
|
93
|
+
ref: $,
|
|
94
|
+
class: B(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
|
|
95
|
+
"!mr-0 !mb-0 !border-0": r(R) === "modal"
|
|
90
96
|
}])
|
|
91
97
|
}, [
|
|
92
|
-
r(y) ? (
|
|
98
|
+
r(y) ? (p(), T(ce, {
|
|
93
99
|
key: 0,
|
|
94
|
-
modelValue: r(
|
|
95
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) =>
|
|
96
|
-
class:
|
|
97
|
-
{ hidden: r(
|
|
98
|
-
{ "xl:!flex": !r(
|
|
99
|
-
{ "!flex": r(
|
|
100
|
+
modelValue: r(a),
|
|
101
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => oe(a) ? a.value = o : null),
|
|
102
|
+
class: B(["absolute top-2 left-3 z-50", [
|
|
103
|
+
{ hidden: r(a) },
|
|
104
|
+
{ "xl:!flex": !r(a) },
|
|
105
|
+
{ "!flex": r(R) === "modal" }
|
|
100
106
|
]])
|
|
101
|
-
}, null, 8, ["modelValue", "class"])) :
|
|
102
|
-
|
|
103
|
-
r(y) ? (
|
|
107
|
+
}, null, 8, ["modelValue", "class"])) : P("", !0),
|
|
108
|
+
D("div", be, [
|
|
109
|
+
r(y) ? (p(), T(ve, {
|
|
104
110
|
key: 0,
|
|
105
111
|
onNewTab: t[1] || (t[1] = (o) => e.$emit("newTab", o))
|
|
106
|
-
})) :
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
invalidParams:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}, null, 8, ["invalidParams", "
|
|
112
|
+
})) : P("", !0),
|
|
113
|
+
D("div", he, [
|
|
114
|
+
re(r(le), {
|
|
115
|
+
invalidParams: d.value,
|
|
116
|
+
requestResult: b.value,
|
|
117
|
+
selectedSecuritySchemeUids: h.value
|
|
118
|
+
}, null, 8, ["invalidParams", "requestResult", "selectedSecuritySchemeUids"])
|
|
113
119
|
])
|
|
114
120
|
])
|
|
115
121
|
], 2));
|
|
116
122
|
}
|
|
117
123
|
});
|
|
118
124
|
export {
|
|
119
|
-
|
|
125
|
+
We as default
|
|
120
126
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteRequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"DeleteRequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAIrE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC5D,MAAM,EAAE;QAAE,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAC5D,CAAC;;;;;;;;AA6IF,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAwQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAwQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,EAAE,OAAO,CAAA;IACpB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA4gBF,wBAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AA0IA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAQjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AA0IA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAQjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAC;;AA6UF,wBAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AAiZA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AAiZA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAa1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA4gBF,wBAMG"}
|
|
@@ -15,6 +15,6 @@ type __VLS_Props = {
|
|
|
15
15
|
server: Server | undefined;
|
|
16
16
|
workspace: Workspace;
|
|
17
17
|
};
|
|
18
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
18
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
export default _default;
|
|
20
20
|
//# sourceMappingURL=RequestAuthDataTable.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AAiOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AAiOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAkPF,wBAMG"}
|
|
@@ -12,16 +12,12 @@ type __VLS_Props = {
|
|
|
12
12
|
envVariables: EnvVariable[];
|
|
13
13
|
workspace: Workspace;
|
|
14
14
|
};
|
|
15
|
-
declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
refs: {};
|
|
22
|
-
rootEl: any;
|
|
15
|
+
declare var __VLS_12: {}, __VLS_14: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
default?: (props: typeof __VLS_12) => any;
|
|
18
|
+
} & {
|
|
19
|
+
icon?: (props: typeof __VLS_14) => any;
|
|
23
20
|
};
|
|
24
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
21
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
22
|
selectVariable: (value: string) => any;
|
|
27
23
|
"update:modelValue": (v: string) => any;
|
|
@@ -33,12 +29,12 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
33
29
|
onInputFocus?: (() => any) | undefined;
|
|
34
30
|
onInputBlur?: (() => any) | undefined;
|
|
35
31
|
}>, {
|
|
36
|
-
required: boolean;
|
|
37
32
|
readOnly: boolean;
|
|
33
|
+
required: boolean;
|
|
38
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
-
declare const _default:
|
|
35
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
40
36
|
export default _default;
|
|
41
|
-
type
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
38
|
new (): {
|
|
43
39
|
$slots: S;
|
|
44
40
|
};
|
package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAiGJ,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB7C,QAAA,MAAM,eAAe;;;;;;;;;;;cAjIN,OAAO;cAFP,OAAO;6EA2IpB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AAyTA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAOrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AAyTA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAOrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAsiBF,wBAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAsoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAarE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAsoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAarE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA88BJ,wBAMG"}
|
|
@@ -9,6 +9,6 @@ type __VLS_Props = {
|
|
|
9
9
|
workspace: Workspace;
|
|
10
10
|
environment: EnvVariables;
|
|
11
11
|
};
|
|
12
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
12
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
export default _default;
|
|
14
14
|
//# sourceMappingURL=RequestCodeExample.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"AAgSA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EAEd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAOrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAItD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,YAAY,CAAA;CAC1B,CAAC;;AAoYF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestCodeExample.vue2.js";
|
|
2
2
|
import "./RequestCodeExample.vue3.js";
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-73c4a2cf"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, computed as
|
|
1
|
+
import { defineComponent as H, computed as c, ref as U, createElementBlock as j, openBlock as y, createVNode as s, withCtx as i, createElementVNode as x, createBlock as C, unref as u, toDisplayString as D, createTextVNode as N } from "vue";
|
|
2
2
|
import { ScalarCodeBlock as T, ScalarCombobox as W, ScalarButton as z, ScalarIcon as I } from "@scalar/components";
|
|
3
3
|
import { snippetz as O } from "@scalar/snippetz";
|
|
4
4
|
import R from "../../../components/DataTable/DataTable.vue.js";
|
|
@@ -18,35 +18,35 @@ const F = { class: "w-full" }, G = { class: "flex flex-1" }, J = { class: "bg-b-
|
|
|
18
18
|
},
|
|
19
19
|
setup(o) {
|
|
20
20
|
var K, b, h, S;
|
|
21
|
-
const { securitySchemes: k, workspaceMutators: w } = A(), f =
|
|
22
|
-
var
|
|
23
|
-
return
|
|
24
|
-
(n) => n.lang ===
|
|
25
|
-
)) ?
|
|
26
|
-
targetKey: ((
|
|
21
|
+
const { securitySchemes: k, workspaceMutators: w } = A(), f = c(() => {
|
|
22
|
+
var e, t, l;
|
|
23
|
+
return m.value.targetKey === "custom" && ((e = d.value) == null ? void 0 : e.some(
|
|
24
|
+
(n) => n.lang === m.value.clientKey
|
|
25
|
+
)) ? m.value : {
|
|
26
|
+
targetKey: ((t = o.workspace.selectedHttpClient) == null ? void 0 : t.targetKey) ?? "js",
|
|
27
27
|
clientKey: ((l = o.workspace.selectedHttpClient) == null ? void 0 : l.clientKey) ?? "fetch"
|
|
28
28
|
};
|
|
29
|
-
}),
|
|
29
|
+
}), d = c(
|
|
30
30
|
() => o.operation["x-codeSamples"] || o.operation["x-code-samples"] || o.operation["x-custom-examples"]
|
|
31
|
-
),
|
|
32
|
-
(K =
|
|
31
|
+
), m = U(
|
|
32
|
+
(K = d.value) != null && K.length ? {
|
|
33
33
|
targetKey: "custom",
|
|
34
|
-
clientKey: (b =
|
|
34
|
+
clientKey: (b = d.value[0]) == null ? void 0 : b.lang
|
|
35
35
|
} : {
|
|
36
36
|
targetKey: ((h = o.workspace.selectedHttpClient) == null ? void 0 : h.targetKey) ?? "js",
|
|
37
37
|
clientKey: ((S = o.workspace.selectedHttpClient) == null ? void 0 : S.clientKey) ?? "fetch"
|
|
38
38
|
}
|
|
39
|
-
), $ =
|
|
40
|
-
const
|
|
39
|
+
), $ = c(() => (o.operation.selectedSecuritySchemeUids || o.collection.selectedSecuritySchemeUids || []).flat().map((t) => k[t]).filter((t) => !!t)), v = c(() => {
|
|
40
|
+
const e = {}, t = O().clients().map((n) => ({
|
|
41
41
|
label: n.title,
|
|
42
|
-
options: n.clients.map((p) => (
|
|
42
|
+
options: n.clients.map((p) => (e[`${n.key},${p.client}`] = p.title, {
|
|
43
43
|
id: `${n.key},${p.client}`,
|
|
44
44
|
label: p.title
|
|
45
45
|
}))
|
|
46
46
|
})), l = (o.operation["x-codeSamples"] || o.operation["x-code-samples"] || o.operation["x-custom-examples"] || []).map((n) => ({
|
|
47
47
|
id: `custom,${n.lang}`,
|
|
48
48
|
label: n.label || n.lang
|
|
49
|
-
})),
|
|
49
|
+
})), a = l.length > 0 ? [
|
|
50
50
|
{
|
|
51
51
|
id: "customExamples",
|
|
52
52
|
label: "Code Examples",
|
|
@@ -55,75 +55,77 @@ const F = { class: "w-full" }, G = { class: "flex flex-1" }, J = { class: "bg-b-
|
|
|
55
55
|
label: n.label ?? n.id
|
|
56
56
|
}))
|
|
57
57
|
},
|
|
58
|
-
...
|
|
59
|
-
] :
|
|
58
|
+
...t
|
|
59
|
+
] : t;
|
|
60
60
|
return l.forEach((n) => {
|
|
61
|
-
|
|
61
|
+
e[n.id] = n.label ?? n.id;
|
|
62
62
|
}), {
|
|
63
|
-
options:
|
|
64
|
-
dict:
|
|
63
|
+
options: a,
|
|
64
|
+
dict: e
|
|
65
65
|
};
|
|
66
|
-
}),
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
69
|
-
const l = `custom,${
|
|
66
|
+
}), r = c(() => {
|
|
67
|
+
const e = f.value;
|
|
68
|
+
if (e.targetKey === "custom") {
|
|
69
|
+
const l = `custom,${e.clientKey}`;
|
|
70
70
|
return {
|
|
71
71
|
id: l,
|
|
72
72
|
label: v.value.dict[l] ?? "Unknown"
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const t = `${e.targetKey},${e.clientKey}`;
|
|
76
76
|
return {
|
|
77
|
-
id:
|
|
78
|
-
label: v.value.dict[
|
|
77
|
+
id: t,
|
|
78
|
+
label: v.value.dict[t] ?? "Unknown"
|
|
79
79
|
};
|
|
80
|
-
}), E =
|
|
80
|
+
}), E = c(
|
|
81
81
|
() => f.value.targetKey
|
|
82
|
-
), B =
|
|
82
|
+
), B = c(
|
|
83
83
|
() => f.value.clientKey
|
|
84
|
-
), V = (
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
), V = (e) => {
|
|
85
|
+
if (!e)
|
|
86
|
+
return;
|
|
87
|
+
const { id: t } = e, [l, a] = t.split(",");
|
|
88
|
+
!l || !a || (m.value = {
|
|
89
|
+
targetKey: l,
|
|
90
|
+
clientKey: a
|
|
91
|
+
}, l !== "custom" && w.edit(o.workspace.uid, "selectedHttpClient", {
|
|
92
|
+
targetKey: l,
|
|
93
|
+
clientKey: a
|
|
92
94
|
}));
|
|
93
|
-
}, g =
|
|
95
|
+
}, g = c(() => {
|
|
94
96
|
var l;
|
|
95
|
-
if (!
|
|
97
|
+
if (!r.value.id.startsWith("custom,"))
|
|
96
98
|
return;
|
|
97
|
-
const
|
|
98
|
-
return
|
|
99
|
+
const e = r.value.id.split(",")[1], t = (l = d.value) == null ? void 0 : l.find((a) => a.lang === e);
|
|
100
|
+
return t == null ? void 0 : t.source;
|
|
99
101
|
});
|
|
100
|
-
return (
|
|
101
|
-
|
|
102
|
+
return (e, t) => (y(), j("div", F, [
|
|
103
|
+
s(M, {
|
|
102
104
|
class: "group/preview w-full border-b-0",
|
|
103
105
|
defaultOpen: !1
|
|
104
106
|
}, {
|
|
105
|
-
title:
|
|
107
|
+
title: i(() => t[0] || (t[0] = [
|
|
106
108
|
N("Code Snippet")
|
|
107
109
|
])),
|
|
108
|
-
actions:
|
|
110
|
+
actions: i(() => [
|
|
109
111
|
x("div", G, [
|
|
110
|
-
|
|
111
|
-
modelValue:
|
|
112
|
+
s(u(W), {
|
|
113
|
+
modelValue: r.value,
|
|
112
114
|
options: v.value.options,
|
|
113
115
|
placement: "bottom-end",
|
|
114
116
|
"onUpdate:modelValue": V
|
|
115
117
|
}, {
|
|
116
|
-
default:
|
|
117
|
-
|
|
118
|
+
default: i(() => [
|
|
119
|
+
s(u(z), {
|
|
118
120
|
class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-1.25 py-0.75 font-normal",
|
|
119
121
|
fullWidth: "",
|
|
120
122
|
variant: "ghost"
|
|
121
123
|
}, {
|
|
122
|
-
default:
|
|
124
|
+
default: i(() => {
|
|
123
125
|
var l;
|
|
124
126
|
return [
|
|
125
|
-
x("span", null, D((l =
|
|
126
|
-
|
|
127
|
+
x("span", null, D((l = r.value) == null ? void 0 : l.label), 1),
|
|
128
|
+
s(u(I), {
|
|
127
129
|
icon: "ChevronDown",
|
|
128
130
|
size: "md"
|
|
129
131
|
})
|
|
@@ -136,28 +138,28 @@ const F = { class: "w-full" }, G = { class: "flex flex-1" }, J = { class: "bg-b-
|
|
|
136
138
|
}, 8, ["modelValue", "options"])
|
|
137
139
|
])
|
|
138
140
|
]),
|
|
139
|
-
default:
|
|
140
|
-
|
|
141
|
+
default: i(() => [
|
|
142
|
+
s(R, {
|
|
141
143
|
columns: [""],
|
|
142
144
|
presentational: ""
|
|
143
145
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
146
|
-
default:
|
|
146
|
+
default: i(() => [
|
|
147
|
+
s(q, null, {
|
|
148
|
+
default: i(() => [
|
|
147
149
|
x("div", J, [
|
|
148
|
-
g.value ? (y(), C(
|
|
150
|
+
g.value ? (y(), C(u(T), {
|
|
149
151
|
key: 0,
|
|
150
152
|
content: g.value,
|
|
151
|
-
lang:
|
|
152
|
-
}, null, 8, ["content", "lang"])) : (y(), C(
|
|
153
|
+
lang: r.value.id.split(",")[1] ?? "plaintext"
|
|
154
|
+
}, null, 8, ["content", "lang"])) : (y(), C(u(P), {
|
|
153
155
|
key: 1,
|
|
154
156
|
client: B.value,
|
|
155
|
-
example:
|
|
156
|
-
operation:
|
|
157
|
+
example: e.example,
|
|
158
|
+
operation: e.operation,
|
|
157
159
|
securitySchemes: $.value,
|
|
158
|
-
server:
|
|
160
|
+
server: e.server,
|
|
159
161
|
target: E.value,
|
|
160
|
-
environment:
|
|
162
|
+
environment: e.environment
|
|
161
163
|
}, null, 8, ["client", "example", "operation", "securitySchemes", "server", "target", "environment"]))
|
|
162
164
|
])
|
|
163
165
|
]),
|