@scalar/api-client 1.3.20 → 2.0.1
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 +34 -0
- package/README.md +80 -35
- package/dist/{components/ApiClient/Response/Response.vue.d.ts → App.vue.d.ts} +2 -1
- package/dist/App.vue.d.ts.map +1 -0
- package/dist/App.vue.js +749 -0
- package/dist/App.vue3.js +5 -0
- package/dist/Modal/ApiClientModal.vue.d.ts +19 -0
- package/dist/Modal/ApiClientModal.vue.d.ts.map +1 -0
- package/dist/Modal/ApiClientModal.vue.js +24 -0
- package/dist/{components/ApiClient/Request/RequestCookies.vue3.js → Modal/ApiClientModal.vue3.js} +1 -1
- package/dist/Modal/api-client-modal.d.ts +47 -0
- package/dist/Modal/api-client-modal.d.ts.map +1 -0
- package/dist/Modal/api-client-modal.js +109 -0
- package/dist/Modal/index.d.ts +3 -0
- package/dist/Modal/index.d.ts.map +1 -0
- package/dist/Modal/index.js +6 -0
- package/dist/assets/ascii/collection.ascii.js +10 -0
- package/dist/assets/ascii/folder.ascii.js +10 -0
- package/dist/assets/ascii/import.ascii.js +10 -0
- package/dist/assets/ascii/request.ascii.js +10 -0
- package/dist/assets/ascii/variant.ascii.js +10 -0
- package/dist/components/{ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts → ActionModal/ActionModal.vue.d.ts} +6 -6
- package/dist/components/ActionModal/ActionModal.vue.d.ts.map +1 -0
- package/dist/components/ActionModal/ActionModal.vue.js +7 -0
- package/dist/components/ActionModal/ActionModal.vue2.js +117 -0
- package/dist/components/{Grid/GridHeader.vue.d.ts → ActionModal/ActionModalCollection.vue.d.ts} +5 -5
- package/dist/components/ActionModal/ActionModalCollection.vue.d.ts.map +1 -0
- package/dist/components/ActionModal/ActionModalCollection.vue.js +54 -0
- package/dist/components/ActionModal/ActionModalCollection.vue2.js +4 -0
- package/dist/components/{ApiClient/AddressBar.vue.d.ts → ActionModal/ActionModalFolder.vue.d.ts} +5 -5
- package/dist/components/ActionModal/ActionModalFolder.vue.d.ts.map +1 -0
- package/dist/components/ActionModal/ActionModalFolder.vue.js +90 -0
- package/dist/components/ActionModal/ActionModalFolder.vue2.js +4 -0
- package/dist/components/ActionModal/ActionModalImport.vue.d.ts +20 -0
- package/dist/components/ActionModal/ActionModalImport.vue.d.ts.map +1 -0
- package/dist/components/ActionModal/ActionModalImport.vue.js +70 -0
- package/dist/components/ActionModal/ActionModalImport.vue2.js +4 -0
- package/dist/components/ActionModal/ActionModalRequest.vue.d.ts +20 -0
- package/dist/components/ActionModal/ActionModalRequest.vue.d.ts.map +1 -0
- package/dist/components/ActionModal/ActionModalRequest.vue.js +108 -0
- package/dist/components/ActionModal/ActionModalRequest.vue2.js +4 -0
- package/dist/components/ActionModal/ActionModalVariant.vue.d.ts +20 -0
- package/dist/components/ActionModal/ActionModalVariant.vue.d.ts.map +1 -0
- package/dist/components/ActionModal/ActionModalVariant.vue.js +93 -0
- package/dist/components/ActionModal/ActionModalVariant.vue2.js +4 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +3 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -0
- package/dist/components/{ApiClient → AddressBar}/AddressBar.vue.js +2 -3
- package/dist/components/AddressBar/AddressBar.vue2.js +136 -0
- package/dist/components/{ApiClient/Response/ResponseBody.vue.d.ts → AddressBar/AddressBarHistory.vue.d.ts} +3 -3
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.js +82 -0
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +4 -0
- package/dist/components/{ApiClient/RequestHistoryItem.vue.d.ts → AddressBar/AddressBarServer.vue.d.ts} +3 -3
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -0
- package/dist/components/AddressBar/AddressBarServer.vue.js +111 -0
- package/dist/components/AddressBar/AddressBarServer.vue2.js +4 -0
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts +55 -0
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -0
- package/dist/components/AddressBar/httpStatusCodeColors.js +39 -0
- package/dist/components/AddressBar/index.d.ts +3 -0
- package/dist/components/AddressBar/index.d.ts.map +1 -0
- package/dist/components/AddressBar/index.js +4 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts +54 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -0
- package/dist/components/CodeInput/CodeInput.vue.js +7 -0
- package/dist/components/CodeInput/CodeInput.vue2.js +57 -0
- package/dist/components/ContextBar.vue.d.ts +22 -0
- package/dist/components/ContextBar.vue.d.ts.map +1 -0
- package/dist/components/ContextBar.vue.js +25 -0
- package/dist/components/ContextBar.vue2.js +4 -0
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts +3 -0
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -0
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +30 -0
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue2.js +4 -0
- package/dist/components/DarkModeToggle/index.d.ts +2 -0
- package/dist/components/DarkModeToggle/index.d.ts.map +1 -0
- package/dist/components/DarkModeToggle/index.js +4 -0
- package/dist/components/{Grid/GridRow.vue.d.ts → DataTable/DataTable.vue.d.ts} +9 -7
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -0
- package/dist/components/DataTable/DataTable.vue.js +31 -0
- package/dist/components/DataTable/DataTable.vue2.js +4 -0
- package/dist/components/{CollapsibleSection/CollapsibleSection.vue.d.ts → DataTable/DataTableCell.vue.d.ts} +7 -9
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -0
- package/dist/components/DataTable/DataTableCell.vue.js +21 -0
- package/dist/components/DataTable/DataTableCell.vue2.js +4 -0
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +22 -0
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -0
- package/dist/components/DataTable/DataTableCheckbox.vue.js +35 -0
- package/dist/components/DataTable/DataTableCheckbox.vue2.js +4 -0
- package/dist/components/{ApiClient/Request/RequestAuthentication/CardFormGroup.vue.d.ts → DataTable/DataTableHeader.vue.d.ts} +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -0
- package/dist/components/DataTable/DataTableHeader.vue.js +19 -0
- package/dist/components/DataTable/DataTableHeader.vue2.js +4 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts +65 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -0
- package/dist/components/DataTable/DataTableInput.vue.js +7 -0
- package/dist/components/DataTable/DataTableInput.vue2.js +83 -0
- package/dist/components/{ApiClient/Style.vue.d.ts → DataTable/DataTableRow.vue.d.ts} +1 -1
- package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -0
- package/dist/components/DataTable/DataTableRow.vue.js +12 -0
- package/dist/components/{ApiClient/Response/ResponseMetaInformation.vue.d.ts → DataTable/DataTableText.vue.d.ts} +3 -3
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -0
- package/dist/components/DataTable/DataTableText.vue.js +19 -0
- package/dist/components/DataTable/DataTableText.vue2.js +4 -0
- package/dist/components/DataTable/index.d.ts +8 -0
- package/dist/components/DataTable/index.d.ts.map +1 -0
- package/dist/components/DataTable/index.js +16 -0
- package/dist/components/{ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts → Form/Form.vue.d.ts} +17 -6
- package/dist/components/Form/Form.vue.d.ts.map +1 -0
- package/dist/components/Form/Form.vue.js +55 -0
- package/dist/components/Form/Form.vue2.js +4 -0
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.js +18 -5
- package/dist/components/HelpfulLink.vue2.js +2 -17
- package/dist/components/{ApiClient/RequestMethodSelect.vue.d.ts → HttpMethod/HttpMethod.vue.d.ts} +17 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -0
- package/dist/components/HttpMethod/HttpMethod.vue.js +80 -0
- package/dist/components/HttpMethod/index.d.ts +2 -0
- package/dist/components/HttpMethod/index.d.ts.map +1 -0
- package/dist/components/HttpMethod/index.js +4 -0
- package/dist/components/ScalarAsciiArt.vue.d.ts +2 -0
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.js +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +24 -13
- package/dist/components/ScalarHotkey.vue.d.ts +20 -0
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -0
- package/dist/components/ScalarHotkey.vue.js +25 -0
- package/dist/components/ScalarHotkey.vue2.js +4 -0
- package/dist/components/{SimpleTable/SimpleCell.vue.d.ts → ScreenReader.vue.d.ts} +6 -16
- package/dist/components/ScreenReader.vue.d.ts.map +1 -0
- package/dist/components/ScreenReader.vue.js +7 -0
- package/dist/components/ScreenReader.vue2.js +18 -0
- package/dist/components/{ApiClient/RequestHistory.vue.d.ts → Search/SearchButton.vue.d.ts} +3 -3
- package/dist/components/Search/SearchButton.vue.d.ts.map +1 -0
- package/dist/components/Search/SearchButton.vue.js +31 -0
- package/dist/components/Search/SearchButton.vue2.js +4 -0
- package/dist/components/{ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts → Search/SearchModal.vue.d.ts} +4 -3
- package/dist/components/Search/SearchModal.vue.d.ts.map +1 -0
- package/dist/components/Search/SearchModal.vue.js +7 -0
- package/dist/components/Search/SearchModal.vue2.js +124 -0
- package/dist/components/Search/index.d.ts +3 -0
- package/dist/components/Search/index.d.ts.map +1 -0
- package/dist/components/Search/index.js +4 -0
- package/dist/components/SideNav/SideNav.vue.d.ts +3 -0
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNav.vue.js +42 -0
- package/dist/components/SideNav/SideNav.vue2.js +4 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts +31 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavLink.vue.js +34 -0
- package/dist/components/SideNav/SideNavLink.vue2.js +4 -0
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +22 -0
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +1 -0
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.js +31 -0
- package/dist/components/SideNav/WorkspaceProfileIcon.vue3.js +5 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +22 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +29 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue2.js +4 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +33 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +44 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -0
- package/dist/components/Sidebar/Sidebar.vue.d.ts +14 -0
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.vue.js +25 -0
- package/dist/components/{ApiClient/Request/Request.vue3.js → Sidebar/Sidebar.vue3.js} +1 -1
- package/dist/components/{ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts → Sidebar/SidebarButton.vue.d.ts} +4 -6
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarButton.vue.js +35 -0
- package/dist/components/Sidebar/SidebarButton.vue2.js +4 -0
- package/dist/components/{ApiClient/Request/RequestAuthentication/CardForm.vue.d.ts → Sidebar/SidebarList.vue.d.ts} +1 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarList.vue.js +12 -0
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +30 -0
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarListElement.vue.js +7 -0
- package/dist/components/Sidebar/SidebarListElement.vue2.js +49 -0
- package/dist/components/{ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts → Sidebar/SidebarListElementActions.vue.d.ts} +11 -9
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +68 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue2.js +4 -0
- package/dist/components/Sidebar/index.d.ts +3 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/Sidebar/index.js +5 -0
- package/dist/components/TopNav/TopNav.vue.d.ts +3 -0
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -0
- package/dist/components/TopNav/TopNav.vue.js +7 -0
- package/dist/components/TopNav/TopNav.vue2.js +53 -0
- package/dist/components/TopNav/TopNavItem.vue.d.ts +25 -0
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -0
- package/dist/components/TopNav/TopNavItem.vue.js +7 -0
- package/dist/components/TopNav/TopNavItem.vue2.js +53 -0
- package/dist/components/{Badge/Badge.vue.d.ts → ViewLayout/ViewLayout.vue.d.ts} +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -0
- package/dist/components/ViewLayout/ViewLayout.vue.js +12 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +52 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +55 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue2.js +4 -0
- package/dist/components/{ApiClient/Request/RequestAuthentication/CardFormRows.vue.d.ts → ViewLayout/ViewLayoutContent.vue.d.ts} +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -0
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +12 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts +13 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +23 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +4 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +7 -0
- package/dist/constants.d.ts +8 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +10 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +15 -0
- package/dist/hooks/useActionModal.d.ts +16 -0
- package/dist/hooks/useActionModal.d.ts.map +1 -0
- package/dist/hooks/useActionModal.js +25 -0
- package/dist/hooks/useClipboard.d.ts +4 -0
- package/dist/hooks/useClipboard.d.ts.map +1 -0
- package/dist/hooks/useClipboard.js +14 -0
- package/dist/hooks/useDarkModeState.d.ts +7 -0
- package/dist/hooks/useDarkModeState.d.ts.map +1 -0
- package/dist/hooks/useDarkModeState.js +31 -0
- package/dist/hooks/useFileDialog.d.ts +31 -0
- package/dist/hooks/useFileDialog.d.ts.map +1 -0
- package/dist/hooks/useFileDialog.js +25 -0
- package/dist/hooks/useKeyMap.d.ts +2 -0
- package/dist/hooks/useKeyMap.d.ts.map +1 -0
- package/dist/hooks/useKeyMap.js +9 -0
- package/dist/hooks/useSidebar.d.ts +9 -0
- package/dist/hooks/useSidebar.d.ts.map +1 -0
- package/dist/hooks/useSidebar.js +11 -0
- package/dist/index.d.ts +4 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -81
- package/dist/libs/eventBusses/executeRequestBus.d.ts +2 -0
- package/dist/libs/eventBusses/executeRequestBus.d.ts.map +1 -0
- package/dist/{clientBus.js → libs/eventBusses/executeRequestBus.js} +2 -2
- package/dist/libs/eventBusses/index.d.ts +2 -0
- package/dist/libs/eventBusses/index.d.ts.map +1 -0
- package/dist/libs/eventBusses/index.js +4 -0
- package/dist/libs/formatters.d.ts +12 -0
- package/dist/libs/formatters.d.ts.map +1 -0
- package/dist/libs/formatters.js +9 -0
- package/dist/libs/index.d.ts +5 -0
- package/dist/libs/index.d.ts.map +1 -0
- package/dist/libs/index.js +11 -0
- package/dist/libs/pathParams.d.ts +10 -0
- package/dist/libs/pathParams.d.ts.map +1 -0
- package/dist/libs/pathParams.js +36 -0
- package/dist/libs/sendRequest.d.ts +15 -0
- package/dist/libs/sendRequest.d.ts.map +1 -0
- package/dist/libs/sendRequest.js +107 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/router.d.ts +34 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.js +109 -0
- package/dist/store/topNav.d.ts +433 -0
- package/dist/store/topNav.d.ts.map +1 -0
- package/dist/store/topNav.js +52 -0
- package/dist/store/workspace.d.ts +2674 -0
- package/dist/store/workspace.d.ts.map +1 -0
- package/dist/store/workspace.js +290 -0
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts +3 -0
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -0
- package/dist/views/Collection/Collection.vue.js +4 -0
- package/dist/views/Collection/Collection.vue2.js +136 -0
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +3 -0
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +1 -0
- package/dist/views/Components/Schemas/Schemas.vue.d.ts +3 -0
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -0
- package/dist/views/Components/Schemas/Schemas.vue.js +4 -0
- package/dist/views/Components/Schemas/Schemas.vue2.js +20 -0
- package/dist/views/Cookies/CookieForm.vue.d.ts +3 -0
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -0
- package/dist/views/Cookies/CookieForm.vue.js +30 -0
- package/dist/views/Cookies/CookieForm.vue2.js +4 -0
- package/dist/views/Cookies/CookieRaw.vue.d.ts +3 -0
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -0
- package/dist/views/Cookies/CookieRaw.vue.js +27 -0
- package/dist/views/Cookies/CookieRaw.vue2.js +4 -0
- package/dist/views/Cookies/Cookies.vue.d.ts +3 -0
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -0
- package/dist/views/Cookies/Cookies.vue.js +4 -0
- package/dist/views/Cookies/Cookies.vue2.js +72 -0
- package/dist/views/Environment/Environment.vue.d.ts +3 -0
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -0
- package/dist/views/Environment/Environment.vue.js +4 -0
- package/dist/views/Environment/Environment.vue2.js +137 -0
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +20 -0
- package/dist/{components/ApiClient/RequestHistoryItem.vue.d.ts.map → views/Environment/EnvironmentColors.vue.d.ts.map} +1 -1
- package/dist/views/Environment/EnvironmentColors.vue.js +38 -0
- package/dist/views/Environment/EnvironmentColors.vue2.js +4 -0
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +20 -0
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -0
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +71 -0
- package/dist/views/Environment/EnvironmentVariableDropdown.vue2.js +4 -0
- package/dist/views/Request/Request.vue.d.ts.map +1 -0
- package/dist/views/Request/Request.vue.js +7 -0
- package/dist/views/Request/Request.vue2.js +197 -0
- package/dist/{components/Grid/SimpleGrid.vue.d.ts → views/Request/RequestSection/RequestAuth.vue.d.ts} +3 -3
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +220 -0
- package/dist/views/Request/RequestSection/RequestAuth.vue2.js +4 -0
- package/dist/{components/ApiClient/ApiClient.vue.d.ts → views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts} +24 -23
- package/dist/{components/ApiClient/ApiClient.vue.d.ts.map → views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map} +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.js +45 -0
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue2.js +4 -0
- package/dist/{components/ApiClient/Request → views/Request/RequestSection}/RequestBody.vue.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestBody.vue.js +312 -0
- package/dist/{components/ApiClient/Request/RequestQuery.vue.d.ts → views/Request/RequestSection/RequestParams.vue.d.ts} +6 -6
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.js +126 -0
- package/dist/views/Request/RequestSection/RequestParams.vue2.js +4 -0
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +19 -0
- package/dist/{components/Grid/SimpleGrid.vue.d.ts.map → views/Request/RequestSection/RequestPathParams.vue.d.ts.map} +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +71 -0
- package/dist/views/Request/RequestSection/RequestPathParams.vue2.js +4 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +3 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.js +101 -0
- package/dist/{components/ApiClient/RequestHistory.vue3.js → views/Request/RequestSection/RequestSection.vue3.js} +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +58 -0
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestTable.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +115 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +83 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebarItem.vue.js +7 -0
- package/dist/views/Request/RequestSidebarItem.vue2.js +131 -0
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +17 -0
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +120 -0
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +47 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +128 -0
- package/dist/{components/ApiClient/Request/RequestCookies.vue.d.ts → views/Request/ResponseSection/ResponseCookies.vue.d.ts} +11 -6
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +49 -0
- package/dist/views/Request/ResponseSection/ResponseCookies.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +3 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +38 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -0
- package/dist/{components/ApiClient/Response → views/Request/ResponseSection}/ResponseHeaders.vue.d.ts +10 -2
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +56 -0
- package/dist/{components/ApiClient/Request/RequestVariables.vue.d.ts → views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts} +4 -4
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +43 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +17 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +90 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +4 -0
- package/dist/views/Request/components/OAuth2.vue.d.ts +23 -0
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -0
- package/dist/views/Request/components/OAuth2.vue.js +177 -0
- package/dist/views/Request/components/OAuth2.vue2.js +4 -0
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts +24 -0
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +1 -0
- package/dist/views/Request/components/OAuthScopesInput.vue.js +106 -0
- package/dist/views/Request/components/OAuthScopesInput.vue2.js +4 -0
- package/dist/views/Request/components/index.d.ts +2 -0
- package/dist/views/Request/components/index.d.ts.map +1 -0
- package/dist/views/Request/components/index.js +4 -0
- package/dist/views/Request/libs/index.d.ts +2 -0
- package/dist/views/Request/libs/index.d.ts.map +1 -0
- package/dist/views/Request/libs/index.js +5 -0
- package/dist/views/Request/libs/oauth2.d.ts +26 -0
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -0
- package/dist/views/Request/libs/oauth2.js +58 -0
- package/dist/views/Servers/ServerForm.vue.d.ts +3 -0
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -0
- package/dist/views/Servers/ServerForm.vue.js +67 -0
- package/dist/views/Servers/ServerForm.vue2.js +4 -0
- package/dist/views/Servers/Servers.vue.d.ts +3 -0
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -0
- package/dist/views/Servers/Servers.vue.js +4 -0
- package/dist/views/Servers/Servers.vue2.js +67 -0
- package/package.json +90 -18
- package/dist/clientBus.d.ts +0 -2
- package/dist/clientBus.d.ts.map +0 -1
- package/dist/components/ApiClient/AddressBar.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/AddressBar.vue2.js +0 -158
- package/dist/components/ApiClient/ApiClient.vue.js +0 -126
- package/dist/components/ApiClient/ApiClient.vue3.js +0 -5
- package/dist/components/ApiClient/Request/Request.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/Request.vue.js +0 -79
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.js +0 -13
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.d.ts +0 -14
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.js +0 -7
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue2.js +0 -18
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.js +0 -13
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.js +0 -13
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.js +0 -7
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue2.js +0 -37
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.js +0 -7
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue2.js +0 -86
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.js +0 -7
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue2.js +0 -365
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.js +0 -7
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue2.js +0 -91
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.js +0 -7
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue2.js +0 -64
- package/dist/components/ApiClient/Request/RequestAuthentication/index.d.ts +0 -4
- package/dist/components/ApiClient/Request/RequestAuthentication/index.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestBody.vue.js +0 -39
- package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestCookies.vue.js +0 -74
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts +0 -20
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestHeaders.vue.js +0 -74
- package/dist/components/ApiClient/Request/RequestHeaders.vue2.js +0 -4
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestQuery.vue.js +0 -75
- package/dist/components/ApiClient/Request/RequestQuery.vue2.js +0 -4
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Request/RequestVariables.vue.js +0 -69
- package/dist/components/ApiClient/Request/RequestVariables.vue2.js +0 -4
- package/dist/components/ApiClient/Request/index.d.ts +0 -2
- package/dist/components/ApiClient/Request/index.d.ts.map +0 -1
- package/dist/components/ApiClient/RequestHistory.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/RequestHistory.vue.js +0 -27
- package/dist/components/ApiClient/RequestHistoryItem.vue.js +0 -7
- package/dist/components/ApiClient/RequestHistoryItem.vue2.js +0 -49
- package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/RequestMethodSelect.vue.js +0 -7
- package/dist/components/ApiClient/RequestMethodSelect.vue2.js +0 -42
- package/dist/components/ApiClient/Response/Response.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Response/Response.vue.js +0 -65
- package/dist/components/ApiClient/Response/Response.vue3.js +0 -5
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Response/ResponseBody.vue.js +0 -54
- package/dist/components/ApiClient/Response/ResponseBody.vue2.js +0 -4
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.js +0 -76
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.js +0 -56
- package/dist/components/ApiClient/Response/index.d.ts +0 -2
- package/dist/components/ApiClient/Response/index.d.ts.map +0 -1
- package/dist/components/ApiClient/Style.vue.d.ts.map +0 -1
- package/dist/components/ApiClient/Style.vue.js +0 -15
- package/dist/components/ApiClient/index.d.ts +0 -2
- package/dist/components/ApiClient/index.d.ts.map +0 -1
- package/dist/components/Badge/Badge.vue.d.ts.map +0 -1
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Badge/index.d.ts.map +0 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts.map +0 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.js +0 -76
- package/dist/components/CollapsibleSection/CollapsibleSection.vue3.js +0 -5
- package/dist/components/CollapsibleSection/index.d.ts +0 -2
- package/dist/components/CollapsibleSection/index.d.ts.map +0 -1
- package/dist/components/Grid/Grid.vue.d.ts +0 -30
- package/dist/components/Grid/Grid.vue.d.ts.map +0 -1
- package/dist/components/Grid/Grid.vue.js +0 -7
- package/dist/components/Grid/Grid.vue2.js +0 -77
- package/dist/components/Grid/GridHeader.vue.d.ts.map +0 -1
- package/dist/components/Grid/GridHeader.vue.js +0 -7
- package/dist/components/Grid/GridHeader.vue2.js +0 -46
- package/dist/components/Grid/GridRow.vue.d.ts.map +0 -1
- package/dist/components/Grid/GridRow.vue.js +0 -7
- package/dist/components/Grid/GridRow.vue2.js +0 -29
- package/dist/components/Grid/GridRowEditable.vue.d.ts +0 -25
- package/dist/components/Grid/GridRowEditable.vue.d.ts.map +0 -1
- package/dist/components/Grid/GridRowEditable.vue.js +0 -7
- package/dist/components/Grid/GridRowEditable.vue2.js +0 -105
- package/dist/components/Grid/GridRowGenerated.vue.d.ts +0 -17
- package/dist/components/Grid/GridRowGenerated.vue.d.ts.map +0 -1
- package/dist/components/Grid/GridRowGenerated.vue.js +0 -7
- package/dist/components/Grid/GridRowGenerated.vue2.js +0 -37
- package/dist/components/Grid/SimpleGrid.vue.js +0 -7
- package/dist/components/Grid/SimpleGrid.vue2.js +0 -28
- package/dist/components/Grid/index.d.ts +0 -3
- package/dist/components/Grid/index.d.ts.map +0 -1
- package/dist/components/HttpMethod.vue.d.ts +0 -45
- package/dist/components/HttpMethod.vue.d.ts.map +0 -1
- package/dist/components/HttpMethod.vue.js +0 -27
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +0 -1
- package/dist/components/SimpleTable/SimpleCell.vue.js +0 -7
- package/dist/components/SimpleTable/SimpleCell.vue2.js +0 -28
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts +0 -12
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +0 -1
- package/dist/components/SimpleTable/SimpleHeader.vue.js +0 -7
- package/dist/components/SimpleTable/SimpleHeader.vue2.js +0 -19
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts +0 -12
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +0 -1
- package/dist/components/SimpleTable/SimpleRow.vue.js +0 -13
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts +0 -12
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +0 -1
- package/dist/components/SimpleTable/SimpleTable.vue.js +0 -15
- package/dist/components/SimpleTable/index.d.ts +0 -5
- package/dist/components/SimpleTable/index.d.ts.map +0 -1
- package/dist/fixtures/httpHeaders.d.ts +0 -6
- package/dist/fixtures/httpHeaders.d.ts.map +0 -1
- package/dist/fixtures/httpHeaders.js +0 -529
- package/dist/fixtures/httpRequestMethods.d.ts +0 -10
- package/dist/fixtures/httpRequestMethods.d.ts.map +0 -1
- package/dist/fixtures/httpRequestMethods.js +0 -41
- package/dist/fixtures/index.d.ts +0 -3
- package/dist/fixtures/index.d.ts.map +0 -1
- package/dist/helpers/createPlaceholderRequest.d.ts +0 -6
- package/dist/helpers/createPlaceholderRequest.d.ts.map +0 -1
- package/dist/helpers/createPlaceholderRequest.js +0 -14
- package/dist/helpers/encodeStringAsBase64.d.ts +0 -5
- package/dist/helpers/encodeStringAsBase64.d.ts.map +0 -1
- package/dist/helpers/encodeStringAsBase64.js +0 -6
- package/dist/helpers/getRequestFromAuthentication.d.ts +0 -10
- package/dist/helpers/getRequestFromAuthentication.d.ts.map +0 -1
- package/dist/helpers/getRequestFromAuthentication.js +0 -83
- package/dist/helpers/getUrlFromServerState.d.ts +0 -6
- package/dist/helpers/getUrlFromServerState.d.ts.map +0 -1
- package/dist/helpers/getUrlFromServerState.js +0 -9
- package/dist/helpers/humanDiff.d.ts +0 -5
- package/dist/helpers/humanDiff.d.ts.map +0 -1
- package/dist/helpers/humanDiff.js +0 -21
- package/dist/helpers/index.d.ts +0 -14
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/mapFromArray.d.ts +0 -5
- package/dist/helpers/mapFromArray.d.ts.map +0 -1
- package/dist/helpers/mapFromArray.js +0 -9
- package/dist/helpers/normalizeHeaders.d.ts +0 -9
- package/dist/helpers/normalizeHeaders.d.ts.map +0 -1
- package/dist/helpers/normalizeHeaders.js +0 -6
- package/dist/helpers/normalizePath.d.ts +0 -5
- package/dist/helpers/normalizePath.d.ts.map +0 -1
- package/dist/helpers/normalizePath.js +0 -9
- package/dist/helpers/normalizeRequestMethod.d.ts +0 -6
- package/dist/helpers/normalizeRequestMethod.d.ts.map +0 -1
- package/dist/helpers/normalizeRequestMethod.js +0 -14
- package/dist/helpers/normalizeUrl.d.ts +0 -5
- package/dist/helpers/normalizeUrl.d.ts.map +0 -1
- package/dist/helpers/normalizeUrl.js +0 -13
- package/dist/helpers/prepareClientRequestConfig.d.ts +0 -24
- package/dist/helpers/prepareClientRequestConfig.d.ts.map +0 -1
- package/dist/helpers/prepareClientRequestConfig.js +0 -41
- package/dist/helpers/redirectToProxy.d.ts +0 -3
- package/dist/helpers/redirectToProxy.d.ts.map +0 -1
- package/dist/helpers/redirectToProxy.js +0 -7
- package/dist/helpers/sendRequest.d.ts +0 -6
- package/dist/helpers/sendRequest.d.ts.map +0 -1
- package/dist/helpers/sendRequest.js +0 -110
- package/dist/stores/index.d.ts +0 -6
- package/dist/stores/index.d.ts.map +0 -1
- package/dist/stores/useApiClientStore.d.ts +0 -18
- package/dist/stores/useApiClientStore.d.ts.map +0 -1
- package/dist/stores/useApiClientStore.js +0 -32
- package/dist/stores/useAuthenticationStore.d.ts +0 -55
- package/dist/stores/useAuthenticationStore.d.ts.map +0 -1
- package/dist/stores/useAuthenticationStore.js +0 -36
- package/dist/stores/useOpenApiStore.d.ts +0 -95
- package/dist/stores/useOpenApiStore.d.ts.map +0 -1
- package/dist/stores/useOpenApiStore.js +0 -23
- package/dist/stores/useRequestStore.d.ts +0 -58
- package/dist/stores/useRequestStore.d.ts.map +0 -1
- package/dist/stores/useRequestStore.js +0 -29
- package/dist/stores/useServerStore.d.ts +0 -18
- package/dist/stores/useServerStore.d.ts.map +0 -1
- package/dist/stores/useServerStore.js +0 -18
- package/dist/types.d.ts +0 -117
- package/dist/types.d.ts.map +0 -1
- /package/dist/components/{HttpMethod.vue2.js → HttpMethod/HttpMethod.vue2.js} +0 -0
- /package/dist/{components/ApiClient → views}/Request/Request.vue.d.ts +0 -0
- /package/dist/{components/ApiClient/Request → views/Request/RequestSection}/RequestBody.vue2.js +0 -0
- /package/dist/{components/ApiClient/Response → views/Request/ResponseSection}/ResponseHeaders.vue2.js +0 -0
- /package/dist/{components/ApiClient/Response → views/Request/ResponseSection}/ResponseMetaInformation.vue2.js +0 -0
package/dist/router.js
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { computed as i } from "vue";
|
|
2
|
+
import { createRouter as c, createWebHistory as l, createMemoryHistory as m } from "vue-router";
|
|
3
|
+
var u = /* @__PURE__ */ ((e) => (e.Request = "request", e.Example = "example", e.Cookies = "cookies", e.Collection = "collection", e.Schema = "schema", e.Environment = "environment", e.Server = "server", e))(u || {});
|
|
4
|
+
const s = [
|
|
5
|
+
{ path: "/", redirect: "/request/default" },
|
|
6
|
+
{
|
|
7
|
+
path: "/request",
|
|
8
|
+
redirect: "/request/default"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
path: "/request/:request",
|
|
12
|
+
component: () => import("./views/Request/Request.vue.js")
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
path: "/request/:request/example/:example",
|
|
16
|
+
component: () => import("./views/Request/Request.vue.js")
|
|
17
|
+
}
|
|
18
|
+
], p = [
|
|
19
|
+
...s,
|
|
20
|
+
{
|
|
21
|
+
path: "/collection",
|
|
22
|
+
redirect: "/collection/default"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "collection",
|
|
26
|
+
path: "/collection/:collection",
|
|
27
|
+
component: () => import("./views/Collection/Collection.vue.js"),
|
|
28
|
+
children: [
|
|
29
|
+
// Nested collection request
|
|
30
|
+
{
|
|
31
|
+
path: "request/request",
|
|
32
|
+
component: () => import("./views/Request/Request.vue.js")
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
/** Components will map to each section of the spec components object */
|
|
37
|
+
{
|
|
38
|
+
path: "/components",
|
|
39
|
+
redirect: "/components/schemas/default",
|
|
40
|
+
children: [
|
|
41
|
+
{
|
|
42
|
+
path: "schemas/:schema",
|
|
43
|
+
component: () => import("./views/Components/Schemas/Schemas.vue.js")
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
path: "/environment",
|
|
49
|
+
redirect: "/environment/default"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
path: "/environment/:environment",
|
|
53
|
+
component: () => import("./views/Environment/Environment.vue.js")
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
path: "/cookies",
|
|
57
|
+
redirect: "/cookies/default"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
path: "/cookies/:cookies",
|
|
61
|
+
component: () => import("./views/Cookies/Cookies.vue.js")
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
path: "/servers",
|
|
65
|
+
redirect: "/servers/default"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
path: "/servers/:server",
|
|
69
|
+
component: () => import("./views/Servers/Servers.vue.js")
|
|
70
|
+
}
|
|
71
|
+
], t = c({
|
|
72
|
+
history: l(),
|
|
73
|
+
routes: p
|
|
74
|
+
}), a = c({
|
|
75
|
+
history: m(),
|
|
76
|
+
routes: s
|
|
77
|
+
}), f = i(() => {
|
|
78
|
+
const e = {
|
|
79
|
+
collection: "default",
|
|
80
|
+
environment: "default",
|
|
81
|
+
request: "default",
|
|
82
|
+
example: "default",
|
|
83
|
+
schema: "default",
|
|
84
|
+
cookies: "default",
|
|
85
|
+
server: "default"
|
|
86
|
+
}, o = a.currentRoute.value.matched.length ? a.currentRoute.value : t.currentRoute.value;
|
|
87
|
+
return o && Object.values(u).forEach((r) => {
|
|
88
|
+
o.params[r] && (e[r] = o.params[r]);
|
|
89
|
+
}), e;
|
|
90
|
+
});
|
|
91
|
+
function d(e, o) {
|
|
92
|
+
var r, n;
|
|
93
|
+
t.currentRoute.value && // If the item is missing then we know the UID is no longer in use and redirect to the default
|
|
94
|
+
!o && ((r = t.currentRoute.value) != null && r.params[e]) && ((n = t.currentRoute.value) == null ? void 0 : n.params[e]) !== "default" && // We only redirect if the key is missing for the matching route
|
|
95
|
+
t.currentRoute.value.path.includes(e) && t.push({
|
|
96
|
+
params: {
|
|
97
|
+
...t.currentRoute.value.params,
|
|
98
|
+
[e]: "default"
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
u as PathId,
|
|
104
|
+
f as activeRouterParams,
|
|
105
|
+
a as clientRouter,
|
|
106
|
+
s as clientRoutes,
|
|
107
|
+
d as fallbackMissingParams,
|
|
108
|
+
t as router
|
|
109
|
+
};
|
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { type Route } from '../constants.js';
|
|
2
|
+
/**
|
|
3
|
+
* adding a nav item sets the new index and nav item
|
|
4
|
+
* based on the route
|
|
5
|
+
*/
|
|
6
|
+
declare function addNavItem(): void;
|
|
7
|
+
declare function setNavItemIdx(idx: number): void;
|
|
8
|
+
declare function removeNavItem(idx: number): void;
|
|
9
|
+
/**
|
|
10
|
+
* ## TopNav
|
|
11
|
+
* Access and updaters for the top nav list
|
|
12
|
+
*/
|
|
13
|
+
export declare function useTopNav(): {
|
|
14
|
+
topNavItems: {
|
|
15
|
+
readonly [x: number]: {
|
|
16
|
+
readonly label: string;
|
|
17
|
+
readonly icon: import("@scalar/components").Icon;
|
|
18
|
+
readonly path: string;
|
|
19
|
+
};
|
|
20
|
+
readonly length: number;
|
|
21
|
+
readonly toString: () => string;
|
|
22
|
+
readonly toLocaleString: {
|
|
23
|
+
(): string;
|
|
24
|
+
(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
25
|
+
};
|
|
26
|
+
readonly pop: () => {
|
|
27
|
+
label: string;
|
|
28
|
+
icon: import("@scalar/components").Icon;
|
|
29
|
+
path: string;
|
|
30
|
+
} | undefined;
|
|
31
|
+
readonly push: (...items: {
|
|
32
|
+
label: string;
|
|
33
|
+
icon: import("@scalar/components").Icon;
|
|
34
|
+
path: string;
|
|
35
|
+
}[]) => number;
|
|
36
|
+
readonly concat: {
|
|
37
|
+
(...items: ConcatArray<{
|
|
38
|
+
label: string;
|
|
39
|
+
icon: import("@scalar/components").Icon;
|
|
40
|
+
path: string;
|
|
41
|
+
}>[]): {
|
|
42
|
+
label: string;
|
|
43
|
+
icon: import("@scalar/components").Icon;
|
|
44
|
+
path: string;
|
|
45
|
+
}[];
|
|
46
|
+
(...items: ({
|
|
47
|
+
label: string;
|
|
48
|
+
icon: import("@scalar/components").Icon;
|
|
49
|
+
path: string;
|
|
50
|
+
} | ConcatArray<{
|
|
51
|
+
label: string;
|
|
52
|
+
icon: import("@scalar/components").Icon;
|
|
53
|
+
path: string;
|
|
54
|
+
}>)[]): {
|
|
55
|
+
label: string;
|
|
56
|
+
icon: import("@scalar/components").Icon;
|
|
57
|
+
path: string;
|
|
58
|
+
}[];
|
|
59
|
+
};
|
|
60
|
+
readonly join: (separator?: string) => string;
|
|
61
|
+
readonly reverse: () => {
|
|
62
|
+
label: string;
|
|
63
|
+
icon: import("@scalar/components").Icon;
|
|
64
|
+
path: string;
|
|
65
|
+
}[];
|
|
66
|
+
readonly shift: () => {
|
|
67
|
+
label: string;
|
|
68
|
+
icon: import("@scalar/components").Icon;
|
|
69
|
+
path: string;
|
|
70
|
+
} | undefined;
|
|
71
|
+
readonly slice: (start?: number, end?: number) => {
|
|
72
|
+
label: string;
|
|
73
|
+
icon: import("@scalar/components").Icon;
|
|
74
|
+
path: string;
|
|
75
|
+
}[];
|
|
76
|
+
readonly sort: (compareFn?: ((a: {
|
|
77
|
+
label: string;
|
|
78
|
+
icon: import("@scalar/components").Icon;
|
|
79
|
+
path: string;
|
|
80
|
+
}, b: {
|
|
81
|
+
label: string;
|
|
82
|
+
icon: import("@scalar/components").Icon;
|
|
83
|
+
path: string;
|
|
84
|
+
}) => number) | undefined) => import("vue").Reactive<Route[]>;
|
|
85
|
+
readonly splice: {
|
|
86
|
+
(start: number, deleteCount?: number): {
|
|
87
|
+
label: string;
|
|
88
|
+
icon: import("@scalar/components").Icon;
|
|
89
|
+
path: string;
|
|
90
|
+
}[];
|
|
91
|
+
(start: number, deleteCount: number, ...items: {
|
|
92
|
+
label: string;
|
|
93
|
+
icon: import("@scalar/components").Icon;
|
|
94
|
+
path: string;
|
|
95
|
+
}[]): {
|
|
96
|
+
label: string;
|
|
97
|
+
icon: import("@scalar/components").Icon;
|
|
98
|
+
path: string;
|
|
99
|
+
}[];
|
|
100
|
+
};
|
|
101
|
+
readonly unshift: (...items: {
|
|
102
|
+
label: string;
|
|
103
|
+
icon: import("@scalar/components").Icon;
|
|
104
|
+
path: string;
|
|
105
|
+
}[]) => number;
|
|
106
|
+
readonly indexOf: (searchElement: {
|
|
107
|
+
label: string;
|
|
108
|
+
icon: import("@scalar/components").Icon;
|
|
109
|
+
path: string;
|
|
110
|
+
}, fromIndex?: number) => number;
|
|
111
|
+
readonly lastIndexOf: (searchElement: {
|
|
112
|
+
label: string;
|
|
113
|
+
icon: import("@scalar/components").Icon;
|
|
114
|
+
path: string;
|
|
115
|
+
}, fromIndex?: number) => number;
|
|
116
|
+
readonly every: {
|
|
117
|
+
<S extends {
|
|
118
|
+
label: string;
|
|
119
|
+
icon: import("@scalar/components").Icon;
|
|
120
|
+
path: string;
|
|
121
|
+
}>(predicate: (value: {
|
|
122
|
+
label: string;
|
|
123
|
+
icon: import("@scalar/components").Icon;
|
|
124
|
+
path: string;
|
|
125
|
+
}, index: number, array: {
|
|
126
|
+
label: string;
|
|
127
|
+
icon: import("@scalar/components").Icon;
|
|
128
|
+
path: string;
|
|
129
|
+
}[]) => value is S, thisArg?: any): this is S[];
|
|
130
|
+
(predicate: (value: {
|
|
131
|
+
label: string;
|
|
132
|
+
icon: import("@scalar/components").Icon;
|
|
133
|
+
path: string;
|
|
134
|
+
}, index: number, array: {
|
|
135
|
+
label: string;
|
|
136
|
+
icon: import("@scalar/components").Icon;
|
|
137
|
+
path: string;
|
|
138
|
+
}[]) => unknown, thisArg?: any): boolean;
|
|
139
|
+
};
|
|
140
|
+
readonly some: (predicate: (value: {
|
|
141
|
+
label: string;
|
|
142
|
+
icon: import("@scalar/components").Icon;
|
|
143
|
+
path: string;
|
|
144
|
+
}, index: number, array: {
|
|
145
|
+
label: string;
|
|
146
|
+
icon: import("@scalar/components").Icon;
|
|
147
|
+
path: string;
|
|
148
|
+
}[]) => unknown, thisArg?: any) => boolean;
|
|
149
|
+
readonly forEach: (callbackfn: (value: {
|
|
150
|
+
label: string;
|
|
151
|
+
icon: import("@scalar/components").Icon;
|
|
152
|
+
path: string;
|
|
153
|
+
}, index: number, array: {
|
|
154
|
+
label: string;
|
|
155
|
+
icon: import("@scalar/components").Icon;
|
|
156
|
+
path: string;
|
|
157
|
+
}[]) => void, thisArg?: any) => void;
|
|
158
|
+
readonly map: <U>(callbackfn: (value: {
|
|
159
|
+
label: string;
|
|
160
|
+
icon: import("@scalar/components").Icon;
|
|
161
|
+
path: string;
|
|
162
|
+
}, index: number, array: {
|
|
163
|
+
label: string;
|
|
164
|
+
icon: import("@scalar/components").Icon;
|
|
165
|
+
path: string;
|
|
166
|
+
}[]) => U, thisArg?: any) => U[];
|
|
167
|
+
readonly filter: {
|
|
168
|
+
<S extends {
|
|
169
|
+
label: string;
|
|
170
|
+
icon: import("@scalar/components").Icon;
|
|
171
|
+
path: string;
|
|
172
|
+
}>(predicate: (value: {
|
|
173
|
+
label: string;
|
|
174
|
+
icon: import("@scalar/components").Icon;
|
|
175
|
+
path: string;
|
|
176
|
+
}, index: number, array: {
|
|
177
|
+
label: string;
|
|
178
|
+
icon: import("@scalar/components").Icon;
|
|
179
|
+
path: string;
|
|
180
|
+
}[]) => value is S, thisArg?: any): S[];
|
|
181
|
+
(predicate: (value: {
|
|
182
|
+
label: string;
|
|
183
|
+
icon: import("@scalar/components").Icon;
|
|
184
|
+
path: string;
|
|
185
|
+
}, index: number, array: {
|
|
186
|
+
label: string;
|
|
187
|
+
icon: import("@scalar/components").Icon;
|
|
188
|
+
path: string;
|
|
189
|
+
}[]) => unknown, thisArg?: any): {
|
|
190
|
+
label: string;
|
|
191
|
+
icon: import("@scalar/components").Icon;
|
|
192
|
+
path: string;
|
|
193
|
+
}[];
|
|
194
|
+
};
|
|
195
|
+
readonly reduce: {
|
|
196
|
+
(callbackfn: (previousValue: {
|
|
197
|
+
label: string;
|
|
198
|
+
icon: import("@scalar/components").Icon;
|
|
199
|
+
path: string;
|
|
200
|
+
}, currentValue: {
|
|
201
|
+
label: string;
|
|
202
|
+
icon: import("@scalar/components").Icon;
|
|
203
|
+
path: string;
|
|
204
|
+
}, currentIndex: number, array: {
|
|
205
|
+
label: string;
|
|
206
|
+
icon: import("@scalar/components").Icon;
|
|
207
|
+
path: string;
|
|
208
|
+
}[]) => {
|
|
209
|
+
label: string;
|
|
210
|
+
icon: import("@scalar/components").Icon;
|
|
211
|
+
path: string;
|
|
212
|
+
}): {
|
|
213
|
+
label: string;
|
|
214
|
+
icon: import("@scalar/components").Icon;
|
|
215
|
+
path: string;
|
|
216
|
+
};
|
|
217
|
+
(callbackfn: (previousValue: {
|
|
218
|
+
label: string;
|
|
219
|
+
icon: import("@scalar/components").Icon;
|
|
220
|
+
path: string;
|
|
221
|
+
}, currentValue: {
|
|
222
|
+
label: string;
|
|
223
|
+
icon: import("@scalar/components").Icon;
|
|
224
|
+
path: string;
|
|
225
|
+
}, currentIndex: number, array: {
|
|
226
|
+
label: string;
|
|
227
|
+
icon: import("@scalar/components").Icon;
|
|
228
|
+
path: string;
|
|
229
|
+
}[]) => {
|
|
230
|
+
label: string;
|
|
231
|
+
icon: import("@scalar/components").Icon;
|
|
232
|
+
path: string;
|
|
233
|
+
}, initialValue: {
|
|
234
|
+
label: string;
|
|
235
|
+
icon: import("@scalar/components").Icon;
|
|
236
|
+
path: string;
|
|
237
|
+
}): {
|
|
238
|
+
label: string;
|
|
239
|
+
icon: import("@scalar/components").Icon;
|
|
240
|
+
path: string;
|
|
241
|
+
};
|
|
242
|
+
<U>(callbackfn: (previousValue: U, currentValue: {
|
|
243
|
+
label: string;
|
|
244
|
+
icon: import("@scalar/components").Icon;
|
|
245
|
+
path: string;
|
|
246
|
+
}, currentIndex: number, array: {
|
|
247
|
+
label: string;
|
|
248
|
+
icon: import("@scalar/components").Icon;
|
|
249
|
+
path: string;
|
|
250
|
+
}[]) => U, initialValue: U): U;
|
|
251
|
+
};
|
|
252
|
+
readonly reduceRight: {
|
|
253
|
+
(callbackfn: (previousValue: {
|
|
254
|
+
label: string;
|
|
255
|
+
icon: import("@scalar/components").Icon;
|
|
256
|
+
path: string;
|
|
257
|
+
}, currentValue: {
|
|
258
|
+
label: string;
|
|
259
|
+
icon: import("@scalar/components").Icon;
|
|
260
|
+
path: string;
|
|
261
|
+
}, currentIndex: number, array: {
|
|
262
|
+
label: string;
|
|
263
|
+
icon: import("@scalar/components").Icon;
|
|
264
|
+
path: string;
|
|
265
|
+
}[]) => {
|
|
266
|
+
label: string;
|
|
267
|
+
icon: import("@scalar/components").Icon;
|
|
268
|
+
path: string;
|
|
269
|
+
}): {
|
|
270
|
+
label: string;
|
|
271
|
+
icon: import("@scalar/components").Icon;
|
|
272
|
+
path: string;
|
|
273
|
+
};
|
|
274
|
+
(callbackfn: (previousValue: {
|
|
275
|
+
label: string;
|
|
276
|
+
icon: import("@scalar/components").Icon;
|
|
277
|
+
path: string;
|
|
278
|
+
}, currentValue: {
|
|
279
|
+
label: string;
|
|
280
|
+
icon: import("@scalar/components").Icon;
|
|
281
|
+
path: string;
|
|
282
|
+
}, currentIndex: number, array: {
|
|
283
|
+
label: string;
|
|
284
|
+
icon: import("@scalar/components").Icon;
|
|
285
|
+
path: string;
|
|
286
|
+
}[]) => {
|
|
287
|
+
label: string;
|
|
288
|
+
icon: import("@scalar/components").Icon;
|
|
289
|
+
path: string;
|
|
290
|
+
}, initialValue: {
|
|
291
|
+
label: string;
|
|
292
|
+
icon: import("@scalar/components").Icon;
|
|
293
|
+
path: string;
|
|
294
|
+
}): {
|
|
295
|
+
label: string;
|
|
296
|
+
icon: import("@scalar/components").Icon;
|
|
297
|
+
path: string;
|
|
298
|
+
};
|
|
299
|
+
<U>(callbackfn: (previousValue: U, currentValue: {
|
|
300
|
+
label: string;
|
|
301
|
+
icon: import("@scalar/components").Icon;
|
|
302
|
+
path: string;
|
|
303
|
+
}, currentIndex: number, array: {
|
|
304
|
+
label: string;
|
|
305
|
+
icon: import("@scalar/components").Icon;
|
|
306
|
+
path: string;
|
|
307
|
+
}[]) => U, initialValue: U): U;
|
|
308
|
+
};
|
|
309
|
+
readonly find: {
|
|
310
|
+
<S extends {
|
|
311
|
+
label: string;
|
|
312
|
+
icon: import("@scalar/components").Icon;
|
|
313
|
+
path: string;
|
|
314
|
+
}>(predicate: (value: {
|
|
315
|
+
label: string;
|
|
316
|
+
icon: import("@scalar/components").Icon;
|
|
317
|
+
path: string;
|
|
318
|
+
}, index: number, obj: {
|
|
319
|
+
label: string;
|
|
320
|
+
icon: import("@scalar/components").Icon;
|
|
321
|
+
path: string;
|
|
322
|
+
}[]) => value is S, thisArg?: any): S | undefined;
|
|
323
|
+
(predicate: (value: {
|
|
324
|
+
label: string;
|
|
325
|
+
icon: import("@scalar/components").Icon;
|
|
326
|
+
path: string;
|
|
327
|
+
}, index: number, obj: {
|
|
328
|
+
label: string;
|
|
329
|
+
icon: import("@scalar/components").Icon;
|
|
330
|
+
path: string;
|
|
331
|
+
}[]) => unknown, thisArg?: any): {
|
|
332
|
+
label: string;
|
|
333
|
+
icon: import("@scalar/components").Icon;
|
|
334
|
+
path: string;
|
|
335
|
+
} | undefined;
|
|
336
|
+
};
|
|
337
|
+
readonly findIndex: (predicate: (value: {
|
|
338
|
+
label: string;
|
|
339
|
+
icon: import("@scalar/components").Icon;
|
|
340
|
+
path: string;
|
|
341
|
+
}, index: number, obj: {
|
|
342
|
+
label: string;
|
|
343
|
+
icon: import("@scalar/components").Icon;
|
|
344
|
+
path: string;
|
|
345
|
+
}[]) => unknown, thisArg?: any) => number;
|
|
346
|
+
readonly fill: (value: {
|
|
347
|
+
label: string;
|
|
348
|
+
icon: import("@scalar/components").Icon;
|
|
349
|
+
path: string;
|
|
350
|
+
}, start?: number, end?: number) => import("vue").Reactive<Route[]>;
|
|
351
|
+
readonly copyWithin: (target: number, start: number, end?: number) => import("vue").Reactive<Route[]>;
|
|
352
|
+
readonly entries: () => IterableIterator<[number, {
|
|
353
|
+
label: string;
|
|
354
|
+
icon: import("@scalar/components").Icon;
|
|
355
|
+
path: string;
|
|
356
|
+
}]>;
|
|
357
|
+
readonly keys: () => IterableIterator<number>;
|
|
358
|
+
readonly values: () => IterableIterator<{
|
|
359
|
+
label: string;
|
|
360
|
+
icon: import("@scalar/components").Icon;
|
|
361
|
+
path: string;
|
|
362
|
+
}>;
|
|
363
|
+
readonly includes: (searchElement: {
|
|
364
|
+
label: string;
|
|
365
|
+
icon: import("@scalar/components").Icon;
|
|
366
|
+
path: string;
|
|
367
|
+
}, fromIndex?: number) => boolean;
|
|
368
|
+
readonly flatMap: <U, This = undefined>(callback: (this: This, value: {
|
|
369
|
+
label: string;
|
|
370
|
+
icon: import("@scalar/components").Icon;
|
|
371
|
+
path: string;
|
|
372
|
+
}, index: number, array: {
|
|
373
|
+
label: string;
|
|
374
|
+
icon: import("@scalar/components").Icon;
|
|
375
|
+
path: string;
|
|
376
|
+
}[]) => U | ReadonlyArray<U>, thisArg?: This | undefined) => U[];
|
|
377
|
+
readonly flat: <A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[];
|
|
378
|
+
readonly at: (index: number) => {
|
|
379
|
+
label: string;
|
|
380
|
+
icon: import("@scalar/components").Icon;
|
|
381
|
+
path: string;
|
|
382
|
+
} | undefined;
|
|
383
|
+
readonly [Symbol.iterator]: () => IterableIterator<{
|
|
384
|
+
label: string;
|
|
385
|
+
icon: import("@scalar/components").Icon;
|
|
386
|
+
path: string;
|
|
387
|
+
}>;
|
|
388
|
+
readonly [Symbol.unscopables]: {
|
|
389
|
+
readonly [x: number]: boolean | undefined;
|
|
390
|
+
readonly length?: boolean | undefined;
|
|
391
|
+
readonly toString?: boolean | undefined;
|
|
392
|
+
readonly toLocaleString?: boolean | undefined;
|
|
393
|
+
readonly pop?: boolean | undefined;
|
|
394
|
+
readonly push?: boolean | undefined;
|
|
395
|
+
readonly concat?: boolean | undefined;
|
|
396
|
+
readonly join?: boolean | undefined;
|
|
397
|
+
readonly reverse?: boolean | undefined;
|
|
398
|
+
readonly shift?: boolean | undefined;
|
|
399
|
+
readonly slice?: boolean | undefined;
|
|
400
|
+
readonly sort?: boolean | undefined;
|
|
401
|
+
readonly splice?: boolean | undefined;
|
|
402
|
+
readonly unshift?: boolean | undefined;
|
|
403
|
+
readonly indexOf?: boolean | undefined;
|
|
404
|
+
readonly lastIndexOf?: boolean | undefined;
|
|
405
|
+
readonly every?: boolean | undefined;
|
|
406
|
+
readonly some?: boolean | undefined;
|
|
407
|
+
readonly forEach?: boolean | undefined;
|
|
408
|
+
readonly map?: boolean | undefined;
|
|
409
|
+
readonly filter?: boolean | undefined;
|
|
410
|
+
readonly reduce?: boolean | undefined;
|
|
411
|
+
readonly reduceRight?: boolean | undefined;
|
|
412
|
+
readonly find?: boolean | undefined;
|
|
413
|
+
readonly findIndex?: boolean | undefined;
|
|
414
|
+
readonly fill?: boolean | undefined;
|
|
415
|
+
readonly copyWithin?: boolean | undefined;
|
|
416
|
+
readonly entries?: boolean | undefined;
|
|
417
|
+
readonly keys?: boolean | undefined;
|
|
418
|
+
readonly values?: boolean | undefined;
|
|
419
|
+
readonly includes?: boolean | undefined;
|
|
420
|
+
readonly flatMap?: boolean | undefined;
|
|
421
|
+
readonly flat?: boolean | undefined;
|
|
422
|
+
readonly at?: boolean | undefined;
|
|
423
|
+
readonly [Symbol.iterator]?: boolean | undefined;
|
|
424
|
+
readonly [Symbol.unscopables]?: boolean | undefined;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
activeNavItemIdx: Readonly<import("vue").Ref<number>>;
|
|
428
|
+
addNavItem: typeof addNavItem;
|
|
429
|
+
setNavItemIdx: typeof setNavItemIdx;
|
|
430
|
+
removeNavItem: typeof removeNavItem;
|
|
431
|
+
};
|
|
432
|
+
export {};
|
|
433
|
+
//# sourceMappingURL=topNav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topNav.d.ts","sourceRoot":"","sources":["../../src/store/topNav.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,aAAa,CAAA;AAgDhD;;;GAGG;AACH,iBAAS,UAAU,SAIlB;AAED,iBAAS,aAAa,CAAC,GAAG,EAAE,MAAM,QAGjC;AAWD,iBAAS,aAAa,CAAC,GAAG,EAAE,MAAM,QAOjC;AAED;;;GAGG;AACH,wBAAgB,SAAS;;;;;;;;;;;mDASyoC,KAAM,mBAAmB,GAAE,KAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADvtC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ROUTES as c } from "../constants.js";
|
|
2
|
+
import { router as n } from "../router.js";
|
|
3
|
+
import { reactive as v, ref as p, watch as m, readonly as o } from "vue";
|
|
4
|
+
import { useWorkspace as s } from "./workspace.js";
|
|
5
|
+
const { activeRequest: h } = s(), t = v([{ label: "", path: "", icon: "Add" }]), a = p(0);
|
|
6
|
+
function r() {
|
|
7
|
+
var u;
|
|
8
|
+
const e = c.find((i) => n.currentRoute.value.path.startsWith(i.path));
|
|
9
|
+
e && ((e == null ? void 0 : e.label) === "Requests" ? t[a.value] = {
|
|
10
|
+
label: ((u = h.value) == null ? void 0 : u.summary) || "",
|
|
11
|
+
path: n.currentRoute.value.path,
|
|
12
|
+
icon: e.icon
|
|
13
|
+
} : t[a.value] = {
|
|
14
|
+
label: (e == null ? void 0 : e.label) || "",
|
|
15
|
+
path: n.currentRoute.value.path,
|
|
16
|
+
icon: e.icon
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function l() {
|
|
20
|
+
n.push(t[a.value].path);
|
|
21
|
+
}
|
|
22
|
+
function d() {
|
|
23
|
+
t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, r();
|
|
24
|
+
}
|
|
25
|
+
function f(e) {
|
|
26
|
+
a.value = e, l();
|
|
27
|
+
}
|
|
28
|
+
m(
|
|
29
|
+
() => n.currentRoute.value.path,
|
|
30
|
+
() => {
|
|
31
|
+
r();
|
|
32
|
+
},
|
|
33
|
+
{ immediate: !0 }
|
|
34
|
+
);
|
|
35
|
+
function I(e) {
|
|
36
|
+
t.splice(e, 1), a.value = Math.min(
|
|
37
|
+
a.value,
|
|
38
|
+
t.length - 1
|
|
39
|
+
), l();
|
|
40
|
+
}
|
|
41
|
+
function A() {
|
|
42
|
+
return {
|
|
43
|
+
topNavItems: o(t),
|
|
44
|
+
activeNavItemIdx: o(a),
|
|
45
|
+
addNavItem: d,
|
|
46
|
+
setNavItemIdx: f,
|
|
47
|
+
removeNavItem: I
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
A as useTopNav
|
|
52
|
+
};
|