@scalar/api-client 2.18.0 → 2.18.3
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 +85 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
- package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
- package/dist/components/DataTable/DataTable.vue.js +17 -17
- package/dist/components/DataTable/DataTableCell.vue.js +9 -9
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
- package/dist/components/DataTable/DataTableText.vue.js +10 -10
- package/dist/components/Form/Form.vue.js +32 -32
- package/dist/components/Form/LabelInput.vue2.js +15 -15
- package/dist/components/HelpfulLink.vue.js +7 -7
- package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
- package/dist/components/IconSelector.vue.js +16 -16
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
- package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
- package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +16 -16
- package/dist/components/SectionFilter.vue2.js +21 -21
- package/dist/components/SectionFilterButton.vue.js +7 -7
- package/dist/components/Server/ServerDropdown.vue.js +32 -32
- package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
- package/dist/components/Server/ServerSelector.vue.js +27 -27
- package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
- package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
- package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
- package/dist/components/Server/types.d.ts +2 -1
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +18 -18
- package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
- package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
- package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
- package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
- package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
- package/dist/data/httpHeaders.d.ts +2 -1
- package/dist/data/httpHeaders.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.js +1 -1
- package/dist/hooks/useLayout.js +1 -1
- package/dist/hooks/useSidebar.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.js +5 -5
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/plugin-manager.d.ts +0 -2
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/routes.d.ts +0 -10
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +0 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
- package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +83 -82
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
- package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
- package/dist/v2/components/data-table/DataTable.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
- package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
- package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
- package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
- package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
- package/dist/v2/components/resize/Resize.vue2.js +11 -11
- package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
- package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
- package/dist/v2/features/app/App.vue.js +25 -25
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +55 -61
- package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
- package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
- package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
- package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
- package/dist/v2/features/app/helpers/routes.d.ts +5 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
- package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
- package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
- package/dist/v2/features/collection/components/Environment.vue.js +10 -10
- package/dist/v2/features/collection/components/Form.vue.js +21 -21
- package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
- package/dist/v2/features/collection/components/Servers.vue.js +37 -37
- package/dist/v2/features/collection/components/Settings.vue.js +22 -22
- package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
- package/dist/v2/features/command-palette/types.d.ts +11 -10
- package/dist/v2/features/command-palette/types.d.ts.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
- package/dist/v2/features/environments/components/Environment.vue.js +16 -16
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +57 -56
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
- package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +41 -39
- package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
- package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
- package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
- package/dist/v2/features/search/types.d.ts +5 -4
- package/dist/v2/features/search/types.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
- package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
- package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +0 -2
- package/dist/v2/helpers/plugins.d.ts +2 -2
- package/dist/v2/helpers/plugins.d.ts.map +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
- package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
- package/dist/views/Cookies/CookieModal.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
- package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
- package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
- package/dist/views/Request/Request.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
- package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
- package/dist/views/Request/RequestSection/index.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
- package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
- package/package.json +24 -24
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
- package/dist/components/ScreenReader.vue.d.ts +0 -20
- package/dist/components/ScreenReader.vue.d.ts.map +0 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
import { defineComponent as L, ref as P, watch as F, onMounted as K, onBeforeUnmount as j, computed as G, createElementBlock as w, openBlock as l, Fragment as C, createBlock as
|
|
2
|
-
import { useModal as $, ScalarFloating as O, ScalarDropdownMenu as Q, ScalarDropdownButton as
|
|
1
|
+
import { defineComponent as L, ref as P, watch as F, onMounted as K, onBeforeUnmount as j, computed as G, createElementBlock as w, openBlock as l, Fragment as C, createBlock as u, createCommentVNode as r, createVNode as i, unref as t, withCtx as m, withKeys as H, createElementVNode as I, createTextVNode as W, toDisplayString as J } from "vue";
|
|
2
|
+
import { useModal as $, ScalarFloating as O, ScalarDropdownMenu as Q, ScalarDropdownButton as k, ScalarIcon as v, ScalarModal as q } from "@scalar/components";
|
|
3
3
|
import { useRouter as X } from "vue-router";
|
|
4
4
|
import b from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
5
5
|
import Y from "../../components/Sidebar/Actions/EditSidebarListCollection.vue.js";
|
|
6
6
|
import Z from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
7
|
-
import { PathId as
|
|
7
|
+
import { PathId as d } from "../../routes.js";
|
|
8
8
|
import { useActiveEntities as _ } from "../../store/active-entities.js";
|
|
9
9
|
import { createInitialRequest as ee } from "../../store/requests.js";
|
|
10
10
|
import { useWorkspace as te } from "../../store/store.js";
|
|
11
|
-
const
|
|
11
|
+
const ce = /* @__PURE__ */ L({
|
|
12
12
|
__name: "RequestSidebarItemMenu",
|
|
13
13
|
props: {
|
|
14
14
|
menuItem: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["closeMenu", "toggleWatchMode", "clearDrafts"],
|
|
17
|
-
setup(
|
|
18
|
-
const s =
|
|
17
|
+
setup(n, { emit: z }) {
|
|
18
|
+
const s = n, M = z, { replace: g } = X(), {
|
|
19
19
|
activeRouterParams: E,
|
|
20
20
|
activeWorkspaceCollections: y,
|
|
21
21
|
activeWorkspaceRequests: N
|
|
22
|
-
} = _(), { events: S, requestMutators: T } = te(),
|
|
22
|
+
} = _(), { events: S, requestMutators: T } = te(), c = $(), x = $(), p = $(), A = () => S.commandPalette.emit({
|
|
23
23
|
commandName: "Add Example",
|
|
24
24
|
metaData: {
|
|
25
25
|
itemUid: s.menuItem.item?.entity.uid
|
|
26
26
|
}
|
|
27
|
-
}), R = (
|
|
28
|
-
s.menuItem.item?.edit(
|
|
27
|
+
}), R = (a, e) => {
|
|
28
|
+
s.menuItem.item?.edit(a, e), c.hide();
|
|
29
29
|
}, B = () => {
|
|
30
30
|
if (s.menuItem.item?.delete(), !N.value.length) {
|
|
31
|
-
const { request:
|
|
32
|
-
(
|
|
31
|
+
const { request: a } = ee(), e = y.value.find(
|
|
32
|
+
(o) => o.info?.title === "Drafts"
|
|
33
33
|
);
|
|
34
|
-
e && (T.add(
|
|
34
|
+
e && (T.add(a, e.uid), g({
|
|
35
35
|
name: "request",
|
|
36
36
|
params: {
|
|
37
|
-
[
|
|
37
|
+
[d.Request]: a.uid
|
|
38
38
|
}
|
|
39
39
|
}));
|
|
40
40
|
}
|
|
41
|
-
if (E.value[
|
|
41
|
+
if (E.value[d.Request] === s.menuItem.item?.entity.uid && g({
|
|
42
42
|
name: "request",
|
|
43
43
|
params: {
|
|
44
|
-
[
|
|
44
|
+
[d.Request]: "default"
|
|
45
45
|
}
|
|
46
|
-
}), E.value[
|
|
46
|
+
}), E.value[d.Examples] === s.menuItem.item?.entity.uid && g({
|
|
47
47
|
name: "request",
|
|
48
48
|
params: {
|
|
49
|
-
[
|
|
49
|
+
[d.Request]: "default"
|
|
50
50
|
}
|
|
51
51
|
}), y.value[0]) {
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const a = y.value[0].requests[0];
|
|
53
|
+
g({
|
|
54
54
|
name: "request",
|
|
55
55
|
params: {
|
|
56
|
-
[
|
|
56
|
+
[d.Request]: a
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
x.hide();
|
|
61
61
|
}, f = P(null);
|
|
62
|
-
F([() => s.menuItem.open, f], ([
|
|
63
|
-
|
|
62
|
+
F([() => s.menuItem.open, f], ([a]) => {
|
|
63
|
+
a && f.value?.$parent?.$el && f.value.$parent.$el.focus();
|
|
64
64
|
});
|
|
65
65
|
const h = () => s.menuItem.open && M("closeMenu");
|
|
66
66
|
K(() => window.addEventListener("click", h)), j(() => window.removeEventListener("click", h));
|
|
67
67
|
const U = () => {
|
|
68
68
|
M("toggleWatchMode", s.menuItem.item);
|
|
69
69
|
}, V = () => {
|
|
70
|
-
M("clearDrafts"),
|
|
70
|
+
M("clearDrafts"), p.hide();
|
|
71
71
|
}, D = G(() => s.menuItem.item?.title === "Drafts");
|
|
72
|
-
return (
|
|
73
|
-
|
|
72
|
+
return (a, e) => (l(), w(C, null, [
|
|
73
|
+
n.menuItem.targetRef && n.menuItem.open ? (l(), u(t(O), {
|
|
74
74
|
key: 0,
|
|
75
75
|
placement: "right-start",
|
|
76
|
-
target:
|
|
76
|
+
target: n.menuItem.targetRef,
|
|
77
77
|
teleport: ""
|
|
78
78
|
}, {
|
|
79
|
-
floating:
|
|
80
|
-
i(
|
|
81
|
-
onKeydown: e[3] || (e[3] = H((
|
|
79
|
+
floating: m(() => [
|
|
80
|
+
i(t(Q), {
|
|
81
|
+
onKeydown: e[3] || (e[3] = H((o) => a.$emit("closeMenu"), ["escape"]))
|
|
82
82
|
}, {
|
|
83
|
-
default:
|
|
84
|
-
|
|
83
|
+
default: m(() => [
|
|
84
|
+
n.menuItem.item?.entity.type === "request" ? (l(), u(t(k), {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "flex items-center gap-2",
|
|
87
87
|
onClick: A
|
|
88
88
|
}, {
|
|
89
|
-
default:
|
|
90
|
-
i(
|
|
89
|
+
default: m(() => [
|
|
90
|
+
i(t(v), {
|
|
91
91
|
class: "inline-flex",
|
|
92
92
|
icon: "Example",
|
|
93
93
|
size: "md",
|
|
94
94
|
thickness: "1.5"
|
|
95
95
|
}),
|
|
96
|
-
e[8] || (e[8] =
|
|
96
|
+
e[8] || (e[8] = I("span", null, "Add Example", -1))
|
|
97
97
|
]),
|
|
98
98
|
_: 1
|
|
99
99
|
})) : r("", !0),
|
|
100
|
-
D.value ? r("", !0) : (l(),
|
|
100
|
+
D.value ? r("", !0) : (l(), u(t(k), {
|
|
101
101
|
key: 1,
|
|
102
102
|
ref_key: "menuRef",
|
|
103
103
|
ref: f,
|
|
104
104
|
class: "flex items-center gap-2",
|
|
105
|
-
onClick: e[0] || (e[0] = (
|
|
105
|
+
onClick: e[0] || (e[0] = (o) => t(c).show())
|
|
106
106
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
i(
|
|
107
|
+
default: m(() => [
|
|
108
|
+
i(t(v), {
|
|
109
109
|
class: "inline-flex",
|
|
110
110
|
icon: "Edit",
|
|
111
111
|
size: "md",
|
|
112
112
|
thickness: "1.5"
|
|
113
113
|
}),
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
I("span", null, [
|
|
115
|
+
n.menuItem.item?.entity.type === "collection" ? (l(), w(C, { key: 0 }, [
|
|
116
116
|
W(" Edit ")
|
|
117
117
|
], 64)) : (l(), w(C, { key: 1 }, [
|
|
118
118
|
W(" Rename ")
|
|
@@ -121,53 +121,53 @@ const fe = /* @__PURE__ */ L({
|
|
|
121
121
|
]),
|
|
122
122
|
_: 1
|
|
123
123
|
}, 512)),
|
|
124
|
-
|
|
124
|
+
n.menuItem.item?.documentUrl ? (l(), u(t(k), {
|
|
125
125
|
key: 2,
|
|
126
126
|
ref_key: "menuRef",
|
|
127
127
|
ref: f,
|
|
128
128
|
class: "flex items-center gap-2",
|
|
129
129
|
onClick: U
|
|
130
130
|
}, {
|
|
131
|
-
default:
|
|
132
|
-
i(
|
|
131
|
+
default: m(() => [
|
|
132
|
+
i(t(v), {
|
|
133
133
|
class: "inline-flex",
|
|
134
|
-
icon:
|
|
134
|
+
icon: n.menuItem.item?.watchMode ? "Unwatch" : "Watch",
|
|
135
135
|
size: "md",
|
|
136
136
|
thickness: "1.5"
|
|
137
137
|
}, null, 8, ["icon"]),
|
|
138
|
-
|
|
138
|
+
I("span", null, J(n.menuItem.item?.watchMode ? "Disable Watch Mode" : "Enable Watch Mode"), 1)
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
141
|
}, 512)) : r("", !0),
|
|
142
|
-
D.value ? r("", !0) : (l(),
|
|
142
|
+
D.value ? r("", !0) : (l(), u(t(k), {
|
|
143
143
|
key: 3,
|
|
144
144
|
class: "flex items-center gap-2",
|
|
145
|
-
onClick: e[1] || (e[1] = (
|
|
145
|
+
onClick: e[1] || (e[1] = (o) => t(x).show())
|
|
146
146
|
}, {
|
|
147
|
-
default:
|
|
148
|
-
i(
|
|
147
|
+
default: m(() => [
|
|
148
|
+
i(t(v), {
|
|
149
149
|
class: "inline-flex",
|
|
150
150
|
icon: "Delete",
|
|
151
151
|
size: "md",
|
|
152
152
|
thickness: "1.5"
|
|
153
153
|
}),
|
|
154
|
-
e[9] || (e[9] =
|
|
154
|
+
e[9] || (e[9] = I("span", null, "Delete", -1))
|
|
155
155
|
]),
|
|
156
156
|
_: 1
|
|
157
157
|
})),
|
|
158
|
-
D.value ? (l(),
|
|
158
|
+
D.value ? (l(), u(t(k), {
|
|
159
159
|
key: 4,
|
|
160
160
|
class: "flex items-center gap-2",
|
|
161
|
-
onClick: e[2] || (e[2] = (
|
|
161
|
+
onClick: e[2] || (e[2] = (o) => t(p).show())
|
|
162
162
|
}, {
|
|
163
|
-
default:
|
|
164
|
-
i(
|
|
163
|
+
default: m(() => [
|
|
164
|
+
i(t(v), {
|
|
165
165
|
class: "inline-flex",
|
|
166
166
|
icon: "Delete",
|
|
167
167
|
size: "md",
|
|
168
168
|
thickness: "1.5"
|
|
169
169
|
}),
|
|
170
|
-
e[10] || (e[10] =
|
|
170
|
+
e[10] || (e[10] = I("span", null, "Clear Drafts", -1))
|
|
171
171
|
]),
|
|
172
172
|
_: 1
|
|
173
173
|
})) : r("", !0)
|
|
@@ -177,52 +177,52 @@ const fe = /* @__PURE__ */ L({
|
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
179
179
|
}, 8, ["target"])) : r("", !0),
|
|
180
|
-
i(
|
|
180
|
+
i(t(q), {
|
|
181
181
|
size: "xxs",
|
|
182
|
-
state:
|
|
183
|
-
title: `Delete ${
|
|
182
|
+
state: t(x),
|
|
183
|
+
title: `Delete ${n.menuItem.item?.resourceTitle}`
|
|
184
184
|
}, {
|
|
185
|
-
default:
|
|
185
|
+
default: m(() => [
|
|
186
186
|
i(b, {
|
|
187
|
-
variableName:
|
|
188
|
-
warningMessage:
|
|
189
|
-
onClose: e[4] || (e[4] = (
|
|
187
|
+
variableName: n.menuItem.item?.title ?? "",
|
|
188
|
+
warningMessage: n.menuItem.item?.warning,
|
|
189
|
+
onClose: e[4] || (e[4] = (o) => t(x).hide()),
|
|
190
190
|
onDelete: B
|
|
191
191
|
}, null, 8, ["variableName", "warningMessage"])
|
|
192
192
|
]),
|
|
193
193
|
_: 1
|
|
194
194
|
}, 8, ["state", "title"]),
|
|
195
|
-
i(
|
|
195
|
+
i(t(q), {
|
|
196
196
|
size: "xxs",
|
|
197
|
-
state:
|
|
198
|
-
title: `Edit ${
|
|
197
|
+
state: t(c),
|
|
198
|
+
title: `Edit ${n.menuItem.item?.resourceTitle}`
|
|
199
199
|
}, {
|
|
200
|
-
default:
|
|
201
|
-
|
|
200
|
+
default: m(() => [
|
|
201
|
+
n.menuItem.item?.resourceTitle === "Collection" ? (l(), u(Y, {
|
|
202
202
|
key: 0,
|
|
203
|
-
icon:
|
|
204
|
-
name:
|
|
205
|
-
onClose: e[5] || (e[5] = (
|
|
203
|
+
icon: n.menuItem.item?.icon || "interface-content-folder",
|
|
204
|
+
name: n.menuItem.item?.title,
|
|
205
|
+
onClose: e[5] || (e[5] = (o) => t(c).hide()),
|
|
206
206
|
onEdit: R
|
|
207
|
-
}, null, 8, ["icon", "name"])) : (l(),
|
|
207
|
+
}, null, 8, ["icon", "name"])) : (l(), u(Z, {
|
|
208
208
|
key: 1,
|
|
209
|
-
name:
|
|
210
|
-
onClose: e[6] || (e[6] = (
|
|
209
|
+
name: n.menuItem.item?.title ?? "",
|
|
210
|
+
onClose: e[6] || (e[6] = (o) => t(c).hide()),
|
|
211
211
|
onEdit: R
|
|
212
212
|
}, null, 8, ["name"]))
|
|
213
213
|
]),
|
|
214
214
|
_: 1
|
|
215
215
|
}, 8, ["state", "title"]),
|
|
216
|
-
i(
|
|
216
|
+
i(t(q), {
|
|
217
217
|
size: "xxs",
|
|
218
|
-
state:
|
|
218
|
+
state: t(p),
|
|
219
219
|
title: "Clear Drafts"
|
|
220
220
|
}, {
|
|
221
|
-
default:
|
|
221
|
+
default: m(() => [
|
|
222
222
|
i(b, {
|
|
223
223
|
variableName: "All Drafts",
|
|
224
224
|
warningMessage: "This action will clear all drafts. This cannot be undone.",
|
|
225
|
-
onClose: e[7] || (e[7] = (
|
|
225
|
+
onClose: e[7] || (e[7] = (o) => t(p).hide()),
|
|
226
226
|
onDelete: V
|
|
227
227
|
})
|
|
228
228
|
]),
|
|
@@ -232,5 +232,5 @@ const fe = /* @__PURE__ */ L({
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
export {
|
|
235
|
-
|
|
235
|
+
ce as default
|
|
236
236
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as k, createElementBlock as l, openBlock as n, createElementVNode as i, createVNode as c, createCommentVNode as s, unref as e, normalizeClass as v, createBlock as C } from "vue";
|
|
2
|
+
import { ScalarIcon as u } from "@scalar/components";
|
|
3
|
+
import { useRouter as w } from "vue-router";
|
|
4
|
+
import x from "../../components/AddressBar/AddressBar.vue.js";
|
|
5
5
|
import { useLayout as y } from "../../hooks/useLayout.js";
|
|
6
6
|
import { useSidebar as h } from "../../hooks/useSidebar.js";
|
|
7
7
|
import V from "../../components/OpenApiClientButton.vue.js";
|
|
8
8
|
import { useWorkspace as z } from "../../store/store.js";
|
|
9
|
-
const B = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1" }, S = { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, $ = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" }, O = /* @__PURE__ */
|
|
9
|
+
const B = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1" }, S = { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, $ = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" }, O = /* @__PURE__ */ k({
|
|
10
10
|
__name: "RequestSubpageHeader",
|
|
11
11
|
props: {
|
|
12
12
|
collection: {},
|
|
@@ -17,58 +17,58 @@ const B = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
|
|
|
17
17
|
workspace: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["hideModal", "importCurl"],
|
|
20
|
-
setup(
|
|
21
|
-
const { hideClientButton:
|
|
22
|
-
return (
|
|
20
|
+
setup(t) {
|
|
21
|
+
const { hideClientButton: d, showSidebar: p, integration: f } = z(), { isSidebarOpen: b } = h(), { layout: r } = y(), { currentRoute: g } = w();
|
|
22
|
+
return (a, o) => (n(), l("div", B, [
|
|
23
23
|
i("div", S, [
|
|
24
|
-
|
|
24
|
+
e(p) ? (n(), l("div", {
|
|
25
25
|
key: 0,
|
|
26
|
-
class:
|
|
26
|
+
class: v(["size-8", { hidden: e(r) === "modal" && !e(b) }])
|
|
27
27
|
}, null, 2)) : s("", !0)
|
|
28
28
|
]),
|
|
29
|
-
|
|
30
|
-
collection:
|
|
31
|
-
envVariables:
|
|
32
|
-
environment:
|
|
33
|
-
operation:
|
|
34
|
-
server:
|
|
35
|
-
workspace:
|
|
36
|
-
onImportCurl:
|
|
29
|
+
c(x, {
|
|
30
|
+
collection: t.collection,
|
|
31
|
+
envVariables: t.envVariables,
|
|
32
|
+
environment: t.environment,
|
|
33
|
+
operation: t.operation,
|
|
34
|
+
server: t.server,
|
|
35
|
+
workspace: t.workspace,
|
|
36
|
+
onImportCurl: o[0] || (o[0] = (m) => a.$emit("importCurl", m))
|
|
37
37
|
}, null, 8, ["collection", "envVariables", "environment", "operation", "server", "workspace"]),
|
|
38
38
|
i("div", $, [
|
|
39
|
-
|
|
39
|
+
e(r) === "modal" && t.collection.documentUrl && !e(d) ? (n(), C(e(V), {
|
|
40
40
|
key: 0,
|
|
41
41
|
buttonSource: "modal",
|
|
42
42
|
class: "!w-fit lg:-mr-1",
|
|
43
|
-
integration:
|
|
44
|
-
source:
|
|
45
|
-
url:
|
|
43
|
+
integration: e(f) ?? t.collection.integration ?? null,
|
|
44
|
+
source: e(g).query.source === "gitbook" ? "gitbook" : "api-reference",
|
|
45
|
+
url: t.collection.documentUrl
|
|
46
46
|
}, null, 8, ["integration", "source", "url"])) : s("", !0),
|
|
47
|
-
|
|
47
|
+
e(r) === "modal" ? (n(), l("button", {
|
|
48
48
|
key: 1,
|
|
49
49
|
class: "app-exit-button gitbook-hidden zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",
|
|
50
50
|
type: "button",
|
|
51
|
-
onClick:
|
|
51
|
+
onClick: o[1] || (o[1] = (m) => a.$emit("hideModal"))
|
|
52
52
|
}, [
|
|
53
|
-
|
|
53
|
+
c(e(u), {
|
|
54
54
|
icon: "Close",
|
|
55
55
|
size: "lg",
|
|
56
56
|
thickness: "2"
|
|
57
57
|
}),
|
|
58
|
-
|
|
58
|
+
o[3] || (o[3] = i("span", { class: "sr-only" }, "Close Client", -1))
|
|
59
59
|
])) : s("", !0),
|
|
60
|
-
|
|
60
|
+
e(r) === "modal" ? (n(), l("button", {
|
|
61
61
|
key: 2,
|
|
62
62
|
class: "text-c-1 hover:bg-b-2 active:text-c-1 gitbook-show -mr-1.5 rounded p-2",
|
|
63
63
|
type: "button",
|
|
64
|
-
onClick:
|
|
64
|
+
onClick: o[2] || (o[2] = (m) => a.$emit("hideModal"))
|
|
65
65
|
}, [
|
|
66
|
-
|
|
66
|
+
c(e(u), {
|
|
67
67
|
icon: "Close",
|
|
68
68
|
size: "md",
|
|
69
69
|
thickness: "1.75"
|
|
70
70
|
}),
|
|
71
|
-
|
|
71
|
+
o[4] || (o[4] = i("span", { class: "sr-only" }, "Close Client", -1))
|
|
72
72
|
])) : s("", !0)
|
|
73
73
|
])
|
|
74
74
|
]));
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { httpHeaders as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as y, createBlock as f, openBlock as r, withCtx as e, createElementBlock as s, createVNode as a, unref as d, createTextVNode as n, Fragment as i, renderList as b, toDisplayString as c } from "vue";
|
|
2
|
+
import g from "../../../components/DataTable/DataTable.vue.js";
|
|
3
|
+
import p from "../../../components/DataTable/DataTableRow.vue.js";
|
|
4
|
+
import _ from "../../../components/DataTable/DataTableText.vue.js";
|
|
5
|
+
import k from "../../../components/HelpfulLink.vue.js";
|
|
6
|
+
import w from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
7
|
+
import { httpHeaders as h } from "../../../data/httpHeaders.js";
|
|
8
|
+
import x from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
9
|
+
const H = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "max-h-[calc(100%-32px)] overflow-y-auto"
|
|
12
|
-
},
|
|
12
|
+
}, C = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-base"
|
|
15
|
-
}, z = /* @__PURE__ */
|
|
15
|
+
}, z = /* @__PURE__ */ y({
|
|
16
16
|
__name: "RequestHeaders",
|
|
17
17
|
props: {
|
|
18
18
|
headers: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const m = (
|
|
22
|
-
(t) => t.name.toLowerCase() ===
|
|
20
|
+
setup(l) {
|
|
21
|
+
const m = (u) => h.find(
|
|
22
|
+
(t) => t.name.toLowerCase() === u.toLowerCase()
|
|
23
23
|
);
|
|
24
|
-
return (
|
|
24
|
+
return (u, t) => (r(), f(w, {
|
|
25
25
|
class: "overflow-auto",
|
|
26
26
|
defaultOpen: !1,
|
|
27
|
-
itemCount:
|
|
27
|
+
itemCount: l.headers.length
|
|
28
28
|
}, {
|
|
29
29
|
title: e(() => [...t[0] || (t[0] = [
|
|
30
30
|
n("Request Headers", -1)
|
|
31
31
|
])]),
|
|
32
32
|
default: e(() => [
|
|
33
|
-
|
|
34
|
-
a(
|
|
33
|
+
l.headers.length ? (r(), s("div", H, [
|
|
34
|
+
a(g, {
|
|
35
35
|
columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
|
|
36
36
|
scroll: ""
|
|
37
37
|
}, {
|
|
38
38
|
default: e(() => [
|
|
39
|
-
a(
|
|
39
|
+
a(p, { class: "sr-only !block" }, {
|
|
40
40
|
default: e(() => [
|
|
41
|
-
a(
|
|
41
|
+
a(d(x), null, {
|
|
42
42
|
default: e(() => [...t[1] || (t[1] = [
|
|
43
43
|
n("Header Key", -1)
|
|
44
44
|
])]),
|
|
45
45
|
_: 1
|
|
46
46
|
}),
|
|
47
|
-
a(
|
|
47
|
+
a(d(x), null, {
|
|
48
48
|
default: e(() => [...t[2] || (t[2] = [
|
|
49
49
|
n("Header Value", -1)
|
|
50
50
|
])]),
|
|
@@ -53,29 +53,29 @@ const h = {
|
|
|
53
53
|
]),
|
|
54
54
|
_: 1
|
|
55
55
|
}),
|
|
56
|
-
(r(!0),
|
|
56
|
+
(r(!0), s(i, null, b(l.headers, (o) => (r(), f(p, {
|
|
57
57
|
key: o.name,
|
|
58
58
|
class: "group/row text-c-1"
|
|
59
59
|
}, {
|
|
60
60
|
default: e(() => [
|
|
61
|
-
a(
|
|
61
|
+
a(_, { class: "bg-b-1 sticky left-0 z-1 max-w-full group-first/row:border-t-0" }, {
|
|
62
62
|
default: e(() => [
|
|
63
|
-
typeof m(o.name)?.url == "string" ? (r(), f(
|
|
63
|
+
typeof m(o.name)?.url == "string" ? (r(), f(k, {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "decoration-c-3",
|
|
66
66
|
href: m(o.name).url
|
|
67
67
|
}, {
|
|
68
68
|
default: e(() => [
|
|
69
|
-
n(
|
|
69
|
+
n(c(o.name), 1)
|
|
70
70
|
]),
|
|
71
71
|
_: 2
|
|
72
|
-
}, 1032, ["href"])) : (r(),
|
|
73
|
-
n(
|
|
72
|
+
}, 1032, ["href"])) : (r(), s(i, { key: 1 }, [
|
|
73
|
+
n(c(o.name), 1)
|
|
74
74
|
], 64))
|
|
75
75
|
]),
|
|
76
76
|
_: 2
|
|
77
77
|
}, 1024),
|
|
78
|
-
a(
|
|
78
|
+
a(_, {
|
|
79
79
|
class: "z-0 group-first/row:border-t-0",
|
|
80
80
|
text: o.value
|
|
81
81
|
}, null, 8, ["text"])
|
|
@@ -85,7 +85,7 @@ const h = {
|
|
|
85
85
|
]),
|
|
86
86
|
_: 1
|
|
87
87
|
})
|
|
88
|
-
])) : (r(),
|
|
88
|
+
])) : (r(), s("div", C, " No Headers "))
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
91
|
}, 8, ["itemCount"]));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as B, ref as R, computed as m, toRef as
|
|
2
|
-
import
|
|
3
|
-
import { useResponseBody as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { getMediaTypeConfig as
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as B, ref as R, computed as m, toRef as p, createBlock as n, openBlock as o, createSlots as V, withCtx as d, createElementBlock as _, createCommentVNode as r, createElementVNode as v, toDisplayString as y, unref as t, createTextVNode as h, createVNode as b } from "vue";
|
|
2
|
+
import C from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
3
|
+
import { useResponseBody as N } from "../../../hooks/useResponseBody.js";
|
|
4
|
+
import T from "./ResponseBodyDownload.vue.js";
|
|
5
|
+
import $ from "./ResponseBodyInfo.vue.js";
|
|
6
|
+
import E from "./ResponseBodyPreview.vue.js";
|
|
7
|
+
import P from "./ResponseBodyRaw.vue.js";
|
|
8
|
+
import S from "./ResponseBodyToggle.vue.js";
|
|
9
|
+
import { getMediaTypeConfig as U } from "../consts/mediaTypes.js";
|
|
10
|
+
const j = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"
|
|
13
|
-
},
|
|
13
|
+
}, D = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, F = { class: "text-xxs font-code leading-3" }, O = /* @__PURE__ */ B({
|
|
14
14
|
__name: "ResponseBody",
|
|
15
15
|
props: {
|
|
16
16
|
title: {},
|
|
@@ -18,43 +18,43 @@ const D = {
|
|
|
18
18
|
data: {},
|
|
19
19
|
headers: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
21
|
+
setup(a) {
|
|
22
|
+
const f = a, s = R(!0), c = m(
|
|
23
23
|
() => !!(e.value?.raw && e.value.preview)
|
|
24
|
-
),
|
|
25
|
-
data: f
|
|
26
|
-
headers: f
|
|
27
|
-
}), e = m(() =>
|
|
28
|
-
return (
|
|
24
|
+
), w = m(() => s.value || !c.value), g = m(() => !s.value || !c.value), { mimeType: i, attachmentFilename: x, dataUrl: l } = N({
|
|
25
|
+
data: p(f, "data"),
|
|
26
|
+
headers: p(f, "headers")
|
|
27
|
+
}), e = m(() => U(i.value.essence));
|
|
28
|
+
return (I, u) => (o(), n(C, {
|
|
29
29
|
class: "max-h-content overflow-y-hidden",
|
|
30
|
-
layout:
|
|
30
|
+
layout: a.layout
|
|
31
31
|
}, V({
|
|
32
32
|
title: d(() => [
|
|
33
|
-
h(y(
|
|
33
|
+
h(y(a.title), 1)
|
|
34
34
|
]),
|
|
35
35
|
default: d(() => [
|
|
36
|
-
|
|
37
|
-
v("div",
|
|
38
|
-
v("span",
|
|
39
|
-
|
|
36
|
+
a.data ? (o(), _("div", j, [
|
|
37
|
+
v("div", D, [
|
|
38
|
+
v("span", F, y(t(i).essence), 1),
|
|
39
|
+
c.value ? (o(), n(S, {
|
|
40
40
|
key: 0,
|
|
41
41
|
modelValue: s.value,
|
|
42
42
|
"onUpdate:modelValue": u[0] || (u[0] = (k) => s.value = k)
|
|
43
43
|
}, null, 8, ["modelValue"])) : r("", !0)
|
|
44
44
|
]),
|
|
45
|
-
e.value?.raw &&
|
|
46
|
-
key:
|
|
47
|
-
content:
|
|
45
|
+
e.value?.raw && g.value ? (o(), n(P, {
|
|
46
|
+
key: t(l),
|
|
47
|
+
content: a.data,
|
|
48
48
|
language: e.value.language
|
|
49
49
|
}, null, 8, ["content", "language"])) : r("", !0),
|
|
50
|
-
e.value?.preview &&
|
|
51
|
-
key:
|
|
50
|
+
e.value?.preview && w.value ? (o(), n(E, {
|
|
51
|
+
key: t(l),
|
|
52
52
|
alpha: e.value.alpha,
|
|
53
53
|
mode: e.value.preview,
|
|
54
|
-
src:
|
|
55
|
-
type:
|
|
54
|
+
src: t(l),
|
|
55
|
+
type: t(i).essence
|
|
56
56
|
}, null, 8, ["alpha", "mode", "src", "type"])) : r("", !0),
|
|
57
|
-
!e.value?.raw && !e.value?.preview ? (
|
|
57
|
+
!e.value?.raw && !e.value?.preview ? (o(), n($, { key: 2 }, {
|
|
58
58
|
default: d(() => [...u[1] || (u[1] = [
|
|
59
59
|
h(" Binary file ", -1)
|
|
60
60
|
])]),
|
|
@@ -64,13 +64,13 @@ const D = {
|
|
|
64
64
|
]),
|
|
65
65
|
_: 2
|
|
66
66
|
}, [
|
|
67
|
-
|
|
67
|
+
a.data && t(l) ? {
|
|
68
68
|
name: "actions",
|
|
69
69
|
fn: d(() => [
|
|
70
|
-
|
|
71
|
-
filename:
|
|
72
|
-
href:
|
|
73
|
-
type:
|
|
70
|
+
b(T, {
|
|
71
|
+
filename: t(x),
|
|
72
|
+
href: t(l),
|
|
73
|
+
type: t(i).essence
|
|
74
74
|
}, null, 8, ["filename", "href", "type"])
|
|
75
75
|
]),
|
|
76
76
|
key: "0"
|