@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
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { defineComponent as C, openBlock as s, createElementBlock as V, Fragment as w, createVNode as t, unref as d, withCtx as a, createTextVNode as u, createElementVNode as y, createBlock as c, createCommentVNode as n } from "vue";
|
|
2
|
+
import i from "../RequestAuthDataTableInput.vue.js";
|
|
3
|
+
import { useLoadingState as T, ScalarButton as U } from "@scalar/components";
|
|
4
|
+
import x from "./OAuthScopesInput.vue.js";
|
|
5
|
+
import r from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
6
|
+
import { authorizeOauth2 as F } from "../../libs/oauth2.js";
|
|
7
|
+
import { useWorkspace as A } from "../../../../store/store.js";
|
|
8
|
+
const B = { class: "h-8 flex items-center justify-self-end" }, I = { class: "h-8 flex items-center justify-self-end" }, O = /* @__PURE__ */ C({
|
|
9
|
+
__name: "OAuth2",
|
|
10
|
+
props: {
|
|
11
|
+
example: {},
|
|
12
|
+
scheme: {}
|
|
13
|
+
},
|
|
14
|
+
setup($) {
|
|
15
|
+
const m = $, f = T(), {
|
|
16
|
+
activeCollection: k,
|
|
17
|
+
collectionMutators: g,
|
|
18
|
+
isReadOnly: v,
|
|
19
|
+
securitySchemeMutators: z
|
|
20
|
+
} = A(), p = (e, l) => k.value && g.edit(k.value.uid, e, l), h = (e, l) => z.edit(m.scheme.uid, e, l), S = async () => {
|
|
21
|
+
var l;
|
|
22
|
+
if (f.isLoading || !((l = k.value) != null && l.uid)) return;
|
|
23
|
+
f.startLoading();
|
|
24
|
+
const e = await F(
|
|
25
|
+
m.scheme,
|
|
26
|
+
m.example
|
|
27
|
+
).finally(() => f.stopLoading());
|
|
28
|
+
e && p(`auth.${m.scheme.uid}.token`, e);
|
|
29
|
+
};
|
|
30
|
+
return (e, l) => e.example.token ? (s(), V(w, { key: 0 }, [
|
|
31
|
+
t(d(r), null, {
|
|
32
|
+
default: a(() => [
|
|
33
|
+
t(i, {
|
|
34
|
+
id: "oauth2-access-token",
|
|
35
|
+
class: "border-r-transparent",
|
|
36
|
+
modelValue: e.example.token,
|
|
37
|
+
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
38
|
+
type: "password",
|
|
39
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => p(`auth.${m.scheme.uid}.token`, o))
|
|
40
|
+
}, {
|
|
41
|
+
default: a(() => [
|
|
42
|
+
u(" Access Token ")
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 8, ["modelValue"])
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
}),
|
|
49
|
+
t(d(r), { class: "min-w-full" }, {
|
|
50
|
+
default: a(() => [
|
|
51
|
+
y("div", B, [
|
|
52
|
+
t(d(U), {
|
|
53
|
+
class: "p-0 py-0.5 px-2 mr-1",
|
|
54
|
+
loading: d(f),
|
|
55
|
+
size: "sm",
|
|
56
|
+
variant: "outlined",
|
|
57
|
+
onClick: l[1] || (l[1] = (o) => p(`auth.${m.scheme.uid}.token`, ""))
|
|
58
|
+
}, {
|
|
59
|
+
default: a(() => [
|
|
60
|
+
u(" Clear ")
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 8, ["loading"])
|
|
64
|
+
])
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
})
|
|
68
|
+
], 64)) : (s(), V(w, { key: 1 }, [
|
|
69
|
+
d(v) ? n("", !0) : (s(), c(d(r), { key: 0 }, {
|
|
70
|
+
default: a(() => [
|
|
71
|
+
"authorizationUrl" in e.scheme.flow ? (s(), c(i, {
|
|
72
|
+
key: 0,
|
|
73
|
+
id: `oauth2-authorization-url-${e.scheme.uid}`,
|
|
74
|
+
modelValue: e.scheme.flow.authorizationUrl,
|
|
75
|
+
placeholder: "https://galaxy.scalar.com/authorize",
|
|
76
|
+
"onUpdate:modelValue": l[2] || (l[2] = (o) => h("flow.authorizationUrl", o))
|
|
77
|
+
}, {
|
|
78
|
+
default: a(() => [
|
|
79
|
+
u(" Authorization Url ")
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
}, 8, ["id", "modelValue"])) : n("", !0),
|
|
83
|
+
"tokenUrl" in e.scheme.flow ? (s(), c(i, {
|
|
84
|
+
key: 1,
|
|
85
|
+
id: `oauth2-token-url-${e.scheme.uid}`,
|
|
86
|
+
modelValue: e.scheme.flow.tokenUrl,
|
|
87
|
+
placeholder: "https://galaxy.scalar.com/token",
|
|
88
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => h("flow.tokenUrl", o))
|
|
89
|
+
}, {
|
|
90
|
+
default: a(() => [
|
|
91
|
+
u(" Token Url ")
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, ["id", "modelValue"])) : n("", !0)
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
})),
|
|
98
|
+
"x-scalar-redirect-uri" in e.scheme.flow ? (s(), c(d(r), { key: 1 }, {
|
|
99
|
+
default: a(() => [
|
|
100
|
+
t(i, {
|
|
101
|
+
id: `oauth2-redirect-uri-${e.scheme.uid}`,
|
|
102
|
+
modelValue: e.scheme.flow["x-scalar-redirect-uri"],
|
|
103
|
+
placeholder: "https://galaxy.scalar.com/callback",
|
|
104
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => h("flow.x-scalar-redirect-uri", o))
|
|
105
|
+
}, {
|
|
106
|
+
default: a(() => [
|
|
107
|
+
u(" Redirect Url ")
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
}, 8, ["id", "modelValue"])
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
})) : n("", !0),
|
|
114
|
+
e.example.type === "oauth-password" ? (s(), V(w, { key: 2 }, [
|
|
115
|
+
t(d(r), null, {
|
|
116
|
+
default: a(() => [
|
|
117
|
+
t(i, {
|
|
118
|
+
id: `oauth2-password-username-${e.scheme.uid}`,
|
|
119
|
+
class: "text-c-2",
|
|
120
|
+
modelValue: e.example.username,
|
|
121
|
+
placeholder: "ScalarEnjoyer01",
|
|
122
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => p(`auth.${e.scheme.uid}.username`, o))
|
|
123
|
+
}, {
|
|
124
|
+
default: a(() => [
|
|
125
|
+
u(" Username ")
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}, 8, ["id", "modelValue"])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}),
|
|
132
|
+
t(d(r), null, {
|
|
133
|
+
default: a(() => [
|
|
134
|
+
t(i, {
|
|
135
|
+
id: `oauth2-password-password-${e.scheme.uid}`,
|
|
136
|
+
modelValue: e.example.password,
|
|
137
|
+
placeholder: "xxxxxx",
|
|
138
|
+
type: "password",
|
|
139
|
+
"onUpdate:modelValue": l[6] || (l[6] = (o) => p(`auth.${e.scheme.uid}.password`, o))
|
|
140
|
+
}, {
|
|
141
|
+
default: a(() => [
|
|
142
|
+
u(" Password ")
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["id", "modelValue"])
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
})
|
|
149
|
+
], 64)) : n("", !0),
|
|
150
|
+
t(d(r), null, {
|
|
151
|
+
default: a(() => [
|
|
152
|
+
t(i, {
|
|
153
|
+
id: `oauth2-client-id-${e.scheme.uid}`,
|
|
154
|
+
modelValue: e.scheme["x-scalar-client-id"],
|
|
155
|
+
placeholder: "12345",
|
|
156
|
+
"onUpdate:modelValue": l[7] || (l[7] = (o) => h("x-scalar-client-id", o))
|
|
157
|
+
}, {
|
|
158
|
+
default: a(() => [
|
|
159
|
+
u(" Client ID ")
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["id", "modelValue"])
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}),
|
|
166
|
+
"clientSecret" in e.example ? (s(), c(d(r), { key: 3 }, {
|
|
167
|
+
default: a(() => [
|
|
168
|
+
t(i, {
|
|
169
|
+
id: `oauth2-client-secret-${e.scheme.uid}`,
|
|
170
|
+
modelValue: e.example.clientSecret,
|
|
171
|
+
placeholder: "XYZ123",
|
|
172
|
+
type: "password",
|
|
173
|
+
"onUpdate:modelValue": l[8] || (l[8] = (o) => p(`auth.${e.scheme.uid}.clientSecret`, o))
|
|
174
|
+
}, {
|
|
175
|
+
default: a(() => [
|
|
176
|
+
u(" Client Secret ")
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["id", "modelValue"])
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
})) : n("", !0),
|
|
183
|
+
e.scheme.flow.scopes ? (s(), c(d(r), { key: 4 }, {
|
|
184
|
+
default: a(() => [
|
|
185
|
+
t(x, {
|
|
186
|
+
activeFlow: e.scheme.flow,
|
|
187
|
+
updateScheme: h
|
|
188
|
+
}, null, 8, ["activeFlow"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
})) : n("", !0),
|
|
192
|
+
t(d(r), { class: "min-w-full" }, {
|
|
193
|
+
default: a(() => [
|
|
194
|
+
y("div", I, [
|
|
195
|
+
t(d(U), {
|
|
196
|
+
class: "p-0 py-0.5 px-2 mr-1",
|
|
197
|
+
loading: d(f),
|
|
198
|
+
size: "sm",
|
|
199
|
+
variant: "outlined",
|
|
200
|
+
onClick: S
|
|
201
|
+
}, {
|
|
202
|
+
default: a(() => [
|
|
203
|
+
u(" Authorize ")
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, ["loading"])
|
|
207
|
+
])
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
})
|
|
211
|
+
], 64));
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
export {
|
|
215
|
+
O as default
|
|
216
|
+
};
|
package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UpdateScheme } from '
|
|
2
|
-
import type { SecuritySchemeOauth2 } from '@scalar/oas-utils/entities/
|
|
1
|
+
import type { UpdateScheme } from '../../../../store/index.js';
|
|
2
|
+
import type { SecuritySchemeOauth2 } from '@scalar/oas-utils/entities/spec';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
4
4
|
activeFlow: SecuritySchemeOauth2["flow"];
|
|
5
5
|
updateScheme: UpdateScheme;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AAgGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;;gBAM7D,oBAAoB,CAAC,MAAM,CAAC;kBAC1B,YAAY;;gBADd,oBAAoB,CAAC,MAAM,CAAC;kBAC1B,YAAY;;AAoR5B,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"}
|
package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.js
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as S, computed as f, openBlock as m, createBlock as h, unref as o, withCtx as s, createElementVNode as l, createVNode as c, toDisplayString as p, createElementBlock as g, Fragment as b, renderList as C } from "vue";
|
|
2
2
|
import { Disclosure as F, DisclosureButton as k, DisclosurePanel as D } from "@headlessui/vue";
|
|
3
3
|
import { ScalarIcon as y } from "@scalar/components";
|
|
4
|
-
import _ from "
|
|
5
|
-
import V from "
|
|
6
|
-
import B from "
|
|
4
|
+
import _ from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
5
|
+
import V from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
6
|
+
import B from "../../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
7
7
|
const O = { class: "flex h-full w-full" }, $ = /* @__PURE__ */ l("div", { class: "text-c-2 min-w-[120px] items-center pl-2 h-full border-r-1/2" }, [
|
|
8
8
|
/* @__PURE__ */ l("span", { class: "h-8 flex items-center" }, " Scopes ")
|
|
9
9
|
], -1), j = { class: "flex-1 text-c-3" }, E = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":";WA8TS,MAAM;;WAAN,MAAM;;AAubf,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"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { defineComponent as N, ref as C, computed as S, openBlock as p, createBlock as j, withCtx as r, createElementVNode as u, toDisplayString as A, createVNode as s, unref as a, createElementBlock as v, Fragment as F, renderList as W, createTextVNode as q, withModifiers as z, pushScopeId as E, popScopeId as H } from "vue";
|
|
2
|
+
import L from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
3
|
+
import { useModal as P, ScalarComboboxMultiselect as G, ScalarButton as J, ScalarIcon as D } from "@scalar/components";
|
|
4
|
+
import K from "./DeleteRequestAuthModal.vue.js";
|
|
5
|
+
import Q from "./RequestExampleAuth.vue.js";
|
|
6
|
+
import { displaySchemeFormatter as M, createSchemeValueSet as X } from "../../libs/auth.js";
|
|
7
|
+
import { ADD_AUTH_OPTIONS as Y } from "../../consts/new-auth-options.js";
|
|
8
|
+
import Z from "../../../../components/DataTable/DataTable.vue.js";
|
|
9
|
+
import ee from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
10
|
+
import te from "../../../../components/DataTable/DataTableHeader.vue.js";
|
|
11
|
+
import { useWorkspace as le } from "../../../../store/store.js";
|
|
12
|
+
const y = (f) => (E("data-v-2a86ee2c"), f = f(), H(), f), oe = { class: "flex gap-1" }, se = /* @__PURE__ */ y(() => /* @__PURE__ */ u("div", { class: "text-c-2 h-8 flex min-w-[120px] items-center border-r-1/2 pr-0 pl-2" }, " Auth Type ", -1)), ae = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "flex relative scroll-timeline-x w-full"
|
|
15
|
+
}, ce = /* @__PURE__ */ y(() => /* @__PURE__ */ u("div", { class: "fade-left" }, null, -1)), ie = { class: "flex flex-1 gap-0.75 mr-1.5 items-center" }, re = /* @__PURE__ */ y(() => /* @__PURE__ */ u("div", { class: "fade-right" }, null, -1)), ne = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "pl-2"
|
|
18
|
+
}, be = /* @__PURE__ */ N({
|
|
19
|
+
__name: "RequestAuth",
|
|
20
|
+
props: {
|
|
21
|
+
title: {}
|
|
22
|
+
},
|
|
23
|
+
setup(f) {
|
|
24
|
+
const {
|
|
25
|
+
activeCollection: n,
|
|
26
|
+
activeRequest: i,
|
|
27
|
+
collectionMutators: V,
|
|
28
|
+
isReadOnly: b,
|
|
29
|
+
requestMutators: g,
|
|
30
|
+
securitySchemes: _,
|
|
31
|
+
securitySchemeMutators: $
|
|
32
|
+
} = le(), R = C(null), x = P(), k = C(void 0), U = S(() => {
|
|
33
|
+
var o, m, d;
|
|
34
|
+
const e = (m = (o = i.value) == null ? void 0 : o.security) == null ? void 0 : m.filter(
|
|
35
|
+
(c) => Object.keys(c).length
|
|
36
|
+
);
|
|
37
|
+
return ((b.value && (e != null && e.length) ? e.map((c) => Object.keys(c)[0]) : (d = n.value) == null ? void 0 : d.securitySchemes) ?? []).map((c) => _[c]);
|
|
38
|
+
}), I = S(
|
|
39
|
+
() => {
|
|
40
|
+
const e = U.value.map(
|
|
41
|
+
(t) => M(t)
|
|
42
|
+
);
|
|
43
|
+
return b.value ? e : [
|
|
44
|
+
{ label: "Select auth", options: e },
|
|
45
|
+
{
|
|
46
|
+
label: "Add new auth",
|
|
47
|
+
options: Y
|
|
48
|
+
}
|
|
49
|
+
];
|
|
50
|
+
}
|
|
51
|
+
), h = S(
|
|
52
|
+
() => {
|
|
53
|
+
var e;
|
|
54
|
+
return ((e = i.value) == null ? void 0 : e.selectedSecuritySchemeUids.map(
|
|
55
|
+
(t) => M(_[t])
|
|
56
|
+
)) ?? [];
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
function O(e) {
|
|
60
|
+
var d, c;
|
|
61
|
+
if (!((d = n.value) != null && d.uid) || !((c = i.value) != null && c.uid)) return;
|
|
62
|
+
const t = e.find((l) => l.payload), o = e.filter((l) => !l.payload).map(({ id: l }) => l);
|
|
63
|
+
if (t != null && t.payload) {
|
|
64
|
+
const l = $.add(
|
|
65
|
+
t.payload,
|
|
66
|
+
n.value.uid
|
|
67
|
+
);
|
|
68
|
+
o.push(l.uid);
|
|
69
|
+
}
|
|
70
|
+
const m = o.filter((l) => !n.value.auth[l]);
|
|
71
|
+
V.edit(
|
|
72
|
+
n.value.uid,
|
|
73
|
+
"auth",
|
|
74
|
+
m.reduce((l, w) => (l[w] = X(_[w]), l), n.value.auth)
|
|
75
|
+
), g.edit(
|
|
76
|
+
i.value.uid,
|
|
77
|
+
"selectedSecuritySchemeUids",
|
|
78
|
+
o
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
const T = (e) => i.value && g.edit(
|
|
82
|
+
i.value.uid,
|
|
83
|
+
"selectedSecuritySchemeUids",
|
|
84
|
+
i.value.selectedSecuritySchemeUids.filter(
|
|
85
|
+
(t) => t !== e
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
function B(e) {
|
|
89
|
+
k.value = e, x.show();
|
|
90
|
+
}
|
|
91
|
+
return (e, t) => (p(), j(L, {
|
|
92
|
+
class: "group/params",
|
|
93
|
+
itemCount: h.value.length
|
|
94
|
+
}, {
|
|
95
|
+
title: r(() => [
|
|
96
|
+
u("div", oe, A(e.title), 1)
|
|
97
|
+
]),
|
|
98
|
+
default: r(() => [
|
|
99
|
+
u("form", null, [
|
|
100
|
+
s(a(Z), {
|
|
101
|
+
class: "flex-1",
|
|
102
|
+
columns: [""]
|
|
103
|
+
}, {
|
|
104
|
+
default: r(() => [
|
|
105
|
+
s(a(ee), null, {
|
|
106
|
+
default: r(() => [
|
|
107
|
+
s(a(te), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
|
|
108
|
+
default: r(() => [
|
|
109
|
+
s(a(G), {
|
|
110
|
+
ref_key: "comboboxRef",
|
|
111
|
+
ref: R,
|
|
112
|
+
class: "text-xs w-full",
|
|
113
|
+
fullWidth: "",
|
|
114
|
+
isDeletable: "",
|
|
115
|
+
modelValue: h.value,
|
|
116
|
+
multiple: "",
|
|
117
|
+
options: I.value,
|
|
118
|
+
style: { "margin-left": "120px" },
|
|
119
|
+
teleport: "",
|
|
120
|
+
onDelete: B,
|
|
121
|
+
"onUpdate:modelValue": O
|
|
122
|
+
}, {
|
|
123
|
+
default: r(() => [
|
|
124
|
+
s(a(J), {
|
|
125
|
+
class: "h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start",
|
|
126
|
+
fullWidth: "",
|
|
127
|
+
variant: "ghost"
|
|
128
|
+
}, {
|
|
129
|
+
default: r(() => [
|
|
130
|
+
se,
|
|
131
|
+
h.value.length ? (p(), v("div", ae, [
|
|
132
|
+
ce,
|
|
133
|
+
u("div", ie, [
|
|
134
|
+
(p(!0), v(F, null, W(h.value, (o) => (p(), v("span", {
|
|
135
|
+
key: o.id,
|
|
136
|
+
class: "cm-pill flex items-center mx-0 h-fit"
|
|
137
|
+
}, [
|
|
138
|
+
q(A(o.label) + " ", 1),
|
|
139
|
+
s(a(D), {
|
|
140
|
+
class: "ml-1 cursor-pointer text-c-3 hover:text-c-1",
|
|
141
|
+
icon: "Close",
|
|
142
|
+
size: "xs",
|
|
143
|
+
onClick: z((m) => T(o.id), ["stop"])
|
|
144
|
+
}, null, 8, ["onClick"])
|
|
145
|
+
]))), 128))
|
|
146
|
+
]),
|
|
147
|
+
re
|
|
148
|
+
])) : (p(), v("div", ne, " None ")),
|
|
149
|
+
s(a(D), {
|
|
150
|
+
class: "min-w-3 ml-auto mr-2.5",
|
|
151
|
+
icon: "ChevronDown",
|
|
152
|
+
size: "xs"
|
|
153
|
+
})
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
})
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}, 8, ["modelValue", "options"])
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
})
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}),
|
|
166
|
+
s(Q)
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}),
|
|
170
|
+
s(K, {
|
|
171
|
+
scheme: k.value,
|
|
172
|
+
state: a(x),
|
|
173
|
+
onClose: t[0] || (t[0] = (o) => a(x).hide())
|
|
174
|
+
}, null, 8, ["scheme", "state"])
|
|
175
|
+
])
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
}, 8, ["itemCount"]));
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
export {
|
|
182
|
+
be as default
|
|
183
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
state: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
show: () => void;
|
|
5
|
+
hide: () => void;
|
|
6
|
+
};
|
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
close: () => void;
|
|
9
|
+
submit: (id: string) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
|
+
state: {
|
|
12
|
+
open: boolean;
|
|
13
|
+
show: () => void;
|
|
14
|
+
hide: () => void;
|
|
15
|
+
};
|
|
16
|
+
}>>> & {
|
|
17
|
+
onSubmit?: ((id: string) => any) | undefined;
|
|
18
|
+
onClose?: (() => any) | undefined;
|
|
19
|
+
}, {}, {}>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToOption<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=RequestAuthModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue"],"names":[],"mappings":";WAgMS;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;;;;;WAArD;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;;;;;AAgT9D,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,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=RequestExampleAuth.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestExampleAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue"],"names":[],"mappings":";AA0eA,wBAKG"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { defineComponent as w, computed as x, openBlock as d, createElementBlock as m, Fragment as s, renderList as g, createVNode as o, unref as r, withCtx as l, createBlock as V, createTextVNode as i, toDisplayString as T, createCommentVNode as y, capitalize as h } from "vue";
|
|
2
|
+
import c from "../RequestAuthDataTableInput.vue.js";
|
|
3
|
+
import B from "./OAuth2.vue.js";
|
|
4
|
+
import n from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
5
|
+
import S from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
6
|
+
import { isOauth2Example as E } from "../../libs/oauth2.js";
|
|
7
|
+
import { useWorkspace as F } from "../../../../store/store.js";
|
|
8
|
+
const Q = /* @__PURE__ */ w({
|
|
9
|
+
__name: "RequestExampleAuth",
|
|
10
|
+
setup(R) {
|
|
11
|
+
const { activeCollection: f, activeRequest: _, collectionMutators: U, securitySchemes: v } = F(), k = x(() => !f.value || !_.value ? [] : _.value.selectedSecuritySchemeUids.map((u) => ({
|
|
12
|
+
example: f.value.auth[u],
|
|
13
|
+
scheme: v[u]
|
|
14
|
+
})));
|
|
15
|
+
function $(u) {
|
|
16
|
+
return `${h(u.nameKey)}: ${u.type} ${u.type === "oauth2" ? u.flow.type : ""}`;
|
|
17
|
+
}
|
|
18
|
+
function p(u, b, e, t) {
|
|
19
|
+
var a;
|
|
20
|
+
(a = f.value) != null && a.uid && U.edit(
|
|
21
|
+
f.value.uid,
|
|
22
|
+
`auth.${u}.${e}`,
|
|
23
|
+
t
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
return (u, b) => (d(!0), m(s, null, g(k.value, ({ scheme: e, example: t }) => (d(), m(s, {
|
|
27
|
+
key: e.uid
|
|
28
|
+
}, [
|
|
29
|
+
o(r(n), { class: "group/delete" }, {
|
|
30
|
+
default: l(() => [
|
|
31
|
+
k.value.length > 1 ? (d(), V(r(S), {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "text-c-2 pl-2 text-xs font-medium flex items-center bg-b-2"
|
|
34
|
+
}, {
|
|
35
|
+
default: l(() => [
|
|
36
|
+
i(T($(e)), 1)
|
|
37
|
+
]),
|
|
38
|
+
_: 2
|
|
39
|
+
}, 1024)) : y("", !0)
|
|
40
|
+
]),
|
|
41
|
+
_: 2
|
|
42
|
+
}, 1024),
|
|
43
|
+
e.type === "http" && t.type === "http" ? (d(), m(s, { key: 0 }, [
|
|
44
|
+
e.scheme === "bearer" ? (d(), V(r(n), { key: 0 }, {
|
|
45
|
+
default: l(() => [
|
|
46
|
+
o(c, {
|
|
47
|
+
id: `http-bearer-token-${e.uid}`,
|
|
48
|
+
modelValue: t.token,
|
|
49
|
+
placeholder: "Token",
|
|
50
|
+
type: "password",
|
|
51
|
+
"onUpdate:modelValue": (a) => p(e.uid, t, "token", a)
|
|
52
|
+
}, {
|
|
53
|
+
default: l(() => [
|
|
54
|
+
i(" Bearer Token ")
|
|
55
|
+
]),
|
|
56
|
+
_: 2
|
|
57
|
+
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
58
|
+
]),
|
|
59
|
+
_: 2
|
|
60
|
+
}, 1024)) : e.scheme === "basic" ? (d(), m(s, { key: 1 }, [
|
|
61
|
+
o(r(n), null, {
|
|
62
|
+
default: l(() => [
|
|
63
|
+
o(c, {
|
|
64
|
+
id: `http-basic-username-${e.uid}`,
|
|
65
|
+
class: "text-c-2",
|
|
66
|
+
modelValue: t.username,
|
|
67
|
+
placeholder: "ScalarEnjoyer01",
|
|
68
|
+
required: "",
|
|
69
|
+
"onUpdate:modelValue": (a) => p(e.uid, t, "username", a)
|
|
70
|
+
}, {
|
|
71
|
+
default: l(() => [
|
|
72
|
+
i(" Username ")
|
|
73
|
+
]),
|
|
74
|
+
_: 2
|
|
75
|
+
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
76
|
+
]),
|
|
77
|
+
_: 2
|
|
78
|
+
}, 1024),
|
|
79
|
+
o(r(n), null, {
|
|
80
|
+
default: l(() => [
|
|
81
|
+
o(c, {
|
|
82
|
+
id: `http-basic-password-${e.uid}`,
|
|
83
|
+
modelValue: t.password,
|
|
84
|
+
placeholder: "xxxxxx",
|
|
85
|
+
type: "password",
|
|
86
|
+
"onUpdate:modelValue": (a) => p(e.uid, t, "password", a)
|
|
87
|
+
}, {
|
|
88
|
+
default: l(() => [
|
|
89
|
+
i(" Password ")
|
|
90
|
+
]),
|
|
91
|
+
_: 2
|
|
92
|
+
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
93
|
+
]),
|
|
94
|
+
_: 2
|
|
95
|
+
}, 1024)
|
|
96
|
+
], 64)) : y("", !0)
|
|
97
|
+
], 64)) : e.type === "apiKey" && t.type === "apiKey" ? (d(), m(s, { key: 1 }, [
|
|
98
|
+
o(r(n), null, {
|
|
99
|
+
default: l(() => [
|
|
100
|
+
o(c, {
|
|
101
|
+
id: `api-key-name-${e.uid}`,
|
|
102
|
+
modelValue: t.name,
|
|
103
|
+
placeholder: "api-key",
|
|
104
|
+
"onUpdate:modelValue": (a) => p(e.uid, t, "name", a)
|
|
105
|
+
}, {
|
|
106
|
+
default: l(() => [
|
|
107
|
+
i(" Name ")
|
|
108
|
+
]),
|
|
109
|
+
_: 2
|
|
110
|
+
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
111
|
+
]),
|
|
112
|
+
_: 2
|
|
113
|
+
}, 1024),
|
|
114
|
+
o(r(n), null, {
|
|
115
|
+
default: l(() => [
|
|
116
|
+
o(c, {
|
|
117
|
+
id: `api-key-value-add-${e.uid}`,
|
|
118
|
+
modelValue: t.value,
|
|
119
|
+
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
120
|
+
"onUpdate:modelValue": (a) => p(e.uid, t, "value", a)
|
|
121
|
+
}, {
|
|
122
|
+
default: l(() => [
|
|
123
|
+
i(" Value ")
|
|
124
|
+
]),
|
|
125
|
+
_: 2
|
|
126
|
+
}, 1032, ["id", "modelValue", "onUpdate:modelValue"])
|
|
127
|
+
]),
|
|
128
|
+
_: 2
|
|
129
|
+
}, 1024)
|
|
130
|
+
], 64)) : e.type === "oauth2" && r(E)(t) ? (d(), V(B, {
|
|
131
|
+
key: 2,
|
|
132
|
+
example: t,
|
|
133
|
+
scheme: e
|
|
134
|
+
}, null, 8, ["example", "scheme"])) : y("", !0)
|
|
135
|
+
], 64))), 128));
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
export {
|
|
139
|
+
Q as default
|
|
140
|
+
};
|
|
@@ -29,9 +29,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
29
29
|
readOnly: boolean;
|
|
30
30
|
}>>> & {
|
|
31
31
|
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
32
|
-
onSelectVariable?: ((value: string) => any) | undefined;
|
|
33
32
|
onInputFocus?: (() => any) | undefined;
|
|
34
33
|
onInputBlur?: (() => any) | undefined;
|
|
34
|
+
onSelectVariable?: ((value: string) => any) | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
required: boolean;
|
|
37
37
|
readOnly: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":";WAwbS,MAAM;WACN,MAAM;eACF,GAAG,EAAE;;WAFT,MAAM;WACN,MAAM;eACF,GAAG,EAAE;;AAoyBlB,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"}
|