@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,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, createElementBlock as a, openBlock as d, createElementVNode as n, createVNode as i, normalizeStyle as v, toDisplayString as u, unref as o } from "vue";
|
|
2
2
|
import { ScalarIconButton as r } from "@scalar/components";
|
|
3
|
-
import { ScalarIconNotePencil as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
3
|
+
import { ScalarIconNotePencil as f, ScalarIconTrash as p } from "@scalar/icons";
|
|
4
|
+
import x from "./EnvironmentVariablesTable.vue.js";
|
|
5
|
+
const y = { class: "group rounded-lg border" }, b = { class: "bg-b-2 flex justify-between rounded-t-lg px-1 py-1 text-sm" }, g = { class: "flex items-center gap-1" }, h = { class: "flex h-6 w-6 items-center justify-center p-1" }, N = { class: "px-1 py-0.5 text-sm" }, B = { class: "hidden flex-row items-center gap-1 group-hover:flex" }, C = /* @__PURE__ */ m({
|
|
6
6
|
__name: "Environment",
|
|
7
7
|
props: {
|
|
8
8
|
environment: {},
|
|
@@ -11,35 +11,35 @@ const _ = { class: "group rounded-lg border" }, b = { class: "bg-b-2 flex justif
|
|
|
11
11
|
collectionType: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["edit", "delete"],
|
|
14
|
-
setup(
|
|
14
|
+
setup(e, { emit: s }) {
|
|
15
15
|
const l = s;
|
|
16
|
-
return (
|
|
16
|
+
return (E, t) => (d(), a("div", y, [
|
|
17
17
|
n("div", b, [
|
|
18
18
|
n("div", g, [
|
|
19
19
|
n("div", h, [
|
|
20
20
|
n("span", {
|
|
21
21
|
class: "h-2.5 w-2.5 rounded-full",
|
|
22
|
-
style:
|
|
22
|
+
style: v({ backgroundColor: e.environment.color })
|
|
23
23
|
}, null, 4)
|
|
24
24
|
]),
|
|
25
|
-
n("span", N,
|
|
25
|
+
n("span", N, u(e.environmentName), 1)
|
|
26
26
|
]),
|
|
27
27
|
n("div", B, [
|
|
28
|
-
i(
|
|
29
|
-
icon:
|
|
28
|
+
i(o(r), {
|
|
29
|
+
icon: o(f),
|
|
30
30
|
label: "Edit Environment",
|
|
31
31
|
size: "sm",
|
|
32
|
-
onClick:
|
|
32
|
+
onClick: t[0] || (t[0] = (c) => l("edit"))
|
|
33
33
|
}, null, 8, ["icon"]),
|
|
34
|
-
i(
|
|
35
|
-
icon:
|
|
34
|
+
i(o(r), {
|
|
35
|
+
icon: o(p),
|
|
36
36
|
label: "Delete Environment",
|
|
37
37
|
size: "sm",
|
|
38
|
-
onClick:
|
|
38
|
+
onClick: t[1] || (t[1] = (c) => l("delete"))
|
|
39
39
|
}, null, 8, ["icon"])
|
|
40
40
|
])
|
|
41
41
|
]),
|
|
42
|
-
i(
|
|
42
|
+
i(x, {
|
|
43
43
|
collectionType: e.collectionType,
|
|
44
44
|
environment: e.environment,
|
|
45
45
|
environmentName: e.environmentName,
|
|
@@ -49,5 +49,5 @@ const _ = { class: "group rounded-lg border" }, b = { class: "bg-b-2 flex justif
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
C as default
|
|
53
53
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, ref as d, computed as m, createElementBlock as
|
|
1
|
+
import { defineComponent as D, ref as d, computed as m, createElementBlock as i, openBlock as l, createCommentVNode as a, normalizeStyle as v, createBlock as k, unref as C, createElementVNode as n, Fragment as S, renderList as $, withDirectives as j, vModelText as N, createVNode as T, nextTick as V } from "vue";
|
|
2
2
|
import { ScalarIcon as f } from "@scalar/components";
|
|
3
3
|
const A = {
|
|
4
4
|
key: 1,
|
|
@@ -12,8 +12,8 @@ const A = {
|
|
|
12
12
|
activeColor: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["select"],
|
|
15
|
-
setup(
|
|
16
|
-
const F = w, t = d(""),
|
|
15
|
+
setup(r, { emit: w }) {
|
|
16
|
+
const F = w, t = d(""), b = d(null), s = d(!1), c = d(!1), h = [
|
|
17
17
|
"#FFFFFF",
|
|
18
18
|
"#EF0006",
|
|
19
19
|
"#EDBE20",
|
|
@@ -23,86 +23,86 @@ const A = {
|
|
|
23
23
|
"#5203D1",
|
|
24
24
|
"#FFC0CB"
|
|
25
25
|
], E = m(
|
|
26
|
-
() =>
|
|
27
|
-
),
|
|
28
|
-
() =>
|
|
29
|
-
), I = (e) =>
|
|
30
|
-
const e = t.value ||
|
|
31
|
-
return
|
|
26
|
+
() => h.includes(r.activeColor)
|
|
27
|
+
), x = m(
|
|
28
|
+
() => r.activeColor && !E.value && !s.value
|
|
29
|
+
), I = (e) => r.activeColor === e, y = m(() => {
|
|
30
|
+
const e = t.value || r.activeColor;
|
|
31
|
+
return x.value || t.value ? `background-color: ${e};` : `background: ${W};`;
|
|
32
32
|
}), g = async () => {
|
|
33
|
-
|
|
33
|
+
s.value = !s.value, c.value = !1, s.value && (await V(), b.value?.focus());
|
|
34
34
|
}, z = () => {
|
|
35
|
-
|
|
36
|
-
},
|
|
35
|
+
c.value = !c.value;
|
|
36
|
+
}, p = (e) => {
|
|
37
37
|
const o = e && !e.startsWith("#") ? `#${e}` : e;
|
|
38
|
-
F("select", o),
|
|
38
|
+
F("select", o), c.value = !1;
|
|
39
39
|
}, B = () => {
|
|
40
40
|
if (!t.value)
|
|
41
41
|
return;
|
|
42
42
|
const e = t.value.startsWith("#") ? t.value : `#${t.value}`;
|
|
43
|
-
t.value = e,
|
|
43
|
+
t.value = e, p(e);
|
|
44
44
|
};
|
|
45
|
-
return (e, o) => (l(),
|
|
46
|
-
!
|
|
45
|
+
return (e, o) => (l(), i("div", null, [
|
|
46
|
+
!s.value && !c.value ? (l(), i("div", {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: "flex h-4 w-4 cursor-pointer items-center justify-center rounded-full",
|
|
49
|
-
style: v({ backgroundColor:
|
|
49
|
+
style: v({ backgroundColor: r.activeColor }),
|
|
50
50
|
onClick: z
|
|
51
51
|
}, [
|
|
52
|
-
|
|
52
|
+
r.activeColor ? (l(), k(C(f), {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "text-c-btn p-0.5",
|
|
55
55
|
icon: "Checkmark",
|
|
56
56
|
size: "xs"
|
|
57
|
-
})) :
|
|
58
|
-
], 4)) :
|
|
59
|
-
!
|
|
60
|
-
(l(),
|
|
57
|
+
})) : a("", !0)
|
|
58
|
+
], 4)) : a("", !0),
|
|
59
|
+
!s.value && c.value ? (l(), i("div", A, [
|
|
60
|
+
(l(), i(S, null, $(h, (u) => n("div", {
|
|
61
61
|
key: u,
|
|
62
62
|
class: "flex h-4 w-4 cursor-pointer items-center justify-center rounded-full",
|
|
63
63
|
style: v({ backgroundColor: u }),
|
|
64
|
-
onClick: (G) =>
|
|
64
|
+
onClick: (G) => p(u)
|
|
65
65
|
}, [
|
|
66
66
|
I(u) ? (l(), k(C(f), {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "text-c-btn p-0.5",
|
|
69
69
|
icon: "Checkmark",
|
|
70
70
|
size: "xs"
|
|
71
|
-
})) :
|
|
71
|
+
})) : a("", !0)
|
|
72
72
|
], 12, R)), 64)),
|
|
73
|
-
o[1] || (o[1] =
|
|
74
|
-
|
|
73
|
+
o[1] || (o[1] = n("hr", { class: "border-ghost h-5 w-0.5 border-l" }, null, -1)),
|
|
74
|
+
n("button", {
|
|
75
75
|
class: "z-10 flex h-4 w-4 cursor-pointer flex-row items-center justify-center gap-2 rounded-full",
|
|
76
76
|
style: v(y.value),
|
|
77
77
|
type: "button",
|
|
78
78
|
onClick: g
|
|
79
79
|
}, [
|
|
80
|
-
|
|
80
|
+
x.value ? (l(), k(C(f), {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "text-c-btn",
|
|
83
83
|
icon: "Checkmark",
|
|
84
84
|
size: "xs"
|
|
85
|
-
})) :
|
|
85
|
+
})) : a("", !0)
|
|
86
86
|
], 4)
|
|
87
|
-
])) :
|
|
88
|
-
|
|
89
|
-
o[2] || (o[2] =
|
|
90
|
-
|
|
87
|
+
])) : a("", !0),
|
|
88
|
+
s.value ? (l(), i("div", L, [
|
|
89
|
+
o[2] || (o[2] = n("span", { class: "absolute h-4 w-4 rounded-full border border-dashed" }, null, -1)),
|
|
90
|
+
n("span", {
|
|
91
91
|
class: "z-[1] h-4 w-4 rounded-full",
|
|
92
92
|
style: v(y.value)
|
|
93
93
|
}, null, 4),
|
|
94
|
-
j(
|
|
94
|
+
j(n("input", {
|
|
95
95
|
ref_key: "customColorInputRef",
|
|
96
|
-
ref:
|
|
96
|
+
ref: b,
|
|
97
97
|
"onUpdate:modelValue": o[0] || (o[0] = (u) => t.value = u),
|
|
98
98
|
class: "w-full flex-1 border-transparent text-sm outline-none",
|
|
99
|
-
placeholder:
|
|
99
|
+
placeholder: r.activeColor || "#000000",
|
|
100
100
|
type: "text",
|
|
101
101
|
onInput: B
|
|
102
102
|
}, null, 40, U), [
|
|
103
103
|
[N, t.value]
|
|
104
104
|
]),
|
|
105
|
-
|
|
105
|
+
n("button", {
|
|
106
106
|
class: "text-c-3 hover:bg-b-2 rounded-lg p-1.5",
|
|
107
107
|
type: "button",
|
|
108
108
|
onClick: g
|
|
@@ -112,7 +112,7 @@ const A = {
|
|
|
112
112
|
size: "xs"
|
|
113
113
|
})
|
|
114
114
|
])
|
|
115
|
-
])) :
|
|
115
|
+
])) : a("", !0)
|
|
116
116
|
]));
|
|
117
117
|
}
|
|
118
118
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, ref as
|
|
1
|
+
import { defineComponent as f, ref as c, watch as N, computed as E, createBlock as y, openBlock as r, unref as h, withCtx as o, createVNode as m, createElementVNode as x, createElementBlock as C, createCommentVNode as b, createTextVNode as T, toDisplayString as F } from "vue";
|
|
2
2
|
import { ScalarModal as V } from "@scalar/components";
|
|
3
3
|
import k from "../../../../components/CommandPalette/CommandActionForm.vue.js";
|
|
4
4
|
import B from "../../../../components/CommandPalette/CommandActionInput.vue.js";
|
|
@@ -6,7 +6,7 @@ import S from "./EnvironmentColors.vue.js";
|
|
|
6
6
|
const O = { class: "flex items-start gap-2" }, g = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "text-red text-xs"
|
|
9
|
-
}, s = "#FFFFFF",
|
|
9
|
+
}, s = "#FFFFFF", A = /* @__PURE__ */ f({
|
|
10
10
|
__name: "EnvironmentCreateModal",
|
|
11
11
|
props: {
|
|
12
12
|
environments: {},
|
|
@@ -16,18 +16,18 @@ const O = { class: "flex items-start gap-2" }, g = {
|
|
|
16
16
|
collectionType: {}
|
|
17
17
|
},
|
|
18
18
|
setup(e) {
|
|
19
|
-
const t =
|
|
19
|
+
const t = c(""), n = c(s);
|
|
20
20
|
N(
|
|
21
21
|
() => e.state.open,
|
|
22
|
-
(
|
|
23
|
-
if (
|
|
24
|
-
const
|
|
25
|
-
e.selectedEnvironmentName &&
|
|
22
|
+
(a) => {
|
|
23
|
+
if (a) {
|
|
24
|
+
const l = e.environments[e.selectedEnvironmentName ?? ""];
|
|
25
|
+
e.selectedEnvironmentName && l ? (t.value = e.selectedEnvironmentName, n.value = l.color) : (t.value = "", n.value = s);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
|
-
const d = (
|
|
30
|
-
n.value =
|
|
29
|
+
const d = (a) => {
|
|
30
|
+
n.value = a;
|
|
31
31
|
}, v = () => {
|
|
32
32
|
e.selectedEnvironmentName ? e.eventBus.emit("environment:upsert:environment", {
|
|
33
33
|
oldEnvironmentName: e.selectedEnvironmentName,
|
|
@@ -44,21 +44,21 @@ const O = { class: "flex items-start gap-2" }, g = {
|
|
|
44
44
|
collectionType: e.collectionType
|
|
45
45
|
}), e.state.hide();
|
|
46
46
|
}, i = E(() => e.selectedEnvironmentName ? t.value !== e.selectedEnvironmentName && Object.keys(e.environments).includes(t.value) : Object.keys(e.environments).includes(t.value));
|
|
47
|
-
return (
|
|
47
|
+
return (a, l) => (r(), y(h(V), {
|
|
48
48
|
bodyClass: "border-t-0 rounded-t-lg",
|
|
49
49
|
size: "xs",
|
|
50
|
-
state:
|
|
50
|
+
state: e.state
|
|
51
51
|
}, {
|
|
52
|
-
default:
|
|
52
|
+
default: o(() => [
|
|
53
53
|
m(k, {
|
|
54
54
|
disabled: !t.value.trim() || i.value,
|
|
55
55
|
onSubmit: v
|
|
56
56
|
}, {
|
|
57
|
-
submit:
|
|
58
|
-
T(F(
|
|
57
|
+
submit: o(() => [
|
|
58
|
+
T(F(e.selectedEnvironmentName ? "Update" : "Add") + " Environment ", 1)
|
|
59
59
|
]),
|
|
60
|
-
default:
|
|
61
|
-
|
|
60
|
+
default: o(() => [
|
|
61
|
+
x("div", O, [
|
|
62
62
|
m(S, {
|
|
63
63
|
activeColor: n.value,
|
|
64
64
|
class: "peer",
|
|
@@ -66,12 +66,12 @@ const O = { class: "flex items-start gap-2" }, g = {
|
|
|
66
66
|
}, null, 8, ["activeColor"]),
|
|
67
67
|
m(B, {
|
|
68
68
|
modelValue: t.value,
|
|
69
|
-
"onUpdate:modelValue":
|
|
69
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
|
|
70
70
|
class: "-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",
|
|
71
71
|
placeholder: "Environment name"
|
|
72
72
|
}, null, 8, ["modelValue"])
|
|
73
73
|
]),
|
|
74
|
-
i.value ? (
|
|
74
|
+
i.value ? (r(), C("div", g, " This environment name is already in use. ")) : b("", !0)
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
77
|
}, 8, ["disabled"])
|
|
@@ -81,5 +81,5 @@ const O = { class: "flex items-start gap-2" }, g = {
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
A as default
|
|
85
85
|
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { defineComponent as m, createBlock as u, openBlock as f, unref as n, withCtx as o, createElementVNode as
|
|
2
|
-
import { ScalarModal as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as m, createBlock as u, openBlock as f, unref as n, withCtx as o, createElementVNode as l, createVNode as i, createTextVNode as s } from "vue";
|
|
2
|
+
import { ScalarModal as x, ScalarButton as r } from "@scalar/components";
|
|
3
|
+
const c = { class: "flex justify-between" }, k = /* @__PURE__ */ m({
|
|
4
4
|
__name: "EnvironmentDeleteModal",
|
|
5
5
|
props: {
|
|
6
6
|
state: {},
|
|
7
7
|
name: { default: "unknown" }
|
|
8
8
|
},
|
|
9
9
|
emits: ["cancel", "submit"],
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
return (
|
|
10
|
+
setup(t, { emit: d }) {
|
|
11
|
+
const a = d;
|
|
12
|
+
return (b, e) => (f(), u(n(x), {
|
|
13
13
|
bodyClass: "border-t-0 rounded-t-lg flex flex-col gap-4",
|
|
14
14
|
size: "xxs",
|
|
15
15
|
state: t.state,
|
|
16
16
|
title: `Delete ${t.name}`
|
|
17
17
|
}, {
|
|
18
18
|
default: o(() => [
|
|
19
|
-
e[4] || (e[4] =
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
e[4] || (e[4] = l("p", { class: "text-c-2 text-sm leading-normal text-pretty" }, " Are you sure you want to delete this environment? This action cannot be undone. ", -1)),
|
|
20
|
+
l("div", c, [
|
|
21
|
+
i(n(r), {
|
|
22
22
|
size: "sm",
|
|
23
23
|
variant: "outlined",
|
|
24
24
|
onClick: e[0] || (e[0] = () => {
|
|
25
|
-
|
|
25
|
+
a("cancel"), t.state.hide();
|
|
26
26
|
})
|
|
27
27
|
}, {
|
|
28
28
|
default: o(() => [...e[2] || (e[2] = [
|
|
29
|
-
|
|
29
|
+
s(" Cancel ", -1)
|
|
30
30
|
])]),
|
|
31
31
|
_: 1
|
|
32
32
|
}),
|
|
33
|
-
|
|
33
|
+
i(n(r), {
|
|
34
34
|
size: "sm",
|
|
35
35
|
variant: "danger",
|
|
36
36
|
onClick: e[1] || (e[1] = () => {
|
|
37
|
-
|
|
37
|
+
a("submit"), t.state.hide();
|
|
38
38
|
})
|
|
39
39
|
}, {
|
|
40
40
|
default: o(() => [...e[3] || (e[3] = [
|
|
41
|
-
|
|
41
|
+
s(" Delete Environment ", -1)
|
|
42
42
|
])]),
|
|
43
43
|
_: 1
|
|
44
44
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, ref as u, computed as d, onMounted as N, createBlock as
|
|
1
|
+
import { defineComponent as E, ref as u, computed as d, onMounted as N, createBlock as h, createCommentVNode as P, openBlock as r, unref as f, withCtx as y, createElementVNode as s, normalizeStyle as b, createElementBlock as m, Fragment as q, renderList as A, normalizeClass as T, createTextVNode as w, toDisplayString as g, createVNode as _ } from "vue";
|
|
2
2
|
import { ScalarTeleport as j, ScalarButton as D } from "@scalar/components";
|
|
3
3
|
import { ScalarIconPlus as F } from "@scalar/icons";
|
|
4
4
|
import { onClickOutside as I } from "@vueuse/core";
|
|
@@ -14,42 +14,42 @@ const O = {
|
|
|
14
14
|
dropdownPosition: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["select", "redirect"],
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
|
|
17
|
+
setup(o, { expose: k, emit: V }) {
|
|
18
|
+
const p = V, i = u(!0), c = u(null), n = u(0), C = () => {
|
|
19
|
+
p("redirect"), i.value = !1;
|
|
20
20
|
}, v = d(
|
|
21
|
-
() =>
|
|
21
|
+
() => o.environment.variables.map((e) => ({
|
|
22
22
|
key: e.name,
|
|
23
23
|
value: typeof e.value == "string" ? e.value : e.value.default
|
|
24
24
|
}))
|
|
25
25
|
), S = new K(v.value, {
|
|
26
26
|
keys: ["key", "value"]
|
|
27
27
|
}), a = d(() => {
|
|
28
|
-
if (!
|
|
28
|
+
if (!o.query)
|
|
29
29
|
return v.value.slice(-4).filter(({ key: t, value: l }) => t !== "" || l !== "");
|
|
30
|
-
const e = S.search(
|
|
30
|
+
const e = S.search(o.query, { limit: 10 });
|
|
31
31
|
return e.length > 0 ? e.map((t) => t.item).filter(({ key: t, value: l }) => t !== "" || l !== "") : [];
|
|
32
|
-
}),
|
|
33
|
-
|
|
32
|
+
}), x = (e) => {
|
|
33
|
+
p("select", e);
|
|
34
34
|
};
|
|
35
35
|
k({
|
|
36
36
|
handleArrowKey: (e) => {
|
|
37
37
|
const t = e === "up" ? -1 : 1, l = a.value.length;
|
|
38
|
-
l !== 0 && (
|
|
38
|
+
l !== 0 && (n.value = (n.value + t + l) % l);
|
|
39
39
|
},
|
|
40
40
|
handleSelect: () => {
|
|
41
|
-
if (
|
|
42
|
-
const e = a.value[
|
|
43
|
-
e &&
|
|
41
|
+
if (n.value >= 0) {
|
|
42
|
+
const e = a.value[n.value];
|
|
43
|
+
e && x(e.key);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}), N(() => {
|
|
47
|
-
|
|
47
|
+
n.value = 0;
|
|
48
48
|
});
|
|
49
49
|
const z = d(() => ({
|
|
50
|
-
left: (
|
|
50
|
+
left: (o.dropdownPosition?.left ?? 0) + "px",
|
|
51
51
|
// Add a 5px offset from the editor
|
|
52
|
-
top: (
|
|
52
|
+
top: (o.dropdownPosition?.top ?? 0) + 5 + "px"
|
|
53
53
|
}));
|
|
54
54
|
return I(
|
|
55
55
|
c,
|
|
@@ -57,7 +57,7 @@ const O = {
|
|
|
57
57
|
i.value = !1;
|
|
58
58
|
},
|
|
59
59
|
{ ignore: [c] }
|
|
60
|
-
), (e, t) => i.value ? (r(),
|
|
60
|
+
), (e, t) => i.value ? (r(), h(f(j), {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: "scalar-client"
|
|
63
63
|
}, {
|
|
@@ -68,31 +68,31 @@ const O = {
|
|
|
68
68
|
class: "custom-scroll fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75",
|
|
69
69
|
style: b(z.value)
|
|
70
70
|
}, [
|
|
71
|
-
a.value.length ? (r(),
|
|
72
|
-
(r(!0),
|
|
71
|
+
a.value.length ? (r(), m("ul", O, [
|
|
72
|
+
(r(!0), m(q, null, A(a.value, (l, B) => (r(), m("li", {
|
|
73
73
|
key: l.key,
|
|
74
|
-
class:
|
|
75
|
-
onClick: (H) =>
|
|
74
|
+
class: T(["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": B === n.value }]),
|
|
75
|
+
onClick: (H) => x(l.key)
|
|
76
76
|
}, [
|
|
77
77
|
s("div", L, [
|
|
78
78
|
s("span", {
|
|
79
79
|
class: "h-2.25 w-2.25 min-w-2.25 rounded-full",
|
|
80
80
|
style: b({
|
|
81
|
-
backgroundColor:
|
|
81
|
+
backgroundColor: o.environment.color
|
|
82
82
|
})
|
|
83
83
|
}, null, 4),
|
|
84
84
|
w(" " + g(l.key), 1)
|
|
85
85
|
]),
|
|
86
86
|
s("span", M, g(l.value), 1)
|
|
87
87
|
], 10, R))), 128))
|
|
88
|
-
])) : (r(),
|
|
88
|
+
])) : (r(), h(f(D), {
|
|
89
89
|
key: 1,
|
|
90
90
|
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",
|
|
91
91
|
variant: "outlined",
|
|
92
92
|
onClick: C
|
|
93
93
|
}, {
|
|
94
94
|
default: y(() => [
|
|
95
|
-
|
|
95
|
+
_(f(F), { class: "size-3" }),
|
|
96
96
|
t[0] || (t[0] = w(" Add Variable ", -1))
|
|
97
97
|
]),
|
|
98
98
|
_: 1
|