@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,38 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as e, openBlock as t, createBlock as i, unref as n, withCtx as r, renderSlot as a } from "vue";
|
|
2
|
+
import { RouterLink as c } from "vue-router";
|
|
2
3
|
import p from "./SideNavLink.vue.js";
|
|
3
|
-
|
|
4
|
-
import { useActiveEntities as f } from "../../store/active-entities.js";
|
|
5
|
-
import { RouterLink as u } from "vue-router";
|
|
6
|
-
const $ = /* @__PURE__ */ a({
|
|
4
|
+
const _ = /* @__PURE__ */ e({
|
|
7
5
|
__name: "SideNavRouterLink",
|
|
8
6
|
props: {
|
|
9
7
|
icon: {},
|
|
10
|
-
|
|
8
|
+
to: {},
|
|
11
9
|
active: { type: Boolean }
|
|
12
10
|
},
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}, {
|
|
28
|
-
default: c(() => [
|
|
29
|
-
m(e.$slots, "default")
|
|
30
|
-
]),
|
|
31
|
-
_: 3
|
|
32
|
-
}, 8, ["is", "active", "icon", "to"]);
|
|
33
|
-
};
|
|
11
|
+
setup(s) {
|
|
12
|
+
return (o, f) => (t(), i(p, {
|
|
13
|
+
is: n(c),
|
|
14
|
+
active: !!o.active,
|
|
15
|
+
icon: o.icon,
|
|
16
|
+
to: o.to
|
|
17
|
+
}, {
|
|
18
|
+
default: r(() => [
|
|
19
|
+
a(o.$slots, "default")
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
}, 8, ["is", "active", "icon", "to"]));
|
|
34
23
|
}
|
|
35
24
|
});
|
|
36
25
|
export {
|
|
37
|
-
|
|
26
|
+
_ as default
|
|
38
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteSidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/DeleteSidebarListElement.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteSidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/DeleteSidebarListElement.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC,CAAC;;;;;;;;AAoHF,wBAQG"}
|
|
@@ -2,7 +2,7 @@ import { defineComponent as m, computed as p, openBlock as r, createBlock as c,
|
|
|
2
2
|
import f from "./SidebarListElementForm.vue.js";
|
|
3
3
|
const v = {
|
|
4
4
|
key: 0,
|
|
5
|
-
class: "
|
|
5
|
+
class: "text-c-2 text-pretty text-sm leading-normal"
|
|
6
6
|
}, w = /* @__PURE__ */ m({
|
|
7
7
|
__name: "DeleteSidebarListElement",
|
|
8
8
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditSidebarListCollection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/EditSidebarListCollection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditSidebarListCollection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/EditSidebarListCollection.vue"],"names":[],"mappings":"AAyDA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;;;;;;;AAsJF,wBAQG"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as p, ref as m, openBlock as f, createBlock as v, withCtx as n, createElementVNode as u, createVNode as l, unref as s } from "vue";
|
|
2
|
-
import x from "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const C = { class: "grid
|
|
2
|
+
import { ScalarButton as x, ScalarTextField as V } from "@scalar/components";
|
|
3
|
+
import { LibraryIcon as _ } from "@scalar/icons";
|
|
4
|
+
import b from "../../IconSelector.vue.js";
|
|
5
|
+
import S from "./SidebarListElementForm.vue.js";
|
|
6
|
+
const C = { class: "grid grid-cols-[auto,1fr] gap-2" }, g = { class: "flex aspect-square" }, k = /* @__PURE__ */ p({
|
|
7
7
|
__name: "EditSidebarListCollection",
|
|
8
8
|
props: {
|
|
9
9
|
name: {},
|
|
@@ -12,26 +12,26 @@ const C = { class: "grid gap-2 grid-cols-[auto,1fr]" }, g = { class: "flex aspec
|
|
|
12
12
|
emits: ["close", "edit"],
|
|
13
13
|
setup(d, { emit: c }) {
|
|
14
14
|
const r = d, i = c, a = m(r.name), o = m(r.icon);
|
|
15
|
-
return (w, e) => (f(), v(
|
|
15
|
+
return (w, e) => (f(), v(S, {
|
|
16
16
|
onCancel: e[2] || (e[2] = (t) => i("close")),
|
|
17
17
|
onSubmit: e[3] || (e[3] = (t) => i("edit", a.value, o.value))
|
|
18
18
|
}, {
|
|
19
19
|
default: n(() => [
|
|
20
20
|
u("div", C, [
|
|
21
21
|
u("div", g, [
|
|
22
|
-
l(
|
|
22
|
+
l(b, {
|
|
23
23
|
modelValue: o.value,
|
|
24
24
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => o.value = t),
|
|
25
25
|
placement: "bottom-start"
|
|
26
26
|
}, {
|
|
27
27
|
default: n(() => [
|
|
28
|
-
l(s(
|
|
29
|
-
class: "aspect-square px-0
|
|
28
|
+
l(s(x), {
|
|
29
|
+
class: "aspect-square h-auto px-0",
|
|
30
30
|
variant: "outlined"
|
|
31
31
|
}, {
|
|
32
32
|
default: n(() => [
|
|
33
|
-
l(s(
|
|
34
|
-
class: "
|
|
33
|
+
l(s(_), {
|
|
34
|
+
class: "text-c-2 size-4",
|
|
35
35
|
src: o.value
|
|
36
36
|
}, null, 8, ["src"])
|
|
37
37
|
]),
|
|
@@ -41,7 +41,7 @@ const C = { class: "grid gap-2 grid-cols-[auto,1fr]" }, g = { class: "flex aspec
|
|
|
41
41
|
_: 1
|
|
42
42
|
}, 8, ["modelValue"])
|
|
43
43
|
]),
|
|
44
|
-
l(s(
|
|
44
|
+
l(s(V), {
|
|
45
45
|
modelValue: a.value,
|
|
46
46
|
"onUpdate:modelValue": e[1] || (e[1] = (t) => a.value = t),
|
|
47
47
|
autofocus: "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditSidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/EditSidebarListElement.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditSidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/EditSidebarListElement.vue"],"names":[],"mappings":"AAmCA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;;;;;;;AA8GF,wBAQG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as a, ref as i, openBlock as u, createBlock as s, withCtx as d, createVNode as p, unref as f } from "vue";
|
|
2
|
-
import c from "
|
|
3
|
-
import
|
|
2
|
+
import { ScalarTextField as c } from "@scalar/components";
|
|
3
|
+
import v from "./SidebarListElementForm.vue.js";
|
|
4
4
|
const C = /* @__PURE__ */ a({
|
|
5
5
|
__name: "EditSidebarListElement",
|
|
6
6
|
props: {
|
|
@@ -9,12 +9,12 @@ const C = /* @__PURE__ */ a({
|
|
|
9
9
|
emits: ["close", "edit"],
|
|
10
10
|
setup(l, { emit: m }) {
|
|
11
11
|
const r = l, n = m, t = i(r.name);
|
|
12
|
-
return (x, e) => (u(), s(
|
|
12
|
+
return (x, e) => (u(), s(v, {
|
|
13
13
|
onCancel: e[1] || (e[1] = (o) => n("close")),
|
|
14
14
|
onSubmit: e[2] || (e[2] = (o) => n("edit", t.value))
|
|
15
15
|
}, {
|
|
16
16
|
default: d(() => [
|
|
17
|
-
p(f(
|
|
17
|
+
p(f(c), {
|
|
18
18
|
modelValue: t.value,
|
|
19
19
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => t.value = o),
|
|
20
20
|
autofocus: ""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarListElementForm.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c6b17e96"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as u, openBlock as m, createElementBlock as d, withModifiers as f, renderSlot as c, createElementVNode as b, createVNode as n, unref as a, withCtx as r, createTextVNode as s, toDisplayString as v } from "vue";
|
|
2
2
|
import { ScalarButton as l } from "@scalar/components";
|
|
3
|
-
const g = { class: "flex gap-10
|
|
3
|
+
const g = { class: "flex justify-between gap-10" }, y = /* @__PURE__ */ u({
|
|
4
4
|
__name: "SidebarListElementForm",
|
|
5
5
|
props: {
|
|
6
6
|
danger: { type: Boolean },
|
|
@@ -16,7 +16,7 @@ const g = { class: "flex gap-10 justify-between" }, y = /* @__PURE__ */ u({
|
|
|
16
16
|
c(t.$slots, "default", {}, void 0, !0),
|
|
17
17
|
b("div", g, [
|
|
18
18
|
n(a(l), {
|
|
19
|
-
class: "gap-1.5 px-2.5
|
|
19
|
+
class: "flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",
|
|
20
20
|
type: "button",
|
|
21
21
|
variant: "outlined",
|
|
22
22
|
onClick: e[0] || (e[0] = (p) => o("cancel"))
|
|
@@ -27,7 +27,7 @@ const g = { class: "flex gap-10 justify-between" }, y = /* @__PURE__ */ u({
|
|
|
27
27
|
_: 1
|
|
28
28
|
}),
|
|
29
29
|
n(a(l), {
|
|
30
|
-
class: "gap-1.5
|
|
30
|
+
class: "custom-scroll h-8 gap-1.5 whitespace-nowrap px-2.5 font-medium shadow-none focus:outline-none",
|
|
31
31
|
type: "submit",
|
|
32
32
|
variant: t.danger ? "danger" : "solid"
|
|
33
33
|
}, {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
title?: string;
|
|
3
|
-
isSidebarOpen?: boolean;
|
|
4
3
|
};
|
|
5
4
|
declare function __VLS_template(): {
|
|
6
5
|
attrs: Partial<{}>;
|
|
@@ -16,9 +15,7 @@ declare function __VLS_template(): {
|
|
|
16
15
|
rootEl: HTMLElement;
|
|
17
16
|
};
|
|
18
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
-
isSidebarOpen: boolean;
|
|
21
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLElement>;
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLElement>;
|
|
22
19
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
20
|
export default _default;
|
|
24
21
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAyDF,iBAAS,cAAc;WAoHT,OAAO,IAA6B;;wBAZtB,GAAG;wBACH,GAAG;wBAEH,GAAG;yBADF,GAAG;;;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAOnB,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d9639e58"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useBreakpoints as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { defineComponent as E, ref as g, withDirectives as S, openBlock as l, createElementBlock as m, normalizeClass as h, normalizeStyle as _, unref as t, renderSlot as r, createElementVNode as n, toDisplayString as D, createCommentVNode as u, Fragment as L, vShow as N } from "vue";
|
|
2
|
+
import { useBreakpoints as W } from "@scalar/use-hooks/useBreakpoints";
|
|
3
|
+
import { useLayout as $ } from "../../hooks/useLayout.js";
|
|
4
|
+
import { useSidebar as z } from "../../hooks/useSidebar.js";
|
|
5
|
+
import { useWorkspace as C } from "../../store/store.js";
|
|
6
|
+
const B = {
|
|
6
7
|
key: 0,
|
|
7
|
-
class: "
|
|
8
|
-
},
|
|
8
|
+
class: "xl:min-h-client-header flex min-h-12 items-center justify-between px-3 py-1.5 text-sm md:px-[18px] md:py-2.5"
|
|
9
|
+
}, I = { class: "m-0 whitespace-nowrap text-sm font-medium" }, X = { class: "bg-b-1 has-[.empty-sidebar-item]:border-t-1/2 relative sticky bottom-0 z-10 w-[inherit] pt-0 md:px-2.5 md:pb-2.5" }, q = /* @__PURE__ */ E({
|
|
9
10
|
__name: "Sidebar",
|
|
10
11
|
props: {
|
|
11
|
-
title: {}
|
|
12
|
-
isSidebarOpen: { type: Boolean, default: !0 }
|
|
12
|
+
title: {}
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
14
|
+
setup(R) {
|
|
15
|
+
const { isSidebarOpen: y } = z(), { sidebarWidth: o, setSidebarWidth: i } = C(), { layout: c } = $(), a = g(!1), p = g(null), { breakpoints: d } = W(), w = (e) => {
|
|
16
16
|
e.preventDefault();
|
|
17
|
-
const f = e.clientX,
|
|
17
|
+
const f = e.clientX, x = Number.parseInt(
|
|
18
18
|
getComputedStyle(p.value).width || o.value,
|
|
19
19
|
10
|
|
20
|
-
), b = (
|
|
20
|
+
), b = (k) => {
|
|
21
21
|
a.value = !0, document.body.classList.add("dragging");
|
|
22
|
-
let
|
|
23
|
-
|
|
22
|
+
let s = x + k.clientX - f;
|
|
23
|
+
s > 420 && (s = 420 + (s - 420) * 0.2), s < 240 && (s = 240), i(`${s}px`);
|
|
24
24
|
}, v = () => {
|
|
25
|
-
a.value = !1, document.body.classList.remove("dragging"), document.documentElement.removeEventListener("mousemove", b, !1), document.documentElement.removeEventListener("mouseup", v, !1), parseInt(o.value, 10) > 420 ? i("360px") : parseInt(o.value, 10) < 240 && i("240px");
|
|
25
|
+
a.value = !1, document.body.classList.remove("dragging"), document.documentElement.removeEventListener("mousemove", b, !1), document.documentElement.removeEventListener("mouseup", v, !1), Number.parseInt(o.value, 10) > 420 ? i("360px") : Number.parseInt(o.value, 10) < 240 && i("240px");
|
|
26
26
|
};
|
|
27
27
|
document.documentElement.addEventListener("mousemove", b, !1), document.documentElement.addEventListener("mouseup", v, !1);
|
|
28
28
|
};
|
|
29
|
-
return (e, f) =>
|
|
29
|
+
return (e, f) => S((l(), m("aside", {
|
|
30
30
|
ref_key: "sidebarRef",
|
|
31
31
|
ref: p,
|
|
32
|
-
class: h(["sidebar
|
|
33
|
-
style:
|
|
32
|
+
class: h(["sidebar bg-b-1 md:border-r-1/2 relative flex min-w-full flex-1 flex-col overflow-hidden leading-3 md:min-w-fit md:flex-none md:border-b-0", { dragging: a.value }]),
|
|
33
|
+
style: _({ width: t(d).lg ? t(o) : "100%" })
|
|
34
34
|
}, [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
r(e.$slots, "header", {}, void 0, !0),
|
|
36
|
+
t(c) !== "modal" && e.title ? (l(), m("div", B, [
|
|
37
|
+
n("h2", I, D(e.title), 1),
|
|
38
|
+
t(d).lg ? u("", !0) : r(e.$slots, "button", { key: 0 }, void 0, !0)
|
|
39
39
|
])) : u("", !0),
|
|
40
|
-
|
|
41
|
-
class: h(["custom-scroll sidebar-height pb-0 md:pb-[37px]
|
|
42
|
-
"sidebar-mask":
|
|
40
|
+
n("div", {
|
|
41
|
+
class: h(["custom-scroll sidebar-height w-[inherit] pb-0 md:pb-[37px]", {
|
|
42
|
+
"sidebar-mask": t(c) !== "modal"
|
|
43
43
|
}])
|
|
44
44
|
}, [
|
|
45
|
-
|
|
45
|
+
r(e.$slots, "content", {}, void 0, !0)
|
|
46
46
|
], 2),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
t(d).lg ? (l(), m(L, { key: 1 }, [
|
|
48
|
+
n("div", X, [
|
|
49
|
+
r(e.$slots, "button", {}, void 0, !0)
|
|
50
50
|
]),
|
|
51
|
-
|
|
51
|
+
n("div", {
|
|
52
52
|
class: "resizer",
|
|
53
|
-
onMousedown:
|
|
53
|
+
onMousedown: w
|
|
54
54
|
}, null, 32)
|
|
55
55
|
], 64)) : u("", !0)
|
|
56
56
|
], 6)), [
|
|
57
|
-
[
|
|
57
|
+
[N, t(y)]
|
|
58
58
|
]);
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
q as default
|
|
63
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AAuCA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AAcF,iBAAS,cAAc;WAmFT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;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,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, openBlock as o, createBlock as e, unref as r, withCtx as u, renderSlot as p, createCommentVNode as s } from "vue";
|
|
2
|
-
import m from "
|
|
3
|
-
import
|
|
2
|
+
import { ScalarButton as m } from "@scalar/components";
|
|
3
|
+
import d from "../ScalarHotkey.vue.js";
|
|
4
4
|
import { useLayout as k } from "../../hooks/useLayout.js";
|
|
5
5
|
const g = /* @__PURE__ */ i({
|
|
6
6
|
__name: "SidebarButton",
|
|
@@ -12,17 +12,17 @@ const g = /* @__PURE__ */ i({
|
|
|
12
12
|
const a = n, { layout: c } = k(), l = () => {
|
|
13
13
|
a.click();
|
|
14
14
|
};
|
|
15
|
-
return (t, h) => (o(), e(r(
|
|
16
|
-
class: "bg-b-1 text-c-1 hover:bg-b-2 group relative
|
|
15
|
+
return (t, h) => (o(), e(r(m), {
|
|
16
|
+
class: "bg-b-1 text-c-1 hover:bg-b-2 border-1/2 group relative h-auto w-auto px-2 py-1 md:w-full md:p-1.5",
|
|
17
17
|
icon: "Plus",
|
|
18
18
|
variant: "outlined",
|
|
19
19
|
onClick: l
|
|
20
20
|
}, {
|
|
21
21
|
default: u(() => [
|
|
22
22
|
p(t.$slots, "title"),
|
|
23
|
-
t.hotkey && r(c) === "desktop" ? (o(), e(
|
|
23
|
+
t.hotkey && r(c) === "desktop" ? (o(), e(d, {
|
|
24
24
|
key: 0,
|
|
25
|
-
class: "
|
|
25
|
+
class: "text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:block",
|
|
26
26
|
hotkey: t.hotkey
|
|
27
27
|
}, null, 8, ["hotkey"])) : s("", !0)
|
|
28
28
|
]),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Icon } from '@scalar/components';
|
|
2
|
+
import { type RouteLocationRaw } from 'vue-router';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
variable: {
|
|
4
5
|
uid: string;
|
|
@@ -7,12 +8,11 @@ type __VLS_Props = {
|
|
|
7
8
|
icon?: Icon;
|
|
8
9
|
isDefault?: boolean;
|
|
9
10
|
};
|
|
10
|
-
collectionId?: string;
|
|
11
11
|
warningMessage?: string;
|
|
12
|
+
to: RouteLocationRaw;
|
|
12
13
|
isDeletable?: boolean;
|
|
13
14
|
isCopyable?: boolean;
|
|
14
15
|
isRenameable?: boolean;
|
|
15
|
-
type: 'environment' | 'cookies' | 'servers';
|
|
16
16
|
};
|
|
17
17
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
18
|
delete: (id: string) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"AAgGA,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAM7D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAA;QACX,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,EAAE,EAAE,gBAAgB,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;;;;;;AAiMF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./SidebarListElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-245380f1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,74 +1,64 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import N from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const A = { class: "empty-variable-name text-sm line-clamp-1 break-all group-hover:pr-5" }, F = /* @__PURE__ */ C({
|
|
1
|
+
import { defineComponent as y, resolveComponent as C, openBlock as l, createElementBlock as i, createVNode as s, normalizeClass as k, withModifiers as h, withCtx as w, createElementVNode as m, normalizeStyle as B, createCommentVNode as b, createBlock as D, unref as M, toDisplayString as R } from "vue";
|
|
2
|
+
import { ScalarIcon as N } from "@scalar/components";
|
|
3
|
+
import { useRouter as S } from "vue-router";
|
|
4
|
+
import z from "./SidebarListElementActions.vue.js";
|
|
5
|
+
const E = { class: "empty-variable-name line-clamp-1 break-all text-sm group-hover:pr-5" }, K = /* @__PURE__ */ y({
|
|
7
6
|
__name: "SidebarListElement",
|
|
8
7
|
props: {
|
|
9
8
|
variable: {},
|
|
10
|
-
collectionId: {},
|
|
11
9
|
warningMessage: {},
|
|
10
|
+
to: {},
|
|
12
11
|
isDeletable: { type: Boolean },
|
|
13
12
|
isCopyable: { type: Boolean },
|
|
14
|
-
isRenameable: { type: Boolean }
|
|
15
|
-
type: {}
|
|
13
|
+
isRenameable: { type: Boolean }
|
|
16
14
|
},
|
|
17
15
|
emits: ["delete", "colorModal", "rename"],
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
e.metaKey ? window.open(l, "_blank") : y.push({ path: l });
|
|
28
|
-
}, g = (e) => {
|
|
29
|
-
r("delete", e);
|
|
30
|
-
}, w = (e) => {
|
|
31
|
-
r("colorModal", e);
|
|
32
|
-
}, $ = (e) => {
|
|
33
|
-
r("rename", e);
|
|
16
|
+
setup(p, { emit: u }) {
|
|
17
|
+
const n = p, a = u, r = S(), c = (e) => {
|
|
18
|
+
e.metaKey ? window.open(r.resolve(n.to).href, "_blank") : r.push(n.to);
|
|
19
|
+
}, d = (e) => {
|
|
20
|
+
a("delete", e);
|
|
21
|
+
}, v = (e) => {
|
|
22
|
+
a("colorModal", e);
|
|
23
|
+
}, f = (e) => {
|
|
24
|
+
a("rename", e);
|
|
34
25
|
};
|
|
35
|
-
return (e,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
exactActiveClass: "active-link",
|
|
26
|
+
return (e, o) => {
|
|
27
|
+
const g = C("router-link");
|
|
28
|
+
return l(), i("li", null, [
|
|
29
|
+
s(g, {
|
|
30
|
+
class: k(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-1.5"]]),
|
|
31
|
+
exactActiveClass: "bg-b-2 text-c-1",
|
|
42
32
|
role: "button",
|
|
43
|
-
to: e.
|
|
44
|
-
onClick:
|
|
33
|
+
to: e.to,
|
|
34
|
+
onClick: o[1] || (o[1] = h((t) => c(t), ["prevent"]))
|
|
45
35
|
}, {
|
|
46
|
-
default:
|
|
47
|
-
e.variable.color ? (
|
|
36
|
+
default: w(() => [
|
|
37
|
+
e.variable.color ? (l(), i("button", {
|
|
48
38
|
key: 0,
|
|
49
39
|
class: "hover:bg-b-3 rounded p-1.5",
|
|
50
40
|
type: "button",
|
|
51
|
-
onClick:
|
|
41
|
+
onClick: o[0] || (o[0] = (t) => v(e.variable.uid))
|
|
52
42
|
}, [
|
|
53
43
|
m("div", {
|
|
54
44
|
class: "h-2.5 w-2.5 rounded-xl",
|
|
55
|
-
style:
|
|
45
|
+
style: B({ backgroundColor: e.variable.color })
|
|
56
46
|
}, null, 4)
|
|
57
|
-
])) :
|
|
58
|
-
e.variable.icon ? (
|
|
47
|
+
])) : b("", !0),
|
|
48
|
+
e.variable.icon ? (l(), D(M(N), {
|
|
59
49
|
key: 1,
|
|
60
50
|
class: "text-sidebar-c-2 size-3.5 stroke-[2.25]",
|
|
61
51
|
icon: e.variable.icon
|
|
62
|
-
}, null, 8, ["icon"])) :
|
|
63
|
-
m("span",
|
|
64
|
-
|
|
52
|
+
}, null, 8, ["icon"])) : b("", !0),
|
|
53
|
+
m("span", E, R(e.variable.name), 1),
|
|
54
|
+
s(z, {
|
|
65
55
|
isCopyable: !!e.isCopyable,
|
|
66
56
|
isDeletable: !!e.isDeletable,
|
|
67
57
|
isRenameable: !!e.isRenameable,
|
|
68
58
|
variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
|
|
69
59
|
warningMessage: e.warningMessage,
|
|
70
|
-
onDelete:
|
|
71
|
-
onRename:
|
|
60
|
+
onDelete: d,
|
|
61
|
+
onRename: f
|
|
72
62
|
}, null, 8, ["isCopyable", "isDeletable", "isRenameable", "variable", "warningMessage"])
|
|
73
63
|
]),
|
|
74
64
|
_: 1
|
|
@@ -78,5 +68,5 @@ const A = { class: "empty-variable-name text-sm line-clamp-1 break-all group-hov
|
|
|
78
68
|
}
|
|
79
69
|
});
|
|
80
70
|
export {
|
|
81
|
-
|
|
71
|
+
K as default
|
|
82
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":"AAqGA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB,CAAA;IACD,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;;;;AA2MF,wBAOG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as g, ref as C, openBlock as n, createElementBlock as l, Fragment as h, createElementVNode as w, unref as a, createVNode as i, createCommentVNode as r, withModifiers as k, withCtx as M, createBlock as D } from "vue";
|
|
2
|
-
import N from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const E = { class: "absolute
|
|
2
|
+
import { useModal as N, ScalarIcon as m, ScalarModal as $ } from "@scalar/components";
|
|
3
|
+
import { useClipboard as B } from "@scalar/use-hooks/useClipboard";
|
|
4
|
+
import x from "./Actions/DeleteSidebarListElement.vue.js";
|
|
5
|
+
const E = { class: "absolute right-1 flex opacity-0 group-hover:opacity-100" }, R = /* @__PURE__ */ g({
|
|
6
6
|
__name: "SidebarListElementActions",
|
|
7
7
|
props: {
|
|
8
8
|
variable: {},
|
|
@@ -13,7 +13,7 @@ const E = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["delete", "rename"],
|
|
15
15
|
setup(d, { emit: p }) {
|
|
16
|
-
const b = p, o = C({ action: "None", name: "" }), s =
|
|
16
|
+
const b = p, o = C({ action: "None", name: "" }), s = N(), { copyToClipboard: v } = B();
|
|
17
17
|
function f(e) {
|
|
18
18
|
o.value = { action: e, name: d.variable.name }, s.show();
|
|
19
19
|
}
|
|
@@ -62,13 +62,13 @@ const E = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
|
|
|
62
62
|
})
|
|
63
63
|
])) : r("", !0)
|
|
64
64
|
]),
|
|
65
|
-
i(a(
|
|
65
|
+
i(a($), {
|
|
66
66
|
size: "sm",
|
|
67
67
|
state: a(s),
|
|
68
68
|
title: `${o.value.action} ${o.value.name}`
|
|
69
69
|
}, {
|
|
70
70
|
default: M(() => [
|
|
71
|
-
o.value.action === "Delete" ? (n(), D(
|
|
71
|
+
o.value.action === "Delete" ? (n(), D(x, {
|
|
72
72
|
key: 0,
|
|
73
73
|
variableName: o.value.name,
|
|
74
74
|
warningMessage: e.warningMessage,
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
modelValue: boolean;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
-
"update:modelValue": (v: boolean) => any;
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
-
"onUpdate:modelValue"?: (v: boolean) => any;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
9
2
|
export default _default;
|
|
10
3
|
//# sourceMappingURL=SidebarToggle.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarToggle.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarToggle.vue"],"names":[],"mappings":";AAqHA,wBAMG"}
|