@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,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as e, createBlock as n, withCtx as r, createTextVNode as l, createElementBlock as s, createVNode as m, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as p, openBlock as e, createBlock as n, withCtx as r, createTextVNode as l, createElementBlock as s, createVNode as m, Fragment as i, renderList as _, toDisplayString as c } from "vue";
|
|
2
|
+
import h from "../../../components/DataTable/DataTable.vue.js";
|
|
3
|
+
import x from "../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import u from "../../../components/DataTable/DataTableText.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { httpHeaders as
|
|
8
|
-
const
|
|
5
|
+
import g from "../../../components/HelpfulLink.vue.js";
|
|
6
|
+
import w from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
7
|
+
import { httpHeaders as y } from "../../../data/httpHeaders.js";
|
|
8
|
+
const b = {
|
|
9
9
|
key: 0,
|
|
10
|
-
class: "
|
|
11
|
-
},
|
|
10
|
+
class: "max-h-[calc(100%-32px)] overflow-y-auto border-t"
|
|
11
|
+
}, k = {
|
|
12
12
|
key: 1,
|
|
13
|
-
class: "text-c-3
|
|
13
|
+
class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-sm"
|
|
14
14
|
}, D = /* @__PURE__ */ p({
|
|
15
15
|
__name: "ResponseHeaders",
|
|
16
16
|
props: {
|
|
17
17
|
headers: {}
|
|
18
18
|
},
|
|
19
19
|
setup(C) {
|
|
20
|
-
const
|
|
20
|
+
const f = (o) => y.find(
|
|
21
21
|
(a) => a.name.toLowerCase() === o.toLowerCase()
|
|
22
22
|
);
|
|
23
|
-
return (o, a) => (e(), n(
|
|
23
|
+
return (o, a) => (e(), n(w, {
|
|
24
24
|
class: "overflow-auto",
|
|
25
25
|
defaultOpen: !1,
|
|
26
26
|
itemCount: o.headers.length
|
|
@@ -29,40 +29,39 @@ const g = {
|
|
|
29
29
|
l("Headers")
|
|
30
30
|
])),
|
|
31
31
|
default: r(() => [
|
|
32
|
-
o.headers.length ? (e(), s("div",
|
|
33
|
-
m(
|
|
34
|
-
class: "!border-0 !mx-0",
|
|
32
|
+
o.headers.length ? (e(), s("div", b, [
|
|
33
|
+
m(h, {
|
|
35
34
|
columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
|
|
36
35
|
scroll: ""
|
|
37
36
|
}, {
|
|
38
37
|
default: r(() => [
|
|
39
|
-
(e(!0), s(
|
|
38
|
+
(e(!0), s(i, null, _(o.headers, (t) => (e(), n(x, {
|
|
40
39
|
key: t.name,
|
|
41
|
-
class: "text-c-1"
|
|
40
|
+
class: "group/row text-c-1"
|
|
42
41
|
}, {
|
|
43
42
|
default: r(() => [
|
|
44
|
-
m(u, { class: "
|
|
43
|
+
m(u, { class: "z-1 bg-b-1 sticky left-0 max-w-48 group-first/row:border-t-0" }, {
|
|
45
44
|
default: r(() => {
|
|
46
|
-
var
|
|
45
|
+
var d;
|
|
47
46
|
return [
|
|
48
|
-
typeof ((
|
|
47
|
+
typeof ((d = f(t.name)) == null ? void 0 : d.url) == "string" ? (e(), n(g, {
|
|
49
48
|
key: 0,
|
|
50
49
|
class: "decoration-c-3",
|
|
51
|
-
href:
|
|
50
|
+
href: f(t.name).url
|
|
52
51
|
}, {
|
|
53
52
|
default: r(() => [
|
|
54
|
-
l(
|
|
53
|
+
l(c(t.name), 1)
|
|
55
54
|
]),
|
|
56
55
|
_: 2
|
|
57
|
-
}, 1032, ["href"])) : (e(), s(
|
|
58
|
-
l(
|
|
56
|
+
}, 1032, ["href"])) : (e(), s(i, { key: 1 }, [
|
|
57
|
+
l(c(t.name), 1)
|
|
59
58
|
], 64))
|
|
60
59
|
];
|
|
61
60
|
}),
|
|
62
61
|
_: 2
|
|
63
62
|
}, 1024),
|
|
64
63
|
m(u, {
|
|
65
|
-
class: "z-0",
|
|
64
|
+
class: "z-0 group-first/row:border-t-0",
|
|
66
65
|
text: t.value
|
|
67
66
|
}, null, 8, ["text"])
|
|
68
67
|
]),
|
|
@@ -71,7 +70,7 @@ const g = {
|
|
|
71
70
|
]),
|
|
72
71
|
_: 1
|
|
73
72
|
})
|
|
74
|
-
])) : (e(), s("div",
|
|
73
|
+
])) : (e(), s("div", k, " No Headers "))
|
|
75
74
|
]),
|
|
76
75
|
_: 1
|
|
77
76
|
}, 8, ["itemCount"]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseLoadingOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseLoadingOverlay.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ResponseLoadingOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseLoadingOverlay.vue"],"names":[],"mappings":";AAyLA,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseLoadingOverlay.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-35587f03"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -3,7 +3,7 @@ import { useLoadingState as v, ScalarLoading as x, ScalarButton as _ } from "@sc
|
|
|
3
3
|
import { useWorkspace as k } from "../../../store/store.js";
|
|
4
4
|
const L = {
|
|
5
5
|
key: 0,
|
|
6
|
-
class: "absolute inset-0
|
|
6
|
+
class: "bg-b-1 absolute inset-0 flex flex-col items-center justify-center gap-6"
|
|
7
7
|
}, y = /* @__PURE__ */ u({
|
|
8
8
|
__name: "ResponseLoadingOverlay",
|
|
9
9
|
setup(S) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseMetaInformation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseMetaInformation.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAWvE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;;AAsJlD,wBAOG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as I, ref as m, computed as _, openBlock as o, createElementBlock as r, toDisplayString as n, unref as f, Fragment as v, createElementVNode as a, createTextVNode as p, createCommentVNode as y, createBlock as b, withCtx as w, normalizeStyle as k } from "vue";
|
|
2
|
-
import B from "
|
|
3
|
-
import
|
|
4
|
-
import N from "pretty-bytes";
|
|
2
|
+
import { httpStatusCodes as B } from "@scalar/oas-utils/helpers";
|
|
3
|
+
import L from "pretty-bytes";
|
|
5
4
|
import h from "pretty-ms";
|
|
5
|
+
import N from "../../../components/HelpfulLink.vue.js";
|
|
6
6
|
import { useWorkspace as V } from "../../../store/store.js";
|
|
7
|
-
const x = { class: "flex gap-1.5
|
|
7
|
+
const x = { class: "text-c-1 flex gap-1.5" }, z = { key: 0 }, D = { key: 0 }, E = { key: 1 }, $ = /* @__PURE__ */ I({
|
|
8
8
|
__name: "ResponseMetaInformation",
|
|
9
9
|
props: {
|
|
10
10
|
response: {}
|
|
@@ -20,11 +20,11 @@ const x = { class: "flex gap-1.5 text-c-1" }, z = { key: 0 }, D = { key: 0 }, E
|
|
|
20
20
|
((c = e.headers) == null ? void 0 : c["Content-Length"]) || ((d = e.headers) == null ? void 0 : d["content-length"]) || "0",
|
|
21
21
|
10
|
|
22
22
|
);
|
|
23
|
-
return t ?
|
|
23
|
+
return t ? L(t) : void 0;
|
|
24
24
|
}, s = _(() => {
|
|
25
25
|
const e = C.response.status;
|
|
26
26
|
if (e)
|
|
27
|
-
return
|
|
27
|
+
return B[e] ?? void 0;
|
|
28
28
|
});
|
|
29
29
|
return (e, t) => (o(), r("div", x, [
|
|
30
30
|
l.value && u.value ? (o(), r("span", z, n(f(h)(u.value)), 1)) : (o(), r(v, { key: 1 }, [
|
|
@@ -38,7 +38,7 @@ const x = { class: "flex gap-1.5 text-c-1" }, z = { key: 0 }, D = { key: 0 }, E
|
|
|
38
38
|
])) : y("", !0),
|
|
39
39
|
s.value ? (o(), r(v, { key: 1 }, [
|
|
40
40
|
t[2] || (t[2] = a("span", { class: "sr-only" }, ", Status:", -1)),
|
|
41
|
-
s.value.url ? (o(), b(
|
|
41
|
+
s.value.url ? (o(), b(N, {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "flex items-center gap-1.5",
|
|
44
44
|
href: s.value.url
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AA6MA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAgBvE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACvC,CAAC;;AA4RF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-700328ca"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -7,9 +7,9 @@ import q from "./ResponseLoadingOverlay.vue.js";
|
|
|
7
7
|
import H from "./ResponseMetaInformation.vue.js";
|
|
8
8
|
import V from "./ResponseBodyVirtual.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const z = { class: "flex
|
|
10
|
+
import $ from "./ResponseCookies.vue.js";
|
|
11
|
+
import w from "./ResponseHeaders.vue.js";
|
|
12
|
+
const z = { class: "flex h-8 flex-1 items-center" }, k = 2e5, U = /* @__PURE__ */ A({
|
|
13
13
|
__name: "ResponseSection",
|
|
14
14
|
props: {
|
|
15
15
|
numWorkspaceRequests: {},
|
|
@@ -82,7 +82,7 @@ const z = { class: "flex items-center flex-1 h-8" }, k = 2e5, U = /* @__PURE__ *
|
|
|
82
82
|
"aria-live": "polite",
|
|
83
83
|
class: f(["flex items-center", { "animate-response-heading": e.response }])
|
|
84
84
|
}, [
|
|
85
|
-
t[1] || (t[1] = p("span", { class: "response-heading
|
|
85
|
+
t[1] || (t[1] = p("span", { class: "response-heading pointer-events-none absolute" }, " Response ", -1)),
|
|
86
86
|
e.response ? (a(), l(H, {
|
|
87
87
|
key: 0,
|
|
88
88
|
class: "animate-response-children",
|
|
@@ -100,16 +100,16 @@ const z = { class: "flex items-center flex-1 h-8" }, k = 2e5, U = /* @__PURE__ *
|
|
|
100
100
|
var s, i, r;
|
|
101
101
|
return [
|
|
102
102
|
p("div", {
|
|
103
|
-
class: f(["custom-scroll h-full
|
|
103
|
+
class: f(["custom-scroll relative grid h-full justify-stretch divide-y", {
|
|
104
104
|
"content-start": e.response
|
|
105
105
|
}])
|
|
106
106
|
}, [
|
|
107
107
|
e.response ? (a(), y(h, { key: 1 }, [
|
|
108
|
-
o.value === "All" || o.value === "Cookies" ? (a(), l(
|
|
108
|
+
o.value === "All" || o.value === "Cookies" ? (a(), l($, {
|
|
109
109
|
key: 0,
|
|
110
110
|
cookies: x.value
|
|
111
111
|
}, null, 8, ["cookies"])) : c("", !0),
|
|
112
|
-
o.value === "All" || o.value === "Headers" ? (a(), l(
|
|
112
|
+
o.value === "All" || o.value === "Headers" ? (a(), l(w, {
|
|
113
113
|
key: 1,
|
|
114
114
|
headers: m.value
|
|
115
115
|
}, null, 8, ["headers"])) : c("", !0),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOpenApiWatcher.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/hooks/useOpenApiWatcher.ts"],"names":[],"mappings":"AAwBA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useOpenApiWatcher.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/hooks/useOpenApiWatcher.ts"],"names":[],"mappings":"AAwBA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,YAiH7B,CAAA"}
|
|
@@ -9,10 +9,7 @@ import N from "microdiff";
|
|
|
9
9
|
import { watch as b } from "vue";
|
|
10
10
|
import { useWorkspace as P } from "../../../store/store.js";
|
|
11
11
|
const k = 5 * 1e3, q = 60 * 1e3, J = () => {
|
|
12
|
-
const { toast: h } = C(), c = R(), o = P(), { activeCollection: t, activeWorkspace: W } = c, { collectionMutators: n } = o, r = (e) => h(
|
|
13
|
-
`[useOpenApiWatcher] Changes to the ${e} were not applied`,
|
|
14
|
-
"error"
|
|
15
|
-
), w = (e) => {
|
|
12
|
+
const { toast: h } = C(), c = R(), o = P(), { activeCollection: t, activeWorkspace: W } = c, { collectionMutators: n } = o, r = (e) => h(`[useOpenApiWatcher] Changes to the ${e} were not applied`, "error"), w = (e) => {
|
|
16
13
|
e.path[0] === "info" || e.path[0] === "security" ? d(e, c, o) || r("collection") : e.path[0] === "components" && e.path[1] === "securitySchemes" ? g(e, c, o) || r("securitySchemes") : e.path[0] === "servers" ? D(e, c, o) || r("servers") : e.path[0] === "tags" ? T(e, c, o) || r("tags") : e.path[0] === "paths" && (M(e, c, o) || r("requests"));
|
|
17
14
|
}, { pause: p, resume: m } = L(async () => {
|
|
18
15
|
var l, v;
|
|
@@ -20,16 +17,8 @@ const k = 5 * 1e3, q = 60 * 1e3, J = () => {
|
|
|
20
17
|
if (!e) return;
|
|
21
18
|
const s = f[e];
|
|
22
19
|
try {
|
|
23
|
-
const a = await I(
|
|
24
|
-
|
|
25
|
-
(v = W.value) == null ? void 0 : v.proxyUrl,
|
|
26
|
-
!1
|
|
27
|
-
), u = U(a);
|
|
28
|
-
if (n.edit(
|
|
29
|
-
t.value.uid,
|
|
30
|
-
"watchModeStatus",
|
|
31
|
-
"WATCHING"
|
|
32
|
-
), s != null && s.hash)
|
|
20
|
+
const a = await I(e, (v = W.value) == null ? void 0 : v.proxyUrl, !1), u = U(a);
|
|
21
|
+
if (n.edit(t.value.uid, "watchModeStatus", "WATCHING"), s != null && s.hash)
|
|
33
22
|
if (s.hash && s.hash !== u) {
|
|
34
23
|
const { schema: i } = await O(a), A = N(s.schema, i), y = S(A);
|
|
35
24
|
try {
|
|
@@ -49,35 +38,21 @@ const k = 5 * 1e3, q = 60 * 1e3, J = () => {
|
|
|
49
38
|
});
|
|
50
39
|
}
|
|
51
40
|
} catch (a) {
|
|
52
|
-
console.error("[useOpenApiWatcher] Error:", a), console.info("[useOpenApiWatcher] Pausing watcher for 60 seconds"), p(), n.edit(
|
|
53
|
-
t.value.uid,
|
|
54
|
-
"watchModeStatus",
|
|
55
|
-
"ERROR"
|
|
56
|
-
), h(
|
|
57
|
-
"[useOpenApiWatcher] Unable to fetch the spec file, paused the watcher for 60 seconds",
|
|
58
|
-
"error"
|
|
59
|
-
), setTimeout(() => {
|
|
41
|
+
console.error("[useOpenApiWatcher] Error:", a), console.info("[useOpenApiWatcher] Pausing watcher for 60 seconds"), p(), n.edit(t.value.uid, "watchModeStatus", "ERROR"), h("[useOpenApiWatcher] Unable to fetch the spec file, paused the watcher for 60 seconds", "error"), setTimeout(() => {
|
|
60
42
|
console.info("[useOpenApiWatcher] Resuming watcher"), m();
|
|
61
43
|
}, q);
|
|
62
44
|
}
|
|
63
45
|
}, k);
|
|
64
46
|
b(
|
|
65
|
-
[
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
()
|
|
71
|
-
|
|
72
|
-
return (e = t.value) == null ? void 0 : e.watchMode;
|
|
73
|
-
}
|
|
74
|
-
],
|
|
47
|
+
[() => {
|
|
48
|
+
var e;
|
|
49
|
+
return (e = t.value) == null ? void 0 : e.documentUrl;
|
|
50
|
+
}, () => {
|
|
51
|
+
var e;
|
|
52
|
+
return (e = t.value) == null ? void 0 : e.watchMode;
|
|
53
|
+
}],
|
|
75
54
|
([e, s]) => {
|
|
76
|
-
e && s ? (console.info(`[useOpenApiWatcher] Watching ${e} …`), m()) : t.value && (p(), n.edit(
|
|
77
|
-
t.value.uid,
|
|
78
|
-
"watchModeStatus",
|
|
79
|
-
"IDLE"
|
|
80
|
-
));
|
|
55
|
+
e && s ? (console.info(`[useOpenApiWatcher] Watching ${e} …`), m()) : t.value && (p(), n.edit(t.value.uid, "watchModeStatus", "IDLE"));
|
|
81
56
|
},
|
|
82
57
|
{ immediate: !0 }
|
|
83
58
|
);
|
|
@@ -14,4 +14,8 @@ export declare const hasItemProperties: (item: RequestExampleParameter) => boole
|
|
|
14
14
|
* Returns an alert message if the value is not in the correct type or format, otherwise false
|
|
15
15
|
*/
|
|
16
16
|
export declare const parameterIsInvalid: (item: RequestExampleParameter) => import("vue").ComputedRef<string | false>;
|
|
17
|
+
/**
|
|
18
|
+
* Checks if a RequestExampleParameter is required and has an empty value
|
|
19
|
+
*/
|
|
20
|
+
export declare const hasEmptyRequiredParameter: (item: RequestExampleParameter) => boolean;
|
|
17
21
|
//# sourceMappingURL=request.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAG9E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,SAAU,uBAAuB,YACwC,CAAA;AAEvG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,uBAAuB,8CAqD/D,CAAA"}
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAG9E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,SAAU,uBAAuB,YACwC,CAAA;AAEvG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,uBAAuB,8CAqD/D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,SAAU,uBAAuB,YAAgD,CAAA"}
|
|
@@ -32,8 +32,9 @@ const m = (e) => !!(e.description || e.type || e.default || e.format || e.minimu
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
return !1;
|
|
35
|
-
});
|
|
35
|
+
}), s = (e) => !!(e.required && e.value === "");
|
|
36
36
|
export {
|
|
37
|
+
s as hasEmptyRequiredParameter,
|
|
37
38
|
m as hasItemProperties,
|
|
38
39
|
n as parameterIsInvalid
|
|
39
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watch-mode.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/watch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,SAAS,EAAkB,MAAM,6BAA6B,CAAA;AAEvF,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,EAAE,eAAc,MAAM,EAAE,KAAQ,UAAU,EA+E5F,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;
|
|
1
|
+
{"version":3,"file":"watch-mode.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/watch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,SAAS,EAAkB,MAAM,6BAA6B,CAAA;AAEvF,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,EAAE,eAAc,MAAM,EAAE,KAAQ,UAAU,EA+E5F,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;AAWD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAAY,SAAS,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAG,SAAS,GAAG,IA8C5F,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,UACjB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,QAC/B,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,mGAAmG;IACnG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACrB,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;CACzC,GAAG,IAwBH,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,wBACM,mBAAmB,0BACjB,cAAc,KACrC,OA6BF,CAAA;AAqBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SACtB,UAAU,wBACM,mBAAmB,SAClC,cAAc,KACpB,OAsIF,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,SACrB,UAAU,wBACM,mBAAmB,+BACZ,cAAc,KAC1C,OAkCF,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,aAAa,SAClB,UAAU,wBACM,mBAAmB,yBAClB,cAAc,KACpC,OAmCF,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WAAY,SAAS,OAAO,MAAM,SAAS,MAAM,KAAG,SAAS,GAAG,IAgB7F,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,wBACM,mBAAmB,+CACI,cAAc,KAC1D,OAkCF,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { collectionSchema as M, requestSchema as V, serverSchema as q, tagSchema as S, securitySchemeSchema as Z, createExampleFromRequest as H } from "@scalar/oas-utils/entities/spec";
|
|
2
2
|
import { isHttpMethod as j, schemaModel as R } from "@scalar/oas-utils/helpers";
|
|
3
|
-
import { getNestedValue as
|
|
3
|
+
import { getNestedValue as D } from "@scalar/object-utils/nested";
|
|
4
4
|
import x from "microdiff";
|
|
5
5
|
import { z as i } from "zod";
|
|
6
6
|
const G = (e, s = []) => {
|
|
@@ -11,16 +11,16 @@ const G = (e, s = []) => {
|
|
|
11
11
|
a = !1;
|
|
12
12
|
continue;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
14
|
+
const n = e[u], r = e[u + 1];
|
|
15
|
+
if (n) {
|
|
16
16
|
if (s.length)
|
|
17
|
-
|
|
18
|
-
else if (
|
|
19
|
-
t.push(
|
|
17
|
+
n.path = [...s, ...n.path], r && (r.path = [...s, ...r.path]);
|
|
18
|
+
else if (n.path[0] !== "paths") {
|
|
19
|
+
t.push(n);
|
|
20
20
|
continue;
|
|
21
21
|
}
|
|
22
|
-
if (
|
|
23
|
-
const [, l, p] =
|
|
22
|
+
if (n.type === "REMOVE" && (r == null ? void 0 : r.type) === "CREATE") {
|
|
23
|
+
const [, l, p] = n.path, [, o, h] = r.path, c = ["paths", o].filter((f) => typeof f == "string");
|
|
24
24
|
if (l !== o && t.push({
|
|
25
25
|
type: "CHANGE",
|
|
26
26
|
path: ["paths", "path"],
|
|
@@ -32,14 +32,14 @@ const G = (e, s = []) => {
|
|
|
32
32
|
oldValue: p,
|
|
33
33
|
value: h
|
|
34
34
|
}), c.push(h)), s.length === 0) {
|
|
35
|
-
const f = x(
|
|
35
|
+
const f = x(n.oldValue, r.value);
|
|
36
36
|
if (f.length) {
|
|
37
37
|
const g = G(f, c);
|
|
38
38
|
t.push(...g);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
a = !0;
|
|
42
|
-
} else
|
|
42
|
+
} else n.type === "CREATE" && n.path.length > 3 && typeof n.path.at(-1) != "number" ? t.push({ ...n, type: "CHANGE", oldValue: void 0 }) : n.type === "REMOVE" && n.path.length > 3 && typeof n.path.at(-1) != "number" ? t.push({ ...n, type: "CHANGE", value: void 0 }) : t.push(n);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
return t;
|
|
@@ -49,7 +49,7 @@ const G = (e, s = []) => {
|
|
|
49
49
|
if (u && t(u)) return u;
|
|
50
50
|
}
|
|
51
51
|
return null;
|
|
52
|
-
}, d = (e) => e instanceof i.ZodOptional ? d(e.unwrap()) : e instanceof i.ZodDefault ? d(e._def.innerType) : e instanceof i.ZodEffects ? d(e._def.schema) : e, _ = (e, s) => {
|
|
52
|
+
}, d = (e) => e instanceof i.ZodOptional ? d(e.unwrap()) : e instanceof i.ZodDefault ? d(e._def.innerType) : e instanceof i.ZodEffects ? d(e._def.schema) : e instanceof i.ZodCatch ? d(e._def.innerType) : e, _ = (e, s) => {
|
|
53
53
|
let t = e;
|
|
54
54
|
for (const a of s) {
|
|
55
55
|
if (t = d(t), t instanceof i.ZodAny)
|
|
@@ -83,11 +83,11 @@ const G = (e, s = []) => {
|
|
|
83
83
|
pathMinusOne: u,
|
|
84
84
|
value: void 0
|
|
85
85
|
};
|
|
86
|
-
const
|
|
87
|
-
return
|
|
86
|
+
const n = R(s.value, t, !1);
|
|
87
|
+
return n ? {
|
|
88
88
|
path: a,
|
|
89
89
|
pathMinusOne: u,
|
|
90
|
-
value:
|
|
90
|
+
value: n
|
|
91
91
|
} : null;
|
|
92
92
|
}, L = (e, { activeCollection: s }, { collectionMutators: t }) => {
|
|
93
93
|
if (!s.value) return !1;
|
|
@@ -97,7 +97,7 @@ const G = (e, s = []) => {
|
|
|
97
97
|
path: e.path
|
|
98
98
|
});
|
|
99
99
|
if (!a) return !1;
|
|
100
|
-
const u = [...
|
|
100
|
+
const u = [...D(s.value, a.pathMinusOne)];
|
|
101
101
|
e.type === "CREATE" ? u.push(a.value) : e.type === "REMOVE" && u.pop(), t.edit(s.value.uid, a.pathMinusOne, u);
|
|
102
102
|
} else {
|
|
103
103
|
const a = E(M, e);
|
|
@@ -105,46 +105,46 @@ const G = (e, s = []) => {
|
|
|
105
105
|
t.edit(s.value.uid, a.path, a.value);
|
|
106
106
|
}
|
|
107
107
|
return !0;
|
|
108
|
-
},
|
|
109
|
-
const { requests: t, requestExamples: a, requestExampleMutators: u } = s,
|
|
110
|
-
|
|
108
|
+
}, T = (e, s) => {
|
|
109
|
+
const { requests: t, requestExamples: a, requestExampleMutators: u } = s, n = t[e];
|
|
110
|
+
n == null || n.examples.forEach((r) => {
|
|
111
111
|
var p;
|
|
112
|
-
const l = H(
|
|
112
|
+
const l = H(n, ((p = a[r]) == null ? void 0 : p.name) ?? "Default");
|
|
113
113
|
l && u.set({
|
|
114
114
|
...l,
|
|
115
|
-
uid:
|
|
115
|
+
uid: r
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
}, P = (e, { activeCollection: s }, t) => {
|
|
119
119
|
if (!s.value) return !1;
|
|
120
|
-
const { requests: a, requestMutators: u } = t, [,
|
|
121
|
-
if (
|
|
120
|
+
const { requests: a, requestMutators: u } = t, [, n, r, ...l] = e.path;
|
|
121
|
+
if (n === "path" && e.type === "CHANGE")
|
|
122
122
|
s.value.requests.forEach((p) => {
|
|
123
123
|
var o;
|
|
124
124
|
((o = a[p]) == null ? void 0 : o.path) === e.oldValue && u.edit(p, "path", e.value);
|
|
125
125
|
});
|
|
126
|
-
else if (
|
|
126
|
+
else if (r === "method" && e.type === "CHANGE")
|
|
127
127
|
s.value.requests.forEach((p) => {
|
|
128
128
|
var o, h;
|
|
129
|
-
((o = a[p]) == null ? void 0 : o.method) === e.oldValue && ((h = a[p]) == null ? void 0 : h.path) ===
|
|
129
|
+
((o = a[p]) == null ? void 0 : o.method) === e.oldValue && ((h = a[p]) == null ? void 0 : h.path) === n && u.edit(p, "method", e.value);
|
|
130
130
|
});
|
|
131
131
|
else if (e.type !== "CHANGE" && typeof l.at(-1) == "number") {
|
|
132
132
|
const p = v(
|
|
133
133
|
s.value.requests,
|
|
134
134
|
a,
|
|
135
|
-
(c) => c.path ===
|
|
135
|
+
(c) => c.path === n && c.method === r
|
|
136
136
|
), o = E(V, {
|
|
137
137
|
...e,
|
|
138
138
|
path: e.path.slice(3)
|
|
139
139
|
});
|
|
140
140
|
if (!p || !o) return !1;
|
|
141
|
-
const h = [...
|
|
142
|
-
e.type === "CREATE" ? h.push(o.value) : e.type === "REMOVE" && h.pop(), u.edit(p.uid, o.pathMinusOne, h), (e.path[3] === "parameters" || e.path[3] === "requestBody") &&
|
|
141
|
+
const h = [...D(p, o.pathMinusOne)];
|
|
142
|
+
e.type === "CREATE" ? h.push(o.value) : e.type === "REMOVE" && h.pop(), u.edit(p.uid, o.pathMinusOne, h), (e.path[3] === "parameters" || e.path[3] === "requestBody") && T(p.uid, t);
|
|
143
143
|
} else if (e.type === "CREATE") {
|
|
144
|
-
const [p] = Object.entries(e.value ?? {}), [o, h] = p ?? [], c =
|
|
145
|
-
...
|
|
144
|
+
const [p] = Object.entries(e.value ?? {}), [o, h] = p ?? [], c = r ? e.value : h, f = r || o, g = q.array().parse(c.servers ?? []), { security: y, ...N } = c, A = {
|
|
145
|
+
...N,
|
|
146
146
|
method: j(f) ? f : "get",
|
|
147
|
-
path:
|
|
147
|
+
path: n,
|
|
148
148
|
parameters: c.parameters ?? [],
|
|
149
149
|
servers: g.map((m) => m.uid)
|
|
150
150
|
};
|
|
@@ -164,7 +164,7 @@ const G = (e, s = []) => {
|
|
|
164
164
|
const p = v(
|
|
165
165
|
s.value.requests,
|
|
166
166
|
a,
|
|
167
|
-
(o) => o.path ===
|
|
167
|
+
(o) => o.path === n && o.method === r
|
|
168
168
|
);
|
|
169
169
|
if (!p) return !1;
|
|
170
170
|
u.delete(p, s.value.uid);
|
|
@@ -172,50 +172,50 @@ const G = (e, s = []) => {
|
|
|
172
172
|
const p = v(
|
|
173
173
|
s.value.requests,
|
|
174
174
|
a,
|
|
175
|
-
(h) => h.path ===
|
|
175
|
+
(h) => h.path === n && h.method === r
|
|
176
176
|
), o = E(V, { ...e, path: l });
|
|
177
177
|
if (!p || !o) return !1;
|
|
178
|
-
u.edit(p.uid, o.path, o.value), (e.path[3] === "parameters" || e.path[3] === "requestBody") &&
|
|
178
|
+
u.edit(p.uid, o.path, o.value), (e.path[3] === "parameters" || e.path[3] === "requestBody") && T(p.uid, t);
|
|
179
179
|
}
|
|
180
180
|
return !0;
|
|
181
181
|
}, W = (e, { activeCollection: s }, { servers: t, serverMutators: a }) => {
|
|
182
182
|
if (!s.value) return !1;
|
|
183
|
-
const [, u, ...
|
|
184
|
-
if (
|
|
185
|
-
const
|
|
186
|
-
if (!
|
|
187
|
-
const l = t[
|
|
183
|
+
const [, u, ...n] = e.path;
|
|
184
|
+
if (n != null && n.length) {
|
|
185
|
+
const r = s.value.servers[u];
|
|
186
|
+
if (!r) return !1;
|
|
187
|
+
const l = t[r], p = E(q, { ...e, path: n });
|
|
188
188
|
if (!l || !p) return !1;
|
|
189
|
-
const h = e.type === "REMOVE" &&
|
|
190
|
-
a.edit(
|
|
189
|
+
const h = e.type === "REMOVE" && n[n.length - 1] === "variables" ? {} : p.value;
|
|
190
|
+
a.edit(r, p.path, h);
|
|
191
191
|
} else if (e.type === "REMOVE") {
|
|
192
192
|
if (!s.value.servers[u]) return !1;
|
|
193
193
|
a.delete(s.value.servers[u], s.value.uid);
|
|
194
194
|
} else if (e.type === "CREATE") {
|
|
195
|
-
const
|
|
196
|
-
if (!
|
|
197
|
-
a.add(
|
|
195
|
+
const r = R(e.value, q, !1);
|
|
196
|
+
if (!r) return !1;
|
|
197
|
+
a.add(r, s.value.uid);
|
|
198
198
|
}
|
|
199
199
|
return !0;
|
|
200
200
|
}, I = (e, { activeCollection: s }, { tags: t, tagMutators: a }) => {
|
|
201
201
|
if (!s.value) return !1;
|
|
202
|
-
const [, u, ...
|
|
203
|
-
if (
|
|
204
|
-
const
|
|
205
|
-
if (!
|
|
206
|
-
const l = t[
|
|
202
|
+
const [, u, ...n] = e.path;
|
|
203
|
+
if (n != null && n.length) {
|
|
204
|
+
const r = s.value.tags[u];
|
|
205
|
+
if (!r) return !1;
|
|
206
|
+
const l = t[r], p = E(S, { ...e, path: n });
|
|
207
207
|
if (!l || !p) return !1;
|
|
208
|
-
a.edit(
|
|
208
|
+
a.edit(r, p.path, p.value);
|
|
209
209
|
} else if (e.type === "REMOVE") {
|
|
210
|
-
const
|
|
211
|
-
if (!
|
|
212
|
-
const l = t[
|
|
210
|
+
const r = s.value.tags[u];
|
|
211
|
+
if (!r) return !1;
|
|
212
|
+
const l = t[r];
|
|
213
213
|
if (!l) return !1;
|
|
214
214
|
a.delete(l, s.value.uid);
|
|
215
215
|
} else if (e.type === "CREATE") {
|
|
216
|
-
const
|
|
217
|
-
if (!
|
|
218
|
-
a.add(
|
|
216
|
+
const r = R(e.value, S, !1);
|
|
217
|
+
if (!r) return !1;
|
|
218
|
+
a.add(r, s.value.uid);
|
|
219
219
|
}
|
|
220
220
|
return !0;
|
|
221
221
|
}, w = (e, s, t) => {
|
|
@@ -228,21 +228,21 @@ const G = (e, s = []) => {
|
|
|
228
228
|
return null;
|
|
229
229
|
}, J = (e, { activeCollection: s }, { securitySchemes: t, securitySchemeMutators: a }) => {
|
|
230
230
|
if (!s.value) return !1;
|
|
231
|
-
const [, , u, ...
|
|
231
|
+
const [, , u, ...n] = e.path, r = t[u] ?? v(
|
|
232
232
|
s.value.securitySchemes,
|
|
233
233
|
t,
|
|
234
234
|
(l) => l.nameKey === u
|
|
235
235
|
);
|
|
236
|
-
if (
|
|
237
|
-
const l = w(Z, "type", (
|
|
238
|
-
if (!l || !
|
|
239
|
-
const p = E(l, { ...e, path:
|
|
236
|
+
if (n != null && n.length) {
|
|
237
|
+
const l = w(Z, "type", (r == null ? void 0 : r.type) ?? "");
|
|
238
|
+
if (!l || !r) return !1;
|
|
239
|
+
const p = E(l, { ...e, path: n });
|
|
240
240
|
if (!p) return !1;
|
|
241
241
|
const o = p.path;
|
|
242
|
-
a.edit(
|
|
242
|
+
a.edit(r.uid, o, p.value);
|
|
243
243
|
} else if (e.type === "REMOVE") {
|
|
244
|
-
if (!
|
|
245
|
-
a.delete(
|
|
244
|
+
if (!r) return !1;
|
|
245
|
+
a.delete(r.uid);
|
|
246
246
|
} else e.type === "CREATE" && a.add(Z.parse(e.value), s.value.uid);
|
|
247
247
|
return !0;
|
|
248
248
|
};
|
|
@@ -9,7 +9,7 @@ export type SidebarItem = {
|
|
|
9
9
|
resourceTitle: string;
|
|
10
10
|
children: string[];
|
|
11
11
|
method?: RequestMethod | undefined;
|
|
12
|
-
|
|
12
|
+
to?: RouteLocationRaw | undefined;
|
|
13
13
|
warning?: string;
|
|
14
14
|
icon?: string;
|
|
15
15
|
edit: (name: string, icon?: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-item.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/types/sidebar-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"sidebar-item.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/types/sidebar-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAA;AAC9G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,UAAU,GAAG,GAAG,GAAG,OAAO,GAAG,cAAc,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IACtF,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAClC,EAAE,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,qDAAqD;IACrD,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAC7B,8CAA8C;IAC9C,IAAI,EAAE,OAAO,CAAA;CACd,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Settings.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Settings.vue"],"names":[],"mappings":"AAiCA,OAAO,EAAO,KAAK,eAAe,EAAE,MAAM,KAAK,CAAA;;AAmG/C,wBAMG"}
|