@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,39 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as a, openBlock as s, createElementBlock as l, unref as o, createElementVNode as t, toDisplayString as d, normalizeClass as p } from "vue";
|
|
2
|
+
import { useSidebar as c } from "../../hooks/useSidebar.js";
|
|
3
|
+
const u = { class: "sr-only" }, m = {
|
|
3
4
|
class: "size-4",
|
|
4
5
|
fill: "none",
|
|
5
6
|
viewBox: "0 0 24 24",
|
|
6
7
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7
|
-
},
|
|
8
|
+
}, g = { "clip-path": "url(#mask)" }, k = /* @__PURE__ */ a({
|
|
8
9
|
__name: "SidebarToggle",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
setup(u) {
|
|
14
|
-
return (o, t) => (l(), n("button", {
|
|
15
|
-
class: "scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded-lg",
|
|
10
|
+
setup(b) {
|
|
11
|
+
const { isSidebarOpen: n, toggleSidebarOpen: r } = c();
|
|
12
|
+
return (f, e) => (s(), l("button", {
|
|
13
|
+
class: "scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 rounded-lg p-2",
|
|
16
14
|
type: "button",
|
|
17
|
-
onClick:
|
|
15
|
+
onClick: e[0] || (e[0] = //@ts-ignore
|
|
16
|
+
(...i) => o(r) && o(r)(...i))
|
|
18
17
|
}, [
|
|
19
|
-
|
|
20
|
-
(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
t("span", u, d(o(n) ? "Hide" : "Show") + " sidebar", 1),
|
|
19
|
+
(s(), l("svg", m, [
|
|
20
|
+
e[1] || (e[1] = t("defs", null, [
|
|
21
|
+
t("clipPath", { id: "mask" }, [
|
|
22
|
+
t("path", {
|
|
24
23
|
"clip-rule": "evenodd",
|
|
25
24
|
d: "M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"
|
|
26
25
|
})
|
|
27
26
|
])
|
|
28
27
|
], -1)),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class:
|
|
28
|
+
t("g", g, [
|
|
29
|
+
t("path", {
|
|
30
|
+
class: p(["transition-transform duration-300", o(n) ? "translate-x-0" : "-translate-x-1/2"]),
|
|
32
31
|
d: "M1 3.2h8v17.5H1z",
|
|
33
32
|
fill: "currentColor"
|
|
34
33
|
}, null, 2)
|
|
35
34
|
]),
|
|
36
|
-
|
|
35
|
+
e[2] || (e[2] = t("path", {
|
|
37
36
|
d: "M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",
|
|
38
37
|
stroke: "currentColor",
|
|
39
38
|
"stroke-linecap": "round",
|
|
@@ -45,5 +44,5 @@ const i = { class: "sr-only" }, d = {
|
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
46
|
export {
|
|
48
|
-
|
|
47
|
+
k as default
|
|
49
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":"AAiRA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACjD,CAAC;;AAkcF,wBAOG"}
|
|
@@ -1,139 +1,158 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { ROUTES as H } from "../../constants.js";
|
|
4
|
-
import { useActiveEntities as W } from "../../store/active-entities.js";
|
|
5
|
-
import { ScalarContextMenu as G, ScalarIcon as h, ScalarFloating as J, ScalarDropdownMenu as P, ScalarDropdownButton as I } from "@scalar/components";
|
|
6
|
-
import { capitalize as Q } from "@scalar/oas-utils/helpers";
|
|
1
|
+
import { defineComponent as j, reactive as z, ref as O, computed as W, watch as R, onMounted as D, onBeforeUnmount as K, openBlock as m, createElementBlock as b, createElementVNode as v, createVNode as r, unref as s, withCtx as u, createBlock as _, createCommentVNode as q, toDisplayString as F, createTextVNode as S, Fragment as H, renderList as G } from "vue";
|
|
2
|
+
import { ScalarContextMenu as J, ScalarIcon as d, ScalarFloating as P, ScalarDropdownMenu as Q, ScalarDropdownButton as I } from "@scalar/components";
|
|
7
3
|
import { useClipboard as X } from "@scalar/use-hooks/useClipboard";
|
|
8
4
|
import { useRouter as Y } from "vue-router";
|
|
9
|
-
import Z from "
|
|
10
|
-
import {
|
|
11
|
-
|
|
5
|
+
import Z from "../ScalarHotkey.vue.js";
|
|
6
|
+
import { ROUTES as ee } from "../../constants.js";
|
|
7
|
+
import { useActiveEntities as te } from "../../store/active-entities.js";
|
|
8
|
+
import oe from "./TopNavItem.vue.js";
|
|
9
|
+
import { useWorkspace as ae } from "../../store/store.js";
|
|
10
|
+
const ne = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, le = { class: "relative flex h-10 flex-1 items-center gap-1.5 overflow-hidden pr-2.5 text-sm font-medium" }, ie = {
|
|
12
11
|
key: 0,
|
|
13
12
|
class: "h-full w-full overflow-hidden"
|
|
14
|
-
},
|
|
13
|
+
}, he = /* @__PURE__ */ j({
|
|
15
14
|
__name: "TopNav",
|
|
16
15
|
props: {
|
|
17
16
|
openNewTab: {}
|
|
18
17
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
18
|
+
setup(L) {
|
|
19
|
+
const U = L, { activeRequest: A, activeCollection: E } = te(), c = Y(), { events: g } = ae(), { copyToClipboard: M } = X(), t = z([{ label: "", path: "", icon: "Add" }]), a = O(0), T = W(() => a.value);
|
|
21
20
|
function k() {
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
var o, n, l, i, x;
|
|
22
|
+
if ((o = c.currentRoute.value.name) != null && o.toString().startsWith("collection.")) {
|
|
23
|
+
t[a.value] = {
|
|
24
|
+
label: ((l = (n = E.value) == null ? void 0 : n.info) == null ? void 0 : l.title) || "Untitled Collection",
|
|
25
|
+
path: c.currentRoute.value.path,
|
|
26
|
+
icon: "Collection"
|
|
27
|
+
};
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if ((i = c.currentRoute.value.name) != null && i.toString().startsWith("request")) {
|
|
31
|
+
t[a.value] = {
|
|
32
|
+
label: ((x = A.value) == null ? void 0 : x.summary) || "",
|
|
33
|
+
path: c.currentRoute.value.path,
|
|
34
|
+
icon: "ExternalLink"
|
|
35
|
+
};
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const e = ee.find((V) => {
|
|
39
|
+
var w;
|
|
40
|
+
return V.to.name.startsWith(
|
|
41
|
+
((w = c.currentRoute.value.name) == null ? void 0 : w.toString()) ?? ""
|
|
42
|
+
);
|
|
32
43
|
});
|
|
44
|
+
if (e) {
|
|
45
|
+
t[a.value] = {
|
|
46
|
+
label: e.displayName,
|
|
47
|
+
path: c.currentRoute.value.path,
|
|
48
|
+
icon: e.icon
|
|
49
|
+
};
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
33
52
|
}
|
|
34
|
-
function
|
|
35
|
-
var
|
|
36
|
-
const e = (
|
|
37
|
-
e &&
|
|
53
|
+
function h() {
|
|
54
|
+
var o;
|
|
55
|
+
const e = (o = t[a.value]) == null ? void 0 : o.path;
|
|
56
|
+
e && c.push(e);
|
|
38
57
|
}
|
|
39
58
|
function f() {
|
|
40
|
-
|
|
59
|
+
t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, k();
|
|
41
60
|
}
|
|
42
61
|
function p(e) {
|
|
43
|
-
a.value = e,
|
|
62
|
+
a.value = e, h();
|
|
44
63
|
}
|
|
45
|
-
|
|
46
|
-
() =>
|
|
64
|
+
R(
|
|
65
|
+
() => c.currentRoute.value.path,
|
|
47
66
|
() => {
|
|
48
67
|
k();
|
|
49
68
|
},
|
|
50
69
|
{ immediate: !0 }
|
|
51
70
|
);
|
|
52
|
-
function
|
|
53
|
-
|
|
71
|
+
function C(e) {
|
|
72
|
+
t.splice(e, 1), a.value = Math.min(
|
|
54
73
|
a.value,
|
|
55
|
-
|
|
56
|
-
),
|
|
74
|
+
t.length - 1
|
|
75
|
+
), h();
|
|
57
76
|
}
|
|
58
|
-
const
|
|
77
|
+
const N = (e) => {
|
|
59
78
|
var n;
|
|
60
|
-
if (!((n =
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
},
|
|
79
|
+
if (!((n = t[e]) != null && n.path)) return;
|
|
80
|
+
const o = new URL(window.location.href);
|
|
81
|
+
o.pathname = t[e].path, M(o.toString());
|
|
82
|
+
}, $ = (e) => {
|
|
83
|
+
t.splice(0, e), t.splice(1), a.value = 0, h();
|
|
84
|
+
}, y = (e) => {
|
|
66
85
|
if (e) {
|
|
67
|
-
if (e.addTopNav && f(), e.closeTopNav &&
|
|
68
|
-
const
|
|
69
|
-
|
|
86
|
+
if (e.addTopNav && f(), e.closeTopNav && C(a.value), e.navigateTopNavLeft && p(Math.max(a.value - 1, 0)), e.navigateTopNavRight && p(Math.min(a.value + 1, t.length - 1)), e.jumpToTab) {
|
|
87
|
+
const o = Number(e.jumpToTab.key) - 1;
|
|
88
|
+
o >= 0 && o < t.length && p(o);
|
|
70
89
|
}
|
|
71
|
-
e.jumpToLastTab && p(
|
|
90
|
+
e.jumpToLastTab && p(t.length - 1);
|
|
72
91
|
}
|
|
73
|
-
},
|
|
74
|
-
|
|
92
|
+
}, B = (e) => {
|
|
93
|
+
t.push({
|
|
75
94
|
label: e.name,
|
|
76
95
|
path: e.uid,
|
|
77
96
|
icon: "ExternalLink"
|
|
78
97
|
});
|
|
79
98
|
};
|
|
80
|
-
return
|
|
81
|
-
() =>
|
|
99
|
+
return R(
|
|
100
|
+
() => U.openNewTab,
|
|
82
101
|
(e) => {
|
|
83
|
-
e &&
|
|
102
|
+
e && B(e);
|
|
84
103
|
},
|
|
85
104
|
{ immediate: !0 }
|
|
86
|
-
),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
r(
|
|
91
|
-
trigger:
|
|
92
|
-
var n, l,
|
|
105
|
+
), D(() => g.hotKeys.on(y)), K(() => g.hotKeys.off(y)), (e, o) => (m(), b("nav", ne, [
|
|
106
|
+
o[3] || (o[3] = v("div", { class: "app-drag-region absolute inset-0" }, null, -1)),
|
|
107
|
+
v("div", le, [
|
|
108
|
+
t.length === 1 ? (m(), b("div", ie, [
|
|
109
|
+
r(s(J), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
|
|
110
|
+
trigger: u(() => {
|
|
111
|
+
var n, l, i;
|
|
93
112
|
return [
|
|
94
|
-
(n =
|
|
113
|
+
(n = t[0]) != null && n.icon ? (m(), _(s(d), {
|
|
95
114
|
key: 0,
|
|
96
|
-
icon: (l =
|
|
115
|
+
icon: (l = t[0]) == null ? void 0 : l.icon,
|
|
97
116
|
size: "xs",
|
|
98
117
|
thickness: "2.5"
|
|
99
|
-
}, null, 8, ["icon"])) :
|
|
100
|
-
|
|
118
|
+
}, null, 8, ["icon"])) : q("", !0),
|
|
119
|
+
v("span", null, F((i = t[0]) == null ? void 0 : i.label), 1)
|
|
101
120
|
];
|
|
102
121
|
}),
|
|
103
|
-
content:
|
|
104
|
-
r(
|
|
105
|
-
floating:
|
|
106
|
-
r(
|
|
107
|
-
default:
|
|
108
|
-
r(
|
|
122
|
+
content: u(() => [
|
|
123
|
+
r(s(P), { placement: "right-start" }, {
|
|
124
|
+
floating: u(() => [
|
|
125
|
+
r(s(Q), { class: "scalar-app scalar-client" }, {
|
|
126
|
+
default: u(() => [
|
|
127
|
+
r(s(I), {
|
|
109
128
|
class: "flex items-center gap-1.5",
|
|
110
129
|
onClick: f
|
|
111
130
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
r(
|
|
131
|
+
default: u(() => [
|
|
132
|
+
r(s(d), {
|
|
114
133
|
icon: "AddTab",
|
|
115
134
|
size: "sm",
|
|
116
135
|
thickness: "1.5"
|
|
117
136
|
}),
|
|
118
|
-
|
|
119
|
-
r(
|
|
137
|
+
o[1] || (o[1] = S(" New Tab ")),
|
|
138
|
+
r(Z, {
|
|
120
139
|
class: "bg-b-2 ml-auto",
|
|
121
140
|
hotkey: "T"
|
|
122
141
|
})
|
|
123
142
|
]),
|
|
124
143
|
_: 1
|
|
125
144
|
}),
|
|
126
|
-
r(
|
|
145
|
+
r(s(I), {
|
|
127
146
|
class: "flex items-center gap-1.5",
|
|
128
|
-
onClick:
|
|
147
|
+
onClick: o[0] || (o[0] = (n) => N(T.value))
|
|
129
148
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
r(
|
|
149
|
+
default: u(() => [
|
|
150
|
+
r(s(d), {
|
|
132
151
|
icon: "Link",
|
|
133
152
|
size: "sm",
|
|
134
153
|
thickness: "1.5"
|
|
135
154
|
}),
|
|
136
|
-
|
|
155
|
+
o[2] || (o[2] = S(" Copy URL "))
|
|
137
156
|
]),
|
|
138
157
|
_: 1
|
|
139
158
|
})
|
|
@@ -146,24 +165,24 @@ const te = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, oe
|
|
|
146
165
|
]),
|
|
147
166
|
_: 1
|
|
148
167
|
})
|
|
149
|
-
])) : (m(!0), b(
|
|
168
|
+
])) : (m(!0), b(H, { key: 1 }, G(t, (n, l) => (m(), _(oe, {
|
|
150
169
|
key: n.path,
|
|
151
170
|
active: l === T.value,
|
|
152
171
|
hotkey: (l + 1).toString(),
|
|
153
172
|
icon: n.icon,
|
|
154
173
|
label: n.label,
|
|
155
|
-
onClick: (
|
|
156
|
-
onClose: (
|
|
157
|
-
onCloseOtherTabs: (
|
|
158
|
-
onCopyUrl: (
|
|
174
|
+
onClick: (i) => p(l),
|
|
175
|
+
onClose: (i) => C(l),
|
|
176
|
+
onCloseOtherTabs: (i) => $(l),
|
|
177
|
+
onCopyUrl: (i) => N(l),
|
|
159
178
|
onNewTab: f
|
|
160
179
|
}, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
|
|
161
|
-
|
|
162
|
-
class: "text-c-3 hover:bg-b-3
|
|
180
|
+
v("button", {
|
|
181
|
+
class: "text-c-3 hover:bg-b-3 app-no-drag-region rounded p-1.5",
|
|
163
182
|
type: "button",
|
|
164
183
|
onClick: f
|
|
165
184
|
}, [
|
|
166
|
-
r(
|
|
185
|
+
r(s(d), {
|
|
167
186
|
icon: "Add",
|
|
168
187
|
size: "xs",
|
|
169
188
|
thickness: "2.5"
|
|
@@ -174,5 +193,5 @@ const te = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, oe
|
|
|
174
193
|
}
|
|
175
194
|
});
|
|
176
195
|
export {
|
|
177
|
-
|
|
196
|
+
he as default
|
|
178
197
|
};
|
|
@@ -6,14 +6,14 @@ type __VLS_Props = {
|
|
|
6
6
|
icon: Icon;
|
|
7
7
|
};
|
|
8
8
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
-
close: () => any;
|
|
10
9
|
click: () => any;
|
|
10
|
+
close: () => any;
|
|
11
11
|
newTab: () => any;
|
|
12
12
|
copyUrl: () => any;
|
|
13
13
|
closeOtherTabs: () => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onClose?: () => any;
|
|
16
15
|
onClick?: () => any;
|
|
16
|
+
onClose?: () => any;
|
|
17
17
|
onNewTab?: () => any;
|
|
18
18
|
onCopyUrl?: () => any;
|
|
19
19
|
onCloseOtherTabs?: () => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AAwMA,OAAO,
|
|
1
|
+
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AAwMA,OAAO,EAQL,KAAK,IAAI,EACV,MAAM,oBAAoB,CAAA;AAM3B,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;;;;;;;;;;;;;;AA2UF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNavItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-220e0e29"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, openBlock as p, createBlock as d, unref as s, withCtx as l, createVNode as t, createElementVNode as a, normalizeClass as k, toDisplayString as u, createCommentVNode as g, createTextVNode as r } from "vue";
|
|
2
|
-
import c from "../ScalarHotkey.vue.js";
|
|
3
2
|
import { ScalarContextMenu as b, ScalarTooltip as v, ScalarIcon as n, ScalarFloating as C, ScalarDropdownMenu as y, ScalarDropdownButton as m, ScalarDropdownDivider as T } from "@scalar/components";
|
|
3
|
+
import c from "../ScalarHotkey.vue.js";
|
|
4
4
|
const $ = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, w = { class: "custom-scroll nav-item-copy text-xs" }, B = /* @__PURE__ */ f({
|
|
5
5
|
__name: "TopNavItem",
|
|
6
6
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AA6BA,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { defineComponent as o, openBlock as t, createElementBlock as n, normalizeProps as l, guardReactiveProps as d, unref as f, renderSlot as i } from "vue";
|
|
2
|
+
import { useBindCx as a } from "@scalar/components";
|
|
3
|
+
const u = /* @__PURE__ */ o({
|
|
4
|
+
__name: "ViewLayout",
|
|
5
|
+
setup(m) {
|
|
6
|
+
const { cx: e } = a();
|
|
7
|
+
return (r, s) => (t(), n("div", l(d(
|
|
8
|
+
f(e)(
|
|
9
|
+
"flex flex-col min-h-0 flex-1 *:border-t-1/2 first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-3"
|
|
10
|
+
)
|
|
11
|
+
)), [
|
|
12
|
+
i(r.$slots, "default")
|
|
13
|
+
], 16));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
10
16
|
export {
|
|
11
|
-
|
|
17
|
+
u as default
|
|
12
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAqEA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAaF,iBAAS,cAAc;WAyJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as o, createBlock as a, unref as
|
|
2
|
-
import { Disclosure as h, DisclosureButton as
|
|
3
|
-
import { ScalarIcon as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as f, openBlock as o, createBlock as a, unref as l, withCtx as s, createElementVNode as i, createVNode as u, normalizeClass as c, createCommentVNode as r, renderSlot as n, createElementBlock as d, toDisplayString as p, mergeProps as m } from "vue";
|
|
2
|
+
import { Disclosure as h, DisclosureButton as x, DisclosurePanel as b } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as g } from "@scalar/components";
|
|
4
|
+
const y = { class: "bg-b-2 flex items-center" }, v = { class: "text-c-1 flex flex-1 items-center gap-1.5" }, C = {
|
|
5
5
|
key: 0,
|
|
6
|
-
class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full font-semibold
|
|
7
|
-
},
|
|
6
|
+
class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full border font-semibold"
|
|
7
|
+
}, _ = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "ui-not-open:invisible flex items-center gap-2 pr-1.5"
|
|
10
10
|
}, O = /* @__PURE__ */ f({
|
|
@@ -14,51 +14,51 @@ const g = { class: "bg-b-2 flex items-center" }, v = { class: "flex flex-1 items
|
|
|
14
14
|
itemCount: { default: 0 },
|
|
15
15
|
layout: { default: "client" }
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
return (e, w) => (o(), a(
|
|
17
|
+
setup(k) {
|
|
18
|
+
return (e, w) => (o(), a(l(h), {
|
|
19
19
|
as: "div",
|
|
20
|
-
class:
|
|
20
|
+
class: "group/collapse focus-within:text-c-1 text-c-2 request-item",
|
|
21
21
|
defaultOpen: e.defaultOpen,
|
|
22
22
|
static: e.layout === "reference"
|
|
23
23
|
}, {
|
|
24
|
-
default:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class:
|
|
28
|
-
"
|
|
24
|
+
default: s(({ open: t }) => [
|
|
25
|
+
i("div", y, [
|
|
26
|
+
u(l(x), {
|
|
27
|
+
class: c([
|
|
28
|
+
"hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-sm font-medium outline-none group-last/collapse:border-b md:px-1.5 xl:pl-2 xl:pr-0.5",
|
|
29
29
|
{ "!pl-3": e.layout === "reference" }
|
|
30
30
|
]),
|
|
31
31
|
disabled: e.layout === "reference"
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
e.layout !== "reference" ? (o(), a(
|
|
33
|
+
default: s(() => [
|
|
34
|
+
e.layout !== "reference" ? (o(), a(l(g), {
|
|
35
35
|
key: 0,
|
|
36
|
-
class:
|
|
37
|
-
"text-c-3 group-hover:text-c-1
|
|
36
|
+
class: c([
|
|
37
|
+
"text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0 rounded-px outline-offset-2 group-focus-visible:outline"
|
|
38
38
|
]),
|
|
39
39
|
icon: "ChevronRight",
|
|
40
40
|
size: "md"
|
|
41
|
-
})) :
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
!t && e.itemCount ? (o(), d("span", C, p(e.itemCount), 1)) :
|
|
41
|
+
})) : r("", !0),
|
|
42
|
+
i("div", v, [
|
|
43
|
+
n(e.$slots, "title", { open: t }),
|
|
44
|
+
!t && e.itemCount ? (o(), d("span", C, p(e.itemCount), 1)) : r("", !0)
|
|
45
45
|
])
|
|
46
46
|
]),
|
|
47
47
|
_: 2
|
|
48
48
|
}, 1032, ["class", "disabled"]),
|
|
49
|
-
e.$slots.actions ? (o(), d("div",
|
|
50
|
-
|
|
51
|
-
])) :
|
|
49
|
+
e.$slots.actions ? (o(), d("div", _, [
|
|
50
|
+
n(e.$slots, "actions", { open: t })
|
|
51
|
+
])) : r("", !0)
|
|
52
52
|
]),
|
|
53
|
-
|
|
54
|
-
default:
|
|
55
|
-
|
|
53
|
+
u(l(b), m(e.$attrs, { class: "diclosure-panel h-full max-h-fit rounded-b" }), {
|
|
54
|
+
default: s(() => [
|
|
55
|
+
n(e.$slots, "default", { open: t })
|
|
56
56
|
]),
|
|
57
57
|
_: 2
|
|
58
58
|
}, 1040)
|
|
59
59
|
]),
|
|
60
60
|
_: 3
|
|
61
|
-
}, 8, ["
|
|
61
|
+
}, 8, ["defaultOpen", "static"]));
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as e, createElementBlock as o, renderSlot as t } from "vue";
|
|
2
2
|
import l from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, s = { class: "*:border-t-1/2
|
|
3
|
+
const c = {}, s = { class: "*:border-t-1/2 xl:*:border-l-1/2 custom-scroll flex flex-col pr-0 first:*:border-t-0 xl:flex-row xl:*:border-t-0 xl:first:*:border-l-0" };
|
|
4
4
|
function n(r, f) {
|
|
5
5
|
return e(), o("div", s, [
|
|
6
6
|
t(r.$slots, "default")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAgCA,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { defineComponent as r, openBlock as t, createElementBlock as o, normalizeProps as s, guardReactiveProps as i, unref as c, renderSlot as l, createCommentVNode as m } from "vue";
|
|
2
|
+
import { useBindCx as u } from "@scalar/components";
|
|
3
|
+
const a = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "bg-b-1 z-1 sticky top-0 flex min-h-11 items-center border-b px-2.5 text-sm font-medium xl:rounded-none"
|
|
6
|
+
}, _ = /* @__PURE__ */ r({
|
|
7
|
+
__name: "ViewLayoutSection",
|
|
8
|
+
setup(d) {
|
|
9
|
+
const { cx: n } = u();
|
|
10
|
+
return (e, f) => (t(), o("section", s(i(
|
|
11
|
+
c(n)("xl:custom-scroll bg-b-1 flex flex-1 flex-col xl:h-full xl:min-w-0")
|
|
12
|
+
)), [
|
|
13
|
+
e.$slots.title ? (t(), o("div", a, [
|
|
14
|
+
l(e.$slots, "title")
|
|
15
|
+
])) : m("", !0),
|
|
16
|
+
l(e.$slots, "default")
|
|
17
|
+
], 16));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
13
20
|
export {
|
|
14
|
-
|
|
21
|
+
_ as default
|
|
15
22
|
};
|