@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,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as a, ref as c, openBlock as
|
|
1
|
+
import { defineComponent as a, ref as c, openBlock as n, createBlock as o, withCtx as r, createVNode as m, resolveDynamicComponent as i, createCommentVNode as l } from "vue";
|
|
2
2
|
import s from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
3
|
-
import
|
|
3
|
+
import _ from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
4
4
|
import f from "./SettingsGeneral.vue.js";
|
|
5
|
-
const
|
|
5
|
+
const k = /* @__PURE__ */ a({
|
|
6
6
|
__name: "Settings",
|
|
7
|
-
setup(
|
|
7
|
+
setup(p) {
|
|
8
8
|
const e = {
|
|
9
9
|
general: {
|
|
10
10
|
component: f,
|
|
11
11
|
title: "general"
|
|
12
12
|
}
|
|
13
13
|
}, t = c("general");
|
|
14
|
-
return (
|
|
14
|
+
return (u, d) => (n(), o(s, null, {
|
|
15
15
|
default: r(() => [
|
|
16
|
-
m(
|
|
16
|
+
m(_, { class: "flex-1" }, {
|
|
17
17
|
default: r(() => [
|
|
18
|
-
e[t.value] ? (
|
|
18
|
+
e[t.value] ? (n(), o(i(e[t.value].component), { key: 0 })) : l("", !0)
|
|
19
19
|
]),
|
|
20
20
|
_: 1
|
|
21
21
|
})
|
|
@@ -25,5 +25,5 @@ const y = /* @__PURE__ */ a({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
k as default
|
|
29
29
|
};
|
|
@@ -20,8 +20,8 @@ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
|
|
|
20
20
|
}, {
|
|
21
21
|
default: c(() => [
|
|
22
22
|
i("div", {
|
|
23
|
-
class: s(["flex items-center justify-center
|
|
24
|
-
"bg-c-accent
|
|
23
|
+
class: s(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
24
|
+
"bg-c-accent text-b-1 border-transparent": e(r) === "system"
|
|
25
25
|
}])
|
|
26
26
|
}, [
|
|
27
27
|
e(r) === "system" ? (o(), d(e(k), {
|
|
@@ -41,8 +41,8 @@ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
|
|
|
41
41
|
}, {
|
|
42
42
|
default: c(() => [
|
|
43
43
|
i("div", {
|
|
44
|
-
class: s(["flex items-center justify-center
|
|
45
|
-
"bg-c-accent
|
|
44
|
+
class: s(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
45
|
+
"bg-c-accent text-b-1 border-transparent": e(r) === "light"
|
|
46
46
|
}])
|
|
47
47
|
}, [
|
|
48
48
|
e(r) === "light" ? (o(), d(e(k), {
|
|
@@ -62,8 +62,8 @@ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
|
|
|
62
62
|
}, {
|
|
63
63
|
default: c(() => [
|
|
64
64
|
i("div", {
|
|
65
|
-
class: s(["flex items-center justify-center
|
|
66
|
-
"bg-c-accent
|
|
65
|
+
class: s(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
|
|
66
|
+
"bg-c-accent text-b-1 border-transparent": e(r) === "dark"
|
|
67
67
|
}])
|
|
68
68
|
}, [
|
|
69
69
|
e(r) === "dark" ? (o(), d(e(k), {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useLayout } from './hooks/useLayout';
|
|
2
|
+
import { useSidebar } from './hooks/useSidebar';
|
|
3
|
+
import { type Mock } from 'vitest';
|
|
4
|
+
export declare const mockUseLayout: Mock<[], ReturnType<typeof useLayout>>;
|
|
5
|
+
export declare const mockUseSidebar: Mock<[], ReturnType<typeof useSidebar>>;
|
|
6
|
+
/** Spy on console.warn */
|
|
7
|
+
export declare const consoleWarnSpy: import("vitest").MockInstance<[message?: any, ...optionalParams: any[]], void>;
|
|
8
|
+
/** Spy on console.error */
|
|
9
|
+
export declare const consoleErrorSpy: import("vitest").MockInstance<[message?: any, ...optionalParams: any[]], void>;
|
|
10
|
+
/** Reset the spies */
|
|
11
|
+
export declare const resetConsoleSpies: () => void;
|
|
12
|
+
/** Helper to re-enable console warn checks */
|
|
13
|
+
export declare const enableConsoleWarn: () => boolean;
|
|
14
|
+
/** Helper to disable console warn checks */
|
|
15
|
+
export declare const disableConsoleWarn: () => boolean;
|
|
16
|
+
//# sourceMappingURL=vitest.setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.setup.d.ts","sourceRoot":"","sources":["../src/vitest.setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAqC,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAA;AAOrE,eAAO,MAAM,aAAa,EAAgB,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAA;AAMhF,eAAO,MAAM,cAAc,EAAiB,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAA;AAEnF,0BAA0B;AAC1B,eAAO,MAAM,cAAc,gFAA4B,CAAA;AAGvD,2BAA2B;AAC3B,eAAO,MAAM,eAAe,gFAA6B,CAAA;AAEzD,sBAAsB;AACtB,eAAO,MAAM,iBAAiB,YAG7B,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,eAAsC,CAAA;AAEpE,4CAA4C;AAC5C,eAAO,MAAM,kBAAkB,eAAuC,CAAA"}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2.
|
|
21
|
+
"version": "2.2.53",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -30,11 +30,6 @@
|
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
31
|
"default": "./dist/index.js"
|
|
32
32
|
},
|
|
33
|
-
"./views/Servers": {
|
|
34
|
-
"import": "./dist/views/Servers/index.js",
|
|
35
|
-
"types": "./dist/views/Servers/index.d.ts",
|
|
36
|
-
"default": "./dist/views/Servers/index.js"
|
|
37
|
-
},
|
|
38
33
|
"./views/Request/types": {
|
|
39
34
|
"import": "./dist/views/Request/types/index.js",
|
|
40
35
|
"types": "./dist/views/Request/types/index.d.ts",
|
|
@@ -193,22 +188,22 @@
|
|
|
193
188
|
"whatwg-mimetype": "^4.0.0",
|
|
194
189
|
"yaml": "^2.4.5",
|
|
195
190
|
"zod": "^3.23.8",
|
|
191
|
+
"@scalar/draggable": "0.1.11",
|
|
192
|
+
"@scalar/components": "0.13.27",
|
|
193
|
+
"@scalar/import": "0.2.29",
|
|
196
194
|
"@scalar/icons": "0.1.3",
|
|
197
|
-
"@scalar/
|
|
198
|
-
"@scalar/oas-utils": "0.2.107",
|
|
199
|
-
"@scalar/openapi-parser": "0.10.8",
|
|
200
|
-
"@scalar/postman-to-openapi": "0.1.30",
|
|
201
|
-
"@scalar/openapi-types": "0.1.8",
|
|
195
|
+
"@scalar/oas-utils": "0.2.109",
|
|
202
196
|
"@scalar/object-utils": "1.1.13",
|
|
203
|
-
"@scalar/
|
|
204
|
-
"@scalar/
|
|
205
|
-
"@scalar/
|
|
206
|
-
"@scalar/
|
|
197
|
+
"@scalar/openapi-parser": "0.10.9",
|
|
198
|
+
"@scalar/openapi-types": "0.1.9",
|
|
199
|
+
"@scalar/postman-to-openapi": "0.1.32",
|
|
200
|
+
"@scalar/types": "0.0.36",
|
|
201
|
+
"@scalar/snippetz": "0.2.15",
|
|
202
|
+
"@scalar/use-hooks": "0.1.24",
|
|
203
|
+
"@scalar/use-codemirror": "0.11.72",
|
|
204
|
+
"@scalar/themes": "0.9.70",
|
|
207
205
|
"@scalar/use-toasts": "0.7.9",
|
|
208
|
-
"@scalar/use-
|
|
209
|
-
"@scalar/use-tooltip": "1.0.6",
|
|
210
|
-
"@scalar/components": "0.13.25",
|
|
211
|
-
"@scalar/draggable": "0.1.10"
|
|
206
|
+
"@scalar/use-tooltip": "1.0.6"
|
|
212
207
|
},
|
|
213
208
|
"devDependencies": {
|
|
214
209
|
"@types/shell-quote": "^1.7.5",
|
|
@@ -224,8 +219,8 @@
|
|
|
224
219
|
"vite": "^5.4.10",
|
|
225
220
|
"vite-svg-loader": "^5.1.0",
|
|
226
221
|
"vitest": "^1.6.0",
|
|
227
|
-
"@scalar/build-tooling": "0.1.
|
|
228
|
-
"@scalar/galaxy": "0.2.
|
|
222
|
+
"@scalar/build-tooling": "0.1.15",
|
|
223
|
+
"@scalar/galaxy": "0.2.22"
|
|
229
224
|
},
|
|
230
225
|
"scripts": {
|
|
231
226
|
"build": "scalar-build-vite",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServerForm.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/ServerForm.vue"],"names":[],"mappings":";AAmKA,wBAMG"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, computed as p, openBlock as s, createElementBlock as m, createBlock as f, createCommentVNode as _ } from "vue";
|
|
2
|
-
import k from "../../components/Form/Form.vue.js";
|
|
3
|
-
import { useActiveEntities as h } from "../../store/active-entities.js";
|
|
4
|
-
import { useWorkspace as y } from "../../store/store.js";
|
|
5
|
-
const x = { class: "divide-0.5 flex w-full divide-x" }, L = /* @__PURE__ */ d({
|
|
6
|
-
__name: "ServerForm",
|
|
7
|
-
setup(S) {
|
|
8
|
-
const { activeRouterParams: t, activeWorkspaceCollections: a } = h(), { collections: c, servers: l, serverMutators: i } = y(), n = [
|
|
9
|
-
{ label: "URL", key: "url", placeholder: "https://void.scalar.com/api" },
|
|
10
|
-
{
|
|
11
|
-
label: "Label",
|
|
12
|
-
key: "description",
|
|
13
|
-
placeholder: "Production"
|
|
14
|
-
}
|
|
15
|
-
], o = p(() => {
|
|
16
|
-
const e = c[t.value.collection];
|
|
17
|
-
if (!e) return;
|
|
18
|
-
const r = typeof t.value.servers == "string" && t.value.servers === "default" ? e.servers[0] : e.servers.find(
|
|
19
|
-
(v) => v === t.value.servers
|
|
20
|
-
);
|
|
21
|
-
if (r)
|
|
22
|
-
return l[r];
|
|
23
|
-
}), u = (e, r) => {
|
|
24
|
-
!a.value || !o.value || i.edit(o.value.uid, e, r);
|
|
25
|
-
};
|
|
26
|
-
return (e, r) => (s(), m("div", x, [
|
|
27
|
-
o.value ? (s(), f(k, {
|
|
28
|
-
key: 0,
|
|
29
|
-
data: o.value,
|
|
30
|
-
onUpdate: u,
|
|
31
|
-
options: n,
|
|
32
|
-
title: "Server"
|
|
33
|
-
}, null, 8, ["data"])) : _("", !0)
|
|
34
|
-
]));
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
L as default
|
|
39
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/Servers.vue"],"names":[],"mappings":";AAilBA,wBAMG"}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, computed as x, openBlock as i, createBlock as m, withCtx as l, createVNode as a, unref as o, createElementVNode as n, createElementBlock as d, Fragment as k, renderList as _, normalizeClass as g, toDisplayString as W, withModifiers as F, withDirectives as O, createCommentVNode as R, vShow as M, createTextVNode as q } from "vue";
|
|
2
|
-
import { ScalarIcon as p, ScalarButton as y } from "@scalar/components";
|
|
3
|
-
import { LibraryIcon as K } from "@scalar/icons";
|
|
4
|
-
import { useRouter as T } from "vue-router";
|
|
5
|
-
import G from "../../components/EmptyState.vue.js";
|
|
6
|
-
import H from "../../components/Sidebar/SidebarButton.vue.js";
|
|
7
|
-
import J from "../../components/Sidebar/SidebarList.vue.js";
|
|
8
|
-
import Q from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
9
|
-
import X from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
10
|
-
import Y from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
11
|
-
import { PathId as f } from "../../routes.js";
|
|
12
|
-
import { useActiveEntities as Z } from "../../store/active-entities.js";
|
|
13
|
-
import U from "./ServerForm.vue.js";
|
|
14
|
-
import { useWorkspace as ee } from "../../store/store.js";
|
|
15
|
-
import te from "../../components/Sidebar/Sidebar.vue.js";
|
|
16
|
-
import { useSidebar as re } from "../../hooks/useSidebar.js";
|
|
17
|
-
const oe = { class: "flex-1" }, se = ["onClick"], ae = { class: "flex h-5 max-w-[14px] items-center justify-center pr-px" }, ie = { class: "line-clamp-1 w-full break-all text-left font-medium" }, Ce = /* @__PURE__ */ P({
|
|
18
|
-
__name: "Servers",
|
|
19
|
-
setup(le) {
|
|
20
|
-
const { activeWorkspaceCollections: S, activeWorkspace: C, activeRouterParams: w } = Z(), { servers: v, events: z, serverMutators: D } = ee(), { push: A, resolve: L } = T(), { collapsedSidebarFolders: b, toggleSidebarFolder: N } = re(), V = (t) => b[t];
|
|
21
|
-
function u(t) {
|
|
22
|
-
z.commandPalette.emit({
|
|
23
|
-
commandName: "Add Server",
|
|
24
|
-
metaData: { parentUid: t }
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
const j = x(() => S.value.filter(
|
|
28
|
-
(t) => {
|
|
29
|
-
var s;
|
|
30
|
-
return ((s = t.info) == null ? void 0 : s.title) !== "Drafts";
|
|
31
|
-
}
|
|
32
|
-
)), E = (t, s, e) => {
|
|
33
|
-
var r;
|
|
34
|
-
const c = {
|
|
35
|
-
name: "servers",
|
|
36
|
-
params: {
|
|
37
|
-
[f.Workspace]: (r = C.value) == null ? void 0 : r.uid,
|
|
38
|
-
[f.Collection]: e,
|
|
39
|
-
[f.Servers]: s
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
t.metaKey ? window.open(L(c).href, "_blank") : A(c);
|
|
43
|
-
}, I = (t) => D.delete(
|
|
44
|
-
t,
|
|
45
|
-
w.value.collection
|
|
46
|
-
), $ = x(() => Object.keys(v).length > 0);
|
|
47
|
-
return (t, s) => (i(), m(X, null, {
|
|
48
|
-
default: l(() => [
|
|
49
|
-
a(o(te), { title: "Servers" }, {
|
|
50
|
-
content: l(() => [
|
|
51
|
-
n("div", oe, [
|
|
52
|
-
a(J, null, {
|
|
53
|
-
default: l(() => [
|
|
54
|
-
(i(!0), d(k, null, _(j.value, (e) => {
|
|
55
|
-
var c;
|
|
56
|
-
return i(), d("li", {
|
|
57
|
-
key: e.uid,
|
|
58
|
-
class: "gap-1/2 flex flex-col"
|
|
59
|
-
}, [
|
|
60
|
-
n("button", {
|
|
61
|
-
class: "hover:bg-b-2 group flex w-full items-center gap-1.5 break-words rounded p-1.5 text-left text-sm font-medium",
|
|
62
|
-
type: "button",
|
|
63
|
-
onClick: (r) => o(N)(e.uid)
|
|
64
|
-
}, [
|
|
65
|
-
n("span", ae, [
|
|
66
|
-
a(o(K), {
|
|
67
|
-
class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
|
|
68
|
-
src: e["x-scalar-icon"] || "interface-content-folder"
|
|
69
|
-
}, null, 8, ["src"]),
|
|
70
|
-
n("div", {
|
|
71
|
-
class: g({
|
|
72
|
-
"rotate-90": o(b)[e.uid]
|
|
73
|
-
})
|
|
74
|
-
}, [
|
|
75
|
-
a(o(p), {
|
|
76
|
-
class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
|
|
77
|
-
icon: "ChevronRight",
|
|
78
|
-
size: "md"
|
|
79
|
-
})
|
|
80
|
-
], 2)
|
|
81
|
-
]),
|
|
82
|
-
n("span", ie, W(((c = e.info) == null ? void 0 : c.title) ?? ""), 1),
|
|
83
|
-
a(o(y), {
|
|
84
|
-
class: "hover:bg-b-3 hover:text-c-1 hidden aspect-square h-fit px-0.5 py-0 group-hover:block group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
85
|
-
size: "sm",
|
|
86
|
-
variant: "ghost",
|
|
87
|
-
onClick: F((r) => u(e.uid), ["stop", "prevent"])
|
|
88
|
-
}, {
|
|
89
|
-
default: l(() => [
|
|
90
|
-
a(o(p), {
|
|
91
|
-
icon: "Add",
|
|
92
|
-
size: "md",
|
|
93
|
-
thickness: "2"
|
|
94
|
-
})
|
|
95
|
-
]),
|
|
96
|
-
_: 2
|
|
97
|
-
}, 1032, ["onClick"])
|
|
98
|
-
], 8, se),
|
|
99
|
-
O(n("div", {
|
|
100
|
-
class: g({
|
|
101
|
-
"before:bg-border before:z-1 gap-1/2 relative mb-[.5px] flex flex-col before:pointer-events-none before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(e.servers || {}).length > 0
|
|
102
|
-
})
|
|
103
|
-
}, [
|
|
104
|
-
(i(!0), d(k, null, _(e.servers, (r) => {
|
|
105
|
-
var h;
|
|
106
|
-
return i(), m(Q, {
|
|
107
|
-
key: r,
|
|
108
|
-
class: "[&>a]:pl-[1.625rem]",
|
|
109
|
-
collectionId: e.uid,
|
|
110
|
-
isDeletable: !0,
|
|
111
|
-
type: "servers",
|
|
112
|
-
variable: {
|
|
113
|
-
name: ((h = o(v)[r]) == null ? void 0 : h.url) ?? "",
|
|
114
|
-
uid: r
|
|
115
|
-
},
|
|
116
|
-
onClick: (B) => E(B, r, e.uid),
|
|
117
|
-
onDelete: I
|
|
118
|
-
}, null, 8, ["collectionId", "variable", "onClick"]);
|
|
119
|
-
}), 128)),
|
|
120
|
-
Object.keys(e.servers || {}).length === 0 ? (i(), m(o(y), {
|
|
121
|
-
key: 0,
|
|
122
|
-
class: "text-c-1 hover:bg-b-2 mb-[.5px] flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",
|
|
123
|
-
variant: "ghost",
|
|
124
|
-
onClick: (r) => u(e.uid)
|
|
125
|
-
}, {
|
|
126
|
-
default: l(() => [
|
|
127
|
-
a(o(p), {
|
|
128
|
-
icon: "Add",
|
|
129
|
-
size: "sm"
|
|
130
|
-
}),
|
|
131
|
-
s[0] || (s[0] = n("span", null, "Add Server", -1))
|
|
132
|
-
]),
|
|
133
|
-
_: 2
|
|
134
|
-
}, 1032, ["onClick"])) : R("", !0)
|
|
135
|
-
], 2), [
|
|
136
|
-
[M, V(e.uid)]
|
|
137
|
-
])
|
|
138
|
-
]);
|
|
139
|
-
}), 128))
|
|
140
|
-
]),
|
|
141
|
-
_: 1
|
|
142
|
-
})
|
|
143
|
-
])
|
|
144
|
-
]),
|
|
145
|
-
button: l(() => [
|
|
146
|
-
a(H, { click: u }, {
|
|
147
|
-
title: l(() => s[1] || (s[1] = [
|
|
148
|
-
q(" Add Server ")
|
|
149
|
-
])),
|
|
150
|
-
_: 1
|
|
151
|
-
})
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
}),
|
|
155
|
-
a(Y, { class: "flex-1" }, {
|
|
156
|
-
default: l(() => [
|
|
157
|
-
$.value ? (i(), m(U, { key: 0 })) : (i(), m(G, { key: 1 }))
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
})
|
|
161
|
-
]),
|
|
162
|
-
_: 1
|
|
163
|
-
}));
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
export {
|
|
167
|
-
Ce as default
|
|
168
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
|