@scalar/api-client 2.0.64 → 2.1.0
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 +44 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +64 -62
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +77 -69
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +121 -0
- package/dist/components/AddressBar/AddressBarServer.vue2.js +4 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +22 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue.js +57 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue2.js +4 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -6
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +87 -82
- package/dist/components/CodeInput/codeVariableWidget.d.ts +4 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +70 -63
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +33 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.js +41 -0
- package/dist/components/CommandPalette/CommandActionForm.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +20 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.js +42 -0
- package/dist/components/CommandPalette/CommandActionInput.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +33 -56
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +88 -109
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -73
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +21 -2
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +122 -133
- package/dist/components/CommandPalette/{CommandPaletteFolder.vue.d.ts → CommandPaletteServer.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +92 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +7 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +87 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +33 -49
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +22 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +3 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +107 -101
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +13 -13
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +39 -40
- package/dist/components/DataTable/index.js +12 -12
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +7 -7
- package/dist/components/Form/Form.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +30 -30
- package/dist/components/HttpMethod/helpers.d.ts +4 -0
- package/dist/components/HttpMethod/helpers.d.ts.map +1 -0
- package/dist/components/HttpMethod/helpers.js +5 -0
- package/dist/components/HttpMethod/index.d.ts +1 -0
- package/dist/components/HttpMethod/index.d.ts.map +1 -1
- package/dist/components/HttpMethod/index.js +4 -2
- package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchModal.vue.js +2 -2
- package/dist/components/Search/SearchModal.vue2.js +29 -27
- package/dist/components/Search/useSearch.js +35 -35
- package/dist/components/SideNav/SideNavLink.vue.js +6 -6
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +14 -17
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts +22 -0
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.js +29 -0
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue2.js +4 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +38 -35
- package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +37 -34
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +11 -11
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
- package/dist/components/SubpageHeader.vue.js +3 -3
- package/dist/components/SubpageHeader.vue2.js +3 -3
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +23 -23
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +21 -21
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -5
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +4 -4
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +39 -53
- package/dist/layouts/App/create-api-client-app.d.ts +2058 -1941
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +12 -12
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4590 -4356
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +18 -23
- package/dist/libs/create-client.d.ts +2086 -1972
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +85 -76
- package/dist/libs/environment-parser.d.ts +9 -0
- package/dist/libs/environment-parser.d.ts.map +1 -0
- package/dist/libs/environment-parser.js +17 -0
- package/dist/libs/errors.d.ts +21 -0
- package/dist/libs/errors.d.ts.map +1 -0
- package/dist/libs/errors.js +14 -0
- package/dist/libs/event-busses/command-palette-bus.d.ts +1 -1
- package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +4 -4
- package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.js +17 -19
- package/dist/libs/index.d.ts +5 -2
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +31 -24
- package/dist/libs/local-storage.d.ts +3 -3
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +24 -12
- package/dist/libs/normalize-headers.d.ts +14 -0
- package/dist/libs/normalize-headers.d.ts.map +1 -0
- package/dist/libs/normalize-headers.js +32 -0
- package/dist/libs/send-request.d.ts +28 -0
- package/dist/libs/send-request.d.ts.map +1 -0
- package/dist/libs/send-request.js +186 -0
- package/dist/libs/string-template.d.ts +19 -0
- package/dist/libs/string-template.d.ts.map +1 -0
- package/dist/libs/string-template.js +30 -0
- package/dist/router.d.ts +5 -0
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +36 -27
- package/dist/store/collections.d.ts +705 -0
- package/dist/store/collections.d.ts.map +1 -0
- package/dist/store/collections.js +63 -0
- package/dist/store/cookies.d.ts +135 -0
- package/dist/store/cookies.d.ts.map +1 -0
- package/dist/store/cookies.js +29 -0
- package/dist/store/environment.d.ts +80 -0
- package/dist/store/environment.d.ts.map +1 -0
- package/dist/store/environment.js +39 -0
- package/dist/store/import-spec.d.ts +8 -0
- package/dist/store/import-spec.d.ts.map +1 -0
- package/dist/store/import-spec.js +45 -0
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +1 -1
- package/dist/store/request-example.d.ts +1111 -0
- package/dist/store/request-example.d.ts.map +1 -0
- package/dist/store/request-example.js +47 -0
- package/dist/store/requests.d.ts +371 -0
- package/dist/store/requests.d.ts.map +1 -0
- package/dist/store/requests.js +107 -0
- package/dist/store/router-params.d.ts +15 -0
- package/dist/store/router-params.d.ts.map +1 -0
- package/dist/store/router-params.js +21 -0
- package/dist/store/security-schemes.d.ts +616 -0
- package/dist/store/security-schemes.d.ts.map +1 -0
- package/dist/store/security-schemes.js +68 -0
- package/dist/store/servers.d.ts +99 -0
- package/dist/store/servers.d.ts.map +1 -0
- package/dist/store/servers.js +46 -0
- package/dist/store/store-context.d.ts +29 -0
- package/dist/store/store-context.d.ts.map +1 -0
- package/dist/store/store.d.ts +7504 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +200 -0
- package/dist/store/tags.d.ts +169 -0
- package/dist/store/tags.d.ts.map +1 -0
- package/dist/store/tags.js +57 -0
- package/dist/store/workspace.d.ts +93 -7150
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +49 -543
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +2 -2
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +10 -10
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +21 -23
- package/dist/views/Environment/Environment.vue2.js +27 -28
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +11 -5
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +79 -59
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +87 -318
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +36 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +59 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue2.js +4 -0
- package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue.d.ts +3 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +216 -0
- package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -0
- package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +183 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +30 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +3 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +140 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +4 -0
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +167 -186
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +49 -49
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +26 -22
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +103 -102
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +5 -5
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.d.ts +30 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebar.vue.js +7 -0
- package/dist/views/Request/RequestSidebar.vue2.js +179 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +6 -7
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +283 -254
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -5
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +9 -7
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +24 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSubpageHeader.vue.js +7 -0
- package/dist/views/Request/RequestSubpageHeader.vue2.js +48 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +17 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +37 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +69 -90
- package/dist/views/Request/components/index.d.ts +0 -1
- package/dist/views/Request/components/index.d.ts.map +1 -1
- package/dist/views/Request/components/index.js +2 -4
- package/dist/views/Request/consts/new-auth-options.d.ts +11 -1
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.js +17 -7
- package/dist/views/Request/handle-drag.d.ts +8 -0
- package/dist/views/Request/handle-drag.d.ts.map +1 -0
- package/dist/views/Request/handle-drag.js +56 -0
- package/dist/views/Request/libs/auth.d.ts +35 -0
- package/dist/views/Request/libs/auth.d.ts.map +1 -0
- package/dist/views/Request/libs/auth.js +14 -0
- package/dist/views/Request/libs/index.d.ts +1 -0
- package/dist/views/Request/libs/index.d.ts.map +1 -1
- package/dist/views/Request/libs/index.js +7 -3
- package/dist/views/Request/libs/oauth2.d.ts +12 -3
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +42 -27
- package/dist/views/Servers/ServerForm.vue.js +22 -22
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +17 -14
- package/package.json +9 -9
- package/dist/components/CodeInput/codeDropdownWidget.d.ts +0 -32
- package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +0 -1
- package/dist/components/CodeInput/codeDropdownWidget.js +0 -121
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +0 -106
- package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +0 -4
- package/dist/errors.d.ts +0 -5
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -7
- package/dist/libs/normalizeHeaders.d.ts +0 -11
- package/dist/libs/normalizeHeaders.d.ts.map +0 -1
- package/dist/libs/normalizeHeaders.js +0 -25
- package/dist/libs/pathParams.d.ts +0 -10
- package/dist/libs/pathParams.d.ts.map +0 -1
- package/dist/libs/pathParams.js +0 -36
- package/dist/libs/sendRequest.d.ts +0 -14
- package/dist/libs/sendRequest.d.ts.map +0 -1
- package/dist/libs/sendRequest.js +0 -163
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth.vue2.js +0 -351
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/views/Request/components/OAuth2.vue.js +0 -208
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +0 -1
- /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue2.js +0 -0
- /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue2.js +0 -0
- /package/dist/views/Request/RequestSection/{RequestAuth.vue.d.ts → RequestAuth/RequestAuth.vue.d.ts} +0 -0
|
@@ -1,292 +1,321 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { useModal as
|
|
6
|
-
import { Draggable as
|
|
7
|
-
import { useRouter as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useSidebar as
|
|
11
|
-
import { getModifiers as
|
|
12
|
-
|
|
1
|
+
import { defineComponent as pe, useCssVars as me, computed as c, ref as F, resolveComponent as fe, openBlock as d, createElementBlock as A, Fragment as Y, createElementVNode as s, normalizeClass as v, unref as i, createVNode as m, withCtx as p, createBlock as f, withModifiers as ce, toDisplayString as L, createCommentVNode as w, createTextVNode as M, renderSlot as ve, withDirectives as be, renderList as ge, vShow as he, pushScopeId as we, popScopeId as xe } from "vue";
|
|
2
|
+
import ye from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
3
|
+
import ke from "../../components/Sidebar/Actions/RenameSidebarListElement.vue.js";
|
|
4
|
+
import { PathId as S } from "../../router.js";
|
|
5
|
+
import { useModal as W, ScalarContextMenu as H, ScalarIcon as G, ScalarButton as Ue, ScalarModal as J } from "@scalar/components";
|
|
6
|
+
import { Draggable as De } from "@scalar/draggable";
|
|
7
|
+
import { useRouter as Re, RouterLink as Te } from "vue-router";
|
|
8
|
+
import D from "./RequestSidebarItemMenu.vue.js";
|
|
9
|
+
import $e from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
10
|
+
import { useSidebar as qe } from "../../hooks/useSidebar.js";
|
|
11
|
+
import { getModifiers as Ce } from "../../libs/event-busses/hot-keys-bus.js";
|
|
12
|
+
import { useWorkspace as Me } from "../../store/store.js";
|
|
13
|
+
import { commandPaletteBus as Se } from "../../libs/event-busses/command-palette-bus.js";
|
|
14
|
+
const Q = (x) => (we("data-v-1e316c86"), x = x(), xe(), x), Ie = { class: "flex flex-row gap-1 items-center" }, Ee = { class: "relative" }, Ne = { class: "flex items-start" }, ze = { class: "z-10 flex h-5 items-center justify-center max-w-[14px]" }, Be = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Oe = { class: "relative flex h-fit" }, je = /* @__PURE__ */ Q(() => /* @__PURE__ */ s("span", null, " ", -1)), Pe = /* @__PURE__ */ Q(() => /* @__PURE__ */ s("span", null, "Add Request", -1)), K = "hover:bg-sidebar-active-b indent-padding-left", _e = /* @__PURE__ */ pe({
|
|
13
15
|
__name: "RequestSidebarItem",
|
|
14
16
|
props: {
|
|
15
17
|
isDraggable: { type: Boolean, default: !1 },
|
|
16
18
|
isDroppable: { type: [Boolean, Function], default: !1 },
|
|
17
19
|
parentUids: {},
|
|
18
|
-
|
|
20
|
+
uid: {}
|
|
19
21
|
},
|
|
20
22
|
emits: ["onDragEnd", "newTab"],
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
23
|
+
setup(x, { emit: X }) {
|
|
24
|
+
me((e) => ({
|
|
25
|
+
efb8c1e6: le.value,
|
|
26
|
+
"1bacdf91": ie.value
|
|
25
27
|
}));
|
|
26
|
-
const
|
|
27
|
-
activeRequest:
|
|
28
|
-
activeRouterParams:
|
|
29
|
-
activeWorkspace:
|
|
30
|
-
collections:
|
|
31
|
-
|
|
32
|
-
isReadOnly:
|
|
33
|
-
requests:
|
|
34
|
-
requestExamples:
|
|
35
|
-
collectionMutators:
|
|
36
|
-
|
|
37
|
-
requestMutators:
|
|
38
|
-
requestExampleMutators:
|
|
39
|
-
router:
|
|
40
|
-
} =
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
28
|
+
const n = x, Z = X, {
|
|
29
|
+
activeRequest: I,
|
|
30
|
+
activeRouterParams: R,
|
|
31
|
+
activeWorkspace: b,
|
|
32
|
+
collections: T,
|
|
33
|
+
tags: _,
|
|
34
|
+
isReadOnly: o,
|
|
35
|
+
requests: E,
|
|
36
|
+
requestExamples: $,
|
|
37
|
+
collectionMutators: N,
|
|
38
|
+
tagMutators: z,
|
|
39
|
+
requestMutators: B,
|
|
40
|
+
requestExampleMutators: O,
|
|
41
|
+
router: ee
|
|
42
|
+
} = Me(), { replace: j } = Re(), { collapsedSidebarFolders: P, toggleSidebarFolder: te } = qe(), l = c(() => {
|
|
43
|
+
var u, U;
|
|
44
|
+
const e = T[n.uid], t = _[n.uid], r = E[n.uid], a = $[n.uid];
|
|
45
|
+
return e ? {
|
|
46
|
+
title: ((u = e.info) == null ? void 0 : u.title) ?? "Unknown title",
|
|
47
|
+
entity: e,
|
|
48
|
+
resourceTitle: "Collection",
|
|
49
|
+
children: e.children,
|
|
50
|
+
warning: "This cannot be undone. You’re about to delete the collection and all folders andrequests inside it.",
|
|
51
|
+
rename: () => N.edit(e.uid, "info.title", g.value),
|
|
52
|
+
delete: () => N.delete(e, b.value)
|
|
53
|
+
} : t ? {
|
|
54
|
+
title: t.name,
|
|
55
|
+
entity: t,
|
|
56
|
+
resourceTitle: "Tag",
|
|
57
|
+
children: t.children,
|
|
58
|
+
warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
|
|
59
|
+
rename: () => z.edit(t.uid, "name", g.value),
|
|
60
|
+
delete: () => z.delete(t, n.parentUids[0])
|
|
61
|
+
} : r ? {
|
|
62
|
+
title: r.summary ?? [r.method, r.path].join(" - "),
|
|
63
|
+
link: `/workspace/${b.value.uid}/request/${r.uid}`,
|
|
64
|
+
method: r.method,
|
|
65
|
+
entity: r,
|
|
66
|
+
resourceTitle: "Request",
|
|
67
|
+
warning: "This cannot be undone. You’re about to delete the request.",
|
|
68
|
+
children: r.examples,
|
|
69
|
+
rename: () => B.edit(r.uid, "summary", g.value),
|
|
70
|
+
delete: () => B.delete(r, n.parentUids[0])
|
|
71
|
+
} : {
|
|
72
|
+
title: a.name,
|
|
73
|
+
link: `/workspace/${b.value.uid}/request/${a.requestUid}/examples/${a.uid}`,
|
|
74
|
+
method: (U = E[a.requestUid]) == null ? void 0 : U.method,
|
|
75
|
+
entity: a,
|
|
76
|
+
resourceTitle: "Example",
|
|
77
|
+
children: [],
|
|
78
|
+
rename: () => O.edit(a.uid, "name", g.value),
|
|
79
|
+
delete: () => O.delete(a)
|
|
80
|
+
};
|
|
81
|
+
}), q = c(
|
|
82
|
+
() => l.value.entity.type === "collection" && l.value.title === "Drafts"
|
|
83
|
+
), le = c(() => n.parentUids.length ? o.value ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "12px"), ie = c(() => n.parentUids.length ? o.value ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "0px"), ae = c(
|
|
44
84
|
() => {
|
|
45
85
|
var e;
|
|
46
|
-
return
|
|
86
|
+
return P[n.uid] || ((e = I.value) == null ? void 0 : e.uid) === n.uid && l.value.entity.examples.length > 1;
|
|
47
87
|
}
|
|
48
|
-
),
|
|
49
|
-
() =>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
);
|
|
67
|
-
}, be = o(() => {
|
|
68
|
-
var e;
|
|
69
|
-
return "summary" in t.item ? t.item.summary || "" : "name" in t.item ? t.item.name || "" : "spec" in t.item && ((e = t.item.spec.info) == null ? void 0 : e.title) || "";
|
|
70
|
-
}), c = o(() => "requestUid" in t.item ? "Example" : "summary" in t.item ? "Request" : "spec" in t.item ? "Collection" : "Folder"), ge = (e, i) => {
|
|
71
|
-
e && (Oe(["default"]).some((R) => e[R]) ? re("newTab", k(i) || "", i.uid) : ne.push(A()));
|
|
88
|
+
), ne = c(
|
|
89
|
+
() => {
|
|
90
|
+
var e;
|
|
91
|
+
return R.value[S.Request] === "default" && ((e = I.value) == null ? void 0 : e.uid) === n.uid;
|
|
92
|
+
}
|
|
93
|
+
), C = F(null), V = c(() => {
|
|
94
|
+
let e = 0.5, t = 0.5;
|
|
95
|
+
if (!C.value) return { ceiling: e, floor: t };
|
|
96
|
+
const { draggingItem: r } = C.value;
|
|
97
|
+
return !T[r == null ? void 0 : r.id] && l.value.entity.type === "collection" ? (e = 1, t = 0) : l.value.entity.type === "tag" && (e = 0.8, t = 0.2), { ceiling: e, floor: t };
|
|
98
|
+
}), re = (e, t) => !(b.value.isReadOnly || $[t.id] || T[e.id]), g = F(""), y = W(), h = W(), se = (e) => {
|
|
99
|
+
g.value = e, l.value.rename(), y.hide();
|
|
100
|
+
}, k = () => {
|
|
101
|
+
g.value = l.value.title || "", y.show();
|
|
102
|
+
}, oe = () => {
|
|
103
|
+
l.value.delete(), R.value[S.Request] === n.uid && j(`/workspace/${b.value.uid}/request/default`), R.value[S.Examples] === n.uid && j(`/workspace/${b.value}/request/default`);
|
|
104
|
+
}, ue = (e, t) => {
|
|
105
|
+
e && (Ce(["default"]).some((u) => e[u]) ? Z("newTab", t.title || "", t.entity.uid) : t.link && ee.push(t.link));
|
|
72
106
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
107
|
+
function de() {
|
|
108
|
+
Se.emit({
|
|
109
|
+
commandName: "Create Request",
|
|
110
|
+
metaData: {
|
|
111
|
+
itemUid: n.uid,
|
|
112
|
+
parentUid: n.parentUids[0]
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
return (e, t) => {
|
|
117
|
+
const r = fe("RequestSidebarItem", !0);
|
|
118
|
+
return d(), A(Y, null, [
|
|
119
|
+
s("div", {
|
|
120
|
+
class: v(["relative flex flex-row", [
|
|
121
|
+
i(o) && e.parentUids.length > 1 || !i(o) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
|
|
79
122
|
]])
|
|
80
123
|
}, [
|
|
81
|
-
|
|
82
|
-
id:
|
|
124
|
+
m(i(De), {
|
|
125
|
+
id: l.value.entity.uid,
|
|
83
126
|
ref_key: "draggableRef",
|
|
84
|
-
ref:
|
|
85
|
-
ceiling:
|
|
127
|
+
ref: C,
|
|
128
|
+
ceiling: V.value.ceiling,
|
|
86
129
|
class: "flex flex-1 flex-col gap-[.5px] text-sm",
|
|
87
|
-
floor:
|
|
130
|
+
floor: V.value.floor,
|
|
88
131
|
isDraggable: e.isDraggable,
|
|
89
132
|
isDroppable: e.isDroppable,
|
|
90
133
|
parentIds: e.parentUids,
|
|
91
|
-
onOnDragEnd:
|
|
134
|
+
onOnDragEnd: t[9] || (t[9] = (...a) => e.$emit("onDragEnd", ...a))
|
|
92
135
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
]]),
|
|
113
|
-
tabindex: "0"
|
|
114
|
-
}, [
|
|
115
|
-
l("span", {
|
|
116
|
-
class: g(["z-10 font-medium w-full pl-2 word-break-break-word", {
|
|
117
|
-
"editable-sidebar-hover-item": !s(n)
|
|
118
|
-
}])
|
|
119
|
-
}, Y(k(e.item)), 3),
|
|
120
|
-
l("div", Fe, [
|
|
121
|
-
l("div", je, [
|
|
122
|
-
s(n) ? y("", !0) : (f(), h(S, {
|
|
123
|
-
key: 0,
|
|
124
|
-
item: e.item,
|
|
125
|
-
parentUids: e.parentUids,
|
|
126
|
-
resourceTitle: c.value,
|
|
127
|
-
onDelete: i[0] || (i[0] = (a) => s(v).show()),
|
|
128
|
-
onRename: $
|
|
129
|
-
}, null, 8, ["item", "parentUids", "resourceTitle"]))
|
|
130
|
-
]),
|
|
131
|
-
l("span", Pe, [
|
|
132
|
-
D(" "),
|
|
133
|
-
d(s(ze), {
|
|
134
|
-
class: "font-bold",
|
|
135
|
-
method: me.value
|
|
136
|
-
}, null, 8, ["method"])
|
|
137
|
-
])
|
|
138
|
-
])
|
|
139
|
-
], 2)
|
|
140
|
-
]),
|
|
141
|
-
content: u(() => [
|
|
142
|
-
d(S, {
|
|
143
|
-
item: e.item,
|
|
144
|
-
parentUids: e.parentUids,
|
|
145
|
-
resourceTitle: c.value,
|
|
146
|
-
static: "",
|
|
147
|
-
onDelete: i[1] || (i[1] = (a) => s(v).show()),
|
|
148
|
-
onRename: $
|
|
149
|
-
}, null, 8, ["item", "parentUids", "resourceTitle"])
|
|
150
|
-
]),
|
|
151
|
-
_: 2
|
|
152
|
-
}, 1032, ["disabled"])
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
}, 8, ["to"])) : !s(n) || e.parentUids.length ? (f(), h(s(_), {
|
|
156
|
-
key: 1,
|
|
157
|
-
disabled: s(n) || ((R = (m = e.item.spec) == null ? void 0 : m.info) == null ? void 0 : R.title) === "Drafts"
|
|
158
|
-
}, {
|
|
159
|
-
trigger: u(() => {
|
|
160
|
-
var r, a;
|
|
161
|
-
return [
|
|
162
|
-
l("button", {
|
|
163
|
-
class: g(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", ie]),
|
|
164
|
-
type: "button",
|
|
165
|
-
onClick: i[4] || (i[4] = (C) => s(ae)(e.item.uid))
|
|
136
|
+
default: p(() => [
|
|
137
|
+
l.value.link ? (d(), f(i(Te), {
|
|
138
|
+
key: 0,
|
|
139
|
+
class: "no-underline",
|
|
140
|
+
to: l.value.link,
|
|
141
|
+
onClick: t[2] || (t[2] = ce(
|
|
142
|
+
(a) => ue(a, l.value),
|
|
143
|
+
["prevent"]
|
|
144
|
+
))
|
|
145
|
+
}, {
|
|
146
|
+
default: p(({ isExactActive: a }) => [
|
|
147
|
+
m(i(H), { disabled: i(o) }, {
|
|
148
|
+
trigger: p(() => [
|
|
149
|
+
s("div", {
|
|
150
|
+
class: v(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
|
|
151
|
+
K,
|
|
152
|
+
a || ne.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
153
|
+
]]),
|
|
154
|
+
tabindex: "0"
|
|
166
155
|
}, [
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
class: "text-c-3 text-sm",
|
|
176
|
-
icon: "ChevronRight",
|
|
177
|
-
size: "sm",
|
|
178
|
-
thickness: "2.5"
|
|
179
|
-
})
|
|
180
|
-
], 2)
|
|
181
|
-
], !0),
|
|
182
|
-
D(" ")
|
|
183
|
-
]),
|
|
184
|
-
l("div", Le, [
|
|
185
|
-
l("span", {
|
|
186
|
-
class: g(["z-10 font-medium text-left w-full word-break-break-word", {
|
|
187
|
-
"editable-sidebar-hover-item": !s(n)
|
|
188
|
-
}])
|
|
189
|
-
}, Y(k(e.item)), 3),
|
|
190
|
-
l("div", We, [
|
|
191
|
-
!s(n) && ((a = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : a.title) !== "Drafts" ? (f(), h(S, {
|
|
156
|
+
s("span", {
|
|
157
|
+
class: v(["line-clamp-3 z-10 font-medium w-full pl-2 word-break-break-word", {
|
|
158
|
+
"editable-sidebar-hover-item": !i(o)
|
|
159
|
+
}])
|
|
160
|
+
}, L(l.value.title), 3),
|
|
161
|
+
s("div", Ie, [
|
|
162
|
+
s("div", Ee, [
|
|
163
|
+
i(o) ? w("", !0) : (d(), f(D, {
|
|
192
164
|
key: 0,
|
|
193
|
-
item:
|
|
165
|
+
item: l.value.entity,
|
|
194
166
|
parentUids: e.parentUids,
|
|
195
|
-
resourceTitle:
|
|
196
|
-
onDelete:
|
|
197
|
-
onRename:
|
|
198
|
-
}, null, 8, ["item", "parentUids", "resourceTitle"]))
|
|
199
|
-
|
|
167
|
+
resourceTitle: l.value.resourceTitle,
|
|
168
|
+
onDelete: t[0] || (t[0] = (u) => i(h).show()),
|
|
169
|
+
onRename: k
|
|
170
|
+
}, null, 8, ["item", "parentUids", "resourceTitle"]))
|
|
171
|
+
]),
|
|
172
|
+
s("span", Ne, [
|
|
173
|
+
M(" "),
|
|
174
|
+
l.value.method ? (d(), f(i($e), {
|
|
175
|
+
key: 0,
|
|
176
|
+
class: "font-bold",
|
|
177
|
+
method: l.value.method
|
|
178
|
+
}, null, 8, ["method"])) : w("", !0)
|
|
200
179
|
])
|
|
201
180
|
])
|
|
202
|
-
])
|
|
203
|
-
]
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
return [
|
|
208
|
-
!s(n) && ((a = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : a.title) !== "Drafts" ? (f(), h(S, {
|
|
209
|
-
key: 0,
|
|
210
|
-
item: e.item,
|
|
181
|
+
], 2)
|
|
182
|
+
]),
|
|
183
|
+
content: p(() => [
|
|
184
|
+
m(D, {
|
|
185
|
+
item: l.value.entity,
|
|
211
186
|
parentUids: e.parentUids,
|
|
212
|
-
resourceTitle:
|
|
187
|
+
resourceTitle: l.value.resourceTitle,
|
|
213
188
|
static: "",
|
|
214
|
-
onDelete:
|
|
215
|
-
onRename:
|
|
216
|
-
}, null, 8, ["item", "parentUids", "resourceTitle"])
|
|
217
|
-
]
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
189
|
+
onDelete: t[1] || (t[1] = (u) => i(h).show()),
|
|
190
|
+
onRename: k
|
|
191
|
+
}, null, 8, ["item", "parentUids", "resourceTitle"])
|
|
192
|
+
]),
|
|
193
|
+
_: 2
|
|
194
|
+
}, 1032, ["disabled"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["to"])) : !i(o) || e.parentUids.length ? (d(), f(i(H), {
|
|
198
|
+
key: 1,
|
|
199
|
+
disabled: i(o) || q.value
|
|
200
|
+
}, {
|
|
201
|
+
trigger: p(() => [
|
|
202
|
+
s("button", {
|
|
203
|
+
class: v(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", K]),
|
|
204
|
+
type: "button",
|
|
205
|
+
onClick: t[4] || (t[4] = (a) => i(te)(l.value.entity.uid))
|
|
206
|
+
}, [
|
|
207
|
+
s("span", ze, [
|
|
208
|
+
ve(e.$slots, "leftIcon", {}, () => [
|
|
209
|
+
s("div", {
|
|
210
|
+
class: v({
|
|
211
|
+
"rotate-90": i(P)[l.value.entity.uid]
|
|
212
|
+
})
|
|
213
|
+
}, [
|
|
214
|
+
m(i(G), {
|
|
215
|
+
class: "text-c-3 text-sm",
|
|
216
|
+
icon: "ChevronRight",
|
|
217
|
+
size: "sm",
|
|
218
|
+
thickness: "2.5"
|
|
219
|
+
})
|
|
220
|
+
], 2)
|
|
221
|
+
], !0),
|
|
222
|
+
M(" ")
|
|
223
|
+
]),
|
|
224
|
+
s("div", Be, [
|
|
225
|
+
s("span", {
|
|
226
|
+
class: v(["line-clamp-3 z-10 font-medium text-left w-full word-break-break-word", {
|
|
227
|
+
"editable-sidebar-hover-item": !i(o)
|
|
228
|
+
}])
|
|
229
|
+
}, L(l.value.title), 3),
|
|
230
|
+
s("div", Oe, [
|
|
231
|
+
!i(o) && !q.value ? (d(), f(D, {
|
|
232
|
+
key: 0,
|
|
233
|
+
item: l.value.entity,
|
|
234
|
+
parentUids: e.parentUids,
|
|
235
|
+
resourceTitle: l.value.resourceTitle,
|
|
236
|
+
onDelete: t[3] || (t[3] = (a) => i(h).show()),
|
|
237
|
+
onRename: k
|
|
238
|
+
}, null, 8, ["item", "parentUids", "resourceTitle"])) : w("", !0),
|
|
239
|
+
je
|
|
240
|
+
])
|
|
241
|
+
])
|
|
242
|
+
])
|
|
243
|
+
]),
|
|
244
|
+
content: p(() => [
|
|
245
|
+
!i(o) && !q.value ? (d(), f(D, {
|
|
246
|
+
key: 0,
|
|
247
|
+
item: l.value.entity,
|
|
248
|
+
parentUids: e.parentUids,
|
|
249
|
+
resourceTitle: l.value.resourceTitle,
|
|
250
|
+
static: "",
|
|
251
|
+
onDelete: t[5] || (t[5] = (a) => i(h).show()),
|
|
252
|
+
onRename: k
|
|
253
|
+
}, null, 8, ["item", "parentUids", "resourceTitle"])) : w("", !0)
|
|
254
|
+
]),
|
|
255
|
+
default: p(() => [
|
|
256
|
+
M(" > ")
|
|
257
|
+
]),
|
|
258
|
+
_: 3
|
|
259
|
+
}, 8, ["disabled"])) : w("", !0),
|
|
260
|
+
be(s("div", null, [
|
|
261
|
+
(d(!0), A(Y, null, ge(l.value.children, (a) => (d(), f(r, {
|
|
262
|
+
key: a,
|
|
263
|
+
isDraggable: !i($)[a],
|
|
264
|
+
isDroppable: re,
|
|
265
|
+
parentUids: [...e.parentUids, e.uid],
|
|
266
|
+
uid: a,
|
|
267
|
+
onNewTab: t[6] || (t[6] = (u, U) => e.$emit("newTab", u, U)),
|
|
268
|
+
onOnDragEnd: t[7] || (t[7] = (...u) => e.$emit("onDragEnd", ...u))
|
|
269
|
+
}, null, 8, ["isDraggable", "parentUids", "uid"]))), 128)),
|
|
270
|
+
l.value.children.length === 0 ? (d(), f(i(Ue), {
|
|
271
|
+
key: 0,
|
|
272
|
+
class: v(["mb-[.5px] flex gap-1.5 h-8 text-c-1 py-0 justify-start text-xs w-full hover:bg-b-2", e.parentUids.length ? "pl-9" : ""]),
|
|
273
|
+
variant: "ghost",
|
|
274
|
+
onClick: t[8] || (t[8] = (a) => de())
|
|
275
|
+
}, {
|
|
276
|
+
default: p(() => [
|
|
277
|
+
m(i(G), {
|
|
278
|
+
class: "ml-0.5 h-2.5 w-2.5",
|
|
279
|
+
icon: "Add",
|
|
280
|
+
thickness: "3"
|
|
281
|
+
}),
|
|
282
|
+
Pe
|
|
221
283
|
]),
|
|
222
|
-
_:
|
|
223
|
-
}, 8, ["
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
isDroppable: ce,
|
|
229
|
-
item: s(le)[r] || s(V)[r] || s(M)[r],
|
|
230
|
-
parentUids: [...e.parentUids, e.item.uid],
|
|
231
|
-
onNewTab: (a, C) => e.$emit("newTab", a, C),
|
|
232
|
-
onOnDragEnd: i[6] || (i[6] = (...a) => e.$emit("onDragEnd", ...a))
|
|
233
|
-
}, null, 8, ["isDraggable", "item", "parentUids", "onNewTab"]))), 128))
|
|
234
|
-
], 512)), [
|
|
235
|
-
[qe, fe.value]
|
|
236
|
-
]) : y("", !0)
|
|
237
|
-
];
|
|
238
|
-
}),
|
|
284
|
+
_: 1
|
|
285
|
+
}, 8, ["class"])) : w("", !0)
|
|
286
|
+
], 512), [
|
|
287
|
+
[he, ae.value]
|
|
288
|
+
])
|
|
289
|
+
]),
|
|
239
290
|
_: 3
|
|
240
291
|
}, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
|
|
241
292
|
], 2),
|
|
242
|
-
|
|
243
|
-
size: "
|
|
244
|
-
state:
|
|
245
|
-
title: `Delete ${
|
|
293
|
+
m(i(J), {
|
|
294
|
+
size: "xxs",
|
|
295
|
+
state: i(h),
|
|
296
|
+
title: `Delete ${l.value.resourceTitle}`
|
|
246
297
|
}, {
|
|
247
|
-
default:
|
|
248
|
-
|
|
249
|
-
variableName:
|
|
250
|
-
warningMessage:
|
|
251
|
-
onClose:
|
|
252
|
-
onDelete:
|
|
253
|
-
}, null, 8, ["variableName"])
|
|
298
|
+
default: p(() => [
|
|
299
|
+
m(ye, {
|
|
300
|
+
variableName: l.value.title,
|
|
301
|
+
warningMessage: l.value.warning,
|
|
302
|
+
onClose: t[10] || (t[10] = (a) => i(h).hide()),
|
|
303
|
+
onDelete: oe
|
|
304
|
+
}, null, 8, ["variableName", "warningMessage"])
|
|
254
305
|
]),
|
|
255
306
|
_: 1
|
|
256
307
|
}, 8, ["state", "title"]),
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
308
|
+
m(i(J), {
|
|
309
|
+
size: "xxs",
|
|
310
|
+
state: i(y),
|
|
311
|
+
title: `Rename ${l.value.resourceTitle}`
|
|
260
312
|
}, {
|
|
261
|
-
default:
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}, null, 8, ["modelValue", "label", "onKeydown"]),
|
|
268
|
-
l("div", Ge, [
|
|
269
|
-
d(s(te), {
|
|
270
|
-
class: "flex-1",
|
|
271
|
-
variant: "outlined",
|
|
272
|
-
onClick: i[10] || (i[10] = (m) => s(q).hide())
|
|
273
|
-
}, {
|
|
274
|
-
default: u(() => [
|
|
275
|
-
D(" Cancel ")
|
|
276
|
-
]),
|
|
277
|
-
_: 1
|
|
278
|
-
}),
|
|
279
|
-
d(s(te), {
|
|
280
|
-
class: "flex-1",
|
|
281
|
-
type: "submit",
|
|
282
|
-
onClick: G
|
|
283
|
-
}, {
|
|
284
|
-
default: u(() => [
|
|
285
|
-
D(" Save ")
|
|
286
|
-
]),
|
|
287
|
-
_: 1
|
|
288
|
-
})
|
|
289
|
-
])
|
|
313
|
+
default: p(() => [
|
|
314
|
+
m(ke, {
|
|
315
|
+
name: l.value.title,
|
|
316
|
+
onClose: t[11] || (t[11] = (a) => i(y).hide()),
|
|
317
|
+
onRename: se
|
|
318
|
+
}, null, 8, ["name"])
|
|
290
319
|
]),
|
|
291
320
|
_: 1
|
|
292
321
|
}, 8, ["state", "title"])
|
|
@@ -295,5 +324,5 @@ const Be = (U) => (Re("data-v-fc61cd81"), U = U(), Ce(), U), Fe = { class: "flex
|
|
|
295
324
|
}
|
|
296
325
|
});
|
|
297
326
|
export {
|
|
298
|
-
|
|
327
|
+
_e as default
|
|
299
328
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { Collection } from '@scalar/oas-utils/entities/
|
|
2
|
-
import type { Folder } from '@scalar/oas-utils/entities/workspace/folder';
|
|
3
|
-
import type { Request, RequestExample } from '@scalar/oas-utils/entities/workspace/spec';
|
|
1
|
+
import type { Collection, Request, RequestExample, Tag } from '@scalar/oas-utils/entities/spec';
|
|
4
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
5
3
|
/** Both inidicate the level and provide a way to traverse upwards */
|
|
6
|
-
item: Collection |
|
|
4
|
+
item: Collection | Tag | Request | RequestExample;
|
|
7
5
|
resourceTitle: string;
|
|
8
6
|
static?: boolean;
|
|
9
7
|
}>, {
|
|
@@ -13,7 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
13
11
|
rename: () => void;
|
|
14
12
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
15
13
|
/** Both inidicate the level and provide a way to traverse upwards */
|
|
16
|
-
item: Collection |
|
|
14
|
+
item: Collection | Tag | Request | RequestExample;
|
|
17
15
|
resourceTitle: string;
|
|
18
16
|
static?: boolean;
|
|
19
17
|
}>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,cAAc,EACd,GAAG,EACJ,MAAM,iCAAiC,CAAA;;IAMpC,qEAAqE;UAC/D,UAAU,GAAG,GAAG,GAAG,OAAO,GAAG,cAAc;mBAClC,MAAM;aACZ,OAAO;;;;;;;IAHhB,qEAAqE;UAC/D,UAAU,GAAG,GAAG,GAAG,OAAO,GAAG,cAAc;mBAClC,MAAM;aACZ,OAAO;;;;;;;YAAP,OAAO;;AAsSpB,wBAOG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestSidebarItemMenu.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ e(t, [["__scopeId", "data-v-d6fc1c6f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|