@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,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarDropdown as F, ScalarDropdownItem as
|
|
3
|
-
const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-4 w-4" },
|
|
1
|
+
import { defineComponent as b, computed as z, ref as i, watch as V, nextTick as A, openBlock as u, createElementBlock as p, withDirectives as N, withKeys as T, vModelText as j, createBlock as m, unref as l, withCtx as r, Fragment as I, renderList as E, createElementVNode as d, normalizeClass as K, createVNode as c, createTextVNode as R, toDisplayString as k, createCommentVNode as $ } from "vue";
|
|
2
|
+
import { ScalarDropdown as F, ScalarDropdownItem as y, ScalarIcon as f, ScalarDropdownDivider as L, ScalarButton as M } from "@scalar/components";
|
|
3
|
+
const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex items-center justify-center h-4 w-4" }, G = /* @__PURE__ */ d("span", null, "Add value", -1), P = /* @__PURE__ */ b({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
@@ -8,96 +8,95 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
|
|
|
8
8
|
canAddCustomValue: { type: Boolean, default: !0 }
|
|
9
9
|
},
|
|
10
10
|
emits: ["update:modelValue"],
|
|
11
|
-
setup(_, { emit:
|
|
12
|
-
const v = _, h =
|
|
13
|
-
|
|
11
|
+
setup(_, { emit: C }) {
|
|
12
|
+
const v = _, h = C, g = z(() => v.value ?? []), o = i(v.modelValue.toString()), s = i(!1), a = i(""), x = i(null);
|
|
13
|
+
V(a, (e) => {
|
|
14
14
|
h("update:modelValue", e);
|
|
15
15
|
});
|
|
16
16
|
const w = (e) => {
|
|
17
17
|
o.value = e, h("update:modelValue", e), s.value = !1;
|
|
18
|
-
},
|
|
18
|
+
}, S = () => {
|
|
19
19
|
a.value.trim() && (w(a.value), a.value = "");
|
|
20
|
-
},
|
|
20
|
+
}, D = () => {
|
|
21
21
|
a.value.trim() || (o.value = "", s.value = !1);
|
|
22
|
-
},
|
|
23
|
-
return
|
|
24
|
-
e &&
|
|
25
|
-
var
|
|
26
|
-
(
|
|
22
|
+
}, B = (e) => o.value === e;
|
|
23
|
+
return V(s, (e) => {
|
|
24
|
+
e && A(() => {
|
|
25
|
+
var n;
|
|
26
|
+
(n = x.value) == null || n.focus();
|
|
27
27
|
});
|
|
28
|
-
}), (e,
|
|
29
|
-
s.value ?
|
|
28
|
+
}), (e, n) => (u(), p("div", U, [
|
|
29
|
+
s.value ? N((u(), p("input", {
|
|
30
30
|
key: 0,
|
|
31
31
|
ref_key: "inputRef",
|
|
32
32
|
ref: x,
|
|
33
|
-
"onUpdate:modelValue":
|
|
33
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => a.value = t),
|
|
34
34
|
class: "border-none text-c-1 min-w-0 w-full px-2 py-1.5 outline-none",
|
|
35
35
|
placeholder: "Value",
|
|
36
36
|
type: "text",
|
|
37
|
-
onBlur:
|
|
38
|
-
onKeyup:
|
|
37
|
+
onBlur: D,
|
|
38
|
+
onKeyup: T(S, ["enter"])
|
|
39
39
|
}, null, 544)), [
|
|
40
|
-
[
|
|
41
|
-
]) : (
|
|
40
|
+
[j, a.value]
|
|
41
|
+
]) : (u(), m(l(F), {
|
|
42
42
|
key: 1,
|
|
43
43
|
resize: "",
|
|
44
44
|
value: o.value
|
|
45
45
|
}, {
|
|
46
46
|
items: r(() => [
|
|
47
|
-
(
|
|
47
|
+
(u(!0), p(I, null, E(g.value, (t) => (u(), m(l(y), {
|
|
48
48
|
key: t,
|
|
49
49
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
50
50
|
value: t,
|
|
51
|
-
onClick: (
|
|
51
|
+
onClick: (H) => w(t)
|
|
52
52
|
}, {
|
|
53
53
|
default: r(() => [
|
|
54
|
-
|
|
55
|
-
class:
|
|
54
|
+
d("div", {
|
|
55
|
+
class: K([
|
|
56
56
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
57
|
-
|
|
57
|
+
B(t) ? "bg-blue text-b-1" : "text-transparent"
|
|
58
58
|
])
|
|
59
59
|
}, [
|
|
60
|
-
|
|
60
|
+
c(l(f), {
|
|
61
61
|
class: "size-2.5",
|
|
62
62
|
icon: "Checkmark",
|
|
63
63
|
thickness: "3.5"
|
|
64
64
|
})
|
|
65
65
|
], 2),
|
|
66
|
-
|
|
66
|
+
R(" " + k(t), 1)
|
|
67
67
|
]),
|
|
68
68
|
_: 2
|
|
69
69
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
70
|
-
|
|
71
|
-
e.canAddCustomValue ? (
|
|
70
|
+
c(l(L)),
|
|
71
|
+
e.canAddCustomValue ? (u(), m(l(y), {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "flex items-center gap-1.5",
|
|
74
|
-
onClick:
|
|
74
|
+
onClick: n[1] || (n[1] = (t) => s.value = !0)
|
|
75
75
|
}, {
|
|
76
76
|
default: r(() => [
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
d("div", q, [
|
|
78
|
+
c(l(f), {
|
|
79
79
|
class: "h-2.5",
|
|
80
80
|
icon: "Add"
|
|
81
81
|
})
|
|
82
82
|
]),
|
|
83
|
-
|
|
83
|
+
G
|
|
84
84
|
]),
|
|
85
85
|
_: 1
|
|
86
|
-
})) :
|
|
86
|
+
})) : $("", !0)
|
|
87
87
|
]),
|
|
88
88
|
default: r(() => [
|
|
89
|
-
|
|
89
|
+
c(l(M), {
|
|
90
90
|
class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5",
|
|
91
91
|
fullWidth: "",
|
|
92
92
|
variant: "ghost"
|
|
93
93
|
}, {
|
|
94
94
|
default: r(() => [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
key: 0,
|
|
95
|
+
d("span", W, k(o.value || "Select a value"), 1),
|
|
96
|
+
c(l(f), {
|
|
98
97
|
icon: "ChevronDown",
|
|
99
98
|
size: "xs"
|
|
100
|
-
})
|
|
99
|
+
})
|
|
101
100
|
]),
|
|
102
101
|
_: 1
|
|
103
102
|
})
|
|
@@ -108,5 +107,5 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
|
|
|
108
107
|
}
|
|
109
108
|
});
|
|
110
109
|
export {
|
|
111
|
-
|
|
110
|
+
P as default
|
|
112
111
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { default as t } from "./DataTable.vue.js";
|
|
2
|
-
import { default as o } from "./
|
|
3
|
-
import { default as f } from "./
|
|
4
|
-
import { default as u } from "./
|
|
5
|
-
import { default as b } from "./
|
|
6
|
-
import { default as T } from "./
|
|
7
|
-
import { default as s } from "./
|
|
2
|
+
import { default as o } from "./DataTableCell.vue.js";
|
|
3
|
+
import { default as f } from "./DataTableCheckbox.vue.js";
|
|
4
|
+
import { default as u } from "./DataTableHeader.vue.js";
|
|
5
|
+
import { default as b } from "./DataTableInput.vue.js";
|
|
6
|
+
import { default as T } from "./DataTableRow.vue.js";
|
|
7
|
+
import { default as s } from "./DataTableText.vue.js";
|
|
8
8
|
import { default as c } from "./DataTableInputSelect.vue.js";
|
|
9
9
|
export {
|
|
10
10
|
t as DataTable,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
o as DataTableCell,
|
|
12
|
+
f as DataTableCheckbox,
|
|
13
|
+
u as DataTableHeader,
|
|
14
|
+
b as DataTableInput,
|
|
15
15
|
c as DataTableInputSelect,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
T as DataTableRow,
|
|
17
|
+
s as DataTableText
|
|
18
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as y, computed as S, openBlock as a, createElementBlock as f, createVNode as n, unref as e, withCtx as o, Fragment as N, renderList as D, createBlock as v, withModifiers as h, createElementVNode as r, normalizeClass as x, createTextVNode as l, toDisplayString as k, createCommentVNode as j } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ScalarDropdown as z, ScalarDropdownItem as d, ScalarIcon as c, ScalarDropdownDivider as B, ScalarButton as I } from "@scalar/components";
|
|
3
|
+
import { useRouter as V } from "vue-router";
|
|
4
|
+
import { useWorkspace as M } from "../../store/store.js";
|
|
5
5
|
const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = { class: "flex items-center justify-center h-4 w-4" }, O = /* @__PURE__ */ r("span", { class: "leading-none" }, "Manage Environments", -1), G = /* @__PURE__ */ y({
|
|
6
6
|
__name: "EnvironmentSelector",
|
|
7
7
|
setup(R) {
|
|
@@ -11,7 +11,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
|
|
|
11
11
|
workspaceMutators: w,
|
|
12
12
|
activeEnvironment: _,
|
|
13
13
|
isReadOnly: g
|
|
14
|
-
} =
|
|
14
|
+
} = M(), b = V(), m = (i) => {
|
|
15
15
|
w.edit(s.value.uid, "activeEnvironmentId", i);
|
|
16
16
|
}, C = () => b.push(`/workspace/${s.value.uid}/environment`), E = S(() => [
|
|
17
17
|
// Always add the default environment
|
|
@@ -19,7 +19,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
|
|
|
19
19
|
...Object.values(u).filter((i) => i.uid !== "default")
|
|
20
20
|
]);
|
|
21
21
|
return (i, p) => (a(), f("div", null, [
|
|
22
|
-
n(e(
|
|
22
|
+
n(e(z), null, {
|
|
23
23
|
items: o(() => [
|
|
24
24
|
(a(!0), f(N, null, D(E.value, (t) => (a(), v(e(d), {
|
|
25
25
|
key: t.uid,
|
|
@@ -64,7 +64,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
|
|
|
64
64
|
]),
|
|
65
65
|
_: 1
|
|
66
66
|
}),
|
|
67
|
-
n(e(
|
|
67
|
+
n(e(B)),
|
|
68
68
|
e(g) ? j("", !0) : (a(), v(e(d), {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "flex items-center gap-1.5",
|
|
@@ -83,7 +83,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
|
|
|
83
83
|
}))
|
|
84
84
|
]),
|
|
85
85
|
default: o(() => [
|
|
86
|
-
n(e(
|
|
86
|
+
n(e(I), {
|
|
87
87
|
class: "font-normal h-auto justify-start py-1.5 px-1.5 text-c-1 hover:bg-b-2 text-c-2 w-fit",
|
|
88
88
|
fullWidth: "",
|
|
89
89
|
variant: "ghost"
|
|
@@ -3,7 +3,7 @@ import h from "../DataTable/DataTable.vue.js";
|
|
|
3
3
|
import V from "../DataTable/DataTableInput.vue.js";
|
|
4
4
|
import b from "../DataTable/DataTableRow.vue.js";
|
|
5
5
|
import g from "../ViewLayout/ViewLayoutSection.vue.js";
|
|
6
|
-
const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5
|
|
6
|
+
const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p-2 md:p-5" }, w = /* @__PURE__ */ m({
|
|
7
7
|
__name: "Form",
|
|
8
8
|
props: {
|
|
9
9
|
title: {},
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
isDisable: boolean;
|
|
8
8
|
isEditable: boolean;
|
|
9
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
change: (value: "
|
|
10
|
+
change: (value: "head" | "get" | "delete" | "connect" | "options" | "patch" | "post" | "put" | "trace") => void;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
12
12
|
isSquare?: boolean;
|
|
13
13
|
method: string;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
17
17
|
isDisable: boolean;
|
|
18
18
|
isEditable: boolean;
|
|
19
19
|
}>>> & {
|
|
20
|
-
onChange?: ((value: "
|
|
20
|
+
onChange?: ((value: "head" | "get" | "delete" | "connect" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
isSquare: boolean;
|
|
23
23
|
isEditable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":";eAmGe,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;eAFT,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;cAFT,OAAO;gBAEL,OAAO;;AAiIxB,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 "./HttpMethod.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1a4c22a1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
import {
|
|
4
|
-
import { cva as B, cx as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as g, computed as a, openBlock as c, createBlock as y, unref as t, withCtx as q, createElementVNode as s, normalizeClass as l, toDisplayString as p, createElementBlock as w } from "vue";
|
|
2
|
+
import { ScalarListbox as k } from "@scalar/components";
|
|
3
|
+
import { getHttpMethodInfo as m, REQUEST_METHODS as x } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { cva as B, cx as f } from "cva";
|
|
5
|
+
const L = /* @__PURE__ */ g({
|
|
6
6
|
__name: "HttpMethod",
|
|
7
7
|
props: {
|
|
8
8
|
isSquare: { type: Boolean, default: !1 },
|
|
@@ -10,16 +10,15 @@ const O = /* @__PURE__ */ S({
|
|
|
10
10
|
isEditable: { type: Boolean, default: !1 }
|
|
11
11
|
},
|
|
12
12
|
emits: ["change"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}), u = B({
|
|
13
|
+
setup(b, { emit: h }) {
|
|
14
|
+
const r = b, v = h, o = a(() => m(r.method)), i = Object.entries(x).map(([e]) => ({
|
|
15
|
+
id: e,
|
|
16
|
+
label: e.charAt(0) + e.toLowerCase().slice(1),
|
|
17
|
+
color: m(e).color
|
|
18
|
+
})), n = a({
|
|
19
|
+
get: () => i.find(({ id: e }) => e === r.method),
|
|
20
|
+
set: (e) => (e == null ? void 0 : e.id) && v("change", e.id)
|
|
21
|
+
}), d = B({
|
|
23
22
|
base: "text-center font-code text-3xs justify-center items-center flex",
|
|
24
23
|
variants: {
|
|
25
24
|
isSquare: {
|
|
@@ -31,33 +30,34 @@ const O = /* @__PURE__ */ S({
|
|
|
31
30
|
false: "cusor-pointer"
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
|
-
}),
|
|
35
|
-
return (e,
|
|
33
|
+
}), E = a(() => o.value.short);
|
|
34
|
+
return (e, u) => e.isEditable ? (c(), y(t(k), {
|
|
36
35
|
key: 0,
|
|
37
|
-
modelValue:
|
|
38
|
-
"onUpdate:modelValue":
|
|
39
|
-
|
|
36
|
+
modelValue: n.value,
|
|
37
|
+
"onUpdate:modelValue": u[0] || (u[0] = (S) => n.value = S),
|
|
38
|
+
class: "mt-1 font-code uppercase",
|
|
39
|
+
options: t(i)
|
|
40
40
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
43
|
-
class:
|
|
41
|
+
default: q(() => [
|
|
42
|
+
s("div", {
|
|
43
|
+
class: l(["h-full", { "pointer-events-none": !e.isEditable }])
|
|
44
44
|
}, [
|
|
45
|
-
|
|
46
|
-
class:
|
|
45
|
+
s("button", {
|
|
46
|
+
class: l(["relative h-full", t(f)(t(d)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
|
|
47
47
|
type: "button"
|
|
48
48
|
}, [
|
|
49
|
-
|
|
49
|
+
s("span", null, p(E.value), 1)
|
|
50
50
|
], 2)
|
|
51
51
|
], 2)
|
|
52
52
|
]),
|
|
53
53
|
_: 1
|
|
54
|
-
}, 8, ["modelValue", "options"])) : (
|
|
54
|
+
}, 8, ["modelValue", "options"])) : (c(), w("div", {
|
|
55
55
|
key: 1,
|
|
56
|
-
class:
|
|
56
|
+
class: l(["relative gap-1 whitespace-nowrap", t(f)(t(d)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
|
|
57
57
|
type: "button"
|
|
58
|
-
},
|
|
58
|
+
}, p(o.value.short), 3));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
L as default
|
|
63
63
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type RequestMethod } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
/** Type guard which takes in a string and returns true if it is in fact an HTTPMethod */
|
|
3
|
+
export declare const isHTTPMethod: (method: string) => method is RequestMethod;
|
|
4
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,iCAAiC,CAAA;AAExC,yFAAyF;AACzF,eAAO,MAAM,YAAY,WAAY,MAAM,KAAG,MAAM,IAAI,aACN,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,cAAc,WAAW,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchModal.vue"],"names":[],"mappings":"AA8PA,OAAO,EACL,KAAK,UAAU,EAKhB,MAAM,oBAAoB,CAAA;;gBAUb,UAAU;;gBAAV,UAAU;;AA+WxB,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SearchModal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-85de57c6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as H } from "../../store/workspace.js";
|
|
1
|
+
import { defineComponent as D, ref as i, watch as y, computed as B, openBlock as w, createBlock as E, unref as d, withCtx as r, createElementVNode as h, createVNode as R, createTextVNode as m, toDisplayString as p, createElementBlock as N, Fragment as T, renderList as W, createSlots as L, pushScopeId as U, popScopeId as H } from "vue";
|
|
3
2
|
import { ScalarModal as K, ScalarSearchInput as P, ScalarSearchResultList as j, ScalarSearchResultItem as z } from "@scalar/components";
|
|
4
3
|
import { useMagicKeys as G, whenever as g } from "@vueuse/core";
|
|
5
4
|
import J from "fuse.js";
|
|
6
5
|
import { useRouter as O } from "vue-router";
|
|
7
6
|
import Q from "../HttpMethod/HttpMethod.vue.js";
|
|
8
|
-
|
|
7
|
+
import { useWorkspace as X } from "../../store/store.js";
|
|
8
|
+
const Y = (u) => (U("data-v-85de57c6"), u = u(), H(), u), Z = /* @__PURE__ */ Y(() => /* @__PURE__ */ h("div", { class: "ref-search-meta" }, [
|
|
9
9
|
/* @__PURE__ */ h("span", null, "↑↓ Navigate"),
|
|
10
10
|
/* @__PURE__ */ h("span", null, "⏎ Select")
|
|
11
|
-
], -1)),
|
|
11
|
+
], -1)), se = /* @__PURE__ */ D({
|
|
12
12
|
__name: "SearchModal",
|
|
13
13
|
props: {
|
|
14
14
|
modalState: {}
|
|
15
15
|
},
|
|
16
16
|
setup(u) {
|
|
17
|
-
const c = u,
|
|
17
|
+
const c = u, F = O(), { activeWorkspaceRequests: I, requests: V } = X(), v = G(), l = i([]), f = i([]), o = i(0), s = i(""), _ = i(null), S = new J(l.value, {
|
|
18
18
|
keys: ["title", "description", "body"]
|
|
19
|
-
}),
|
|
19
|
+
}), $ = () => {
|
|
20
20
|
s.value = "", o.value = 0, f.value = [];
|
|
21
|
-
},
|
|
21
|
+
}, b = (e) => {
|
|
22
22
|
l.value = e.map((a) => ({
|
|
23
23
|
id: a.uid,
|
|
24
24
|
title: a.summary ?? a.method,
|
|
@@ -26,10 +26,10 @@ const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(
|
|
|
26
26
|
httpVerb: a.method,
|
|
27
27
|
path: a.path
|
|
28
28
|
})), S.setCollection(l.value);
|
|
29
|
-
},
|
|
29
|
+
}, x = () => {
|
|
30
30
|
o.value = 0, f.value = S.search(s.value);
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
y(
|
|
33
33
|
() => c.modalState.open,
|
|
34
34
|
(e) => {
|
|
35
35
|
var a;
|
|
@@ -37,27 +37,29 @@ const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(
|
|
|
37
37
|
l.value.length > 0 && (l.value = [], S.setCollection(l.value));
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
(a =
|
|
40
|
+
(a = _.value) == null || a.focus(), $(), b(
|
|
41
|
+
I.value.map((t) => V[t])
|
|
42
|
+
);
|
|
41
43
|
}
|
|
42
|
-
),
|
|
44
|
+
), y(
|
|
43
45
|
I,
|
|
44
46
|
(e) => {
|
|
45
|
-
|
|
47
|
+
b(e.map((a) => V[a]));
|
|
46
48
|
},
|
|
47
49
|
{ immediate: !0 }
|
|
48
50
|
);
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
+
function C(e) {
|
|
52
|
+
F.push(e.item.id), c.modalState.hide();
|
|
51
53
|
}
|
|
52
|
-
const k =
|
|
54
|
+
const k = B(
|
|
53
55
|
() => n.value[o.value]
|
|
54
|
-
), n =
|
|
56
|
+
), n = B(
|
|
55
57
|
() => s.value.length === 0 ? l.value.map((e) => ({
|
|
56
58
|
item: e
|
|
57
59
|
})) : f.value
|
|
58
60
|
);
|
|
59
61
|
return g(v.enter, () => {
|
|
60
|
-
c.modalState.open && window &&
|
|
62
|
+
c.modalState.open && window && C(k.value);
|
|
61
63
|
}), g(v.ArrowDown, () => {
|
|
62
64
|
var e;
|
|
63
65
|
c.modalState.open && window && (o.value < n.value.length - 1 ? o.value++ : o.value = 0, (e = document.getElementById(`search-modal-${k.value.item.id}`)) == null || e.scrollIntoView({
|
|
@@ -70,20 +72,20 @@ const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(
|
|
|
70
72
|
behavior: "smooth",
|
|
71
73
|
block: "center"
|
|
72
74
|
}));
|
|
73
|
-
}), (e, a) => (w(),
|
|
75
|
+
}), (e, a) => (w(), E(d(K), {
|
|
74
76
|
state: e.modalState,
|
|
75
77
|
variant: "search"
|
|
76
78
|
}, {
|
|
77
79
|
default: r(() => [
|
|
78
80
|
h("div", {
|
|
79
81
|
ref_key: "searchModalRef",
|
|
80
|
-
ref:
|
|
82
|
+
ref: _,
|
|
81
83
|
class: "ref-search-container"
|
|
82
84
|
}, [
|
|
83
85
|
R(d(P), {
|
|
84
86
|
modelValue: s.value,
|
|
85
87
|
"onUpdate:modelValue": a[0] || (a[0] = (t) => s.value = t),
|
|
86
|
-
onInput:
|
|
88
|
+
onInput: x
|
|
87
89
|
}, null, 8, ["modelValue"])
|
|
88
90
|
], 512),
|
|
89
91
|
R(d(j), {
|
|
@@ -94,14 +96,14 @@ const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(
|
|
|
94
96
|
m(p(s.value), 1)
|
|
95
97
|
]),
|
|
96
98
|
default: r(() => [
|
|
97
|
-
(w(!0),
|
|
99
|
+
(w(!0), N(T, null, W(n.value, (t, M) => (w(), E(d(z), {
|
|
98
100
|
id: `#search-modal-${t.item.id}`,
|
|
99
101
|
key: t.refIndex,
|
|
100
|
-
active: o.value ===
|
|
102
|
+
active: o.value === M,
|
|
101
103
|
icon: "Terminal",
|
|
102
|
-
onClick: (
|
|
103
|
-
onFocus: (
|
|
104
|
-
},
|
|
104
|
+
onClick: (A) => C(t),
|
|
105
|
+
onFocus: (A) => o.value = M
|
|
106
|
+
}, L({
|
|
105
107
|
addon: r(() => [
|
|
106
108
|
R(d(Q), {
|
|
107
109
|
method: t.item.httpVerb ?? "get"
|
|
@@ -129,12 +131,12 @@ const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(
|
|
|
129
131
|
]),
|
|
130
132
|
_: 1
|
|
131
133
|
}, 8, ["noResults"]),
|
|
132
|
-
|
|
134
|
+
Z
|
|
133
135
|
]),
|
|
134
136
|
_: 1
|
|
135
137
|
}, 8, ["state"]));
|
|
136
138
|
}
|
|
137
139
|
});
|
|
138
140
|
export {
|
|
139
|
-
|
|
141
|
+
se as default
|
|
140
142
|
};
|