@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,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as W, ref as m, computed as h, watch as
|
|
1
|
+
import { defineComponent as W, ref as m, computed as h, watch as I, onMounted as $, createBlock as b, openBlock as f, withCtx as s, createVNode as c, createElementBlock as D, createTextVNode as R, Fragment as O, renderList as j, normalizeClass as F, createSlots as A, unref as V, createCommentVNode as J, withModifiers as L, nextTick as g } from "vue";
|
|
2
2
|
import { ScalarButton as q } from "@scalar/components";
|
|
3
3
|
import { ScalarIconWarning as G, ScalarIconTrash as H } from "@scalar/icons";
|
|
4
|
-
import
|
|
4
|
+
import E from "../../../components/CodeInput/CodeInput.vue.js";
|
|
5
5
|
import P from "../../../components/DataTable/DataTable.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import K from "../../../components/DataTable/DataTableCell.vue.js";
|
|
7
|
+
import T from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
8
|
+
import U from "../../../components/DataTable/DataTableRow.vue.js";
|
|
9
9
|
import { useWorkspace as Q } from "../../../store/store.js";
|
|
10
10
|
const oe = /* @__PURE__ */ W({
|
|
11
11
|
__name: "EnvironmentForm",
|
|
@@ -15,85 +15,85 @@ const oe = /* @__PURE__ */ W({
|
|
|
15
15
|
workspace: {},
|
|
16
16
|
envVariables: {}
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const { collectionMutators: d } = Q(), o = m([]), y = m(/* @__PURE__ */ new Set()), k = m(/* @__PURE__ */ new Map()), u = m(!1),
|
|
20
|
-
if (!
|
|
18
|
+
setup(t) {
|
|
19
|
+
const { collectionMutators: d } = Q(), o = m([]), y = m(/* @__PURE__ */ new Set()), k = m(/* @__PURE__ */ new Map()), u = m(!1), z = h(() => {
|
|
20
|
+
if (!t.environment?.value)
|
|
21
21
|
return [{ key: "", value: "" }];
|
|
22
22
|
try {
|
|
23
|
-
const
|
|
24
|
-
key:
|
|
25
|
-
value: String(
|
|
23
|
+
const n = JSON.parse(t.environment.value), a = Object.entries(n).map(([l, e]) => ({
|
|
24
|
+
key: l,
|
|
25
|
+
value: String(e)
|
|
26
26
|
}));
|
|
27
27
|
return a.length === 0 ? [{ key: "", value: "" }] : a;
|
|
28
28
|
} catch {
|
|
29
29
|
return [{ key: "", value: "" }];
|
|
30
30
|
}
|
|
31
|
-
}),
|
|
32
|
-
const
|
|
33
|
-
return
|
|
31
|
+
}), M = h(() => {
|
|
32
|
+
const n = o.value[o.value.length - 1];
|
|
33
|
+
return n ? n.key || n.value ? [...o.value, { key: "", value: "" }] : o.value : [{ key: "", value: "" }];
|
|
34
34
|
}), p = h(() => {
|
|
35
|
-
const
|
|
36
|
-
return o.value.forEach((a,
|
|
35
|
+
const n = /* @__PURE__ */ new Map();
|
|
36
|
+
return o.value.forEach((a, l) => {
|
|
37
37
|
if (a.key) {
|
|
38
|
-
const
|
|
39
|
-
|
|
38
|
+
const e = n.get(a.key) || [];
|
|
39
|
+
e.push(l), n.set(a.key, e);
|
|
40
40
|
}
|
|
41
|
-
}), k.value.forEach((a,
|
|
41
|
+
}), k.value.forEach((a, l) => {
|
|
42
42
|
if (a) {
|
|
43
|
-
const
|
|
44
|
-
|
|
43
|
+
const e = n.get(a) || [];
|
|
44
|
+
e.push(l), n.set(a, e);
|
|
45
45
|
}
|
|
46
|
-
}), Array.from(
|
|
46
|
+
}), Array.from(n.values()).filter((a) => a.length > 1).flat();
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(
|
|
51
|
-
o.value = [...
|
|
48
|
+
I(
|
|
49
|
+
z,
|
|
50
|
+
(n) => {
|
|
51
|
+
o.value = [...n], y.value = new Set(n.map((a) => a.key).filter(Boolean));
|
|
52
52
|
},
|
|
53
53
|
{ immediate: !0 }
|
|
54
54
|
);
|
|
55
|
-
const
|
|
55
|
+
const x = async (n, a, l) => {
|
|
56
56
|
if (!u.value) {
|
|
57
57
|
if (a === "key") {
|
|
58
|
-
k.value.set(
|
|
59
|
-
const
|
|
60
|
-
if (r &&
|
|
58
|
+
k.value.set(n, l);
|
|
59
|
+
const e = new Set(y.value), r = o.value[n];
|
|
60
|
+
if (r && e.delete(r.key), e.has(l))
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
u.value = !0;
|
|
64
64
|
try {
|
|
65
|
-
const
|
|
65
|
+
const e = [...o.value], r = e[n];
|
|
66
66
|
if (!r)
|
|
67
67
|
return;
|
|
68
|
-
n
|
|
69
|
-
key: a === "key" ?
|
|
70
|
-
value: a === "value" ?
|
|
71
|
-
}, !n
|
|
72
|
-
const v =
|
|
73
|
-
(
|
|
68
|
+
e[n] = {
|
|
69
|
+
key: a === "key" ? l : r.key,
|
|
70
|
+
value: a === "value" ? l : r.value
|
|
71
|
+
}, !e[n].key && !e[n].value && n !== e.length - 1 && e.splice(n, 1);
|
|
72
|
+
const v = e.reduce(
|
|
73
|
+
(i, { key: S, value: B }) => ((S || B) && (i[S] = B), i),
|
|
74
74
|
{}
|
|
75
75
|
);
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
...
|
|
79
|
-
[
|
|
80
|
-
...
|
|
76
|
+
if (t.collection) {
|
|
77
|
+
const i = {
|
|
78
|
+
...t.collection["x-scalar-environments"],
|
|
79
|
+
[t.environment.name]: {
|
|
80
|
+
...t.collection["x-scalar-environments"]?.[t.environment.name],
|
|
81
81
|
variables: v
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
await d.edit(
|
|
85
|
-
|
|
85
|
+
t.collection.uid,
|
|
86
86
|
"x-scalar-environments",
|
|
87
|
-
|
|
87
|
+
i
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
|
-
if (
|
|
91
|
-
const
|
|
92
|
-
|
|
90
|
+
if (n === o.value.length - 1) {
|
|
91
|
+
const i = e[e.length - 1];
|
|
92
|
+
i && (i.key || i.value) && await w();
|
|
93
93
|
}
|
|
94
|
-
await g(), o.value =
|
|
95
|
-
|
|
96
|
-
), k.value.delete(
|
|
94
|
+
await g(), o.value = e, a === "key" && (y.value = new Set(
|
|
95
|
+
e.map((i) => i.key).filter(Boolean)
|
|
96
|
+
), k.value.delete(n));
|
|
97
97
|
} finally {
|
|
98
98
|
u.value = !1;
|
|
99
99
|
}
|
|
@@ -102,51 +102,51 @@ const oe = /* @__PURE__ */ W({
|
|
|
102
102
|
if (!u.value) {
|
|
103
103
|
u.value = !0;
|
|
104
104
|
try {
|
|
105
|
-
const
|
|
106
|
-
(
|
|
105
|
+
const n = [...o.value, { key: "", value: "" }], a = n.reduce(
|
|
106
|
+
(l, { key: e, value: r }) => ((e || r) && (l[e] = r), l),
|
|
107
107
|
{}
|
|
108
108
|
);
|
|
109
|
-
if (
|
|
110
|
-
const
|
|
111
|
-
...
|
|
112
|
-
[
|
|
113
|
-
...
|
|
109
|
+
if (t.collection) {
|
|
110
|
+
const l = {
|
|
111
|
+
...t.collection["x-scalar-environments"],
|
|
112
|
+
[t.environment.name]: {
|
|
113
|
+
...t.collection["x-scalar-environments"]?.[t.environment.name],
|
|
114
114
|
variables: a
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
await d.edit(
|
|
118
|
-
|
|
118
|
+
t.collection.uid,
|
|
119
119
|
"x-scalar-environments",
|
|
120
|
-
|
|
120
|
+
l
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
await g(), o.value =
|
|
123
|
+
await g(), o.value = n;
|
|
124
124
|
} finally {
|
|
125
125
|
u.value = !1;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
}, N = async (
|
|
128
|
+
}, N = async (n) => {
|
|
129
129
|
if (!u.value) {
|
|
130
130
|
u.value = !0;
|
|
131
131
|
try {
|
|
132
132
|
const a = [...o.value];
|
|
133
|
-
a.splice(
|
|
134
|
-
const
|
|
135
|
-
(
|
|
133
|
+
a.splice(n, 1);
|
|
134
|
+
const l = a.reduce(
|
|
135
|
+
(e, { key: r, value: v }) => ((r || v) && (e[r] = v), e),
|
|
136
136
|
{}
|
|
137
137
|
);
|
|
138
|
-
if (
|
|
139
|
-
const
|
|
140
|
-
...
|
|
141
|
-
[
|
|
142
|
-
...
|
|
143
|
-
variables:
|
|
138
|
+
if (t.collection) {
|
|
139
|
+
const e = {
|
|
140
|
+
...t.collection["x-scalar-environments"],
|
|
141
|
+
[t.environment.name]: {
|
|
142
|
+
...t.collection["x-scalar-environments"]?.[t.environment.name],
|
|
143
|
+
variables: l
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
await d.edit(
|
|
147
|
-
|
|
147
|
+
t.collection.uid,
|
|
148
148
|
"x-scalar-environments",
|
|
149
|
-
|
|
149
|
+
e
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
await g(), o.value = a;
|
|
@@ -154,67 +154,67 @@ const oe = /* @__PURE__ */ W({
|
|
|
154
154
|
u.value = !1;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
},
|
|
157
|
+
}, C = async () => {
|
|
158
158
|
if (o.value.length === 0)
|
|
159
159
|
await w();
|
|
160
160
|
else if (o.value.length >= 1) {
|
|
161
|
-
const
|
|
162
|
-
|
|
161
|
+
const n = o.value[o.value.length - 1];
|
|
162
|
+
n && (n.key || n.value) && await w();
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
return $(() => {
|
|
166
|
-
|
|
167
|
-
}),
|
|
166
|
+
C();
|
|
167
|
+
}), I(
|
|
168
168
|
() => o.value,
|
|
169
169
|
() => {
|
|
170
|
-
|
|
170
|
+
C();
|
|
171
171
|
}
|
|
172
|
-
), (
|
|
172
|
+
), (n, a) => (f(), b(P, {
|
|
173
173
|
class: "group/table flex-1",
|
|
174
174
|
columns: ["", ""]
|
|
175
175
|
}, {
|
|
176
|
-
default:
|
|
177
|
-
c(
|
|
178
|
-
default:
|
|
179
|
-
c(
|
|
180
|
-
default:
|
|
181
|
-
|
|
176
|
+
default: s(() => [
|
|
177
|
+
c(U, { class: "sr-only !block" }, {
|
|
178
|
+
default: s(() => [
|
|
179
|
+
c(T, null, {
|
|
180
|
+
default: s(() => [...a[0] || (a[0] = [
|
|
181
|
+
R("Key", -1)
|
|
182
182
|
])]),
|
|
183
183
|
_: 1
|
|
184
184
|
}),
|
|
185
|
-
c(
|
|
186
|
-
default:
|
|
187
|
-
|
|
185
|
+
c(T, null, {
|
|
186
|
+
default: s(() => [...a[1] || (a[1] = [
|
|
187
|
+
R("Value", -1)
|
|
188
188
|
])]),
|
|
189
189
|
_: 1
|
|
190
190
|
})
|
|
191
191
|
]),
|
|
192
192
|
_: 1
|
|
193
193
|
}),
|
|
194
|
-
(f(!0), D(O, null, j(
|
|
195
|
-
key:
|
|
194
|
+
(f(!0), D(O, null, j(M.value, (l, e) => (f(), b(U, {
|
|
195
|
+
key: e,
|
|
196
196
|
class: F({
|
|
197
|
-
error: p.value.includes(
|
|
197
|
+
error: p.value.includes(e)
|
|
198
198
|
})
|
|
199
199
|
}, {
|
|
200
|
-
default:
|
|
201
|
-
c(
|
|
202
|
-
default:
|
|
203
|
-
c(
|
|
200
|
+
default: s(() => [
|
|
201
|
+
c(K, null, {
|
|
202
|
+
default: s(() => [
|
|
203
|
+
c(E, {
|
|
204
204
|
disableCloseBrackets: "",
|
|
205
205
|
disableEnter: "",
|
|
206
206
|
disableTabIndent: "",
|
|
207
207
|
lineWrapping: "",
|
|
208
|
-
environment:
|
|
209
|
-
envVariables:
|
|
210
|
-
modelValue:
|
|
208
|
+
environment: t.environment,
|
|
209
|
+
envVariables: t.envVariables,
|
|
210
|
+
modelValue: l.key,
|
|
211
211
|
placeholder: "Key",
|
|
212
|
-
workspace:
|
|
213
|
-
"onUpdate:modelValue": (r) =>
|
|
212
|
+
workspace: t.workspace,
|
|
213
|
+
"onUpdate:modelValue": (r) => x(e, "key", r)
|
|
214
214
|
}, A({ _: 2 }, [
|
|
215
|
-
p.value.includes(
|
|
215
|
+
p.value.includes(e) ? {
|
|
216
216
|
name: "icon",
|
|
217
|
-
fn:
|
|
217
|
+
fn: s(() => [
|
|
218
218
|
c(V(G), { class: "text-red mr-0.75 size-3.5 brightness-[.9]" })
|
|
219
219
|
]),
|
|
220
220
|
key: "0"
|
|
@@ -223,30 +223,30 @@ const oe = /* @__PURE__ */ W({
|
|
|
223
223
|
]),
|
|
224
224
|
_: 2
|
|
225
225
|
}, 1024),
|
|
226
|
-
c(
|
|
227
|
-
default:
|
|
228
|
-
c(
|
|
226
|
+
c(K, null, {
|
|
227
|
+
default: s(() => [
|
|
228
|
+
c(E, {
|
|
229
229
|
class: "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",
|
|
230
230
|
disableCloseBrackets: "",
|
|
231
231
|
disableEnter: "",
|
|
232
232
|
disableTabIndent: "",
|
|
233
233
|
lineWrapping: "",
|
|
234
|
-
environment:
|
|
235
|
-
envVariables:
|
|
236
|
-
modelValue:
|
|
234
|
+
environment: t.environment,
|
|
235
|
+
envVariables: t.envVariables,
|
|
236
|
+
modelValue: l.value,
|
|
237
237
|
placeholder: "Value",
|
|
238
|
-
workspace:
|
|
239
|
-
"onUpdate:modelValue": (r) =>
|
|
238
|
+
workspace: t.workspace,
|
|
239
|
+
"onUpdate:modelValue": (r) => x(e, "value", r)
|
|
240
240
|
}, {
|
|
241
|
-
icon:
|
|
242
|
-
|
|
241
|
+
icon: s(() => [
|
|
242
|
+
l.key || l.value ? (f(), b(V(q), {
|
|
243
243
|
key: 0,
|
|
244
244
|
class: "text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",
|
|
245
245
|
size: "sm",
|
|
246
246
|
variant: "ghost",
|
|
247
|
-
onClick: L((r) => N(
|
|
247
|
+
onClick: L((r) => N(e), ["stop"])
|
|
248
248
|
}, {
|
|
249
|
-
default:
|
|
249
|
+
default: s(() => [
|
|
250
250
|
c(V(H), { class: "size-3.5" })
|
|
251
251
|
]),
|
|
252
252
|
_: 1
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as h, ref as
|
|
2
|
-
import { ScalarButton as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as h, ref as v, watch as w, nextTick as y, createElementBlock as s, openBlock as n, createElementVNode as o, createBlock as u, createCommentVNode as a, unref as r, withCtx as f, createVNode as d, Fragment as p } from "vue";
|
|
2
|
+
import { ScalarButton as b, ScalarIcon as k, ScalarMarkdown as z } from "@scalar/components";
|
|
3
|
+
import B from "../../../components/CodeInput/CodeInput.vue.js";
|
|
4
|
+
const C = { class: "flex h-full w-full flex-col gap-2 pt-8" }, I = { class: "flex min-h-8 items-center justify-between gap-2 pl-1.5" }, E = { class: "has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg" }, N = { class: "flex h-full min-h-[calc(1rem*4)] flex-col" }, S = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4"
|
|
7
7
|
}, F = /* @__PURE__ */ h({
|
|
@@ -13,10 +13,10 @@ const B = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
|
|
|
13
13
|
workspace: {}
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:modelValue"],
|
|
16
|
-
setup(
|
|
17
|
-
const g =
|
|
18
|
-
w(t, (
|
|
19
|
-
|
|
16
|
+
setup(l, { emit: x }) {
|
|
17
|
+
const g = x, t = v("preview"), m = v(null);
|
|
18
|
+
w(t, (c) => {
|
|
19
|
+
c === "edit" && y(() => {
|
|
20
20
|
m.value?.focus();
|
|
21
21
|
});
|
|
22
22
|
});
|
|
@@ -25,60 +25,60 @@ const B = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
|
|
|
25
25
|
t.value = "preview";
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
return (
|
|
29
|
-
|
|
30
|
-
e[5] || (e[5] =
|
|
31
|
-
t.value === "preview" ? (
|
|
28
|
+
return (c, e) => (n(), s("div", C, [
|
|
29
|
+
o("div", I, [
|
|
30
|
+
e[5] || (e[5] = o("h3", { class: "font-bold" }, "Description", -1)),
|
|
31
|
+
t.value === "preview" ? (n(), u(r(b), {
|
|
32
32
|
key: 0,
|
|
33
33
|
class: "text-c-2 hover:text-c-1 flex items-center gap-2",
|
|
34
34
|
size: "sm",
|
|
35
35
|
type: "button",
|
|
36
36
|
variant: "outlined",
|
|
37
|
-
onClick: e[0] || (e[0] = (
|
|
37
|
+
onClick: e[0] || (e[0] = (i) => t.value = "edit")
|
|
38
38
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
d(r(
|
|
39
|
+
default: f(() => [
|
|
40
|
+
d(r(k), {
|
|
41
41
|
icon: "Pencil",
|
|
42
42
|
size: "sm",
|
|
43
43
|
thickness: "1.5"
|
|
44
44
|
}),
|
|
45
|
-
e[4] || (e[4] =
|
|
45
|
+
e[4] || (e[4] = o("span", null, "Edit", -1))
|
|
46
46
|
]),
|
|
47
47
|
_: 1
|
|
48
48
|
})) : a("", !0)
|
|
49
49
|
]),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
t.value === "preview" ? (
|
|
53
|
-
l.modelValue && l.modelValue.trim().length ? (
|
|
54
|
-
l.modelValue ? (
|
|
50
|
+
o("div", E, [
|
|
51
|
+
o("div", N, [
|
|
52
|
+
t.value === "preview" ? (n(), s(p, { key: 0 }, [
|
|
53
|
+
l.modelValue && l.modelValue.trim().length ? (n(), s(p, { key: 0 }, [
|
|
54
|
+
l.modelValue ? (n(), u(r(z), {
|
|
55
55
|
key: 0,
|
|
56
56
|
class: "h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
|
|
57
57
|
value: l.modelValue,
|
|
58
58
|
withImages: "",
|
|
59
|
-
onDblclick: e[1] || (e[1] = (
|
|
59
|
+
onDblclick: e[1] || (e[1] = (i) => t.value = "edit")
|
|
60
60
|
}, null, 8, ["value"])) : a("", !0),
|
|
61
|
-
e[6] || (e[6] =
|
|
62
|
-
], 64)) : (
|
|
63
|
-
d(r(
|
|
61
|
+
e[6] || (e[6] = o("div", { class: "brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden" }, null, -1))
|
|
62
|
+
], 64)) : (n(), s("div", S, [
|
|
63
|
+
d(r(b), {
|
|
64
64
|
class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
|
|
65
65
|
size: "sm",
|
|
66
66
|
variant: "ghost",
|
|
67
|
-
onClick: e[2] || (e[2] = (
|
|
67
|
+
onClick: e[2] || (e[2] = (i) => t.value = "edit")
|
|
68
68
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
d(r(
|
|
69
|
+
default: f(() => [
|
|
70
|
+
d(r(k), {
|
|
71
71
|
icon: "Pencil",
|
|
72
72
|
size: "sm",
|
|
73
73
|
thickness: "1.5"
|
|
74
74
|
}),
|
|
75
|
-
e[7] || (e[7] =
|
|
75
|
+
e[7] || (e[7] = o("span", null, "Write a description", -1))
|
|
76
76
|
]),
|
|
77
77
|
_: 1
|
|
78
78
|
})
|
|
79
79
|
]))
|
|
80
80
|
], 64)) : a("", !0),
|
|
81
|
-
t.value === "edit" ? (
|
|
81
|
+
t.value === "edit" ? (n(), u(B, {
|
|
82
82
|
key: 1,
|
|
83
83
|
ref_key: "codeInputRef",
|
|
84
84
|
ref: m,
|
|
@@ -88,7 +88,7 @@ const B = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
|
|
|
88
88
|
modelValue: l.modelValue,
|
|
89
89
|
workspace: l.workspace,
|
|
90
90
|
onBlur: V,
|
|
91
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
91
|
+
"onUpdate:modelValue": e[3] || (e[3] = (i) => g("update:modelValue", i))
|
|
92
92
|
}, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : a("", !0)
|
|
93
93
|
])
|
|
94
94
|
])
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { defineComponent as V, ref as c, watch as x, createBlock as b, openBlock as k, unref as C, withCtx as
|
|
1
|
+
import { defineComponent as V, ref as c, watch as x, createBlock as b, openBlock as k, unref as C, withCtx as s, createVNode as o, createElementVNode as m, createTextVNode as l } from "vue";
|
|
2
2
|
import { ScalarModal as g } from "@scalar/components";
|
|
3
3
|
import { useToasts as N } from "@scalar/use-toasts";
|
|
4
4
|
import S from "../../components/CommandPalette/CommandActionForm.vue.js";
|
|
5
|
-
import
|
|
6
|
-
const U = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-8 items-start gap-2 text-sm" }, w = { class: "flex h-8 items-start gap-2 text-sm" },
|
|
5
|
+
import i from "../../components/CommandPalette/CommandActionInput.vue.js";
|
|
6
|
+
const U = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-8 items-start gap-2 text-sm" }, w = { class: "flex h-8 items-start gap-2 text-sm" }, y = /* @__PURE__ */ V({
|
|
7
7
|
__name: "CookieModal",
|
|
8
8
|
props: {
|
|
9
9
|
state: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["cancel", "submit"],
|
|
12
|
-
setup(
|
|
13
|
-
const u =
|
|
12
|
+
setup(n, { emit: f }) {
|
|
13
|
+
const u = n, d = f, a = c({
|
|
14
14
|
name: "",
|
|
15
15
|
value: "",
|
|
16
16
|
domain: ""
|
|
17
|
-
}), { toast:
|
|
17
|
+
}), { toast: p } = N(), v = () => {
|
|
18
18
|
if (!a.value.name || !a.value.value) {
|
|
19
|
-
|
|
19
|
+
p("Please fill in all fields before adding a cookie.", "error");
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
22
|
d("submit", a.value), u.state.hide();
|
|
23
23
|
};
|
|
24
24
|
return x(
|
|
25
25
|
() => u.state.open,
|
|
26
|
-
(
|
|
27
|
-
|
|
26
|
+
(r) => {
|
|
27
|
+
r && (a.value = {
|
|
28
28
|
name: "",
|
|
29
29
|
value: "",
|
|
30
30
|
domain: ""
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
), (
|
|
33
|
+
), (r, e) => (k(), b(C(g), {
|
|
34
34
|
size: "xs",
|
|
35
|
-
state:
|
|
35
|
+
state: n.state,
|
|
36
36
|
title: "Add Cookie"
|
|
37
37
|
}, {
|
|
38
|
-
default:
|
|
39
|
-
|
|
38
|
+
default: s(() => [
|
|
39
|
+
o(S, {
|
|
40
40
|
disabled: !a.value.name || !a.value.value,
|
|
41
|
-
onCancel: e[3] || (e[3] = (
|
|
41
|
+
onCancel: e[3] || (e[3] = (t) => d("cancel")),
|
|
42
42
|
onSubmit: v
|
|
43
43
|
}, {
|
|
44
|
-
submit:
|
|
44
|
+
submit: s(() => [...e[7] || (e[7] = [
|
|
45
45
|
l("Add Cookie", -1)
|
|
46
46
|
])]),
|
|
47
|
-
default:
|
|
48
|
-
|
|
47
|
+
default: s(() => [
|
|
48
|
+
m("div", U, [
|
|
49
49
|
e[4] || (e[4] = l(" Name: ", -1)),
|
|
50
|
-
|
|
50
|
+
o(i, {
|
|
51
51
|
modelValue: a.value.name,
|
|
52
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
52
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => a.value.name = t),
|
|
53
53
|
autofocus: "",
|
|
54
54
|
class: "!p-0",
|
|
55
55
|
placeholder: "session_id"
|
|
56
56
|
}, null, 8, ["modelValue"])
|
|
57
57
|
]),
|
|
58
|
-
|
|
58
|
+
m("div", $, [
|
|
59
59
|
e[5] || (e[5] = l(" Value: ", -1)),
|
|
60
|
-
|
|
60
|
+
o(i, {
|
|
61
61
|
modelValue: a.value.value,
|
|
62
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
62
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => a.value.value = t),
|
|
63
63
|
autofocus: "",
|
|
64
64
|
class: "!p-0",
|
|
65
65
|
placeholder: "my-cookie-session-id"
|
|
66
66
|
}, null, 8, ["modelValue"])
|
|
67
67
|
]),
|
|
68
|
-
|
|
68
|
+
m("div", w, [
|
|
69
69
|
e[6] || (e[6] = l(" Domain: ", -1)),
|
|
70
|
-
|
|
70
|
+
o(i, {
|
|
71
71
|
modelValue: a.value.domain,
|
|
72
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
72
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => a.value.domain = t),
|
|
73
73
|
autofocus: "",
|
|
74
74
|
class: "!p-0",
|
|
75
75
|
placeholder: "example.com"
|
|
@@ -84,5 +84,5 @@ const U = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
y as default
|
|
88
88
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, ref as u, createBlock as f, openBlock as d, unref as p, withCtx as C, createElementVNode as v, createVNode as
|
|
1
|
+
import { defineComponent as m, ref as u, createBlock as f, openBlock as d, unref as p, withCtx as C, createElementVNode as v, createVNode as a } from "vue";
|
|
2
2
|
import { ScalarModal as _ } from "@scalar/components";
|
|
3
3
|
import x from "../../components/Sidebar/Actions/SidebarListElementForm.vue.js";
|
|
4
4
|
import S from "./EnvironmentColors.vue.js";
|
|
@@ -9,26 +9,26 @@ const b = { class: "flex flex-col gap-4" }, B = /* @__PURE__ */ m({
|
|
|
9
9
|
selectedColor: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["cancel", "submit"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
e.value =
|
|
12
|
+
setup(t, { emit: r }) {
|
|
13
|
+
const c = t, o = r, e = u(""), s = (l) => {
|
|
14
|
+
e.value = l;
|
|
15
15
|
}, i = () => {
|
|
16
16
|
o("submit", e.value), e.value = "";
|
|
17
17
|
};
|
|
18
|
-
return (
|
|
18
|
+
return (l, n) => (d(), f(p(_), {
|
|
19
19
|
size: "xxs",
|
|
20
20
|
state: t.state,
|
|
21
21
|
title: "Edit Environment Color"
|
|
22
22
|
}, {
|
|
23
23
|
default: C(() => [
|
|
24
24
|
v("div", b, [
|
|
25
|
-
|
|
26
|
-
activeColor: e.value ||
|
|
25
|
+
a(S, {
|
|
26
|
+
activeColor: e.value || c.selectedColor,
|
|
27
27
|
class: "w-full p-1",
|
|
28
|
-
onSelect:
|
|
28
|
+
onSelect: s
|
|
29
29
|
}, null, 8, ["activeColor"]),
|
|
30
|
-
|
|
31
|
-
onCancel:
|
|
30
|
+
a(x, {
|
|
31
|
+
onCancel: n[0] || (n[0] = (E) => o("cancel")),
|
|
32
32
|
onSubmit: i
|
|
33
33
|
})
|
|
34
34
|
])
|