@scalar/api-client 2.2.50 → 2.2.52
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 +57 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +30 -30
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +22 -22
- package/dist/components/CodeInput/CodeInput.vue.d.ts +4 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +38 -38
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +13 -13
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +143 -114
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +59 -51
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +85 -82
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +11 -11
- package/dist/components/DataTable/DataTableCheckbox.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue.d.ts +175 -6
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +57 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
- package/dist/components/DataTable/DataTableText.vue.js +1 -1
- package/dist/components/EmptyState.vue.js +1 -1
- package/dist/components/EmptyState.vue2.js +4 -4
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +13 -13
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +56 -36
- package/dist/components/Form/LabelInput.vue.d.ts +14 -0
- package/dist/components/Form/LabelInput.vue.d.ts.map +1 -0
- package/dist/components/Form/LabelInput.vue.js +7 -0
- package/dist/components/Form/LabelInput.vue2.js +42 -0
- package/dist/components/HelpfulLink.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -3
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +1 -1
- package/dist/components/IconSelector.vue.js +3 -3
- package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +8 -8
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -1
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -15
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +2 -2
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.js +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +13 -13
- package/dist/components/ScalarAsciiArt.vue.js +3 -3
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +5 -13
- package/dist/components/Server/ServerDropdown.vue.d.ts +0 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +40 -57
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +0 -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 +19 -20
- package/dist/components/Server/ServerSelector.vue.d.ts +12 -0
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -0
- package/dist/components/Server/ServerSelector.vue.js +85 -0
- package/dist/components/Server/ServerSelector.vue2.js +4 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +1 -1
- package/dist/components/Server/index.d.ts +1 -0
- package/dist/components/Server/index.d.ts.map +1 -1
- package/dist/components/Server/index.js +6 -4
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue.js +2 -2
- package/dist/components/SideNav/DownloadAppButton.vue2.js +6 -6
- package/dist/components/SideNav/SideHelp.vue.js +12 -12
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +73 -58
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +3 -3
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +2 -2
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.js +17 -28
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +12 -12
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +4 -4
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +3 -3
- package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -4
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +6 -6
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +36 -46
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +7 -7
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +1 -8
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +20 -21
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +104 -85
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +16 -10
- package/dist/components/ViewLayout/ViewLayout.vue2.js +4 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +29 -29
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +20 -13
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +4 -0
- package/dist/constants.d.ts +16 -12
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +35 -6
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +5 -7
- package/dist/hooks/useFileDialog.d.ts +1 -1
- package/dist/hooks/useFileDialog.d.ts.map +1 -1
- package/dist/hooks/useFileDialog.js +1 -6
- package/dist/hooks/useResponseBody.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.js +3 -9
- package/dist/hooks/useSidebar.d.ts +19 -2
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +25 -9
- package/dist/hooks/useSidebar.test.d.ts +2 -0
- package/dist/hooks/useSidebar.test.d.ts.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +41 -35
- package/dist/layouts/App/MainLayout.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +207 -255
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +8 -8
- package/dist/layouts/Modal/create-api-client-modal.d.ts +414 -510
- 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/ApiClientWeb.vue.js +35 -29
- package/dist/layouts/Web/create-api-client-web.d.ts +207 -255
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +200 -248
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +79 -63
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.js +1 -3
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -1
- package/dist/libs/importers/curl.d.ts.map +1 -1
- package/dist/libs/importers/curl.js +2 -12
- package/dist/libs/isUrl.d.ts.map +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +1 -9
- package/dist/libs/normalize-headers.d.ts.map +1 -1
- package/dist/libs/normalize-headers.js +2 -6
- package/dist/libs/parse-curl.d.ts.map +1 -1
- package/dist/libs/parse-curl.js +1 -5
- package/dist/libs/postman.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.js +1 -2
- package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +6 -12
- package/dist/libs/send-request/create-request-operation.test.d.ts +0 -3
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/string-template.d.ts.map +1 -1
- package/dist/libs/string-template.js +1 -4
- package/dist/router.d.ts.map +1 -1
- package/dist/routes.d.ts +62 -14
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +93 -75
- package/dist/store/active-entities.d.ts +32 -32
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +43 -39
- package/dist/store/collections.d.ts +164 -164
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/cookies.d.ts.map +1 -1
- package/dist/store/cookies.js +1 -5
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/request-example.d.ts +2 -2
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +8 -8
- package/dist/store/store-context.d.ts.map +1 -1
- package/dist/store/store.d.ts +200 -248
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/tailwind/desktop-variants.d.ts.map +1 -1
- package/dist/types/vue.d.ts.map +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Collection/Collection.vue.js +4 -0
- package/dist/views/Collection/Collection.vue2.js +50 -0
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionAuthentication.vue.js +4 -0
- package/dist/views/Collection/CollectionAuthentication.vue2.js +16 -0
- package/dist/views/Collection/CollectionCookies.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionCookies.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionCookies.vue.js +4 -0
- package/dist/views/Collection/CollectionCookies.vue2.js +16 -0
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionEnvironment.vue.js +4 -0
- package/dist/views/Collection/CollectionEnvironment.vue2.js +16 -0
- package/dist/views/{Servers/Servers.vue.d.ts → Collection/CollectionInfoForm.vue.d.ts} +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionInfoForm.vue.js +7 -0
- package/dist/views/Collection/CollectionInfoForm.vue2.js +70 -0
- package/dist/views/Collection/CollectionNavigation.vue.d.ts +6 -0
- package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionNavigation.vue.js +142 -0
- package/dist/views/Collection/CollectionNavigation.vue2.js +4 -0
- package/dist/views/Collection/CollectionOverview.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionOverview.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionOverview.vue.js +4 -0
- package/dist/views/Collection/CollectionOverview.vue2.js +37 -0
- package/dist/views/Collection/CollectionScripts.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionScripts.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionScripts.vue.js +4 -0
- package/dist/views/Collection/CollectionScripts.vue2.js +16 -0
- package/dist/views/Collection/CollectionServerForm.vue.d.ts +10 -0
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionServerForm.vue.js +74 -0
- package/dist/views/Collection/CollectionServerForm.vue2.js +4 -0
- package/dist/views/{Servers/ServerForm.vue.d.ts → Collection/CollectionServers.vue.d.ts} +1 -1
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionServers.vue.js +4 -0
- package/dist/views/Collection/CollectionServers.vue2.js +124 -0
- package/dist/views/Collection/CollectionSettings.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionSettings.vue.js +7 -0
- package/dist/views/Collection/CollectionSettings.vue2.js +124 -0
- package/dist/views/Collection/CollectionSync.vue.d.ts +3 -0
- package/dist/views/Collection/CollectionSync.vue.d.ts.map +1 -0
- package/dist/views/Collection/CollectionSync.vue.js +4 -0
- package/dist/views/Collection/CollectionSync.vue2.js +16 -0
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +16 -0
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -0
- package/dist/views/Collection/components/MarkdownInput.vue.js +7 -0
- package/dist/views/Collection/components/MarkdownInput.vue2.js +95 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +7 -7
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +1 -3
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +1 -5
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +1 -5
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +18 -23
- package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieModal.vue.js +1 -1
- package/dist/views/Cookies/CookieModal.vue2.js +7 -7
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +96 -78
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +125 -112
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.js +5 -5
- package/dist/views/Environment/EnvironmentColors.vue.js +8 -8
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +16 -16
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +117 -170
- package/dist/views/Request/RequestRoot.vue.d.ts +13 -0
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestRoot.vue.js +7 -0
- package/dist/views/Request/RequestRoot.vue2.js +78 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +9 -9
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +104 -89
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +59 -65
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +22 -23
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +14 -14
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +6 -6
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +38 -38
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +34 -33
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +5 -5
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +2 -6
- package/dist/views/Request/RequestSidebar.vue.d.ts +3 -10
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +186 -188
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +290 -173
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -13
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -4
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +51 -51
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +12 -12
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +20 -20
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +25 -26
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +7 -7
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +12 -37
- package/dist/views/Request/libs/request.d.ts +4 -0
- package/dist/views/Request/libs/request.d.ts.map +1 -1
- package/dist/views/Request/libs/request.js +2 -1
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +63 -63
- package/dist/views/Request/types/sidebar-item.d.ts +1 -1
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +8 -8
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +9 -11
- package/dist/views/Settings/components/SettingsAppearance.vue.js +6 -6
- package/dist/vitest.setup.d.ts +16 -0
- package/dist/vitest.setup.d.ts.map +1 -0
- package/package.json +16 -21
- package/dist/views/Servers/ServerForm.vue.d.ts.map +0 -1
- package/dist/views/Servers/ServerForm.vue.js +0 -39
- package/dist/views/Servers/ServerForm.vue2.js +0 -4
- package/dist/views/Servers/Servers.vue.d.ts.map +0 -1
- package/dist/views/Servers/Servers.vue.js +0 -4
- package/dist/views/Servers/Servers.vue2.js +0 -168
- package/dist/views/Servers/index.d.ts +0 -2
- package/dist/views/Servers/index.d.ts.map +0 -1
- package/dist/views/Servers/index.js +0 -4
|
@@ -1,276 +1,274 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ve, useId as he, reactive as be, ref as ge, watch as K, onMounted as Se, onBeforeUnmount as ke, computed as N, openBlock as r, createElementBlock as S, Fragment as q, withDirectives as B, createVNode as m, unref as e, normalizeClass as f, createSlots as Re, withCtx as d, createElementVNode as n, createBlock as u, createCommentVNode as p, isRef as xe, withKeys as D, withModifiers as v, vShow as L, renderList as H, createTextVNode as M, toDisplayString as ye, nextTick as we } from "vue";
|
|
2
2
|
import { ScalarIcon as $, ScalarSearchInput as Ie, ScalarSearchResultList as Ce, ScalarSearchResultItem as qe, ScalarButton as De } from "@scalar/components";
|
|
3
|
-
import { LibraryIcon as
|
|
3
|
+
import { LibraryIcon as Me } from "@scalar/icons";
|
|
4
4
|
import { useToasts as $e } from "@scalar/use-toasts";
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
5
|
+
import { useRouter as Pe } from "vue-router";
|
|
6
|
+
import Te from "../../assets/rabbit.ascii.js";
|
|
7
|
+
import _e from "../../assets/rabbitjump.ascii.js";
|
|
8
|
+
import Ee from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
9
|
+
import Ve from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
10
10
|
import G from "../../components/ScalarAsciiArt.vue.js";
|
|
11
|
-
import { useSearch as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import Ne from "
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import He from "
|
|
22
|
-
import Ge from "./
|
|
23
|
-
import
|
|
11
|
+
import { useSearch as Oe } from "../../components/Search/useSearch.js";
|
|
12
|
+
import We from "../../components/Sidebar/SidebarButton.vue.js";
|
|
13
|
+
import ze from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
14
|
+
import { useLayout as Ae } from "../../hooks/useLayout.js";
|
|
15
|
+
import { useSidebar as Fe } from "../../hooks/useSidebar.js";
|
|
16
|
+
import { PathId as U } from "../../routes.js";
|
|
17
|
+
import { useActiveEntities as Ke } from "../../store/active-entities.js";
|
|
18
|
+
import { createInitialRequest as Ne } from "../../store/requests.js";
|
|
19
|
+
import { dragHandlerFactory as Be } from "./handle-drag.js";
|
|
20
|
+
import Le from "./RequestSidebarItemMenu.vue.js";
|
|
21
|
+
import { isGettingStarted as He } from "./RequestSection/helpers/getting-started.js";
|
|
22
|
+
import Ge from "./RequestSidebarItem.vue.js";
|
|
23
|
+
import Ue from "../../components/Sidebar/Sidebar.vue.js";
|
|
24
|
+
import je from "./components/WorkspaceDropdown.vue.js";
|
|
24
25
|
import { useWorkspace as Je } from "../../store/store.js";
|
|
25
|
-
|
|
26
|
-
const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye = {
|
|
26
|
+
const Qe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Xe = {
|
|
27
27
|
key: 1,
|
|
28
28
|
class: "text-c-3"
|
|
29
|
-
},
|
|
29
|
+
}, Ye = {
|
|
30
30
|
class: "search-button-fade sticky top-12 z-10 px-3 py-2.5 pt-0 focus-within:z-20",
|
|
31
31
|
role: "search"
|
|
32
|
-
},
|
|
32
|
+
}, Ze = {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: "contents"
|
|
35
|
-
}, et = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, tt = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" },
|
|
35
|
+
}, et = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, tt = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, Dt = /* @__PURE__ */ ve({
|
|
36
36
|
__name: "RequestSidebar",
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
37
|
+
emits: ["newTab", "clearDrafts"],
|
|
38
|
+
setup(ot, { emit: j }) {
|
|
39
|
+
const J = j, {
|
|
40
|
+
collapsedSidebarFolders: Q,
|
|
41
|
+
isSidebarOpen: P,
|
|
42
|
+
setCollapsedSidebarFolder: X,
|
|
43
|
+
toggleSidebarOpen: Y
|
|
44
|
+
} = Fe(), { layout: i } = Ae(), T = Je(), {
|
|
45
|
+
activeWorkspaceCollections: c,
|
|
46
|
+
activeRequest: Z,
|
|
47
|
+
activeWorkspaceRequests: _,
|
|
48
|
+
activeWorkspace: ee
|
|
49
|
+
} = Ke(), { findRequestParents: te, events: k, requestMutators: E, requests: x } = T, { handleDragEnd: oe, isDroppable: se } = Be(
|
|
50
|
+
ee,
|
|
51
|
+
T
|
|
52
|
+
), { replace: V } = Pe(), ae = () => {
|
|
51
53
|
k.commandPalette.emit({
|
|
52
54
|
commandName: "Import from OpenAPI/Swagger/Postman"
|
|
53
55
|
});
|
|
54
|
-
},
|
|
56
|
+
}, O = he(), { toast: re } = $e(), h = be({ open: !1 }), b = ge(!1);
|
|
55
57
|
K(
|
|
56
|
-
|
|
58
|
+
Z,
|
|
57
59
|
(s) => {
|
|
58
|
-
s &&
|
|
59
|
-
(
|
|
60
|
+
s && te(s).forEach(
|
|
61
|
+
(t) => X(t, !0)
|
|
60
62
|
);
|
|
61
63
|
},
|
|
62
64
|
{ immediate: !0 }
|
|
63
65
|
);
|
|
64
66
|
const {
|
|
65
|
-
searchText:
|
|
66
|
-
searchResultsWithPlaceholderResults:
|
|
67
|
-
selectedSearchResult:
|
|
68
|
-
onSearchResultClick:
|
|
67
|
+
searchText: g,
|
|
68
|
+
searchResultsWithPlaceholderResults: y,
|
|
69
|
+
selectedSearchResult: w,
|
|
70
|
+
onSearchResultClick: le,
|
|
69
71
|
fuseSearch: ne,
|
|
70
72
|
searchInputRef: I,
|
|
71
|
-
searchResultRefs:
|
|
72
|
-
navigateSearchResults:
|
|
73
|
-
selectSearchResult:
|
|
74
|
-
} =
|
|
75
|
-
var
|
|
76
|
-
s && (s.toggleSidebar &&
|
|
73
|
+
searchResultRefs: ie,
|
|
74
|
+
navigateSearchResults: W,
|
|
75
|
+
selectSearchResult: ue
|
|
76
|
+
} = Oe(), z = (s) => {
|
|
77
|
+
var t;
|
|
78
|
+
s && (s.toggleSidebar && Y(), s.focusRequestSearch && ((t = I.value) == null || t.focus()));
|
|
77
79
|
};
|
|
78
|
-
|
|
79
|
-
k.hotKeys.off(
|
|
80
|
+
Se(() => k.hotKeys.on(z)), ke(() => {
|
|
81
|
+
k.hotKeys.off(z);
|
|
80
82
|
});
|
|
81
|
-
const
|
|
83
|
+
const ce = (s) => {
|
|
82
84
|
if (s != null && s.documentUrl) {
|
|
83
85
|
s.watchMode = !s.watchMode;
|
|
84
|
-
const
|
|
85
|
-
(
|
|
86
|
+
const t = c.value.find(
|
|
87
|
+
(o) => o.uid === s.entity.uid
|
|
86
88
|
);
|
|
87
|
-
|
|
89
|
+
t && (t.watchMode = s.watchMode);
|
|
88
90
|
}
|
|
89
91
|
};
|
|
90
92
|
K(
|
|
91
|
-
() =>
|
|
93
|
+
() => c.value.map(
|
|
92
94
|
(s) => s.watchMode
|
|
93
95
|
),
|
|
94
|
-
(s,
|
|
95
|
-
s.forEach((
|
|
96
|
-
var
|
|
97
|
-
if (
|
|
98
|
-
const F =
|
|
96
|
+
(s, t) => {
|
|
97
|
+
s.forEach((o, a) => {
|
|
98
|
+
var l, R, A;
|
|
99
|
+
if (i !== "modal" && o !== t[a] && ((R = (l = c.value[a]) == null ? void 0 : l.info) == null ? void 0 : R.title) !== "Drafts" && c.value[a]) {
|
|
100
|
+
const F = c.value[a];
|
|
99
101
|
if (!F) return;
|
|
100
|
-
const
|
|
101
|
-
re(
|
|
102
|
+
const pe = `${(A = F.info) == null ? void 0 : A.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
|
|
103
|
+
re(pe, "info");
|
|
102
104
|
}
|
|
103
105
|
});
|
|
104
106
|
}
|
|
105
107
|
);
|
|
106
|
-
const
|
|
107
|
-
var
|
|
108
|
-
const s =
|
|
109
|
-
return (
|
|
110
|
-
}),
|
|
111
|
-
const s =
|
|
112
|
-
(
|
|
108
|
+
const de = N(() => {
|
|
109
|
+
var t;
|
|
110
|
+
const s = y.value[w.value];
|
|
111
|
+
return (t = s == null ? void 0 : s.item) != null && t.id ? `#search-input-${s.item.id}` : void 0;
|
|
112
|
+
}), me = () => {
|
|
113
|
+
const s = c.value.find(
|
|
114
|
+
(o) => {
|
|
113
115
|
var a;
|
|
114
|
-
return ((a =
|
|
116
|
+
return ((a = o.info) == null ? void 0 : a.title) === "Drafts";
|
|
115
117
|
}
|
|
116
118
|
);
|
|
117
|
-
if (s && s.requests.forEach((
|
|
118
|
-
|
|
119
|
-
}),
|
|
120
|
-
const
|
|
121
|
-
a &&
|
|
119
|
+
if (s && s.requests.forEach((o) => {
|
|
120
|
+
x[o] && E.delete(x[o], s.uid);
|
|
121
|
+
}), _.value.length) {
|
|
122
|
+
const o = c.value[0], a = o == null ? void 0 : o.requests[0];
|
|
123
|
+
a && V({
|
|
122
124
|
name: "request",
|
|
123
125
|
params: {
|
|
124
|
-
[
|
|
126
|
+
[U.Request]: a
|
|
125
127
|
}
|
|
126
128
|
});
|
|
127
129
|
} else {
|
|
128
|
-
const { request:
|
|
129
|
-
s && (
|
|
130
|
+
const { request: o } = Ne();
|
|
131
|
+
s && (E.add(o, s.uid), V({
|
|
130
132
|
name: "request",
|
|
131
133
|
params: {
|
|
132
|
-
[
|
|
134
|
+
[U.Request]: o.uid
|
|
133
135
|
}
|
|
134
136
|
}));
|
|
135
137
|
}
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
+
}, fe = () => {
|
|
139
|
+
b.value || (g.value = ""), b.value && we(() => {
|
|
138
140
|
var s;
|
|
139
141
|
(s = I.value) == null || s.focus();
|
|
140
|
-
}),
|
|
142
|
+
}), b.value = !b.value;
|
|
141
143
|
}, C = N(
|
|
142
|
-
() =>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
() => He(
|
|
145
|
+
c.value,
|
|
146
|
+
_.value,
|
|
147
|
+
x
|
|
146
148
|
)
|
|
147
149
|
);
|
|
148
|
-
return (s,
|
|
149
|
-
|
|
150
|
-
class:
|
|
151
|
-
isSidebarOpen: s.isSidebarOpen,
|
|
152
|
-
"onUpdate:isSidebarOpen": e[9] || (e[9] = (t) => s.$emit("update:isSidebarOpen", t))
|
|
150
|
+
return (s, t) => (r(), S(q, null, [
|
|
151
|
+
B(m(e(Ue), {
|
|
152
|
+
class: f([e(P) ? "sidebar-active-width" : ""])
|
|
153
153
|
}, Re({
|
|
154
|
-
content:
|
|
155
|
-
n("div",
|
|
156
|
-
|
|
157
|
-
class:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
o(l) !== "modal" ? (r(), g("span", Ye, " / ")) : f("", !0),
|
|
163
|
-
o(l) !== "modal" ? (r(), d(Te, { key: 2 })) : f("", !0),
|
|
154
|
+
content: d(() => [
|
|
155
|
+
n("div", Qe, [
|
|
156
|
+
m(ze, {
|
|
157
|
+
class: f(["xl:hidden", [{ "!flex": e(i) === "modal" }]])
|
|
158
|
+
}, null, 8, ["class"]),
|
|
159
|
+
e(i) !== "modal" ? (r(), u(e(je), { key: 0 })) : p("", !0),
|
|
160
|
+
e(i) !== "modal" ? (r(), S("span", Xe, " / ")) : p("", !0),
|
|
161
|
+
e(i) !== "modal" ? (r(), u(Ee, { key: 2 })) : p("", !0),
|
|
164
162
|
n("button", {
|
|
165
163
|
class: "ml-auto",
|
|
166
164
|
type: "button",
|
|
167
|
-
onClick:
|
|
165
|
+
onClick: fe
|
|
168
166
|
}, [
|
|
169
|
-
|
|
167
|
+
m(e($), {
|
|
170
168
|
class: "text-c-3 hover:bg-b-2 p-1.75 max-h-8 max-w-8 rounded-lg text-sm",
|
|
171
169
|
icon: "Search"
|
|
172
170
|
})
|
|
173
171
|
])
|
|
174
172
|
]),
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
B(n("div", Ye, [
|
|
174
|
+
m(e(Ie), {
|
|
177
175
|
ref_key: "searchInputRef",
|
|
178
176
|
ref: I,
|
|
179
|
-
modelValue:
|
|
180
|
-
"onUpdate:modelValue":
|
|
181
|
-
"aria-activedescendant":
|
|
182
|
-
"aria-controls":
|
|
177
|
+
modelValue: e(g),
|
|
178
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => xe(g) ? g.value = o : null),
|
|
179
|
+
"aria-activedescendant": de.value,
|
|
180
|
+
"aria-controls": e(O),
|
|
183
181
|
sidebar: "",
|
|
184
|
-
onInput:
|
|
182
|
+
onInput: e(ne),
|
|
185
183
|
onKeydown: [
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
184
|
+
t[1] || (t[1] = D(v((o) => e(W)("down"), ["stop"]), ["down"])),
|
|
185
|
+
t[2] || (t[2] = D(v((o) => e(ue)(), ["stop"]), ["enter"])),
|
|
186
|
+
t[3] || (t[3] = D(v((o) => e(W)("up"), ["stop"]), ["up"]))
|
|
189
187
|
]
|
|
190
188
|
}, null, 8, ["modelValue", "aria-activedescendant", "aria-controls", "onInput"])
|
|
191
189
|
], 512), [
|
|
192
|
-
[
|
|
190
|
+
[L, b.value]
|
|
193
191
|
]),
|
|
194
192
|
n("div", {
|
|
195
|
-
class:
|
|
193
|
+
class: f(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pb-3 pt-0", [
|
|
196
194
|
{
|
|
197
|
-
"pb-14":
|
|
195
|
+
"pb-14": e(i) !== "modal"
|
|
198
196
|
},
|
|
199
197
|
{
|
|
200
198
|
"h-[calc(100%-273.5px)]": C.value
|
|
201
199
|
}
|
|
202
200
|
]]),
|
|
203
|
-
onDragenter:
|
|
201
|
+
onDragenter: t[6] || (t[6] = v(() => {
|
|
204
202
|
}, ["prevent"])),
|
|
205
|
-
onDragover:
|
|
203
|
+
onDragover: t[7] || (t[7] = v(() => {
|
|
206
204
|
}, ["prevent"]))
|
|
207
205
|
}, [
|
|
208
|
-
|
|
206
|
+
e(g) ? (r(), u(e(Ce), {
|
|
209
207
|
key: 0,
|
|
210
|
-
id:
|
|
208
|
+
id: e(O),
|
|
211
209
|
"aria-label": "Search Results",
|
|
212
210
|
class: "gap-px",
|
|
213
|
-
noResults: !
|
|
211
|
+
noResults: !e(y).length
|
|
214
212
|
}, {
|
|
215
|
-
default:
|
|
216
|
-
(r(!0),
|
|
217
|
-
id: `#search-input-${
|
|
218
|
-
key:
|
|
213
|
+
default: d(() => [
|
|
214
|
+
(r(!0), S(q, null, H(e(y), (o, a) => (r(), u(e(qe), {
|
|
215
|
+
id: `#search-input-${o.item.id}`,
|
|
216
|
+
key: o.refIndex,
|
|
219
217
|
ref_for: !0,
|
|
220
|
-
ref: (
|
|
221
|
-
active:
|
|
218
|
+
ref: (l) => e(ie)[a] = l,
|
|
219
|
+
active: e(w) === a,
|
|
222
220
|
class: "px-2",
|
|
223
|
-
href:
|
|
224
|
-
onClick:
|
|
225
|
-
onFocus: (
|
|
221
|
+
href: o.item.link,
|
|
222
|
+
onClick: v((l) => e(le)(o), ["prevent"]),
|
|
223
|
+
onFocus: (l) => w.value = a
|
|
226
224
|
}, {
|
|
227
|
-
addon:
|
|
228
|
-
|
|
229
|
-
|
|
225
|
+
addon: d(() => [
|
|
226
|
+
t[9] || (t[9] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
227
|
+
m(Ve, {
|
|
230
228
|
class: "font-bold",
|
|
231
|
-
method:
|
|
229
|
+
method: o.item.httpVerb ?? "get"
|
|
232
230
|
}, null, 8, ["method"])
|
|
233
231
|
]),
|
|
234
|
-
default:
|
|
235
|
-
|
|
232
|
+
default: d(() => [
|
|
233
|
+
M(ye(o.item.title) + " ", 1)
|
|
236
234
|
]),
|
|
237
235
|
_: 2
|
|
238
236
|
}, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
|
|
239
237
|
]),
|
|
240
238
|
_: 1
|
|
241
|
-
}, 8, ["id", "noResults"])) : (r(),
|
|
242
|
-
(r(!0),
|
|
239
|
+
}, 8, ["id", "noResults"])) : (r(), S("nav", Ze, [
|
|
240
|
+
(r(!0), S(q, null, H(e(c), (o) => {
|
|
243
241
|
var a;
|
|
244
|
-
return r(),
|
|
245
|
-
key:
|
|
246
|
-
isDraggable:
|
|
247
|
-
isDroppable:
|
|
248
|
-
menuItem:
|
|
242
|
+
return r(), u(Ge, {
|
|
243
|
+
key: o.uid,
|
|
244
|
+
isDraggable: e(i) !== "modal" && ((a = o.info) == null ? void 0 : a.title) !== "Drafts",
|
|
245
|
+
isDroppable: e(se),
|
|
246
|
+
menuItem: h,
|
|
249
247
|
parentUids: [],
|
|
250
|
-
uid:
|
|
251
|
-
onNewTab:
|
|
252
|
-
onOnDragEnd:
|
|
253
|
-
onOpenMenu:
|
|
248
|
+
uid: o.uid,
|
|
249
|
+
onNewTab: t[4] || (t[4] = (l, R) => J("newTab", { name: l, uid: R })),
|
|
250
|
+
onOnDragEnd: e(oe),
|
|
251
|
+
onOpenMenu: t[5] || (t[5] = (l) => Object.assign(h, l))
|
|
254
252
|
}, {
|
|
255
|
-
leftIcon:
|
|
256
|
-
var
|
|
253
|
+
leftIcon: d(() => {
|
|
254
|
+
var l;
|
|
257
255
|
return [
|
|
258
|
-
((
|
|
256
|
+
((l = o.info) == null ? void 0 : l.title) === "Drafts" ? (r(), u(e($), {
|
|
259
257
|
key: 0,
|
|
260
258
|
class: "text-sidebar-c-2 group-hover:hidden",
|
|
261
259
|
icon: "Scribble",
|
|
262
260
|
thickness: "2.25"
|
|
263
|
-
})) : (r(),
|
|
261
|
+
})) : (r(), u(e(Me), {
|
|
264
262
|
key: 1,
|
|
265
263
|
class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
|
|
266
|
-
src:
|
|
264
|
+
src: o["x-scalar-icon"] || "interface-content-folder"
|
|
267
265
|
}, null, 8, ["src"])),
|
|
268
266
|
n("div", {
|
|
269
|
-
class:
|
|
270
|
-
"rotate-90":
|
|
267
|
+
class: f({
|
|
268
|
+
"rotate-90": e(Q)[o.uid]
|
|
271
269
|
})
|
|
272
270
|
}, [
|
|
273
|
-
|
|
271
|
+
m(e($), {
|
|
274
272
|
class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
|
|
275
273
|
icon: "ChevronRight",
|
|
276
274
|
size: "md"
|
|
@@ -284,72 +282,72 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
284
282
|
]))
|
|
285
283
|
], 34)
|
|
286
284
|
]),
|
|
287
|
-
button:
|
|
285
|
+
button: d(() => [
|
|
288
286
|
n("div", {
|
|
289
|
-
class:
|
|
287
|
+
class: f({
|
|
290
288
|
"empty-sidebar-item": C.value
|
|
291
289
|
})
|
|
292
290
|
}, [
|
|
293
291
|
n("div", et, [
|
|
294
292
|
n("div", tt, [
|
|
295
|
-
|
|
296
|
-
art:
|
|
293
|
+
m(G, {
|
|
294
|
+
art: e(Te),
|
|
297
295
|
class: "rabbitsit font-bold"
|
|
298
296
|
}, null, 8, ["art"]),
|
|
299
|
-
|
|
300
|
-
art:
|
|
297
|
+
m(G, {
|
|
298
|
+
art: e(_e),
|
|
301
299
|
class: "rabbitjump absolute left-0 top-0 font-bold"
|
|
302
300
|
}, null, 8, ["art"])
|
|
303
301
|
]),
|
|
304
|
-
|
|
302
|
+
t[10] || (t[10] = n("div", { class: "mb-2 mt-2 text-balance text-center text-sm" }, [
|
|
305
303
|
n("b", { class: "font-medium" }, "Let's Get Started"),
|
|
306
304
|
n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
307
305
|
], -1))
|
|
308
306
|
]),
|
|
309
|
-
|
|
307
|
+
e(i) !== "modal" ? (r(), u(e(De), {
|
|
310
308
|
key: 0,
|
|
311
|
-
class:
|
|
309
|
+
class: f(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
|
|
312
310
|
"flex opacity-100": C.value
|
|
313
311
|
}]),
|
|
314
312
|
onClick: ae
|
|
315
313
|
}, {
|
|
316
|
-
default:
|
|
317
|
-
|
|
314
|
+
default: d(() => t[11] || (t[11] = [
|
|
315
|
+
M(" Import Collection ")
|
|
318
316
|
])),
|
|
319
317
|
_: 1
|
|
320
|
-
}, 8, ["class"])) :
|
|
321
|
-
|
|
318
|
+
}, 8, ["class"])) : p("", !0),
|
|
319
|
+
e(i) !== "modal" ? (r(), u(We, {
|
|
322
320
|
key: 1,
|
|
323
|
-
click:
|
|
321
|
+
click: e(k).commandPalette.emit,
|
|
324
322
|
hotkey: "K"
|
|
325
323
|
}, {
|
|
326
|
-
title:
|
|
327
|
-
|
|
324
|
+
title: d(() => t[12] || (t[12] = [
|
|
325
|
+
M(" Add Item ")
|
|
328
326
|
])),
|
|
329
327
|
_: 1
|
|
330
|
-
}, 8, ["click"])) :
|
|
328
|
+
}, 8, ["click"])) : p("", !0)
|
|
331
329
|
], 2)
|
|
332
330
|
]),
|
|
333
331
|
_: 2
|
|
334
332
|
}, [
|
|
335
|
-
|
|
333
|
+
e(i) !== "modal" ? {
|
|
336
334
|
name: "header",
|
|
337
|
-
fn:
|
|
335
|
+
fn: d(() => []),
|
|
338
336
|
key: "0"
|
|
339
337
|
} : void 0
|
|
340
|
-
]), 1032, ["class"
|
|
341
|
-
[
|
|
338
|
+
]), 1032, ["class"]), [
|
|
339
|
+
[L, e(P)]
|
|
342
340
|
]),
|
|
343
|
-
|
|
341
|
+
e(i) !== "modal" && h ? (r(), u(Le, {
|
|
344
342
|
key: 0,
|
|
345
|
-
menuItem:
|
|
346
|
-
onClearDrafts:
|
|
347
|
-
onCloseMenu:
|
|
348
|
-
onToggleWatchMode:
|
|
349
|
-
}, null, 8, ["menuItem"])) :
|
|
343
|
+
menuItem: h,
|
|
344
|
+
onClearDrafts: me,
|
|
345
|
+
onCloseMenu: t[8] || (t[8] = (o) => h.open = !1),
|
|
346
|
+
onToggleWatchMode: ce
|
|
347
|
+
}, null, 8, ["menuItem"])) : p("", !0)
|
|
350
348
|
], 64));
|
|
351
349
|
}
|
|
352
350
|
});
|
|
353
351
|
export {
|
|
354
|
-
|
|
352
|
+
Dt as default
|
|
355
353
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAwpBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAa1B,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIzE,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AAgSF,iBAAS,cAAc;WA0xBT,OAAO,IAA6B;;oBAxiCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KArmB6B;;;;;;;oCAqmB7B,KAhmBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAyvBK,GAAG,8CAA8C,GACzD,yBACQ,GAAA,6DACU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAk9BpB;AAqCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ffb875b7"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
p as default
|
|
8
8
|
};
|