@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,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as q, mergeModels as
|
|
2
|
-
import { useModal as L, ScalarSidebarItem as
|
|
1
|
+
import { defineComponent as q, mergeModels as x, computed as b, capitalize as V, useModel as C, ref as G, createElementBlock as W, openBlock as m, createVNode as l, createBlock as g, createCommentVNode as f, unref as i, createSlots as R, withCtx as r, createTextVNode as y, withKeys as k, withModifiers as c, toDisplayString as j, createElementVNode as d, normalizeClass as F, nextTick as H } from "vue";
|
|
2
|
+
import { useModal as L, ScalarSidebarItem as I, ScalarIconButton as U, ScalarButton as E, ScalarModal as J } from "@scalar/components";
|
|
3
3
|
import { ScalarIconPlus as Y, ScalarIconDotsThree as Q, ScalarIconGlobe as X } from "@scalar/icons";
|
|
4
4
|
import { getParentEntry as w } from "@scalar/workspace-store/navigation";
|
|
5
5
|
import Z from "../../../../assets/rabbit.ascii.js";
|
|
6
6
|
import _ from "../../../../assets/rabbitjump.ascii.js";
|
|
7
|
-
import
|
|
7
|
+
import O from "../../../../components/ScalarAsciiArt.vue.js";
|
|
8
8
|
import ee from "../../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
9
9
|
import te from "./SidebarItemMenu.vue.js";
|
|
10
10
|
import { dragHandleFactory as ae } from "../../../helpers/drag-handle-factory.js";
|
|
11
11
|
import oe from "../../../components/sidebar/Sidebar.vue.js";
|
|
12
|
-
const ne = { class: "flex" },
|
|
12
|
+
const ne = { class: "flex" }, ie = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "empty-sidebar-item-content overflow-hidden px-2.5 py-2.5"
|
|
15
|
-
},
|
|
15
|
+
}, se = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, re = { class: "gap-1.5 p-2" }, we = /* @__PURE__ */ q({
|
|
16
16
|
__name: "AppSidebar",
|
|
17
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ x({
|
|
18
18
|
layout: {},
|
|
19
19
|
sidebarState: {},
|
|
20
20
|
isWorkspaceOpen: { type: Boolean },
|
|
@@ -31,127 +31,127 @@ const ne = { class: "flex" }, se = {
|
|
|
31
31
|
},
|
|
32
32
|
sidebarWidthModifiers: {}
|
|
33
33
|
}),
|
|
34
|
-
emits: /* @__PURE__ */
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
34
|
+
emits: /* @__PURE__ */ x(["click:workspace", "selectItem", "select:workspace", "create:workspace"], ["update:isSidebarOpen", "update:sidebarWidth"]),
|
|
35
|
+
setup(a, { emit: $ }) {
|
|
36
|
+
const p = $, D = b(() => V(a.activeWorkspace.label)), B = C(a, "isSidebarOpen"), M = C(a, "sidebarWidth"), S = b(() => a.sidebarState.items.value.length <= 1), h = b(
|
|
37
37
|
() => ae({
|
|
38
|
-
store:
|
|
39
|
-
sidebarState:
|
|
38
|
+
store: a.store,
|
|
39
|
+
sidebarState: a.sidebarState
|
|
40
40
|
})
|
|
41
|
-
),
|
|
42
|
-
const
|
|
43
|
-
return
|
|
41
|
+
), N = (o, e) => h.value.handleDragEnd(o, e), A = (o, e) => h.value.isDroppable(o, e), s = G(null), v = L(), T = b(() => {
|
|
42
|
+
const o = s.value?.item;
|
|
43
|
+
return o?.type === "document" ? "This cannot be undone. You're about to delete the document and all tags and operations inside it." : `Are you sure you want to delete this ${o?.type ?? "item"}? This action cannot be undone.`;
|
|
44
44
|
}), z = () => {
|
|
45
|
-
const
|
|
46
|
-
if (!
|
|
45
|
+
const o = s.value?.item;
|
|
46
|
+
if (!o)
|
|
47
47
|
return;
|
|
48
|
-
const e =
|
|
49
|
-
if (
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
else if (
|
|
53
|
-
|
|
54
|
-
documentName:
|
|
55
|
-
name:
|
|
48
|
+
const e = a.sidebarState.getEntryById(o.id), t = w("document", e), n = w("operation", e);
|
|
49
|
+
if (t) {
|
|
50
|
+
if (o.type === "document")
|
|
51
|
+
a.eventBus.emit("document:delete:document", { name: t.name });
|
|
52
|
+
else if (o.type === "tag")
|
|
53
|
+
a.eventBus.emit("tag:delete:tag", {
|
|
54
|
+
documentName: t.name,
|
|
55
|
+
name: o.name
|
|
56
56
|
});
|
|
57
|
-
else if (
|
|
58
|
-
if (!
|
|
57
|
+
else if (o.type === "operation") {
|
|
58
|
+
if (!n)
|
|
59
59
|
return;
|
|
60
|
-
|
|
60
|
+
a.eventBus.emit("operation:delete:operation", {
|
|
61
61
|
meta: {
|
|
62
|
-
method:
|
|
63
|
-
path:
|
|
62
|
+
method: n.method,
|
|
63
|
+
path: n.path
|
|
64
64
|
},
|
|
65
|
-
documentName:
|
|
65
|
+
documentName: t.name
|
|
66
66
|
});
|
|
67
|
-
} else if (
|
|
68
|
-
if (!
|
|
67
|
+
} else if (o.type === "example") {
|
|
68
|
+
if (!n)
|
|
69
69
|
return;
|
|
70
|
-
|
|
70
|
+
a.eventBus.emit("operation:delete:example", {
|
|
71
71
|
meta: {
|
|
72
|
-
method:
|
|
73
|
-
path:
|
|
74
|
-
exampleKey:
|
|
72
|
+
method: n.method,
|
|
73
|
+
path: n.path,
|
|
74
|
+
exampleKey: o.name
|
|
75
75
|
},
|
|
76
|
-
documentName:
|
|
76
|
+
documentName: t.name
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
v.hide(), s.value = null;
|
|
80
80
|
}
|
|
81
|
-
}, u = async (
|
|
81
|
+
}, u = async (o, e) => {
|
|
82
82
|
if (s.value?.showMenu)
|
|
83
83
|
return;
|
|
84
|
-
const
|
|
85
|
-
s.value = { item: e, el:
|
|
86
|
-
const
|
|
87
|
-
s.value?.el.dispatchEvent(
|
|
84
|
+
const t = o.currentTarget;
|
|
85
|
+
s.value = { item: e, el: t, showMenu: !0 }, await H();
|
|
86
|
+
const n = o instanceof MouseEvent ? new MouseEvent(o.type, o) : new KeyboardEvent(o.type, o);
|
|
87
|
+
s.value?.el.dispatchEvent(n);
|
|
88
88
|
}, K = () => {
|
|
89
89
|
s.value && (s.value.showMenu = !1);
|
|
90
|
-
}, P = (
|
|
91
|
-
const e =
|
|
92
|
-
|
|
90
|
+
}, P = (o) => {
|
|
91
|
+
const e = a.sidebarState.getEntryById(o.id), t = w("document", e), n = w("tag", e);
|
|
92
|
+
a.eventBus.emit("ui:open:command-palette", {
|
|
93
93
|
action: "create-request",
|
|
94
94
|
payload: {
|
|
95
|
-
documentId:
|
|
96
|
-
tagId:
|
|
95
|
+
documentId: t?.id,
|
|
96
|
+
tagId: n?.name
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
return (
|
|
101
|
-
l(
|
|
100
|
+
return (o, e) => (m(), W("div", ne, [
|
|
101
|
+
l(i(oe), {
|
|
102
102
|
isSidebarOpen: B.value,
|
|
103
|
-
"onUpdate:isSidebarOpen": e[3] || (e[3] = (
|
|
103
|
+
"onUpdate:isSidebarOpen": e[3] || (e[3] = (t) => B.value = t),
|
|
104
104
|
sidebarWidth: M.value,
|
|
105
|
-
"onUpdate:sidebarWidth": e[4] || (e[4] = (
|
|
106
|
-
activeWorkspace:
|
|
107
|
-
documents: Object.values(
|
|
108
|
-
eventBus:
|
|
109
|
-
isDroppable:
|
|
110
|
-
layout:
|
|
111
|
-
sidebarState:
|
|
112
|
-
workspaces:
|
|
113
|
-
"onCreate:workspace": e[5] || (e[5] = (
|
|
114
|
-
onReorder: e[6] || (e[6] = (
|
|
115
|
-
"onSelect:workspace": e[7] || (e[7] = (
|
|
116
|
-
onSelectItem: e[8] || (e[8] = (
|
|
105
|
+
"onUpdate:sidebarWidth": e[4] || (e[4] = (t) => M.value = t),
|
|
106
|
+
activeWorkspace: a.activeWorkspace,
|
|
107
|
+
documents: Object.values(a.store.workspace.documents),
|
|
108
|
+
eventBus: a.eventBus,
|
|
109
|
+
isDroppable: A,
|
|
110
|
+
layout: a.layout,
|
|
111
|
+
sidebarState: a.sidebarState,
|
|
112
|
+
workspaces: a.workspaces,
|
|
113
|
+
"onCreate:workspace": e[5] || (e[5] = (t) => p("create:workspace")),
|
|
114
|
+
onReorder: e[6] || (e[6] = (t, n) => N(t, n)),
|
|
115
|
+
"onSelect:workspace": e[7] || (e[7] = (t) => p("select:workspace", t)),
|
|
116
|
+
onSelectItem: e[8] || (e[8] = (t) => p("selectItem", t))
|
|
117
117
|
}, R({
|
|
118
118
|
workspaceButton: r(() => [
|
|
119
|
-
l(
|
|
119
|
+
l(i(I), {
|
|
120
120
|
is: "button",
|
|
121
|
-
active:
|
|
122
|
-
icon:
|
|
123
|
-
onClick: e[0] || (e[0] = (
|
|
121
|
+
active: a.isWorkspaceOpen,
|
|
122
|
+
icon: i(X),
|
|
123
|
+
onClick: e[0] || (e[0] = (t) => p("click:workspace"))
|
|
124
124
|
}, {
|
|
125
125
|
default: r(() => [
|
|
126
|
-
y(j(
|
|
126
|
+
y(j(D.value), 1)
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
129
129
|
}, 8, ["active", "icon"])
|
|
130
130
|
]),
|
|
131
|
-
decorator: r(({ item:
|
|
132
|
-
l(
|
|
131
|
+
decorator: r(({ item: t }) => [
|
|
132
|
+
l(i(U), {
|
|
133
133
|
"aria-expanded": "false",
|
|
134
134
|
"aria-haspopup": "menu",
|
|
135
|
-
icon:
|
|
135
|
+
icon: i(Q),
|
|
136
136
|
label: "More options",
|
|
137
137
|
size: "sm",
|
|
138
138
|
weight: "bold",
|
|
139
|
-
onClick:
|
|
139
|
+
onClick: c((n) => u(n, t), ["stop"]),
|
|
140
140
|
onKeydown: [
|
|
141
|
-
k(
|
|
142
|
-
k(
|
|
143
|
-
k(
|
|
144
|
-
k(
|
|
141
|
+
k(c((n) => u(n, t), ["stop"]), ["down"]),
|
|
142
|
+
k(c((n) => u(n, t), ["stop"]), ["enter"]),
|
|
143
|
+
k(c((n) => u(n, t), ["stop"]), ["space"]),
|
|
144
|
+
k(c((n) => u(n, t), ["stop"]), ["up"])
|
|
145
145
|
]
|
|
146
146
|
}, null, 8, ["icon", "onClick", "onKeydown"])
|
|
147
147
|
]),
|
|
148
|
-
empty: r(({ item:
|
|
149
|
-
l(
|
|
148
|
+
empty: r(({ item: t }) => [
|
|
149
|
+
l(i(I), {
|
|
150
150
|
is: "button",
|
|
151
|
-
onClick: (
|
|
151
|
+
onClick: (n) => P(t)
|
|
152
152
|
}, {
|
|
153
153
|
icon: r(() => [
|
|
154
|
-
l(
|
|
154
|
+
l(i(Y))
|
|
155
155
|
]),
|
|
156
156
|
default: r(() => [...e[11] || (e[11] = [
|
|
157
157
|
y("Add operation", -1)
|
|
@@ -161,7 +161,7 @@ const ne = { class: "flex" }, se = {
|
|
|
161
161
|
]),
|
|
162
162
|
_: 2
|
|
163
163
|
}, [
|
|
164
|
-
|
|
164
|
+
a.layout !== "modal" ? {
|
|
165
165
|
name: "footer",
|
|
166
166
|
fn: r(() => [
|
|
167
167
|
d("div", {
|
|
@@ -169,14 +169,14 @@ const ne = { class: "flex" }, se = {
|
|
|
169
169
|
"empty-sidebar-item border-t": S.value
|
|
170
170
|
})
|
|
171
171
|
}, [
|
|
172
|
-
S.value ? (m(),
|
|
173
|
-
d("div",
|
|
174
|
-
l(
|
|
175
|
-
art:
|
|
172
|
+
S.value ? (m(), W("div", ie, [
|
|
173
|
+
d("div", se, [
|
|
174
|
+
l(O, {
|
|
175
|
+
art: i(Z),
|
|
176
176
|
class: "rabbitsit font-bold"
|
|
177
177
|
}, null, 8, ["art"]),
|
|
178
|
-
l(
|
|
179
|
-
art:
|
|
178
|
+
l(O, {
|
|
179
|
+
art: i(_),
|
|
180
180
|
class: "rabbitjump absolute top-0 left-0 font-bold"
|
|
181
181
|
}, null, 8, ["art"])
|
|
182
182
|
]),
|
|
@@ -186,11 +186,11 @@ const ne = { class: "flex" }, se = {
|
|
|
186
186
|
], -1))
|
|
187
187
|
])) : f("", !0),
|
|
188
188
|
d("div", re, [
|
|
189
|
-
S.value ? (m(), g(
|
|
189
|
+
S.value ? (m(), g(i(E), {
|
|
190
190
|
key: 0,
|
|
191
191
|
class: "w-full",
|
|
192
192
|
size: "sm",
|
|
193
|
-
onClick: e[1] || (e[1] = (
|
|
193
|
+
onClick: e[1] || (e[1] = (t) => a.eventBus.emit("ui:open:command-palette", {
|
|
194
194
|
action: "import-from-openapi-swagger-postman-curl",
|
|
195
195
|
payload: void 0
|
|
196
196
|
}))
|
|
@@ -200,12 +200,12 @@ const ne = { class: "flex" }, se = {
|
|
|
200
200
|
])]),
|
|
201
201
|
_: 1
|
|
202
202
|
})) : f("", !0),
|
|
203
|
-
l(
|
|
203
|
+
l(i(E), {
|
|
204
204
|
class: "w-full",
|
|
205
205
|
hotkey: "K",
|
|
206
206
|
size: "sm",
|
|
207
207
|
variant: "outlined",
|
|
208
|
-
onClick: e[2] || (e[2] = (
|
|
208
|
+
onClick: e[2] || (e[2] = (t) => a.eventBus.emit("ui:open:command-palette"))
|
|
209
209
|
}, {
|
|
210
210
|
default: r(() => [...e[14] || (e[14] = [
|
|
211
211
|
y(" Add Item ", -1)
|
|
@@ -220,24 +220,24 @@ const ne = { class: "flex" }, se = {
|
|
|
220
220
|
]), 1032, ["isSidebarOpen", "sidebarWidth", "activeWorkspace", "documents", "eventBus", "layout", "sidebarState", "workspaces"]),
|
|
221
221
|
s.value?.showMenu ? (m(), g(te, {
|
|
222
222
|
key: 0,
|
|
223
|
-
eventBus:
|
|
223
|
+
eventBus: a.eventBus,
|
|
224
224
|
item: s.value.item,
|
|
225
|
-
sidebarState:
|
|
225
|
+
sidebarState: a.sidebarState,
|
|
226
226
|
target: s.value.el,
|
|
227
227
|
onCloseMenu: K,
|
|
228
|
-
onShowDeleteModal: e[9] || (e[9] = (
|
|
228
|
+
onShowDeleteModal: e[9] || (e[9] = (t) => i(v).show())
|
|
229
229
|
}, null, 8, ["eventBus", "item", "sidebarState", "target"])) : f("", !0),
|
|
230
|
-
s.value ? (m(), g(
|
|
230
|
+
s.value ? (m(), g(i(J), {
|
|
231
231
|
key: 1,
|
|
232
232
|
size: "xxs",
|
|
233
|
-
state:
|
|
233
|
+
state: i(v),
|
|
234
234
|
title: `Delete ${s.value.item.title}`
|
|
235
235
|
}, {
|
|
236
236
|
default: r(() => [
|
|
237
237
|
l(ee, {
|
|
238
238
|
variableName: s.value.item.title,
|
|
239
|
-
warningMessage:
|
|
240
|
-
onClose: e[10] || (e[10] = (
|
|
239
|
+
warningMessage: T.value,
|
|
240
|
+
onClose: e[10] || (e[10] = (t) => i(v).hide()),
|
|
241
241
|
onDelete: z
|
|
242
242
|
}, null, 8, ["variableName", "warningMessage"])
|
|
243
243
|
]),
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { defineComponent as p, ref as f, computed as s, watch as b, createBlock as v, openBlock as k, unref as x, withCtx as
|
|
2
|
-
import { ScalarModal as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as p, ref as f, computed as s, watch as b, createBlock as v, openBlock as k, unref as x, withCtx as l, createVNode as m, createTextVNode as V } from "vue";
|
|
2
|
+
import { ScalarModal as w } from "@scalar/components";
|
|
3
|
+
import C from "../../../../components/CommandPalette/CommandActionForm.vue.js";
|
|
4
|
+
import _ from "../../../../components/CommandPalette/CommandActionInput.vue.js";
|
|
5
5
|
const g = /* @__PURE__ */ p({
|
|
6
6
|
__name: "CreateWorkspaceModal",
|
|
7
7
|
props: {
|
|
8
8
|
state: {}
|
|
9
9
|
},
|
|
10
10
|
emits: ["create:workspace"],
|
|
11
|
-
setup(
|
|
12
|
-
const n = d, e = f(""),
|
|
13
|
-
() =>
|
|
11
|
+
setup(a, { emit: d }) {
|
|
12
|
+
const n = d, e = f(""), o = s(() => e.value.trim()), i = s(
|
|
13
|
+
() => o.value.length === 0
|
|
14
14
|
);
|
|
15
15
|
b(
|
|
16
|
-
() =>
|
|
17
|
-
(
|
|
18
|
-
|
|
16
|
+
() => a.state.open,
|
|
17
|
+
(r) => {
|
|
18
|
+
r && (e.value = "");
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
const u = () => {
|
|
22
|
-
|
|
23
|
-
name:
|
|
24
|
-
}),
|
|
22
|
+
o.value && (n("create:workspace", {
|
|
23
|
+
name: o.value
|
|
24
|
+
}), a.state.hide());
|
|
25
25
|
};
|
|
26
|
-
return (
|
|
26
|
+
return (r, t) => (k(), v(x(w), {
|
|
27
27
|
bodyClass: "border-t-0 rounded-t-lg",
|
|
28
28
|
size: "xs",
|
|
29
|
-
state:
|
|
29
|
+
state: a.state
|
|
30
30
|
}, {
|
|
31
|
-
default:
|
|
32
|
-
m(
|
|
31
|
+
default: l(() => [
|
|
32
|
+
m(C, {
|
|
33
33
|
disabled: i.value,
|
|
34
34
|
onSubmit: u
|
|
35
35
|
}, {
|
|
36
|
-
submit:
|
|
36
|
+
submit: l(() => [...t[1] || (t[1] = [
|
|
37
37
|
V("Add Workspace", -1)
|
|
38
38
|
])]),
|
|
39
|
-
default:
|
|
40
|
-
m(
|
|
39
|
+
default: l(() => [
|
|
40
|
+
m(_, {
|
|
41
41
|
modelValue: e.value,
|
|
42
42
|
"onUpdate:modelValue": t[0] || (t[0] = (c) => e.value = c),
|
|
43
43
|
class: "-mt-[.5px] !p-0",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarContextMenu as
|
|
3
|
-
import { isMacOS as
|
|
4
|
-
import { ScalarIconPlusSquare as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as x, computed as k, createBlock as i, openBlock as a, unref as t, withCtx as n, createVNode as o, createElementBlock as v, createCommentVNode as b, createTextVNode as m, resolveDynamicComponent as s, Fragment as I, createElementVNode as f, normalizeClass as g, toDisplayString as D } from "vue";
|
|
2
|
+
import { ScalarContextMenu as $, ScalarFloating as B, ScalarDropdownMenu as N, ScalarDropdownButton as u, ScalarHotkey as y, ScalarDropdownDivider as O, ScalarTooltip as U } from "@scalar/components";
|
|
3
|
+
import { isMacOS as V } from "@scalar/helpers/general/is-mac-os";
|
|
4
|
+
import { ScalarIconPlusSquare as q, ScalarIconLinkSimple as F, ScalarIconXSquare as M, ScalarIconTabs as E, ScalarIconFolderSimple as L, ScalarIconArrowUpRight as P, ScalarIconX as R } from "@scalar/icons";
|
|
5
|
+
const H = /* @__PURE__ */ x({
|
|
6
6
|
__name: "DesktopTab",
|
|
7
7
|
props: {
|
|
8
8
|
hotkey: {},
|
|
@@ -11,108 +11,108 @@ const K = /* @__PURE__ */ I({
|
|
|
11
11
|
tab: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["click", "close", "newTab", "copyUrl", "closeOtherTabs"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
request:
|
|
17
|
-
document:
|
|
18
|
-
},
|
|
19
|
-
() =>
|
|
20
|
-
), w = (
|
|
21
|
-
|
|
14
|
+
setup(l, { emit: T }) {
|
|
15
|
+
const c = T, S = {
|
|
16
|
+
request: P,
|
|
17
|
+
document: L
|
|
18
|
+
}, C = k(() => V() ? "⌘" : "^"), p = k(
|
|
19
|
+
() => l.hotkey ? `${C.value} ${l.hotkey}` : ""
|
|
20
|
+
), w = (d) => {
|
|
21
|
+
d.stopPropagation(), c("close");
|
|
22
22
|
};
|
|
23
|
-
return (
|
|
23
|
+
return (d, e) => (a(), i(t($), { triggerClass: `overflow-hidden w-full flex-1 select-none
|
|
24
24
|
` }, {
|
|
25
|
-
trigger:
|
|
26
|
-
(
|
|
27
|
-
content:
|
|
25
|
+
trigger: n(() => [
|
|
26
|
+
(a(), i(s(l.isSingleTab ? "div" : t(U)), {
|
|
27
|
+
content: p.value,
|
|
28
28
|
placement: "bottom"
|
|
29
29
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
|
|
32
|
-
class:
|
|
33
|
-
|
|
34
|
-
{ "nav-item__active":
|
|
30
|
+
default: n(() => [
|
|
31
|
+
f("div", {
|
|
32
|
+
class: g(["app-no-drag-region", [
|
|
33
|
+
l.isSingleTab ? "nav-single-tab" : "nav-item",
|
|
34
|
+
{ "nav-item__active": l.active && !l.isSingleTab }
|
|
35
35
|
]]),
|
|
36
|
-
onClick: e[0] || (e[0] = (
|
|
36
|
+
onClick: e[0] || (e[0] = (r) => !l.isSingleTab && c("click"))
|
|
37
37
|
}, [
|
|
38
|
-
|
|
39
|
-
class:
|
|
38
|
+
f("div", {
|
|
39
|
+
class: g([
|
|
40
40
|
"flex items-center justify-center gap-1.5",
|
|
41
|
-
|
|
41
|
+
l.isSingleTab ? "custom-scroll h-full w-full whitespace-nowrap" : "nav-item-icon-copy flex-1"
|
|
42
42
|
])
|
|
43
43
|
}, [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class:
|
|
47
|
-
|
|
44
|
+
l.tab.icon && S[l.tab.icon] ? (a(), i(s(S[l.tab.icon]), { key: 0 })) : b("", !0),
|
|
45
|
+
f("span", {
|
|
46
|
+
class: g([
|
|
47
|
+
l.isSingleTab ? "" : "custom-scroll nav-item-copy",
|
|
48
48
|
"text-sm"
|
|
49
49
|
])
|
|
50
|
-
},
|
|
50
|
+
}, D(l.tab.title), 3)
|
|
51
51
|
], 2),
|
|
52
|
-
|
|
52
|
+
l.isSingleTab ? b("", !0) : (a(), v("button", {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "nav-item-close",
|
|
55
55
|
type: "button",
|
|
56
56
|
onClick: w
|
|
57
57
|
}, [
|
|
58
|
-
(
|
|
58
|
+
(a(), i(s(t(R))))
|
|
59
59
|
]))
|
|
60
60
|
], 2)
|
|
61
61
|
]),
|
|
62
62
|
_: 1
|
|
63
63
|
}, 8, ["content"]))
|
|
64
64
|
]),
|
|
65
|
-
content:
|
|
66
|
-
|
|
67
|
-
floating:
|
|
68
|
-
|
|
69
|
-
default:
|
|
70
|
-
|
|
65
|
+
content: n(() => [
|
|
66
|
+
o(t(B), { placement: "right-start" }, {
|
|
67
|
+
floating: n(() => [
|
|
68
|
+
o(t(N), { class: "scalar-app scalar-client" }, {
|
|
69
|
+
default: n(() => [
|
|
70
|
+
o(t(u), {
|
|
71
71
|
class: "flex items-center gap-1.5",
|
|
72
|
-
onClick: e[1] || (e[1] = (
|
|
72
|
+
onClick: e[1] || (e[1] = (r) => c("newTab"))
|
|
73
73
|
}, {
|
|
74
|
-
default:
|
|
75
|
-
(
|
|
74
|
+
default: n(() => [
|
|
75
|
+
(a(), i(s(t(q)))),
|
|
76
76
|
e[5] || (e[5] = m(" New Tab ", -1)),
|
|
77
|
-
|
|
77
|
+
o(t(y), {
|
|
78
78
|
class: "bg-b-2 ml-auto",
|
|
79
79
|
hotkey: "T"
|
|
80
80
|
})
|
|
81
81
|
]),
|
|
82
82
|
_: 1
|
|
83
83
|
}),
|
|
84
|
-
|
|
84
|
+
o(t(u), {
|
|
85
85
|
class: "flex items-center gap-1.5",
|
|
86
|
-
onClick: e[2] || (e[2] = (
|
|
86
|
+
onClick: e[2] || (e[2] = (r) => c("copyUrl"))
|
|
87
87
|
}, {
|
|
88
|
-
default:
|
|
89
|
-
(
|
|
88
|
+
default: n(() => [
|
|
89
|
+
(a(), i(s(t(F)))),
|
|
90
90
|
e[6] || (e[6] = m(" Copy URL ", -1))
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
93
|
}),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
l.isSingleTab ? b("", !0) : (a(), v(I, { key: 0 }, [
|
|
95
|
+
o(t(O)),
|
|
96
|
+
o(t(u), {
|
|
97
97
|
class: "flex items-center gap-1.5",
|
|
98
|
-
onClick: e[3] || (e[3] = (
|
|
98
|
+
onClick: e[3] || (e[3] = (r) => c("close"))
|
|
99
99
|
}, {
|
|
100
|
-
default:
|
|
101
|
-
(
|
|
100
|
+
default: n(() => [
|
|
101
|
+
(a(), i(s(t(M)))),
|
|
102
102
|
e[7] || (e[7] = m(" Close Tab ", -1)),
|
|
103
|
-
|
|
103
|
+
o(t(y), {
|
|
104
104
|
class: "bg-b-2 ml-auto",
|
|
105
105
|
hotkey: "W"
|
|
106
106
|
})
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}),
|
|
110
|
-
|
|
110
|
+
o(t(u), {
|
|
111
111
|
class: "flex items-center gap-1.5",
|
|
112
|
-
onClick: e[4] || (e[4] = (
|
|
112
|
+
onClick: e[4] || (e[4] = (r) => c("closeOtherTabs"))
|
|
113
113
|
}, {
|
|
114
|
-
default:
|
|
115
|
-
(
|
|
114
|
+
default: n(() => [
|
|
115
|
+
(a(), i(s(t(E)))),
|
|
116
116
|
e[8] || (e[8] = m(" Close Other Tabs ", -1))
|
|
117
117
|
]),
|
|
118
118
|
_: 1
|
|
@@ -130,5 +130,5 @@ const K = /* @__PURE__ */ I({
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
export {
|
|
133
|
-
|
|
133
|
+
H as default
|
|
134
134
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as d, createElementBlock as
|
|
1
|
+
import { defineComponent as v, computed as d, createElementBlock as l, openBlock as n, createElementVNode as h, Fragment as T, renderList as p, createBlock as C, createVNode as k, unref as g } from "vue";
|
|
2
2
|
import { ScalarIcon as f } from "@scalar/components";
|
|
3
3
|
import B from "./DesktopTab.vue.js";
|
|
4
4
|
const y = { class: "mac:pl-[72px] t-app__top-nav flex h-10 items-center gap-2 px-2" }, U = /* @__PURE__ */ v({
|
|
@@ -8,29 +8,29 @@ const y = { class: "mac:pl-[72px] t-app__top-nav flex h-10 items-center gap-2 px
|
|
|
8
8
|
activeTabIndex: {},
|
|
9
9
|
eventBus: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
}, i = (
|
|
19
|
-
|
|
20
|
-
}, u = (
|
|
21
|
-
|
|
11
|
+
setup(e) {
|
|
12
|
+
const o = d(() => e.tabs.length === 1), s = () => {
|
|
13
|
+
e.eventBus.emit("tabs:add:tab", void 0);
|
|
14
|
+
}, b = (t) => {
|
|
15
|
+
e.eventBus.emit("tabs:focus:tab", { index: t });
|
|
16
|
+
}, r = (t) => {
|
|
17
|
+
e.eventBus.emit("tabs:close:tab", { index: t });
|
|
18
|
+
}, i = (t) => {
|
|
19
|
+
e.eventBus.emit("tabs:close:other-tabs", { index: t });
|
|
20
|
+
}, u = (t) => {
|
|
21
|
+
e.eventBus.emit("tabs:copy:url", { index: t });
|
|
22
22
|
};
|
|
23
|
-
return (
|
|
24
|
-
(
|
|
25
|
-
key:
|
|
26
|
-
active:
|
|
27
|
-
hotkey: !
|
|
28
|
-
isSingleTab:
|
|
23
|
+
return (t, S) => (n(), l("nav", y, [
|
|
24
|
+
(n(!0), l(T, null, p(e.tabs, (m, a) => (n(), C(B, {
|
|
25
|
+
key: a,
|
|
26
|
+
active: a === e.activeTabIndex,
|
|
27
|
+
hotkey: !o.value && a < 9 ? String(a + 1) : void 0,
|
|
28
|
+
isSingleTab: o.value,
|
|
29
29
|
tab: m,
|
|
30
|
-
onClick: (
|
|
31
|
-
onClose: (
|
|
32
|
-
onCloseOtherTabs: (
|
|
33
|
-
onCopyUrl: () => u(
|
|
30
|
+
onClick: (c) => b(a),
|
|
31
|
+
onClose: (c) => r(a),
|
|
32
|
+
onCloseOtherTabs: (c) => i(a),
|
|
33
|
+
onCopyUrl: () => u(a),
|
|
34
34
|
onNewTab: s
|
|
35
35
|
}, null, 8, ["active", "hotkey", "isSingleTab", "tab", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
|
|
36
36
|
h("button", {
|