@scalar/api-client 2.2.51 → 2.2.53
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 +66 -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 +3 -1
- 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 +1 -1
- 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 +39 -33
- 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 +37 -35
- 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 +1 -1
- package/dist/views/Request/Request.vue2.js +114 -171
- 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/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,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as b, openBlock as i, createElementBlock as g, Fragment as B, createBlock as c, unref as l, withCtx as f, createTextVNode as d, createCommentVNode as F } from "vue";
|
|
2
|
-
import { isUrl as I } from "./utils/isUrl.js";
|
|
3
|
-
import { useActiveEntities as U } from "../../store/active-entities.js";
|
|
4
2
|
import { ScalarButton as y } from "@scalar/components";
|
|
5
|
-
import { useToasts as
|
|
6
|
-
import { useRouter as
|
|
3
|
+
import { useToasts as I } from "@scalar/use-toasts";
|
|
4
|
+
import { useRouter as U } from "vue-router";
|
|
5
|
+
import { isUrl as q } from "./utils/isUrl.js";
|
|
6
|
+
import { useActiveEntities as M } from "../../store/active-entities.js";
|
|
7
7
|
import { useWorkspace as T } from "../../store/store.js";
|
|
8
8
|
const _ = /* @__PURE__ */ b({
|
|
9
9
|
__name: "ImportNowButton",
|
|
@@ -14,12 +14,12 @@ const _ = /* @__PURE__ */ b({
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["importFinished"],
|
|
16
16
|
setup(k, { emit: w }) {
|
|
17
|
-
const r = k, h = w, v =
|
|
17
|
+
const r = k, h = w, v = U(), { activeWorkspace: n } = M(), { importSpecFromUrl: C, importSpecFile: x } = T(), { toast: u } = I();
|
|
18
18
|
async function a() {
|
|
19
19
|
var o, t, m;
|
|
20
20
|
try {
|
|
21
21
|
if (r.source) {
|
|
22
|
-
if (
|
|
22
|
+
if (q(r.source)) {
|
|
23
23
|
const [e, s] = await C(
|
|
24
24
|
r.source,
|
|
25
25
|
((o = n.value) == null ? void 0 : o.uid) ?? "",
|
|
@@ -57,7 +57,7 @@ const _ = /* @__PURE__ */ b({
|
|
|
57
57
|
return (o, t) => o.source ? (i(), g(B, { key: 0 }, [
|
|
58
58
|
o.variant === "button" ? (i(), c(l(y), {
|
|
59
59
|
key: 0,
|
|
60
|
-
class: "
|
|
60
|
+
class: "mt-3 h-fit w-full rounded-lg px-6 py-2.5 font-bold",
|
|
61
61
|
size: "md",
|
|
62
62
|
type: "button",
|
|
63
63
|
onClick: a
|
|
@@ -68,7 +68,7 @@ const _ = /* @__PURE__ */ b({
|
|
|
68
68
|
_: 1
|
|
69
69
|
})) : (i(), c(l(y), {
|
|
70
70
|
key: 1,
|
|
71
|
-
class: "
|
|
71
|
+
class: "h-fit rounded-lg px-6 py-2.5 text-[21px] font-bold",
|
|
72
72
|
size: "md",
|
|
73
73
|
type: "button",
|
|
74
74
|
variant: "ghost",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenAppButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/OpenAppButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OpenAppButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/OpenAppButton.vue"],"names":[],"mappings":"AA2FA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB,CAAC;;AA8JF,wBAMG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as n, createElementBlock as o, createTextVNode as r, unref as d } from "vue";
|
|
2
2
|
import { isUrl as s } from "../../libs/isUrl.js";
|
|
3
|
-
const a = { class: "
|
|
3
|
+
const a = { class: "w-full break-words text-center text-sm font-medium" }, u = ["href"], m = {
|
|
4
4
|
key: 1,
|
|
5
5
|
textContent: "OpenAPI document manually"
|
|
6
6
|
}, c = /* @__PURE__ */ l({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/WorkspaceSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"WorkspaceSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/WorkspaceSelector.vue"],"names":[],"mappings":";AA+bA,wBAKG"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as W, ref as D, openBlock as m, createElementBlock as w, Fragment as k, createElementVNode as s, createVNode as a, unref as e, withCtx as r, renderList as z, createBlock as N, withModifiers as v, normalizeClass as M, toDisplayString as h, withDirectives as B, vModelText as V, createTextVNode as j } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { useModal as E, ScalarDropdown as T, ScalarDropdownItem as _, ScalarIcon as u, ScalarDropdownDivider as $, ScalarButton as b, ScalarModal as A } from "@scalar/components";
|
|
3
|
+
import { useToasts as I } from "@scalar/use-toasts";
|
|
4
|
+
import { useRouter as F } from "vue-router";
|
|
5
|
+
import { useActiveEntities as L } from "../../store/active-entities.js";
|
|
6
6
|
import { useWorkspace as P } from "../../store/store.js";
|
|
7
|
-
const R = { class: "flex items-center text-sm
|
|
7
|
+
const R = { class: "flex w-[inherit] items-center text-sm" }, U = { class: "m-0 flex items-center gap-1 text-sm font-medium" }, q = { class: "line-clamp-1 w-[calc(100%-10px)] text-left text-xs" }, G = { class: "overflow-hidden text-ellipsis" }, H = { class: "flex h-4 w-4 items-center justify-center" }, ee = /* @__PURE__ */ W({
|
|
8
8
|
__name: "WorkspaceSelector",
|
|
9
9
|
setup(J) {
|
|
10
|
-
const { activeWorkspace: i } =
|
|
10
|
+
const { activeWorkspace: i } = L(), { workspaces: g, workspaceMutators: C } = P(), { push: f } = F(), c = E(), { toast: x } = I(), l = D(""), y = (n) => {
|
|
11
11
|
var t;
|
|
12
12
|
n !== ((t = i.value) == null ? void 0 : t.uid) && f({
|
|
13
13
|
name: "workspace",
|
|
@@ -32,11 +32,11 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
|
|
|
32
32
|
};
|
|
33
33
|
return (n, t) => (m(), w(k, null, [
|
|
34
34
|
s("div", R, [
|
|
35
|
-
a(e(
|
|
35
|
+
a(e(T), null, {
|
|
36
36
|
items: r(() => [
|
|
37
37
|
(m(!0), w(k, null, z(e(g), (o, p) => (m(), N(e(_), {
|
|
38
38
|
key: p,
|
|
39
|
-
class: "flex gap-1.5
|
|
39
|
+
class: "group/item flex w-full items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
40
40
|
onClick: v((d) => y(p), ["stop"])
|
|
41
41
|
}, {
|
|
42
42
|
default: r(() => {
|
|
@@ -44,7 +44,7 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
|
|
|
44
44
|
return [
|
|
45
45
|
s("div", {
|
|
46
46
|
class: M([
|
|
47
|
-
"flex items-center justify-center rounded-full p-[3px]
|
|
47
|
+
"flex h-4 w-4 items-center justify-center rounded-full p-[3px]",
|
|
48
48
|
((d = e(i)) == null ? void 0 : d.uid) === p ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
|
|
49
49
|
])
|
|
50
50
|
}, [
|
|
@@ -59,7 +59,7 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
|
|
|
59
59
|
}),
|
|
60
60
|
_: 2
|
|
61
61
|
}, 1032, ["onClick"]))), 128)),
|
|
62
|
-
a(e(
|
|
62
|
+
a(e($)),
|
|
63
63
|
a(e(_), {
|
|
64
64
|
class: "flex items-center gap-1.5",
|
|
65
65
|
onClick: t[0] || (t[0] = (o) => e(c).show())
|
|
@@ -78,7 +78,7 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
|
|
|
78
78
|
]),
|
|
79
79
|
default: r(() => [
|
|
80
80
|
a(e(b), {
|
|
81
|
-
class: "
|
|
81
|
+
class: "text-c-1 hover:bg-b-2 text-c-3 line-clamp-1 h-full w-fit justify-start px-1.5 py-1 font-normal",
|
|
82
82
|
fullWidth: "",
|
|
83
83
|
variant: "ghost"
|
|
84
84
|
}, {
|
|
@@ -100,9 +100,9 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
|
|
|
100
100
|
_: 1
|
|
101
101
|
})
|
|
102
102
|
]),
|
|
103
|
-
a(e(
|
|
103
|
+
a(e(A), {
|
|
104
104
|
bodyClass: "m-0 p-1 rounded-lg border-t-0",
|
|
105
|
-
class: "
|
|
105
|
+
class: "z-overlay absolute",
|
|
106
106
|
size: "xxs",
|
|
107
107
|
state: e(c),
|
|
108
108
|
variant: "form"
|
|
@@ -114,14 +114,14 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
|
|
|
114
114
|
}, [
|
|
115
115
|
B(s("input", {
|
|
116
116
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => l.value = o),
|
|
117
|
-
class: "
|
|
117
|
+
class: "min-h-8 w-full flex-1 border-none p-1.5 text-sm outline-none",
|
|
118
118
|
placeholder: "New Workspace",
|
|
119
119
|
type: "text"
|
|
120
120
|
}, null, 512), [
|
|
121
121
|
[V, l.value]
|
|
122
122
|
]),
|
|
123
123
|
a(e(b), {
|
|
124
|
-
class: "max-h-8
|
|
124
|
+
class: "max-h-8 p-0 px-3 text-xs",
|
|
125
125
|
disabled: !l.value.trim(),
|
|
126
126
|
type: "submit"
|
|
127
127
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,wBAAgB,gBAAgB;;eAVvB,MAAM,GAAG,SAAS;iBAChB,MAAM,GAAG,IAAI;eACf,MAAM,GAAG,IAAI;aACf,MAAM,GAAG,IAAI;eACX,MAAM,GAAG,IAAI;;yBAsH4B,MAAM,GAAG,IAAI,UAAU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB9E"}
|
|
@@ -9,19 +9,19 @@ type __VLS_Props = {
|
|
|
9
9
|
collectionUid: string;
|
|
10
10
|
};
|
|
11
11
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
close: () => any;
|
|
12
13
|
importCurl: (payload: {
|
|
13
14
|
parsedCurl: RequestPayload;
|
|
14
15
|
requestName: string;
|
|
15
16
|
collectionUid: string;
|
|
16
17
|
}) => any;
|
|
17
|
-
close: () => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onClose?: () => any;
|
|
19
20
|
onImportCurl?: (payload: {
|
|
20
21
|
parsedCurl: RequestPayload;
|
|
21
22
|
requestName: string;
|
|
22
23
|
collectionUid: string;
|
|
23
24
|
}) => any;
|
|
24
|
-
onClose?: () => any;
|
|
25
25
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
export default _default;
|
|
27
27
|
//# sourceMappingURL=ImportCurlModal.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportCurlModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCurl/ImportCurlModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImportCurlModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCurl/ImportCurlModal.vue"],"names":[],"mappings":"AAmKA,OAAO,KAAK,EAEV,cAAc,EACf,MAAM,iCAAiC,CAAA;AASxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,cAAc,GAAG,IAAI,CAAA;IACjC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC5D,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;;;;oBAOgB,cAAc;qBACb,MAAM;uBACJ,MAAM;;;;;oBAFT,cAAc;qBACb,MAAM;uBACJ,MAAM;;;AAwP3B,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ImportCurlModal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-5e715899"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as N, ref as x, computed as b, watch as k, openBlock as I, createBlock as R, unref as a, withCtx as n, createVNode as s, withKeys as E, createElementVNode as r, toDisplayString as c, normalizeClass as z, createTextVNode as B } from "vue";
|
|
2
|
-
import M from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
const F = { class: "
|
|
2
|
+
import { ScalarModal as M, ScalarTextField as T, ScalarListbox as j, ScalarButton as w, ScalarIcon as D } from "@scalar/components";
|
|
3
|
+
import { useToasts as K } from "@scalar/use-toasts";
|
|
4
|
+
import L from "../HttpMethod/HttpMethod.vue.js";
|
|
5
|
+
import { useActiveEntities as A } from "../../store/active-entities.js";
|
|
6
|
+
const F = { class: "mb-4 mt-2 flex h-9 flex-row items-center gap-2 rounded border p-[3px] text-sm" }, H = { class: "flex h-full" }, P = { class: "scroll-timeline-x whitespace-nowrap" }, W = { class: "flex justify-between gap-10" }, Y = /* @__PURE__ */ N({
|
|
7
7
|
__name: "ImportCurlModal",
|
|
8
8
|
props: {
|
|
9
9
|
parsedCurl: {},
|
|
@@ -12,7 +12,7 @@ const F = { class: "border flex flex-row gap-2 h-9 items-center mb-4 mt-2 p-[3px
|
|
|
12
12
|
},
|
|
13
13
|
emits: ["importCurl", "close"],
|
|
14
14
|
setup(_, { emit: q }) {
|
|
15
|
-
const o = _, V = q, { toast: g } =
|
|
15
|
+
const o = _, V = q, { toast: g } = K(), i = x(""), { activeWorkspaceCollections: y, activeCollection: S } = A(), p = b(() => !i.value.trim()), u = b(
|
|
16
16
|
() => y.value.map((e) => {
|
|
17
17
|
var t;
|
|
18
18
|
return {
|
|
@@ -50,7 +50,7 @@ const F = { class: "border flex flex-row gap-2 h-9 items-center mb-4 mt-2 p-[3px
|
|
|
50
50
|
(e) => {
|
|
51
51
|
e && (i.value = "");
|
|
52
52
|
}
|
|
53
|
-
), (e, t) => (I(), R(a(
|
|
53
|
+
), (e, t) => (I(), R(a(M), {
|
|
54
54
|
size: "xs",
|
|
55
55
|
state: e.state,
|
|
56
56
|
title: "Import cURL request"
|
|
@@ -58,7 +58,7 @@ const F = { class: "border flex flex-row gap-2 h-9 items-center mb-4 mt-2 p-[3px
|
|
|
58
58
|
default: n(() => {
|
|
59
59
|
var f, v, C, h;
|
|
60
60
|
return [
|
|
61
|
-
s(a(
|
|
61
|
+
s(a(T), {
|
|
62
62
|
modelValue: i.value,
|
|
63
63
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => i.value = d),
|
|
64
64
|
autofocus: "",
|
|
@@ -68,7 +68,7 @@ const F = { class: "border flex flex-row gap-2 h-9 items-center mb-4 mt-2 p-[3px
|
|
|
68
68
|
}, null, 8, ["modelValue"]),
|
|
69
69
|
r("div", F, [
|
|
70
70
|
r("div", H, [
|
|
71
|
-
s(
|
|
71
|
+
s(L, {
|
|
72
72
|
isEditable: !1,
|
|
73
73
|
isSquare: "",
|
|
74
74
|
method: ((f = o.parsedCurl) == null ? void 0 : f.method) || "get"
|
|
@@ -77,21 +77,21 @@ const F = { class: "border flex flex-row gap-2 h-9 items-center mb-4 mt-2 p-[3px
|
|
|
77
77
|
r("span", P, c(((C = (v = o.parsedCurl) == null ? void 0 : v.servers) == null ? void 0 : C[0]) || "") + c(((h = o.parsedCurl) == null ? void 0 : h.path) || ""), 1)
|
|
78
78
|
]),
|
|
79
79
|
r("div", W, [
|
|
80
|
-
s(a(
|
|
80
|
+
s(a(j), {
|
|
81
81
|
modelValue: l.value,
|
|
82
82
|
"onUpdate:modelValue": t[1] || (t[1] = (d) => l.value = d),
|
|
83
83
|
options: u.value
|
|
84
84
|
}, {
|
|
85
85
|
default: n(() => [
|
|
86
86
|
s(a(w), {
|
|
87
|
-
class: "
|
|
87
|
+
class: "hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",
|
|
88
88
|
variant: "outlined"
|
|
89
89
|
}, {
|
|
90
90
|
default: n(() => [
|
|
91
91
|
r("span", {
|
|
92
92
|
class: z(["whitespace-nowrap", l.value ? "text-c-1" : "text-c-3"])
|
|
93
93
|
}, c(l.value ? l.value.label : "Select Collection"), 3),
|
|
94
|
-
s(a(
|
|
94
|
+
s(a(D), {
|
|
95
95
|
class: "text-c-3",
|
|
96
96
|
icon: "ChevronDown",
|
|
97
97
|
size: "md"
|
|
@@ -103,7 +103,7 @@ const F = { class: "border flex flex-row gap-2 h-9 items-center mb-4 mt-2 p-[3px
|
|
|
103
103
|
_: 1
|
|
104
104
|
}, 8, ["modelValue", "options"]),
|
|
105
105
|
s(a(w), {
|
|
106
|
-
class: "gap-1.5
|
|
106
|
+
class: "h-8 gap-1.5 whitespace-nowrap px-2.5 font-medium shadow-none focus:outline-none",
|
|
107
107
|
disabled: p.value,
|
|
108
108
|
type: "submit",
|
|
109
109
|
onClick: m
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./ScalarAsciiArt.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const i = /* @__PURE__ */
|
|
3
|
+
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const i = /* @__PURE__ */ o(a, [["__scopeId", "data-v-ea0a9794"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../src/components/Search/useSearch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAA;AAE9D,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAI/C;;;GAGG;AACH,wBAAgB,SAAS;;;
|
|
1
|
+
{"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../src/components/Search/useSearch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAA;AAE9D,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAI/C;;;GAGG;AACH,wBAAgB,SAAS;;;eAMd,MAAM;qBACA,MAAM;kBACT,MAAM;YACZ,MAAM;cACJ,MAAM;cACN,MAAM,GAAG,SAAS;;;iCAmHU,UAAU;eAxHrC,MAAM;qBACA,MAAM;kBACT,MAAM;YACZ,MAAM;cACJ,MAAM;cACN,MAAM,GAAG,SAAS;MAmH8B;sBApDjC,IAAI;;;uCAae,IAAI,GAAG,MAAM;;mCArDjB,OAAO,EAAE;EAyHhD"}
|
|
@@ -6,11 +6,7 @@ import { ref as n, watch as W, computed as b, nextTick as P } from "vue";
|
|
|
6
6
|
import { useRouter as V } from "vue-router";
|
|
7
7
|
import { useWorkspace as B } from "../../store/store.js";
|
|
8
8
|
function Q() {
|
|
9
|
-
const u = V(), {
|
|
10
|
-
activeWorkspace: E,
|
|
11
|
-
activeWorkspaceRequests: f,
|
|
12
|
-
activeWorkspaceCollections: w
|
|
13
|
-
} = L(), { requests: x, tags: A } = B(), c = n([]), i = n([]), a = n(0), r = n(""), v = n(null), m = n([]), p = new M(c.value, {
|
|
9
|
+
const u = V(), { activeWorkspace: E, activeWorkspaceRequests: f, activeWorkspaceCollections: w } = L(), { requests: x, tags: A } = B(), c = n([]), i = n([]), a = n(0), r = n(""), v = n(null), m = n([]), p = new M(c.value, {
|
|
14
10
|
keys: ["title", "description", "body"]
|
|
15
11
|
}), C = () => {
|
|
16
12
|
r.value = "", a.value = 0, i.value = [], v.value instanceof HTMLInputElement && v.value.blur();
|
|
@@ -61,9 +57,7 @@ function Q() {
|
|
|
61
57
|
const e = h.value[a.value];
|
|
62
58
|
e && g(e);
|
|
63
59
|
}
|
|
64
|
-
}, H = b(
|
|
65
|
-
() => f.value.map((e) => x[e]).filter(y)
|
|
66
|
-
);
|
|
60
|
+
}, H = b(() => f.value.map((e) => x[e]).filter(y));
|
|
67
61
|
W(
|
|
68
62
|
f,
|
|
69
63
|
() => {
|
|
@@ -73,11 +67,9 @@ function Q() {
|
|
|
73
67
|
);
|
|
74
68
|
const g = (e) => {
|
|
75
69
|
u.push(e.item.id), C();
|
|
76
|
-
}, h = b(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
})) : i.value
|
|
80
|
-
);
|
|
70
|
+
}, h = b(() => r.value.length === 0 ? c.value.map((e) => ({
|
|
71
|
+
item: e
|
|
72
|
+
})) : i.value);
|
|
81
73
|
return {
|
|
82
74
|
searchText: r,
|
|
83
75
|
searchResultsWithPlaceholderResults: h,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdown.vue"],"names":[],"mappings":"AAqKA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,IAAI,SAAS,EACpB,MAAM,EACP,MAAM,iCAAiC,CAAA;AAUxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;AAgRF,wBAOG"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { useLayout as
|
|
4
|
-
import { useWorkspace as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as V, computed as i, watch as A, openBlock as n, createBlock as v, unref as a, withCtx as c, createElementVNode as s, createElementBlock as d, Fragment as m, renderList as h, createVNode as u, createCommentVNode as x, createTextVNode as z, toDisplayString as L } from "vue";
|
|
2
|
+
import { ScalarPopover as W, ScalarDropdownDivider as q, ScalarIcon as E, ScalarFloatingBackdrop as F, ScalarButton as I } from "@scalar/components";
|
|
3
|
+
import { useLayout as M } from "../../hooks/useLayout.js";
|
|
4
|
+
import { useWorkspace as P } from "../../store/store.js";
|
|
5
|
+
import k from "./ServerDropdownItem.vue.js";
|
|
6
|
+
const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }, Q = /* @__PURE__ */ V({
|
|
7
7
|
__name: "ServerDropdown",
|
|
8
8
|
props: {
|
|
9
9
|
collection: {},
|
|
10
10
|
operation: {},
|
|
11
11
|
server: {},
|
|
12
|
-
layout: {},
|
|
13
12
|
target: {}
|
|
14
13
|
},
|
|
15
14
|
setup(l) {
|
|
16
|
-
const { layout:
|
|
15
|
+
const { layout: y } = M(), { servers: p, collectionMutators: w, events: C, serverMutators: D } = P(), f = i(
|
|
17
16
|
() => {
|
|
18
17
|
var e, r;
|
|
19
18
|
return (r = (e = l.operation) == null ? void 0 : e.servers) == null ? void 0 : r.map((t) => {
|
|
@@ -41,20 +40,20 @@ const H = ["onClick"], J = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
41
40
|
})
|
|
42
41
|
);
|
|
43
42
|
}
|
|
44
|
-
),
|
|
43
|
+
), U = i(
|
|
45
44
|
() => {
|
|
46
45
|
var e, r;
|
|
47
|
-
return ((e =
|
|
46
|
+
return ((e = f.value) == null ? void 0 : e.length) && ((r = b.value) == null ? void 0 : r.length);
|
|
48
47
|
}
|
|
49
48
|
);
|
|
50
|
-
|
|
49
|
+
A([() => l.collection, () => l.operation], ([e, r]) => {
|
|
51
50
|
var o;
|
|
52
51
|
if (!e || e.selectedServerUid || r != null && r.selectedServerUid)
|
|
53
52
|
return;
|
|
54
53
|
const t = (o = l.collection.servers) == null ? void 0 : o[0];
|
|
55
|
-
t &&
|
|
54
|
+
t && w.edit(l.collection.uid, "selectedServerUid", t);
|
|
56
55
|
});
|
|
57
|
-
const B = () =>
|
|
56
|
+
const B = () => C.commandPalette.emit({
|
|
58
57
|
commandName: "Add Server"
|
|
59
58
|
}), N = i(() => {
|
|
60
59
|
var e, r, t;
|
|
@@ -62,94 +61,78 @@ const H = ["onClick"], J = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
62
61
|
}), g = (e, r) => {
|
|
63
62
|
if (!l.server) return;
|
|
64
63
|
const t = l.server.variables || {};
|
|
65
|
-
t[e] = { ...t[e], default: r },
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
variants: {
|
|
69
|
-
reference: {
|
|
70
|
-
true: "!font-normal justify-start px-3 py-1.5 rounded-b-lg text-c-1 w-full",
|
|
71
|
-
false: "border hover:bg-b-2 font-code ml-0.75 rounded text-c-2"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
return (e, r) => (n(), c(a(F), {
|
|
64
|
+
t[e] = { ...t[e], default: r }, D.edit(l.server.uid, "variables", t);
|
|
65
|
+
};
|
|
66
|
+
return (e, r) => (n(), v(a(W), {
|
|
76
67
|
class: "max-h-[inherit] p-0 text-sm",
|
|
77
|
-
offset:
|
|
68
|
+
offset: 0,
|
|
78
69
|
placement: "bottom-start",
|
|
79
70
|
resize: "",
|
|
80
71
|
target: e.target,
|
|
81
72
|
teleport: `#${e.target}`
|
|
82
73
|
}, {
|
|
83
|
-
popover:
|
|
74
|
+
popover: c(({ close: t }) => [
|
|
84
75
|
s("div", {
|
|
85
|
-
class:
|
|
76
|
+
class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
|
|
86
77
|
onClick: t
|
|
87
78
|
}, [
|
|
88
|
-
(n(!0), d(m, null,
|
|
79
|
+
(n(!0), d(m, null, h(f.value, (o) => (n(), v(k, {
|
|
89
80
|
key: o.id,
|
|
90
81
|
collection: e.collection,
|
|
91
|
-
layout: e.layout,
|
|
92
82
|
operation: e.operation,
|
|
93
83
|
server: e.server,
|
|
94
84
|
serverOption: o,
|
|
95
85
|
type: "request",
|
|
96
86
|
"onUpdate:variable": g
|
|
97
|
-
}, null, 8, ["collection", "
|
|
98
|
-
|
|
99
|
-
|
|
87
|
+
}, null, 8, ["collection", "operation", "server", "serverOption"]))), 128)),
|
|
88
|
+
U.value ? (n(), d(m, { key: 0 }, [
|
|
89
|
+
u(a(q)),
|
|
100
90
|
r[1] || (r[1] = s("div", { class: "text-xxs text-c-2 px-2.5 py-1" }, "Collection", -1))
|
|
101
|
-
], 64)) :
|
|
102
|
-
(n(!0), d(m, null,
|
|
91
|
+
], 64)) : x("", !0),
|
|
92
|
+
(n(!0), d(m, null, h(b.value, (o) => (n(), v(k, {
|
|
103
93
|
key: o.id,
|
|
104
94
|
collection: e.collection,
|
|
105
|
-
layout: e.layout,
|
|
106
95
|
operation: e.operation,
|
|
107
96
|
server: e.server,
|
|
108
97
|
serverOption: o,
|
|
109
98
|
type: "collection",
|
|
110
99
|
"onUpdate:variable": g
|
|
111
|
-
}, null, 8, ["collection", "
|
|
112
|
-
a(
|
|
100
|
+
}, null, 8, ["collection", "operation", "server", "serverOption"]))), 128)),
|
|
101
|
+
a(y) !== "modal" ? (n(), d("button", {
|
|
113
102
|
key: 1,
|
|
114
103
|
class: "text-xxs p-1.75 hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded",
|
|
115
104
|
type: "button",
|
|
116
105
|
onClick: B
|
|
117
106
|
}, [
|
|
118
|
-
s("div",
|
|
119
|
-
|
|
107
|
+
s("div", j, [
|
|
108
|
+
u(a(E), {
|
|
120
109
|
icon: "Add",
|
|
121
110
|
size: "sm"
|
|
122
111
|
})
|
|
123
112
|
]),
|
|
124
113
|
r[2] || (r[2] = s("span", null, "Add Server", -1))
|
|
125
|
-
])) :
|
|
126
|
-
],
|
|
114
|
+
])) : x("", !0)
|
|
115
|
+
], 8, T)
|
|
127
116
|
]),
|
|
128
|
-
backdrop:
|
|
129
|
-
|
|
117
|
+
backdrop: c(() => [
|
|
118
|
+
u(a(F), { class: "-top-[--scalar-address-bar-height] rounded-lg" })
|
|
130
119
|
]),
|
|
131
|
-
default:
|
|
132
|
-
|
|
133
|
-
class: h
|
|
120
|
+
default: c(() => [
|
|
121
|
+
u(a(I), {
|
|
122
|
+
class: "gap-0.75 z-context-plus h-6.5 hover:bg-b-2 font-code ml-0.75 text-c-2 whitespace-nowrap rounded border px-1.5 text-xs lg:text-sm",
|
|
134
123
|
variant: "ghost"
|
|
135
124
|
}, {
|
|
136
|
-
default:
|
|
125
|
+
default: c(() => [
|
|
137
126
|
r[0] || (r[0] = s("span", { class: "sr-only" }, "Server:", -1)),
|
|
138
|
-
|
|
139
|
-
e.layout === "reference" ? (n(), c(a(x), {
|
|
140
|
-
key: 0,
|
|
141
|
-
class: "text-c-2",
|
|
142
|
-
icon: "ChevronDown",
|
|
143
|
-
size: "sm"
|
|
144
|
-
})) : f("", !0)
|
|
127
|
+
z(" " + L(N.value), 1)
|
|
145
128
|
]),
|
|
146
129
|
_: 1
|
|
147
|
-
}
|
|
130
|
+
})
|
|
148
131
|
]),
|
|
149
132
|
_: 1
|
|
150
|
-
}, 8, ["
|
|
133
|
+
}, 8, ["target", "teleport"]));
|
|
151
134
|
}
|
|
152
135
|
});
|
|
153
136
|
export {
|
|
154
|
-
|
|
137
|
+
Q as default
|
|
155
138
|
};
|
|
@@ -8,7 +8,6 @@ type __VLS_Props = {
|
|
|
8
8
|
label: string;
|
|
9
9
|
};
|
|
10
10
|
type: 'collection' | 'request';
|
|
11
|
-
layout: 'client' | 'reference';
|
|
12
11
|
};
|
|
13
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
13
|
"update:variable": (key: string, value: string) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdownItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdownItem.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,IAAI,SAAS,EACpB,MAAM,EACP,MAAM,iCAAiC,CAAA;AAQxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,YAAY,EAAE;QACZ,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,IAAI,EAAE,YAAY,GAAG,SAAS,CAAA;CAC/B,CAAC;;;;;;AA8LF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ServerDropdownItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-2ba27de2"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|