@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,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as E, ref as
|
|
2
|
-
import { ScalarIcon as
|
|
1
|
+
import { defineComponent as E, ref as f, computed as I, watch as S, createElementBlock as v, openBlock as t, createCommentVNode as n, Fragment as w, normalizeStyle as m, normalizeClass as r, createBlock as x, unref as C, createElementVNode as a, renderList as j, withDirectives as D, vModelText as V, createVNode as $, nextTick as N } from "vue";
|
|
2
|
+
import { ScalarIcon as k } from "@scalar/components";
|
|
3
3
|
const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ E({
|
|
4
4
|
__name: "EnvironmentColors",
|
|
5
5
|
props: {
|
|
@@ -7,8 +7,8 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ E({
|
|
|
7
7
|
selector: { type: Boolean, default: !1 }
|
|
8
8
|
},
|
|
9
9
|
emits: ["select"],
|
|
10
|
-
setup(
|
|
11
|
-
const e =
|
|
10
|
+
setup(c, { emit: F }) {
|
|
11
|
+
const e = c, z = F, l = f(""), h = f(null), u = f(!1), i = f(!1), b = [
|
|
12
12
|
{ color: "#FFFFFF" },
|
|
13
13
|
{ color: "#EF0006" },
|
|
14
14
|
{ color: "#EDBE20" },
|
|
@@ -17,99 +17,99 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ E({
|
|
|
17
17
|
{ color: "#0082D0" },
|
|
18
18
|
{ color: "#5203D1" },
|
|
19
19
|
{ color: "#FFC0CB" }
|
|
20
|
-
],
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
], y = I(() => e.activeColor && !b.some((s) => s.color === e.activeColor) || l.value ? `background-color: ${e.activeColor || l.value};` : "background: linear-gradient(to right, rgb(235, 87, 87), rgb(242, 201, 76), rgb(76, 183, 130), rgb(78, 167, 252), rgb(250, 96, 122));"), p = () => {
|
|
21
|
+
u.value = !u.value, e.selector && (i.value = !1), N(() => {
|
|
22
|
+
h.value && h.value.focus();
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
S(
|
|
26
|
-
|
|
25
|
+
S(l, (s) => {
|
|
26
|
+
s && !s.startsWith("#") && (l.value = `#${s}`), u.value = !0;
|
|
27
27
|
});
|
|
28
28
|
const B = () => {
|
|
29
|
-
e.selector && (
|
|
30
|
-
}, g = (
|
|
31
|
-
z("select",
|
|
29
|
+
e.selector && (i.value = !i.value);
|
|
30
|
+
}, g = (s) => {
|
|
31
|
+
z("select", s), e.selector && (i.value = !1);
|
|
32
32
|
};
|
|
33
|
-
return (
|
|
34
|
-
|
|
35
|
-
e.selector && !
|
|
33
|
+
return (s, d) => (t(), v("div", null, [
|
|
34
|
+
u.value ? n("", !0) : (t(), v(w, { key: 0 }, [
|
|
35
|
+
e.selector && !i.value ? (t(), v("div", {
|
|
36
36
|
key: 0,
|
|
37
|
-
class:
|
|
38
|
-
style:
|
|
37
|
+
class: r(["flex cursor-pointer items-center justify-center rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
|
|
38
|
+
style: m({ backgroundColor: c.activeColor }),
|
|
39
39
|
onClick: B
|
|
40
40
|
}, [
|
|
41
|
-
|
|
41
|
+
c.activeColor ? (t(), x(C(k), {
|
|
42
42
|
key: 0,
|
|
43
|
-
class:
|
|
43
|
+
class: r(["text-c-btn", e.selector && "p-0.5"]),
|
|
44
44
|
icon: "Checkmark",
|
|
45
45
|
size: "xs"
|
|
46
|
-
}, null, 8, ["class"])) :
|
|
47
|
-
], 6)) :
|
|
48
|
-
|
|
46
|
+
}, null, 8, ["class"])) : n("", !0)
|
|
47
|
+
], 6)) : n("", !0),
|
|
48
|
+
i.value || !e.selector ? (t(), v("div", {
|
|
49
49
|
key: 1,
|
|
50
|
-
class:
|
|
50
|
+
class: r(["color-selector flex flex-row items-center justify-between gap-1.5 space-x-1", e.selector ? "h-4" : "min-h-10 min-w-[296px]"])
|
|
51
51
|
}, [
|
|
52
|
-
(t(),
|
|
53
|
-
key:
|
|
54
|
-
class:
|
|
55
|
-
style:
|
|
56
|
-
onClick: (L) => g(
|
|
52
|
+
(t(), v(w, null, j(b, (o) => a("div", {
|
|
53
|
+
key: o.color,
|
|
54
|
+
class: r(["flex cursor-pointer items-center justify-center rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
|
|
55
|
+
style: m({ backgroundColor: o.color }),
|
|
56
|
+
onClick: (L) => g(o.color)
|
|
57
57
|
}, [
|
|
58
|
-
|
|
58
|
+
c.activeColor === o.color && !l.value ? (t(), x(C(k), {
|
|
59
59
|
key: 0,
|
|
60
|
-
class:
|
|
60
|
+
class: r(["text-c-btn", e.selector && "p-0.5"]),
|
|
61
61
|
icon: "Checkmark",
|
|
62
62
|
size: "xs"
|
|
63
|
-
}, null, 8, ["class"])) :
|
|
63
|
+
}, null, 8, ["class"])) : n("", !0)
|
|
64
64
|
], 14, R)), 64)),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
class:
|
|
68
|
-
style:
|
|
69
|
-
onClick:
|
|
65
|
+
d[2] || (d[2] = a("hr", { class: "border-ghost h-5 w-0.5 border-l" }, null, -1)),
|
|
66
|
+
a("label", {
|
|
67
|
+
class: r(["z-10 flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
|
|
68
|
+
style: m(y.value),
|
|
69
|
+
onClick: p
|
|
70
70
|
}, [
|
|
71
|
-
!
|
|
71
|
+
!u.value && (c.activeColor === l.value || c.activeColor && !b.some((o) => o.color === c.activeColor)) ? (t(), x(C(k), {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "text-c-btn",
|
|
74
74
|
icon: "Checkmark",
|
|
75
75
|
size: "xs"
|
|
76
|
-
})) :
|
|
76
|
+
})) : n("", !0)
|
|
77
77
|
], 6)
|
|
78
|
-
], 2)) :
|
|
78
|
+
], 2)) : n("", !0)
|
|
79
79
|
], 64)),
|
|
80
|
-
|
|
80
|
+
u.value ? (t(), v("div", {
|
|
81
81
|
key: 1,
|
|
82
|
-
class:
|
|
82
|
+
class: r(["color-selector flex flex-1 items-center gap-2 rounded", e.selector ? "h-4" : "min-h-10"])
|
|
83
83
|
}, [
|
|
84
|
-
|
|
85
|
-
class:
|
|
84
|
+
a("span", {
|
|
85
|
+
class: r(["absolute rounded-full border border-dashed", e.selector ? "h-4 w-4" : "h-5 w-5"])
|
|
86
86
|
}, null, 2),
|
|
87
|
-
|
|
88
|
-
class:
|
|
89
|
-
style:
|
|
87
|
+
a("span", {
|
|
88
|
+
class: r(["z-[1] rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
|
|
89
|
+
style: m(y.value)
|
|
90
90
|
}, null, 6),
|
|
91
|
-
D(
|
|
91
|
+
D(a("input", {
|
|
92
92
|
ref_key: "customColorInputRef",
|
|
93
|
-
ref:
|
|
94
|
-
"onUpdate:modelValue":
|
|
93
|
+
ref: h,
|
|
94
|
+
"onUpdate:modelValue": d[0] || (d[0] = (o) => l.value = o),
|
|
95
95
|
class: "w-full flex-1 border-transparent text-sm outline-none",
|
|
96
|
-
placeholder:
|
|
96
|
+
placeholder: c.activeColor || "#000000",
|
|
97
97
|
type: "text",
|
|
98
|
-
onInput:
|
|
98
|
+
onInput: d[1] || (d[1] = (o) => g(l.value))
|
|
99
99
|
}, null, 40, T), [
|
|
100
|
-
[V,
|
|
100
|
+
[V, l.value]
|
|
101
101
|
]),
|
|
102
|
-
|
|
102
|
+
a("button", {
|
|
103
103
|
class: "text-c-3 hover:bg-b-2 rounded-lg p-1.5",
|
|
104
104
|
type: "button",
|
|
105
|
-
onClick:
|
|
105
|
+
onClick: p
|
|
106
106
|
}, [
|
|
107
|
-
$(
|
|
107
|
+
$(C(k), {
|
|
108
108
|
icon: "Checkmark",
|
|
109
109
|
size: "xs"
|
|
110
110
|
})
|
|
111
111
|
])
|
|
112
|
-
], 2)) :
|
|
112
|
+
], 2)) : n("", !0)
|
|
113
113
|
]));
|
|
114
114
|
}
|
|
115
115
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, ref as m, computed as
|
|
2
|
-
import { ScalarModal as N, ScalarListbox as T, ScalarButton as
|
|
1
|
+
import { defineComponent as y, ref as m, computed as h, watch as _, createBlock as u, openBlock as v, unref as i, withCtx as o, createVNode as s, createElementVNode as p, createTextVNode as w, normalizeClass as I, toDisplayString as E } from "vue";
|
|
2
|
+
import { ScalarModal as N, ScalarListbox as T, ScalarButton as x, ScalarIcon as $ } from "@scalar/components";
|
|
3
3
|
import { useToasts as z } from "@scalar/use-toasts";
|
|
4
4
|
import B from "../../components/CommandPalette/CommandActionForm.vue.js";
|
|
5
5
|
import D from "../../components/CommandPalette/CommandActionInput.vue.js";
|
|
@@ -13,35 +13,35 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
|
|
|
13
13
|
collectionId: {}
|
|
14
14
|
},
|
|
15
15
|
emits: ["cancel", "submit"],
|
|
16
|
-
setup(
|
|
17
|
-
const a =
|
|
18
|
-
...a.activeWorkspaceCollections.filter((
|
|
19
|
-
id:
|
|
20
|
-
label:
|
|
16
|
+
setup(f, { emit: g }) {
|
|
17
|
+
const a = f, b = g, { events: F } = U(), n = m(""), r = m("#FFFFFF"), c = h(() => [
|
|
18
|
+
...a.activeWorkspaceCollections.filter((l) => l.info?.title !== "Drafts").map((l) => ({
|
|
19
|
+
id: l.uid,
|
|
20
|
+
label: l.info?.title ?? "Untitled Collection"
|
|
21
21
|
}))
|
|
22
22
|
]), e = m(
|
|
23
|
-
c.value.find((
|
|
24
|
-
), { toast:
|
|
25
|
-
r.value =
|
|
23
|
+
c.value.find((l) => l.id === a.collectionId)
|
|
24
|
+
), { toast: C } = z(), S = (l) => {
|
|
25
|
+
r.value = l;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
_(
|
|
28
28
|
() => a.state.open,
|
|
29
|
-
(
|
|
30
|
-
|
|
31
|
-
(
|
|
29
|
+
(l) => {
|
|
30
|
+
l && (n.value = "", r.value = "#FFFFFF", a.collectionId ? e.value = c.value.find(
|
|
31
|
+
(t) => t.id === a.collectionId
|
|
32
32
|
) : e.value = void 0);
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
const V = () => {
|
|
36
36
|
if (!n.value.trim()) {
|
|
37
|
-
|
|
37
|
+
C("Please enter a name before adding an environment.", "error");
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
if (!e.value?.id) {
|
|
41
|
-
|
|
41
|
+
C("Please select a collection before adding an environment.", "error");
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
b("submit", {
|
|
45
45
|
name: n.value,
|
|
46
46
|
color: r.value,
|
|
47
47
|
type: e.value?.id === "global" ? "global" : "collection",
|
|
@@ -50,26 +50,26 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
|
|
|
50
50
|
}, k = () => {
|
|
51
51
|
a.state.hide(), F.commandPalette.emit({ commandName: "Create Collection" });
|
|
52
52
|
};
|
|
53
|
-
return (
|
|
53
|
+
return (l, t) => (v(), u(i(N), {
|
|
54
54
|
bodyClass: "border-t-0 rounded-t-lg",
|
|
55
55
|
size: "xs",
|
|
56
|
-
state:
|
|
56
|
+
state: f.state
|
|
57
57
|
}, {
|
|
58
58
|
default: o(() => [
|
|
59
59
|
s(B, {
|
|
60
60
|
disabled: !e.value || !n.value.trim(),
|
|
61
|
-
onCancel:
|
|
61
|
+
onCancel: t[2] || (t[2] = (d) => b("cancel")),
|
|
62
62
|
onSubmit: V
|
|
63
63
|
}, {
|
|
64
64
|
options: o(() => [
|
|
65
65
|
s(i(T), {
|
|
66
66
|
modelValue: e.value,
|
|
67
|
-
"onUpdate:modelValue":
|
|
67
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => e.value = d),
|
|
68
68
|
options: c.value,
|
|
69
69
|
placeholder: "Select Type"
|
|
70
70
|
}, {
|
|
71
71
|
default: o(() => [
|
|
72
|
-
c.value.length > 0 ? (v(), u(i(
|
|
72
|
+
c.value.length > 0 ? (v(), u(i(x), {
|
|
73
73
|
key: 0,
|
|
74
74
|
class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
|
|
75
75
|
variant: "outlined"
|
|
@@ -85,13 +85,13 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
|
|
|
85
85
|
})
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
|
88
|
-
})) : (v(), u(i(
|
|
88
|
+
})) : (v(), u(i(x), {
|
|
89
89
|
key: 1,
|
|
90
90
|
class: "hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",
|
|
91
91
|
variant: "outlined",
|
|
92
92
|
onClick: k
|
|
93
93
|
}, {
|
|
94
|
-
default: o(() => [...
|
|
94
|
+
default: o(() => [...t[3] || (t[3] = [
|
|
95
95
|
p("span", { class: "text-c-1" }, "Create Collection", -1)
|
|
96
96
|
])]),
|
|
97
97
|
_: 1
|
|
@@ -100,7 +100,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
|
|
|
100
100
|
_: 1
|
|
101
101
|
}, 8, ["modelValue", "options"])
|
|
102
102
|
]),
|
|
103
|
-
submit: o(() => [...
|
|
103
|
+
submit: o(() => [...t[4] || (t[4] = [
|
|
104
104
|
w(" Add Environment ", -1)
|
|
105
105
|
])]),
|
|
106
106
|
default: o(() => [
|
|
@@ -113,7 +113,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
|
|
|
113
113
|
}, null, 8, ["activeColor"]),
|
|
114
114
|
s(D, {
|
|
115
115
|
modelValue: n.value,
|
|
116
|
-
"onUpdate:modelValue":
|
|
116
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => n.value = d),
|
|
117
117
|
class: "-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",
|
|
118
118
|
placeholder: "Environment name"
|
|
119
119
|
}, null, 8, ["modelValue"])
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as B, ref as
|
|
1
|
+
import { defineComponent as B, ref as h, computed as w, onMounted as R, createBlock as b, createCommentVNode as y, openBlock as n, unref as l, withCtx as k, createElementVNode as c, normalizeStyle as g, createElementBlock as u, Fragment as D, renderList as T, normalizeClass as j, createTextVNode as V, toDisplayString as C, createVNode as q } from "vue";
|
|
2
2
|
import { ScalarTeleport as F, ScalarButton as G } from "@scalar/components";
|
|
3
3
|
import { ScalarIconGlobe as K, ScalarIconPlus as O } from "@scalar/icons";
|
|
4
4
|
import { onClickOutside as L } from "@vueuse/core";
|
|
5
5
|
import M from "fuse.js";
|
|
6
6
|
import { useRouter as Q } from "vue-router";
|
|
7
7
|
import { getEnvColor as W } from "../../libs/env-helpers.js";
|
|
8
|
-
import { PathId as
|
|
8
|
+
import { PathId as S } from "../../routes.js";
|
|
9
9
|
import { useActiveEntities as $ } from "../../store/active-entities.js";
|
|
10
10
|
import { parseEnvVariables as _ } from "../../libs/environment-parser.js";
|
|
11
11
|
const H = {
|
|
@@ -20,22 +20,22 @@ const H = {
|
|
|
20
20
|
dropdownPosition: {}
|
|
21
21
|
},
|
|
22
22
|
emits: ["select"],
|
|
23
|
-
setup(
|
|
24
|
-
const s =
|
|
25
|
-
if (!
|
|
23
|
+
setup(d, { expose: E, emit: z }) {
|
|
24
|
+
const s = d, I = z, f = h(!0), p = h(null), r = h(0), m = Q(), { activeCollection: v } = $(), N = () => {
|
|
25
|
+
if (!m)
|
|
26
26
|
return;
|
|
27
|
-
const { currentRoute: t, push: o } =
|
|
28
|
-
!
|
|
27
|
+
const { currentRoute: t, push: o } = m, e = t.value.params.workspace;
|
|
28
|
+
!v.value || v.value.info?.title === "Drafts" ? o({
|
|
29
29
|
name: "environment.default",
|
|
30
30
|
params: {
|
|
31
|
-
[
|
|
31
|
+
[S.Workspace]: e
|
|
32
32
|
}
|
|
33
33
|
}) : o({
|
|
34
34
|
name: "collection.environment",
|
|
35
35
|
params: {
|
|
36
|
-
[
|
|
36
|
+
[S.Collection]: v.value.uid
|
|
37
37
|
}
|
|
38
|
-
}),
|
|
38
|
+
}), f.value = !1;
|
|
39
39
|
}, P = new M(_(s.envVariables), {
|
|
40
40
|
keys: ["key", "value"]
|
|
41
41
|
}), i = w(() => {
|
|
@@ -44,7 +44,7 @@ const H = {
|
|
|
44
44
|
return _(s.envVariables).slice(-4).filter(({ key: e, value: a }) => e !== "" || a !== "");
|
|
45
45
|
const o = P.search(t, { limit: 10 });
|
|
46
46
|
return o.length > 0 ? o.map((e) => e.item).filter(({ key: e, value: a }) => e !== "" || a !== "") : [];
|
|
47
|
-
}),
|
|
47
|
+
}), x = (t) => {
|
|
48
48
|
I("select", t);
|
|
49
49
|
};
|
|
50
50
|
E({
|
|
@@ -55,7 +55,7 @@ const H = {
|
|
|
55
55
|
handleSelect: () => {
|
|
56
56
|
if (r.value >= 0) {
|
|
57
57
|
const t = i.value[r.value];
|
|
58
|
-
t &&
|
|
58
|
+
t && x(t.key);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}), R(() => {
|
|
@@ -69,10 +69,10 @@ const H = {
|
|
|
69
69
|
return L(
|
|
70
70
|
p,
|
|
71
71
|
() => {
|
|
72
|
-
|
|
72
|
+
f.value = !1;
|
|
73
73
|
},
|
|
74
74
|
{ ignore: [p] }
|
|
75
|
-
), (t, o) =>
|
|
75
|
+
), (t, o) => f.value ? (n(), b(l(F), {
|
|
76
76
|
key: 0,
|
|
77
77
|
class: "scalar-client"
|
|
78
78
|
}, {
|
|
@@ -81,31 +81,31 @@ const H = {
|
|
|
81
81
|
ref_key: "dropdownRef",
|
|
82
82
|
ref: p,
|
|
83
83
|
class: "custom-scroll fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75",
|
|
84
|
-
style:
|
|
84
|
+
style: g(A.value)
|
|
85
85
|
}, [
|
|
86
86
|
i.value.length ? (n(), u("ul", H, [
|
|
87
87
|
(n(!0), u(D, null, T(i.value, (e, a) => (n(), u("li", {
|
|
88
88
|
key: e.key,
|
|
89
89
|
class: j(["font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150", { "bg-b-2": a === r.value }]),
|
|
90
|
-
onClick: (ee) =>
|
|
90
|
+
onClick: (ee) => x(e.key)
|
|
91
91
|
}, [
|
|
92
92
|
c("div", U, [
|
|
93
|
-
e.source === "collection" &&
|
|
93
|
+
e.source === "collection" && d.environment.name !== "No Environment" ? (n(), u("span", {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "h-2.25 w-2.25 min-w-2.25 rounded-full",
|
|
96
|
-
style:
|
|
97
|
-
backgroundColor: l(W)(
|
|
96
|
+
style: g({
|
|
97
|
+
backgroundColor: l(W)(d.environment)
|
|
98
98
|
})
|
|
99
|
-
}, null, 4)) : (n(),
|
|
99
|
+
}, null, 4)) : (n(), b(l(K), {
|
|
100
100
|
key: 1,
|
|
101
101
|
class: "-ml-0.25 size-2.5",
|
|
102
102
|
icon: "Globe"
|
|
103
103
|
})),
|
|
104
|
-
|
|
104
|
+
V(" " + C(e.key), 1)
|
|
105
105
|
]),
|
|
106
|
-
c("span", X,
|
|
106
|
+
c("span", X, C(e.value), 1)
|
|
107
107
|
], 10, J))), 128))
|
|
108
|
-
])) : l(
|
|
108
|
+
])) : l(m) ? (n(), b(l(G), {
|
|
109
109
|
key: 1,
|
|
110
110
|
class: "font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
|
|
111
111
|
variant: "outlined",
|
|
@@ -113,7 +113,7 @@ const H = {
|
|
|
113
113
|
}, {
|
|
114
114
|
default: k(() => [
|
|
115
115
|
q(l(O), { class: "size-3" }),
|
|
116
|
-
o[0] || (o[0] =
|
|
116
|
+
o[0] || (o[0] = V(" Add Variable ", -1))
|
|
117
117
|
]),
|
|
118
118
|
_: 1
|
|
119
119
|
})) : y("", !0),
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useSidebar as
|
|
6
|
-
import { importCurlCommand as
|
|
7
|
-
import { useActiveEntities as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useWorkspace as
|
|
12
|
-
import { useLayout as
|
|
13
|
-
const
|
|
1
|
+
import { defineComponent as _, computed as P, createElementBlock as f, createBlock as u, unref as e, openBlock as o, normalizeClass as k, createElementVNode as W, createVNode as n, isRef as H, withCtx as y, createCommentVNode as N } from "vue";
|
|
2
|
+
import S from "../../components/EmptyState.vue.js";
|
|
3
|
+
import g from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
4
|
+
import B from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
5
|
+
import { useSidebar as I } from "../../hooks/useSidebar.js";
|
|
6
|
+
import { importCurlCommand as L } from "../../libs/importers/curl.js";
|
|
7
|
+
import { useActiveEntities as z } from "../../store/active-entities.js";
|
|
8
|
+
import A from "./RequestSection/RequestSection.vue.js";
|
|
9
|
+
import D from "./RequestSubpageHeader.vue.js";
|
|
10
|
+
import M from "./ResponseSection/ResponseSection.vue.js";
|
|
11
|
+
import { useWorkspace as x } from "../../store/store.js";
|
|
12
|
+
import { useLayout as O } from "../../hooks/useLayout.js";
|
|
13
|
+
const T = { class: "flex h-full" }, $ = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "flex h-full flex-1 flex-col"
|
|
16
|
-
}, re = /* @__PURE__ */
|
|
16
|
+
}, re = /* @__PURE__ */ _({
|
|
17
17
|
__name: "Request",
|
|
18
18
|
props: {
|
|
19
19
|
invalidParams: {},
|
|
@@ -21,83 +21,83 @@ const O = { class: "flex h-full" }, T = {
|
|
|
21
21
|
requestResult: {}
|
|
22
22
|
},
|
|
23
23
|
emits: ["newTab"],
|
|
24
|
-
setup(
|
|
25
|
-
const { events: b } =
|
|
24
|
+
setup(c) {
|
|
25
|
+
const { events: b } = x(), { isSidebarOpen: r } = I(), R = x(), { layout: q } = O(), {
|
|
26
26
|
activeCollection: t,
|
|
27
|
-
activeExample:
|
|
27
|
+
activeExample: m,
|
|
28
28
|
activeRequest: a,
|
|
29
|
-
activeWorkspace:
|
|
30
|
-
activeServer:
|
|
29
|
+
activeWorkspace: s,
|
|
30
|
+
activeServer: d,
|
|
31
31
|
activeEnvVariables: p,
|
|
32
|
-
activeEnvironment:
|
|
32
|
+
activeEnvironment: v,
|
|
33
33
|
activeWorkspaceRequests: h
|
|
34
|
-
} =
|
|
35
|
-
() => [...
|
|
34
|
+
} = z(), { modalState: C, requestHistory: V } = R, w = P(
|
|
35
|
+
() => [...V].reverse().find((l) => l.request.uid === m.value?.uid)
|
|
36
36
|
);
|
|
37
|
-
function
|
|
37
|
+
function E(l) {
|
|
38
38
|
b.commandPalette.emit({
|
|
39
39
|
commandName: "Import from cURL",
|
|
40
40
|
metaData: {
|
|
41
|
-
parsedCurl:
|
|
41
|
+
parsedCurl: L(l),
|
|
42
42
|
collectionUid: t.value?.uid
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
return (
|
|
46
|
+
return (l, i) => e(t) && e(s) ? (o(), f("div", {
|
|
47
47
|
key: 0,
|
|
48
|
-
class:
|
|
48
|
+
class: k(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
|
|
49
49
|
"!mr-0 !mb-0 !border-0": e(q) === "modal"
|
|
50
50
|
}])
|
|
51
51
|
}, [
|
|
52
|
-
|
|
53
|
-
e(a) ? (
|
|
54
|
-
n(
|
|
55
|
-
modelValue: e(
|
|
56
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
52
|
+
W("div", T, [
|
|
53
|
+
e(a) ? (o(), f("div", $, [
|
|
54
|
+
n(D, {
|
|
55
|
+
modelValue: e(r),
|
|
56
|
+
"onUpdate:modelValue": i[0] || (i[0] = (U) => H(r) ? r.value = U : null),
|
|
57
57
|
collection: e(t),
|
|
58
58
|
envVariables: e(p),
|
|
59
|
-
environment: e(
|
|
59
|
+
environment: e(v),
|
|
60
60
|
operation: e(a),
|
|
61
|
-
server: e(
|
|
62
|
-
workspace: e(
|
|
63
|
-
onHideModal: i[1] || (i[1] = () => e(
|
|
64
|
-
onImportCurl:
|
|
61
|
+
server: e(d),
|
|
62
|
+
workspace: e(s),
|
|
63
|
+
onHideModal: i[1] || (i[1] = () => e(C).hide()),
|
|
64
|
+
onImportCurl: E
|
|
65
65
|
}, null, 8, ["modelValue", "collection", "envVariables", "environment", "operation", "server", "workspace"]),
|
|
66
|
-
n(
|
|
67
|
-
default:
|
|
68
|
-
e(
|
|
66
|
+
n(g, null, {
|
|
67
|
+
default: y(() => [
|
|
68
|
+
e(m) ? (o(), u(B, {
|
|
69
69
|
key: 0,
|
|
70
|
-
class:
|
|
70
|
+
class: k(["flex-1", [e(r) ? "sidebar-active-hide-layout" : ""]])
|
|
71
71
|
}, {
|
|
72
|
-
default:
|
|
73
|
-
n(
|
|
72
|
+
default: y(() => [
|
|
73
|
+
n(A, {
|
|
74
74
|
collection: e(t),
|
|
75
75
|
envVariables: e(p),
|
|
76
|
-
environment: e(
|
|
77
|
-
example: e(
|
|
78
|
-
invalidParams:
|
|
76
|
+
environment: e(v),
|
|
77
|
+
example: e(m),
|
|
78
|
+
invalidParams: c.invalidParams,
|
|
79
79
|
operation: e(a),
|
|
80
|
-
selectedSecuritySchemeUids:
|
|
81
|
-
server: e(
|
|
82
|
-
workspace: e(
|
|
80
|
+
selectedSecuritySchemeUids: c.selectedSecuritySchemeUids,
|
|
81
|
+
server: e(d),
|
|
82
|
+
workspace: e(s)
|
|
83
83
|
}, null, 8, ["collection", "envVariables", "environment", "example", "invalidParams", "operation", "selectedSecuritySchemeUids", "server", "workspace"]),
|
|
84
|
-
n(
|
|
84
|
+
n(M, {
|
|
85
85
|
collection: e(t),
|
|
86
86
|
numWorkspaceRequests: e(h).length,
|
|
87
87
|
operation: e(a),
|
|
88
|
-
requestResult:
|
|
89
|
-
response:
|
|
90
|
-
workspace: e(
|
|
88
|
+
requestResult: c.requestResult,
|
|
89
|
+
response: w.value?.response,
|
|
90
|
+
workspace: e(s)
|
|
91
91
|
}, null, 8, ["collection", "numWorkspaceRequests", "operation", "requestResult", "response", "workspace"])
|
|
92
92
|
]),
|
|
93
93
|
_: 1
|
|
94
|
-
}, 8, ["class"])) :
|
|
94
|
+
}, 8, ["class"])) : N("", !0)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
})
|
|
98
|
-
])) : (
|
|
98
|
+
])) : (o(), u(S, { key: 1 }))
|
|
99
99
|
])
|
|
100
|
-
], 2)) : (
|
|
100
|
+
], 2)) : (o(), u(S, { key: 1 }));
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
export {
|