@scalar/api-client 2.0.64 → 2.1.1
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 +51 -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 +82 -73
- 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,336 +1,105 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import $e from "../../components/Sidebar/SidebarButton.vue.js";
|
|
7
|
-
import Ee from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
8
|
-
import Me from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
9
|
-
import Fe from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
10
|
-
import { useWorkspace as Pe } from "../../store/workspace.js";
|
|
11
|
-
import Te from "./RequestSection/RequestSection.vue.js";
|
|
1
|
+
import { defineComponent as H, ref as q, computed as L, watch as M, onMounted as A, onBeforeUnmount as I, openBlock as w, createElementBlock as $, normalizeClass as x, unref as s, createVNode as n, withCtx as S, createBlock as D, createCommentVNode as Q } from "vue";
|
|
2
|
+
import W from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
3
|
+
import j from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
4
|
+
import { createRequestOperation as z } from "../../libs/send-request.js";
|
|
5
|
+
import J from "./RequestSection/RequestSection.vue.js";
|
|
12
6
|
/* empty css */
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
import { hotKeyBus as Q } from "../../libs/event-busses/hot-keys-bus.js";
|
|
25
|
-
import { commandPaletteBus as G } from "../../libs/event-busses/command-palette-bus.js";
|
|
26
|
-
import { requestStatusBus as U } from "../../libs/event-busses/request-status-bus.js";
|
|
27
|
-
const Ye = (R) => (qe("data-v-fa353420"), R = R(), De(), R), Ze = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2" }, et = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, tt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ v("a", {
|
|
28
|
-
class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
|
|
29
|
-
href: "https://scalar.com/",
|
|
30
|
-
target: "_blank"
|
|
31
|
-
}, " Powered by Scalar.com ", -1)), ot = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, st = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-50" }, It = /* @__PURE__ */ Se({
|
|
7
|
+
import F from "./RequestSubpageHeader.vue.js";
|
|
8
|
+
import G from "./ResponseSection/ResponseSection.vue.js";
|
|
9
|
+
import { safeJSON as K } from "@scalar/object-utils/parse";
|
|
10
|
+
import { useToasts as P } from "@scalar/use-toasts";
|
|
11
|
+
import { useMediaQuery as X } from "@vueuse/core";
|
|
12
|
+
import Y from "./RequestSidebar.vue.js";
|
|
13
|
+
import { ERRORS as Z } from "../../libs/errors.js";
|
|
14
|
+
import { useWorkspace as ee } from "../../store/store.js";
|
|
15
|
+
import { executeRequestBus as E } from "../../libs/event-busses/execute-request-bus.js";
|
|
16
|
+
import { cancelRequestBus as oe } from "../../libs/event-busses/cancel-request-bus.js";
|
|
17
|
+
const qe = /* @__PURE__ */ H({
|
|
32
18
|
__name: "Request",
|
|
33
19
|
emits: ["newTab"],
|
|
34
|
-
setup(
|
|
35
|
-
var
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
{ immediate: !0 }
|
|
73
|
-
);
|
|
74
|
-
const P = async () => {
|
|
75
|
-
var r, a;
|
|
76
|
-
if (!h.value || !w.value) {
|
|
77
|
-
console.warn(
|
|
78
|
-
"There is no request active at the moment. Please select one then try again."
|
|
79
|
-
);
|
|
20
|
+
setup(re) {
|
|
21
|
+
var f;
|
|
22
|
+
const k = ee(), { toast: u } = P(), {
|
|
23
|
+
activeCollection: i,
|
|
24
|
+
activeExample: l,
|
|
25
|
+
activeEnvironment: O,
|
|
26
|
+
activeRequest: m,
|
|
27
|
+
activeWorkspace: t,
|
|
28
|
+
activeServer: C,
|
|
29
|
+
cookies: N,
|
|
30
|
+
modalState: V,
|
|
31
|
+
requestHistory: d,
|
|
32
|
+
securitySchemes: h
|
|
33
|
+
} = k, a = q(!((f = t.value) != null && f.isReadOnly)), c = q(), B = L(
|
|
34
|
+
() => d.findLast((e) => {
|
|
35
|
+
var o;
|
|
36
|
+
return e.request.uid === ((o = l.value) == null ? void 0 : o.uid);
|
|
37
|
+
})
|
|
38
|
+
), T = X("(max-width: 780px)");
|
|
39
|
+
M(T, (e) => a.value = !e);
|
|
40
|
+
const p = async () => {
|
|
41
|
+
var b;
|
|
42
|
+
if (!m.value || !l.value || !i.value)
|
|
43
|
+
return;
|
|
44
|
+
const e = K.parse(((b = O.value) == null ? void 0 : b.value) || "{}");
|
|
45
|
+
e.error && console.error("INVALID ENVIRONMENT!");
|
|
46
|
+
const o = e.error || typeof e.data != "object" ? {} : e.data ?? {}, r = t.value.cookies.map((U) => N[U]), [v, R] = z({
|
|
47
|
+
auth: i.value.auth,
|
|
48
|
+
request: m.value,
|
|
49
|
+
example: l.value,
|
|
50
|
+
proxy: t.value.proxyUrl ?? "",
|
|
51
|
+
environment: o,
|
|
52
|
+
globalCookies: r,
|
|
53
|
+
securitySchemes: h,
|
|
54
|
+
server: C.value
|
|
55
|
+
});
|
|
56
|
+
if (v) {
|
|
57
|
+
u(v.message, "error");
|
|
80
58
|
return;
|
|
81
59
|
}
|
|
82
|
-
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return { ...l, ...JSON.parse(n.raw) };
|
|
87
|
-
} catch {
|
|
88
|
-
return l;
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{}
|
|
92
|
-
), t = /\{\{(.*?)\}\}/g;
|
|
93
|
-
e = e.replace(t, (l, n) => (te.value.forEach((i) => {
|
|
94
|
-
if (i.url === n)
|
|
95
|
-
return n;
|
|
96
|
-
}), s[n] || n)), U.emit("start");
|
|
97
|
-
try {
|
|
98
|
-
C.value = new AbortController();
|
|
99
|
-
const { request: l, response: n, error: i } = await Ge(
|
|
100
|
-
h.value,
|
|
101
|
-
w.value,
|
|
102
|
-
e,
|
|
103
|
-
Z.value,
|
|
104
|
-
(r = c.value) == null ? void 0 : r.proxyUrl,
|
|
105
|
-
se,
|
|
106
|
-
(a = C.value) == null ? void 0 : a.signal
|
|
107
|
-
);
|
|
108
|
-
l && n ? (le.edit(h.value.uid, "history", [
|
|
109
|
-
...h.value.history,
|
|
110
|
-
{
|
|
111
|
-
request: l,
|
|
112
|
-
response: n,
|
|
113
|
-
timestamp: Date.now()
|
|
114
|
-
}
|
|
115
|
-
]), U.emit("stop")) : (i instanceof DOMException && i.name == "AbortError" || V((i == null ? void 0 : i.message) ?? "Send Request Failed", "error"), U.emit("abort"));
|
|
116
|
-
} catch (l) {
|
|
117
|
-
console.error(l), V(`Oops!
|
|
118
|
-
${l}`, "error"), U.emit("abort");
|
|
119
|
-
}
|
|
120
|
-
}, T = (e) => {
|
|
121
|
-
var s;
|
|
122
|
-
e.toggleSidebar && (u.value = !u.value), e.openCommandPalette && (e.openCommandPalette.preventDefault(), G.emit()), e.focusRequestSearch && ((s = M.value) == null || s.focus()), e.navigateSearchResultsUp && F("up"), e.navigateSearchResultsDown && F("down"), e.selectSearchResult && fe();
|
|
123
|
-
}, he = async () => {
|
|
60
|
+
c.value = R.controller;
|
|
61
|
+
const [y, g] = await R.sendRequest();
|
|
62
|
+
y ? u(y.message, "error") : d.push(g);
|
|
63
|
+
}, _ = async () => {
|
|
124
64
|
var e;
|
|
125
|
-
return (e =
|
|
65
|
+
return (e = c.value) == null ? void 0 : e.abort(Z.REQUEST_ABORTED);
|
|
126
66
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
const N = (e, s) => {
|
|
133
|
-
p[e] ? I.edit(e, "childUids", s) : g[e] && B.edit(e, "childUids", s);
|
|
134
|
-
}, ve = (e, s) => {
|
|
135
|
-
if (!e || !s) return;
|
|
136
|
-
const { id: t, parentId: r } = e, { id: a, parentId: l, offset: n } = s;
|
|
137
|
-
if (r ? p[r] ? I.edit(
|
|
138
|
-
r,
|
|
139
|
-
"childUids",
|
|
140
|
-
p[r].childUids.filter(
|
|
141
|
-
(i) => i !== t
|
|
142
|
-
)
|
|
143
|
-
) : g[r] && B.edit(
|
|
144
|
-
r,
|
|
145
|
-
"childUids",
|
|
146
|
-
g[r].childUids.filter((i) => i !== t)
|
|
147
|
-
) : O.edit(
|
|
148
|
-
c.value.uid,
|
|
149
|
-
"collectionUids",
|
|
150
|
-
c.value.collectionUids.filter((i) => i !== t)
|
|
151
|
-
), n === 2) {
|
|
152
|
-
const i = p[a] || g[a];
|
|
153
|
-
N(a, [...i.childUids, t]);
|
|
154
|
-
} else if (l) {
|
|
155
|
-
const S = [...(p[l] || g[l]).childUids], q = S.findIndex((ge) => a === ge) ?? 0;
|
|
156
|
-
S.splice(q + n, 0, t), N(l, S);
|
|
157
|
-
} else {
|
|
158
|
-
const i = [...c.value.collectionUids], S = i.findIndex((q) => a === q) ?? 0;
|
|
159
|
-
i.splice(S + n, 0, t), O.edit(
|
|
160
|
-
c.value.uid,
|
|
161
|
-
"collectionUids",
|
|
162
|
-
i
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
}, be = (e, s) => {
|
|
166
|
-
var t, r, a;
|
|
167
|
-
return !(c.value.isReadOnly || !p[e.id] && s.offset !== 2 || p[e.id] && ((a = (r = (t = p[s.id]) == null ? void 0 : t.spec) == null ? void 0 : r.info) == null ? void 0 : a.title) === "Drafts");
|
|
168
|
-
}, xe = (e, s) => {
|
|
169
|
-
Y("newTab", { name: e, uid: s });
|
|
170
|
-
};
|
|
171
|
-
return (e, s) => (m(), _("div", {
|
|
172
|
-
class: b(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden", {
|
|
173
|
-
"!mr-0 !mb-0 !border-0": o(c).isReadOnly
|
|
67
|
+
return A(() => {
|
|
68
|
+
E.on(p), oe.on(_);
|
|
69
|
+
}), I(() => E.off(p)), (e, o) => (w(), $("div", {
|
|
70
|
+
class: x(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden", {
|
|
71
|
+
"!mr-0 !mb-0 !border-0": s(t).isReadOnly
|
|
174
72
|
}])
|
|
175
73
|
}, [
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
type: "button",
|
|
192
|
-
onClick: s[1] || (s[1] = (t) => o(ie).hide())
|
|
193
|
-
}, [
|
|
194
|
-
d(o(D), {
|
|
195
|
-
icon: "Close",
|
|
196
|
-
size: "lg",
|
|
197
|
-
thickness: "1.75"
|
|
198
|
-
})
|
|
199
|
-
])) : k("", !0)
|
|
200
|
-
])
|
|
201
|
-
]),
|
|
202
|
-
d(Me, null, {
|
|
203
|
-
default: f(() => [
|
|
204
|
-
ye(d(o(Ke), {
|
|
205
|
-
class: b([u.value ? "sidebar-active-width" : ""]),
|
|
206
|
-
showSideBar: u.value,
|
|
207
|
-
"onUpdate:showSideBar": s[5] || (s[5] = (t) => u.value = t)
|
|
208
|
-
}, _e({
|
|
209
|
-
content: f(() => [
|
|
210
|
-
v("div", st, [
|
|
211
|
-
d(o(We), {
|
|
212
|
-
ref_key: "searchInputRef",
|
|
213
|
-
ref: M,
|
|
214
|
-
modelValue: o(y),
|
|
215
|
-
"onUpdate:modelValue": s[2] || (s[2] = (t) => ke(y) ? y.value = t : null),
|
|
216
|
-
sidebar: "",
|
|
217
|
-
onInput: o(ue)
|
|
218
|
-
}, null, 8, ["modelValue", "onInput"])
|
|
219
|
-
]),
|
|
220
|
-
v("div", {
|
|
221
|
-
class: b(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
222
|
-
"pb-14": !o(c).isReadOnly
|
|
223
|
-
}]),
|
|
224
|
-
onDragenter: s[3] || (s[3] = L(() => {
|
|
225
|
-
}, ["prevent"])),
|
|
226
|
-
onDragover: s[4] || (s[4] = L(() => {
|
|
227
|
-
}, ["prevent"]))
|
|
228
|
-
}, [
|
|
229
|
-
o(y) ? (m(), x(o(ze), {
|
|
230
|
-
key: 0,
|
|
231
|
-
class: "gap-px custom-scroll",
|
|
232
|
-
noResults: !o($).length
|
|
233
|
-
}, {
|
|
234
|
-
default: f(() => [
|
|
235
|
-
(m(!0), _(j, null, H(o($), (t, r) => (m(), x(o(Ae), {
|
|
236
|
-
id: `#search-input-${t.item.id}`,
|
|
237
|
-
key: t.refIndex,
|
|
238
|
-
ref_for: !0,
|
|
239
|
-
ref: (a) => o(me)[r] = a,
|
|
240
|
-
active: o(E) === r,
|
|
241
|
-
class: "px-2",
|
|
242
|
-
onClick: (a) => o(de)(t),
|
|
243
|
-
onFocus: (a) => E.value = r
|
|
244
|
-
}, {
|
|
245
|
-
addon: f(() => [
|
|
246
|
-
d(Oe, {
|
|
247
|
-
class: "font-bold",
|
|
248
|
-
method: t.item.httpVerb ?? "get"
|
|
249
|
-
}, null, 8, ["method"])
|
|
250
|
-
]),
|
|
251
|
-
default: f(() => [
|
|
252
|
-
K(Ue(t.item.title) + " ", 1)
|
|
253
|
-
]),
|
|
254
|
-
_: 2
|
|
255
|
-
}, 1032, ["id", "active", "onClick", "onFocus"]))), 128))
|
|
256
|
-
]),
|
|
257
|
-
_: 1
|
|
258
|
-
}, 8, ["noResults"])) : (m(!0), _(j, { key: 1 }, H(o(ee), (t) => {
|
|
259
|
-
var r, a;
|
|
260
|
-
return m(), x(He, {
|
|
261
|
-
key: t.uid,
|
|
262
|
-
isDraggable: !o(c).isReadOnly && ((a = (r = t.spec) == null ? void 0 : r.info) == null ? void 0 : a.title) !== "Drafts",
|
|
263
|
-
isDroppable: be,
|
|
264
|
-
item: t,
|
|
265
|
-
parentUids: [],
|
|
266
|
-
onNewTab: xe,
|
|
267
|
-
onOnDragEnd: ve
|
|
268
|
-
}, {
|
|
269
|
-
leftIcon: f(() => [
|
|
270
|
-
d(o(D), {
|
|
271
|
-
class: "text-sidebar-c-2 text-sm group-hover:hidden",
|
|
272
|
-
icon: "CodeFolder",
|
|
273
|
-
size: "sm",
|
|
274
|
-
thickness: "2"
|
|
275
|
-
}),
|
|
276
|
-
v("div", {
|
|
277
|
-
class: b({
|
|
278
|
-
"rotate-90": o(ne)[t.uid]
|
|
279
|
-
})
|
|
280
|
-
}, [
|
|
281
|
-
d(o(D), {
|
|
282
|
-
class: "text-c-3 hidden text-sm group-hover:block",
|
|
283
|
-
icon: "ChevronRight",
|
|
284
|
-
size: "sm"
|
|
285
|
-
})
|
|
286
|
-
], 2)
|
|
287
|
-
]),
|
|
288
|
-
_: 2
|
|
289
|
-
}, 1032, ["isDraggable", "item"]);
|
|
290
|
-
}), 128))
|
|
291
|
-
], 34)
|
|
292
|
-
]),
|
|
293
|
-
button: f(() => [
|
|
294
|
-
o(c).isReadOnly ? k("", !0) : (m(), x($e, {
|
|
295
|
-
key: 0,
|
|
296
|
-
class: b({
|
|
297
|
-
"empty-sidebar-item": o(oe).length === 1
|
|
298
|
-
}),
|
|
299
|
-
click: o(G).emit
|
|
300
|
-
}, {
|
|
301
|
-
title: f(() => [
|
|
302
|
-
K("Add Item")
|
|
303
|
-
]),
|
|
304
|
-
_: 1
|
|
305
|
-
}, 8, ["class", "click"]))
|
|
306
|
-
]),
|
|
307
|
-
_: 2
|
|
308
|
-
}, [
|
|
309
|
-
o(c).isReadOnly ? void 0 : {
|
|
310
|
-
name: "header",
|
|
311
|
-
fn: f(() => [
|
|
312
|
-
d(o(Je))
|
|
313
|
-
]),
|
|
314
|
-
key: "0"
|
|
315
|
-
}
|
|
316
|
-
]), 1032, ["class", "showSideBar"]), [
|
|
317
|
-
[Ce, u.value]
|
|
318
|
-
]),
|
|
319
|
-
o(w) ? (m(), x(Fe, {
|
|
74
|
+
n(F, {
|
|
75
|
+
modelValue: a.value,
|
|
76
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => a.value = r),
|
|
77
|
+
isReadonly: s(t).isReadOnly,
|
|
78
|
+
onHideModel: o[1] || (o[1] = () => s(V).hide())
|
|
79
|
+
}, null, 8, ["modelValue", "isReadonly"]),
|
|
80
|
+
n(W, null, {
|
|
81
|
+
default: S(() => [
|
|
82
|
+
n(Y, {
|
|
83
|
+
isReadonly: s(t).isReadOnly,
|
|
84
|
+
showSidebar: a.value,
|
|
85
|
+
onNewTab: o[2] || (o[2] = (r) => e.$emit("newTab", r)),
|
|
86
|
+
"onUpdate:showSidebar": o[3] || (o[3] = (r) => a.value = r)
|
|
87
|
+
}, null, 8, ["isReadonly", "showSidebar"]),
|
|
88
|
+
s(l) ? (w(), D(j, {
|
|
320
89
|
key: 0,
|
|
321
|
-
class:
|
|
90
|
+
class: x(["flex-1", [a.value ? "sidebar-active-hide-layout" : ""]])
|
|
322
91
|
}, {
|
|
323
|
-
default:
|
|
324
|
-
var
|
|
92
|
+
default: S(() => {
|
|
93
|
+
var r;
|
|
325
94
|
return [
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
response: (
|
|
95
|
+
n(J),
|
|
96
|
+
n(G, {
|
|
97
|
+
response: (r = B.value) == null ? void 0 : r.response
|
|
329
98
|
}, null, 8, ["response"])
|
|
330
99
|
];
|
|
331
100
|
}),
|
|
332
101
|
_: 1
|
|
333
|
-
}, 8, ["class"])) :
|
|
102
|
+
}, 8, ["class"])) : Q("", !0)
|
|
334
103
|
]),
|
|
335
104
|
_: 1
|
|
336
105
|
})
|
|
@@ -338,5 +107,5 @@ ${l}`, "error"), U.emit("abort");
|
|
|
338
107
|
}
|
|
339
108
|
});
|
|
340
109
|
export {
|
|
341
|
-
|
|
110
|
+
qe as default
|
|
342
111
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
state: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
show: () => void;
|
|
5
|
+
hide: () => void;
|
|
6
|
+
};
|
|
7
|
+
scheme: {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
} | undefined;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
close: () => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
14
|
+
state: {
|
|
15
|
+
open: boolean;
|
|
16
|
+
show: () => void;
|
|
17
|
+
hide: () => void;
|
|
18
|
+
};
|
|
19
|
+
scheme: {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
} | undefined;
|
|
23
|
+
}>>> & {
|
|
24
|
+
onClose?: (() => any) | undefined;
|
|
25
|
+
}, {}, {}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToOption<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: import('vue').PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=DeleteRequestAuthModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteRequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue"],"names":[],"mappings":";WAwDS;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;YACpD;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS;;;;WAD1C;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;YACpD;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS;;;;AAiKnD,wBAOG;AAOH,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"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent as y, openBlock as S, createBlock as _, unref as o, withCtx as s, createElementVNode as r, toDisplayString as i, createVNode as m, createTextVNode as u } from "vue";
|
|
2
|
+
import { ScalarModal as g, ScalarButton as d } from "@scalar/components";
|
|
3
|
+
import { useWorkspace as k } from "../../../../store/store.js";
|
|
4
|
+
const C = { class: "mb-4 leading-normal text-c-2 text-sm" }, w = { class: "flex justify-between gap-2" }, M = /* @__PURE__ */ y({
|
|
5
|
+
__name: "DeleteRequestAuthModal",
|
|
6
|
+
props: {
|
|
7
|
+
state: {},
|
|
8
|
+
scheme: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["close"],
|
|
11
|
+
setup(p, { emit: h }) {
|
|
12
|
+
const n = p, c = h, { securitySchemes: f, securitySchemeMutators: x } = k(), b = () => {
|
|
13
|
+
var e;
|
|
14
|
+
(e = n.scheme) != null && e.id && x.delete(f[n.scheme.id]), c("close");
|
|
15
|
+
};
|
|
16
|
+
return (e, l) => (S(), _(o(g), {
|
|
17
|
+
size: "xxs",
|
|
18
|
+
state: e.state,
|
|
19
|
+
title: "Delete Security Scheme"
|
|
20
|
+
}, {
|
|
21
|
+
default: s(() => {
|
|
22
|
+
var a;
|
|
23
|
+
return [
|
|
24
|
+
r("p", C, " This cannot be undone. You’re about to delete the " + i((a = e.scheme) == null ? void 0 : a.label) + " security scheme from the collection. ", 1),
|
|
25
|
+
r("div", w, [
|
|
26
|
+
m(o(d), {
|
|
27
|
+
class: "gap-1.5 px-3 h-8 shadow-none focus:outline-none flex items-center cursor-pointer",
|
|
28
|
+
type: "button",
|
|
29
|
+
variant: "outlined",
|
|
30
|
+
onClick: l[0] || (l[0] = (t) => c("close"))
|
|
31
|
+
}, {
|
|
32
|
+
default: s(() => [
|
|
33
|
+
u(" Cancel ")
|
|
34
|
+
]),
|
|
35
|
+
_: 1
|
|
36
|
+
}),
|
|
37
|
+
m(o(d), {
|
|
38
|
+
class: "gap-1.5 px-3 h-8 shadow-none focus:outline-none flex items-center cursor-pointer",
|
|
39
|
+
type: "submit",
|
|
40
|
+
onClick: b
|
|
41
|
+
}, {
|
|
42
|
+
default: s(() => {
|
|
43
|
+
var t;
|
|
44
|
+
return [
|
|
45
|
+
u(" Delete " + i((t = e.scheme) == null ? void 0 : t.label), 1)
|
|
46
|
+
];
|
|
47
|
+
}),
|
|
48
|
+
_: 1
|
|
49
|
+
})
|
|
50
|
+
])
|
|
51
|
+
];
|
|
52
|
+
}),
|
|
53
|
+
_: 1
|
|
54
|
+
}, 8, ["state"]));
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
M as default
|
|
59
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { SecuritySchemeOauth2 } from '@scalar/oas-utils/entities/
|
|
1
|
+
import type { SecuritySchemeOauth2, SecuritySchemeOauth2ExampleValue } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
example: SecuritySchemeOauth2ExampleValue;
|
|
3
4
|
scheme: SecuritySchemeOauth2;
|
|
4
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
|
+
example: SecuritySchemeOauth2ExampleValue;
|
|
5
7
|
scheme: SecuritySchemeOauth2;
|
|
6
8
|
}>>>, {}, {}>;
|
|
7
9
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EACV,oBAAoB,EACpB,gCAAgC,EACjC,MAAM,iCAAiC,CAAA;;aAO7B,gCAAgC;YACjC,oBAAoB;;aADnB,gCAAgC;YACjC,oBAAoB;;AAohB9B,wBAMG;AAOH,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"}
|