@scalar/api-client 2.0.64 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +64 -62
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +77 -69
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +121 -0
- package/dist/components/AddressBar/AddressBarServer.vue2.js +4 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +22 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue.js +57 -0
- package/dist/components/AddressBar/AddressBarServerItem.vue2.js +4 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -6
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +87 -82
- package/dist/components/CodeInput/codeVariableWidget.d.ts +4 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +70 -63
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +33 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.js +41 -0
- package/dist/components/CommandPalette/CommandActionForm.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +20 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.js +42 -0
- package/dist/components/CommandPalette/CommandActionInput.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +33 -56
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +88 -109
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -73
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +21 -2
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +122 -133
- package/dist/components/CommandPalette/{CommandPaletteFolder.vue.d.ts → CommandPaletteServer.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +92 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +7 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +87 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue2.js +4 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +33 -49
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +22 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +3 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +107 -101
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +13 -13
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +39 -40
- package/dist/components/DataTable/index.js +12 -12
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +7 -7
- package/dist/components/Form/Form.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +30 -30
- package/dist/components/HttpMethod/helpers.d.ts +4 -0
- package/dist/components/HttpMethod/helpers.d.ts.map +1 -0
- package/dist/components/HttpMethod/helpers.js +5 -0
- package/dist/components/HttpMethod/index.d.ts +1 -0
- package/dist/components/HttpMethod/index.d.ts.map +1 -1
- package/dist/components/HttpMethod/index.js +4 -2
- package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchModal.vue.js +2 -2
- package/dist/components/Search/SearchModal.vue2.js +29 -27
- package/dist/components/Search/useSearch.js +35 -35
- package/dist/components/SideNav/SideNavLink.vue.js +6 -6
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +14 -17
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts +22 -0
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts.map +1 -0
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.js +29 -0
- package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue2.js +4 -0
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +38 -35
- package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +37 -34
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +11 -11
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
- package/dist/components/SubpageHeader.vue.js +3 -3
- package/dist/components/SubpageHeader.vue2.js +3 -3
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +23 -23
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +21 -21
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -5
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +4 -4
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +39 -53
- package/dist/layouts/App/create-api-client-app.d.ts +2058 -1941
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +12 -12
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4590 -4356
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +18 -23
- package/dist/libs/create-client.d.ts +2086 -1972
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +85 -76
- package/dist/libs/environment-parser.d.ts +9 -0
- package/dist/libs/environment-parser.d.ts.map +1 -0
- package/dist/libs/environment-parser.js +17 -0
- package/dist/libs/errors.d.ts +21 -0
- package/dist/libs/errors.d.ts.map +1 -0
- package/dist/libs/errors.js +14 -0
- package/dist/libs/event-busses/command-palette-bus.d.ts +1 -1
- package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +4 -4
- package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.js +17 -19
- package/dist/libs/index.d.ts +5 -2
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +31 -24
- package/dist/libs/local-storage.d.ts +3 -3
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +24 -12
- package/dist/libs/normalize-headers.d.ts +14 -0
- package/dist/libs/normalize-headers.d.ts.map +1 -0
- package/dist/libs/normalize-headers.js +32 -0
- package/dist/libs/send-request.d.ts +28 -0
- package/dist/libs/send-request.d.ts.map +1 -0
- package/dist/libs/send-request.js +186 -0
- package/dist/libs/string-template.d.ts +19 -0
- package/dist/libs/string-template.d.ts.map +1 -0
- package/dist/libs/string-template.js +30 -0
- package/dist/router.d.ts +5 -0
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +36 -27
- package/dist/store/collections.d.ts +705 -0
- package/dist/store/collections.d.ts.map +1 -0
- package/dist/store/collections.js +63 -0
- package/dist/store/cookies.d.ts +135 -0
- package/dist/store/cookies.d.ts.map +1 -0
- package/dist/store/cookies.js +29 -0
- package/dist/store/environment.d.ts +80 -0
- package/dist/store/environment.d.ts.map +1 -0
- package/dist/store/environment.js +39 -0
- package/dist/store/import-spec.d.ts +8 -0
- package/dist/store/import-spec.d.ts.map +1 -0
- package/dist/store/import-spec.js +45 -0
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +1 -1
- package/dist/store/request-example.d.ts +1111 -0
- package/dist/store/request-example.d.ts.map +1 -0
- package/dist/store/request-example.js +47 -0
- package/dist/store/requests.d.ts +371 -0
- package/dist/store/requests.d.ts.map +1 -0
- package/dist/store/requests.js +107 -0
- package/dist/store/router-params.d.ts +15 -0
- package/dist/store/router-params.d.ts.map +1 -0
- package/dist/store/router-params.js +21 -0
- package/dist/store/security-schemes.d.ts +616 -0
- package/dist/store/security-schemes.d.ts.map +1 -0
- package/dist/store/security-schemes.js +68 -0
- package/dist/store/servers.d.ts +99 -0
- package/dist/store/servers.d.ts.map +1 -0
- package/dist/store/servers.js +46 -0
- package/dist/store/store-context.d.ts +29 -0
- package/dist/store/store-context.d.ts.map +1 -0
- package/dist/store/store.d.ts +7504 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +200 -0
- package/dist/store/tags.d.ts +169 -0
- package/dist/store/tags.d.ts.map +1 -0
- package/dist/store/tags.js +57 -0
- package/dist/store/workspace.d.ts +93 -7150
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +49 -543
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +2 -2
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +10 -10
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +21 -23
- package/dist/views/Environment/Environment.vue2.js +27 -28
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +11 -5
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +79 -59
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +87 -318
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +36 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +59 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue2.js +4 -0
- package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue.d.ts +3 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +216 -0
- package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -0
- package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +183 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +30 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +3 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +140 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +4 -0
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +167 -186
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +49 -49
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +26 -22
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +103 -102
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +5 -5
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.d.ts +30 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebar.vue.js +7 -0
- package/dist/views/Request/RequestSidebar.vue2.js +179 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +6 -7
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +283 -254
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -5
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +9 -7
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +24 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSubpageHeader.vue.js +7 -0
- package/dist/views/Request/RequestSubpageHeader.vue2.js +48 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +17 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +37 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +69 -90
- package/dist/views/Request/components/index.d.ts +0 -1
- package/dist/views/Request/components/index.d.ts.map +1 -1
- package/dist/views/Request/components/index.js +2 -4
- package/dist/views/Request/consts/new-auth-options.d.ts +11 -1
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.js +17 -7
- package/dist/views/Request/handle-drag.d.ts +8 -0
- package/dist/views/Request/handle-drag.d.ts.map +1 -0
- package/dist/views/Request/handle-drag.js +56 -0
- package/dist/views/Request/libs/auth.d.ts +35 -0
- package/dist/views/Request/libs/auth.d.ts.map +1 -0
- package/dist/views/Request/libs/auth.js +14 -0
- package/dist/views/Request/libs/index.d.ts +1 -0
- package/dist/views/Request/libs/index.d.ts.map +1 -1
- package/dist/views/Request/libs/index.js +7 -3
- package/dist/views/Request/libs/oauth2.d.ts +12 -3
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +42 -27
- package/dist/views/Servers/ServerForm.vue.js +22 -22
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +17 -14
- package/package.json +9 -9
- package/dist/components/CodeInput/codeDropdownWidget.d.ts +0 -32
- package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +0 -1
- package/dist/components/CodeInput/codeDropdownWidget.js +0 -121
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +0 -106
- package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +0 -4
- package/dist/errors.d.ts +0 -5
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -7
- package/dist/libs/normalizeHeaders.d.ts +0 -11
- package/dist/libs/normalizeHeaders.d.ts.map +0 -1
- package/dist/libs/normalizeHeaders.js +0 -25
- package/dist/libs/pathParams.d.ts +0 -10
- package/dist/libs/pathParams.d.ts.map +0 -1
- package/dist/libs/pathParams.js +0 -36
- package/dist/libs/sendRequest.d.ts +0 -14
- package/dist/libs/sendRequest.d.ts.map +0 -1
- package/dist/libs/sendRequest.js +0 -163
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth.vue2.js +0 -351
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/views/Request/components/OAuth2.vue.js +0 -208
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +0 -1
- /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue2.js +0 -0
- /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue2.js +0 -0
- /package/dist/views/Request/RequestSection/{RequestAuth.vue.d.ts → RequestAuth/RequestAuth.vue.d.ts} +0 -0
|
@@ -1,130 +1,117 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { defineComponent as P, ref as c, computed as g, openBlock as x, createBlock as h, withCtx as u, createElementVNode as f, createVNode as i, unref as n, normalizeClass as C, toDisplayString as V, createCommentVNode as W, createTextVNode as j } from "vue";
|
|
2
|
+
import E from "../HttpMethod/HttpMethod.vue.js";
|
|
3
|
+
import { ScalarListbox as q, ScalarButton as _, ScalarIcon as w } from "@scalar/components";
|
|
4
|
+
import { useToasts as H } from "@scalar/use-toasts";
|
|
5
|
+
import { useRouter as I } from "vue-router";
|
|
6
|
+
import L from "./CommandActionForm.vue.js";
|
|
7
|
+
import A from "./CommandActionInput.vue.js";
|
|
8
|
+
import { isHTTPMethod as F } from "../HttpMethod/helpers.js";
|
|
9
|
+
import { useWorkspace as G } from "../../store/store.js";
|
|
10
|
+
const J = { class: "flex gap-2" }, le = /* @__PURE__ */ P({
|
|
11
11
|
__name: "CommandPaletteRequest",
|
|
12
|
+
props: {
|
|
13
|
+
metaData: {}
|
|
14
|
+
},
|
|
12
15
|
emits: ["close"],
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var t;
|
|
16
|
+
setup(D, { emit: S }) {
|
|
17
|
+
const r = D, k = S, { push: M } = I(), { toast: N } = H(), {
|
|
18
|
+
activeCollection: R,
|
|
19
|
+
activeWorkspace: U,
|
|
20
|
+
activeWorkspaceCollections: b,
|
|
21
|
+
requestMutators: T,
|
|
22
|
+
activeRequest: y,
|
|
23
|
+
tags: $
|
|
24
|
+
} = G(), o = c(""), d = c("get"), v = g(
|
|
25
|
+
() => b.value.map((t) => {
|
|
26
|
+
var e;
|
|
25
27
|
return {
|
|
26
|
-
id:
|
|
27
|
-
label: ((
|
|
28
|
+
id: t.uid,
|
|
29
|
+
label: ((e = t.info) == null ? void 0 : e.title) ?? "Unititled Collection"
|
|
28
30
|
};
|
|
29
31
|
})
|
|
30
|
-
),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
] : [];
|
|
45
|
-
}) : []
|
|
32
|
+
), m = g(
|
|
33
|
+
() => b.value.flatMap(
|
|
34
|
+
(t) => {
|
|
35
|
+
var e;
|
|
36
|
+
return t.uid === ((e = l.value) == null ? void 0 : e.id) ? t.tags.flatMap((a) => {
|
|
37
|
+
const p = $[a];
|
|
38
|
+
return p ? [
|
|
39
|
+
{
|
|
40
|
+
id: p.uid,
|
|
41
|
+
label: p.name
|
|
42
|
+
}
|
|
43
|
+
] : [];
|
|
44
|
+
}) : [];
|
|
45
|
+
}
|
|
46
46
|
)
|
|
47
|
-
),
|
|
48
|
-
|
|
49
|
-
(
|
|
50
|
-
var
|
|
51
|
-
return e.
|
|
47
|
+
), l = c(
|
|
48
|
+
r.metaData ? v.value.find(
|
|
49
|
+
(t) => {
|
|
50
|
+
var e, a;
|
|
51
|
+
return t.id === ((e = r.metaData) == null ? void 0 : e.itemUid) || t.id === ((a = r.metaData) == null ? void 0 : a.parentUid);
|
|
52
52
|
}
|
|
53
|
-
)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
) : v.value.find(
|
|
54
|
+
(t) => {
|
|
55
|
+
var e;
|
|
56
|
+
return t.id === ((e = R.value) == null ? void 0 : e.uid);
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
), s = c(
|
|
60
|
+
r.metaData ? m.value.find((t) => {
|
|
61
|
+
var e;
|
|
62
|
+
return t.id === ((e = r.metaData) == null ? void 0 : e.itemUid);
|
|
63
|
+
}) : m.value.find((t) => {
|
|
64
|
+
var e, a;
|
|
65
|
+
return t.label === ((a = (e = y.value) == null ? void 0 : e.tags) == null ? void 0 : a[0]);
|
|
66
|
+
})
|
|
67
|
+
), z = (t) => d.value = t, B = () => {
|
|
68
|
+
var e;
|
|
69
|
+
if (!o.value.trim()) {
|
|
70
|
+
N("Please enter a name before creating a request.", "error");
|
|
67
71
|
return;
|
|
68
72
|
}
|
|
69
|
-
if (!
|
|
70
|
-
|
|
73
|
+
if (!((e = l.value) != null && e.id) || !F(d.value))
|
|
74
|
+
return;
|
|
75
|
+
const t = T.add(
|
|
71
76
|
{
|
|
72
77
|
path: "",
|
|
73
|
-
method:
|
|
74
|
-
description:
|
|
75
|
-
operationId:
|
|
76
|
-
summary:
|
|
77
|
-
tags: [
|
|
78
|
+
method: d.value,
|
|
79
|
+
description: o.value,
|
|
80
|
+
operationId: o.value,
|
|
81
|
+
summary: o.value,
|
|
82
|
+
tags: s.value ? [s.value.label] : []
|
|
78
83
|
},
|
|
79
|
-
|
|
84
|
+
l.value.id
|
|
80
85
|
);
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
id: "requestname",
|
|
91
|
-
ref_key: "requestInput",
|
|
92
|
-
ref: g,
|
|
93
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) => a.value = l),
|
|
94
|
-
autocomplete: "off",
|
|
95
|
-
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
96
|
-
"data-form-type": "other",
|
|
97
|
-
"data-lpignore": "true",
|
|
98
|
-
label: "Request Name",
|
|
99
|
-
placeholder: "Request Name",
|
|
100
|
-
onKeydown: G(H(w, ["prevent"]), ["enter"])
|
|
101
|
-
}, null, 40, ae), [
|
|
102
|
-
[L, a.value]
|
|
103
|
-
])
|
|
104
|
-
]),
|
|
105
|
-
n("div", oe, [
|
|
106
|
-
n("div", se, [
|
|
107
|
-
s(Q, {
|
|
86
|
+
t && M(`/workspace/${U.value.uid}/request/${t.uid}`), k("close");
|
|
87
|
+
};
|
|
88
|
+
return (t, e) => (x(), h(L, {
|
|
89
|
+
disabled: !o.value.trim(),
|
|
90
|
+
onSubmit: B
|
|
91
|
+
}, {
|
|
92
|
+
options: u(() => [
|
|
93
|
+
f("div", J, [
|
|
94
|
+
i(E, {
|
|
108
95
|
isEditable: !0,
|
|
109
96
|
isSquare: "",
|
|
110
|
-
method:
|
|
111
|
-
onChange:
|
|
97
|
+
method: d.value,
|
|
98
|
+
onChange: z
|
|
112
99
|
}, null, 8, ["method"]),
|
|
113
|
-
|
|
114
|
-
modelValue:
|
|
115
|
-
"onUpdate:modelValue":
|
|
116
|
-
options:
|
|
100
|
+
i(n(q), {
|
|
101
|
+
modelValue: l.value,
|
|
102
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => l.value = a),
|
|
103
|
+
options: v.value
|
|
117
104
|
}, {
|
|
118
|
-
default:
|
|
119
|
-
|
|
105
|
+
default: u(() => [
|
|
106
|
+
i(n(_), {
|
|
120
107
|
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
121
108
|
variant: "outlined"
|
|
122
109
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
|
|
125
|
-
class:
|
|
126
|
-
},
|
|
127
|
-
|
|
110
|
+
default: u(() => [
|
|
111
|
+
f("span", {
|
|
112
|
+
class: C(l.value ? "text-c-1" : "text-c-3")
|
|
113
|
+
}, V(l.value ? l.value.label : "Select Collection"), 3),
|
|
114
|
+
i(n(w), {
|
|
128
115
|
class: "text-c-3",
|
|
129
116
|
icon: "ChevronDown",
|
|
130
117
|
size: "xs"
|
|
@@ -135,22 +122,22 @@ const ee = { class: "flex w-full flex-col gap-3" }, te = { class: "gap-3 rounded
|
|
|
135
122
|
]),
|
|
136
123
|
_: 1
|
|
137
124
|
}, 8, ["modelValue", "options"]),
|
|
138
|
-
|
|
125
|
+
m.value.length ? (x(), h(n(q), {
|
|
139
126
|
key: 0,
|
|
140
|
-
modelValue:
|
|
141
|
-
"onUpdate:modelValue":
|
|
142
|
-
options:
|
|
127
|
+
modelValue: s.value,
|
|
128
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => s.value = a),
|
|
129
|
+
options: m.value
|
|
143
130
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
131
|
+
default: u(() => [
|
|
132
|
+
i(n(_), {
|
|
146
133
|
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
147
134
|
variant: "outlined"
|
|
148
135
|
}, {
|
|
149
|
-
default:
|
|
150
|
-
|
|
151
|
-
class:
|
|
152
|
-
},
|
|
153
|
-
|
|
136
|
+
default: u(() => [
|
|
137
|
+
f("span", {
|
|
138
|
+
class: C(s.value ? "text-c-1" : "text-c-3")
|
|
139
|
+
}, V(s.value ? s.value.label : "Select Tag"), 3),
|
|
140
|
+
i(n(w), {
|
|
154
141
|
class: "text-c-3",
|
|
155
142
|
icon: "ChevronDown",
|
|
156
143
|
size: "xs"
|
|
@@ -160,22 +147,24 @@ const ee = { class: "flex w-full flex-col gap-3" }, te = { class: "gap-3 rounded
|
|
|
160
147
|
})
|
|
161
148
|
]),
|
|
162
149
|
_: 1
|
|
163
|
-
}, 8, ["modelValue", "options"])) :
|
|
164
|
-
])
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
]),
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
150
|
+
}, 8, ["modelValue", "options"])) : W("", !0)
|
|
151
|
+
])
|
|
152
|
+
]),
|
|
153
|
+
submit: u(() => [
|
|
154
|
+
j("Create Request")
|
|
155
|
+
]),
|
|
156
|
+
default: u(() => [
|
|
157
|
+
i(A, {
|
|
158
|
+
modelValue: o.value,
|
|
159
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => o.value = a),
|
|
160
|
+
label: "Request Name",
|
|
161
|
+
placeholder: "Request Name"
|
|
162
|
+
}, null, 8, ["modelValue"])
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["disabled"]));
|
|
177
166
|
}
|
|
178
167
|
});
|
|
179
168
|
export {
|
|
180
|
-
|
|
169
|
+
le as default
|
|
181
170
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPaletteServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteServer.vue"],"names":[],"mappings":";;;;;AAqSA,wBAMG"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { defineComponent as S, ref as u, computed as C, openBlock as _, createBlock as V, withCtx as r, createVNode as i, unref as s, createElementVNode as U, normalizeClass as g, toDisplayString as k, createTextVNode as w } from "vue";
|
|
2
|
+
import { ScalarListbox as h, ScalarButton as B, ScalarIcon as D } from "@scalar/components";
|
|
3
|
+
import { useToasts as L } from "@scalar/use-toasts";
|
|
4
|
+
import M from "./CommandActionForm.vue.js";
|
|
5
|
+
import N from "./CommandActionInput.vue.js";
|
|
6
|
+
import { useWorkspace as y } from "../../store/store.js";
|
|
7
|
+
const E = /* @__PURE__ */ S({
|
|
8
|
+
__name: "CommandPaletteServer",
|
|
9
|
+
emits: ["close"],
|
|
10
|
+
setup(z, { emit: c }) {
|
|
11
|
+
const d = c, { toast: m } = L(), {
|
|
12
|
+
activeCollection: v,
|
|
13
|
+
activeWorkspaceCollections: f,
|
|
14
|
+
collectionMutators: p,
|
|
15
|
+
serverMutators: b
|
|
16
|
+
} = y(), a = u(""), n = C(
|
|
17
|
+
() => f.value.flatMap(
|
|
18
|
+
(t) => {
|
|
19
|
+
var e, l;
|
|
20
|
+
return ((e = t.info) == null ? void 0 : e.title) === "Drafts" ? [] : {
|
|
21
|
+
id: t.uid,
|
|
22
|
+
label: ((l = t.info) == null ? void 0 : l.title) ?? "Unititled Collection"
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
), o = u(
|
|
27
|
+
n.value.find(
|
|
28
|
+
(t) => {
|
|
29
|
+
var e;
|
|
30
|
+
return t.id === ((e = v.value) == null ? void 0 : e.uid);
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
), x = () => {
|
|
34
|
+
var l;
|
|
35
|
+
if (!a.value.trim()) {
|
|
36
|
+
m("Please enter a valid url before creating a server.", "error");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const t = (l = o.value) == null ? void 0 : l.id;
|
|
40
|
+
if (!t) return;
|
|
41
|
+
const e = b.add({ url: a.value }, t);
|
|
42
|
+
p.edit(t, "selectedServerUid", e.uid), d("close");
|
|
43
|
+
};
|
|
44
|
+
return (t, e) => (_(), V(M, {
|
|
45
|
+
disabled: !a.value.trim(),
|
|
46
|
+
onSubmit: x
|
|
47
|
+
}, {
|
|
48
|
+
options: r(() => [
|
|
49
|
+
i(s(h), {
|
|
50
|
+
modelValue: o.value,
|
|
51
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => o.value = l),
|
|
52
|
+
options: n.value
|
|
53
|
+
}, {
|
|
54
|
+
default: r(() => [
|
|
55
|
+
i(s(B), {
|
|
56
|
+
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
57
|
+
variant: "outlined"
|
|
58
|
+
}, {
|
|
59
|
+
default: r(() => [
|
|
60
|
+
U("span", {
|
|
61
|
+
class: g(o.value ? "text-c-1" : "text-c-3")
|
|
62
|
+
}, k(o.value ? o.value.label : "Select Collection"), 3),
|
|
63
|
+
i(s(D), {
|
|
64
|
+
class: "text-c-3",
|
|
65
|
+
icon: "ChevronDown",
|
|
66
|
+
size: "xs"
|
|
67
|
+
})
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
})
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["modelValue", "options"])
|
|
74
|
+
]),
|
|
75
|
+
submit: r(() => [
|
|
76
|
+
w("Create Server")
|
|
77
|
+
]),
|
|
78
|
+
default: r(() => [
|
|
79
|
+
i(N, {
|
|
80
|
+
modelValue: a.value,
|
|
81
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => a.value = l),
|
|
82
|
+
label: "Server URL",
|
|
83
|
+
placeholder: "Server URL"
|
|
84
|
+
}, null, 8, ["modelValue"])
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["disabled"]));
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
E as default
|
|
92
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
close: () => void;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
4
|
+
onClose?: (() => any) | undefined;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=CommandPaletteTag.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPaletteTag.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteTag.vue"],"names":[],"mappings":";;;;;AA+QA,wBAMG"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineComponent as g, computed as x, ref as u, openBlock as C, createBlock as _, withCtx as o, createVNode as n, unref as i, createElementVNode as V, normalizeClass as S, toDisplayString as T, createTextVNode as N } from "vue";
|
|
2
|
+
import { ScalarListbox as k, ScalarButton as w, ScalarIcon as h } from "@scalar/components";
|
|
3
|
+
import { useToasts as B } from "@scalar/use-toasts";
|
|
4
|
+
import y from "./CommandActionForm.vue.js";
|
|
5
|
+
import z from "./CommandActionInput.vue.js";
|
|
6
|
+
import { useWorkspace as D } from "../../store/store.js";
|
|
7
|
+
const L = /* @__PURE__ */ g({
|
|
8
|
+
__name: "CommandPaletteTag",
|
|
9
|
+
emits: ["close"],
|
|
10
|
+
setup(P, { emit: m }) {
|
|
11
|
+
const c = m, { activeWorkspaceCollections: d, activeCollection: p, tagMutators: f } = D(), { toast: v } = B(), r = x(
|
|
12
|
+
() => d.value.map((l) => {
|
|
13
|
+
var e;
|
|
14
|
+
return {
|
|
15
|
+
id: l.uid,
|
|
16
|
+
label: ((e = l.info) == null ? void 0 : e.title) ?? ""
|
|
17
|
+
};
|
|
18
|
+
})
|
|
19
|
+
), t = u(""), a = u(
|
|
20
|
+
r.value.find(
|
|
21
|
+
(l) => {
|
|
22
|
+
var e;
|
|
23
|
+
return l.id === ((e = p.value) == null ? void 0 : e.uid);
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
), b = () => {
|
|
27
|
+
if (!t.value) {
|
|
28
|
+
v("Please enter a name before creating a tag.", "error");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (!t.value || !a.value) return;
|
|
32
|
+
f.add(
|
|
33
|
+
{
|
|
34
|
+
name: t.value
|
|
35
|
+
},
|
|
36
|
+
a.value.id
|
|
37
|
+
) && c("close");
|
|
38
|
+
};
|
|
39
|
+
return (l, e) => (C(), _(y, {
|
|
40
|
+
disabled: !t.value.trim(),
|
|
41
|
+
onSubmit: b
|
|
42
|
+
}, {
|
|
43
|
+
options: o(() => [
|
|
44
|
+
n(i(k), {
|
|
45
|
+
modelValue: a.value,
|
|
46
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => a.value = s),
|
|
47
|
+
options: r.value
|
|
48
|
+
}, {
|
|
49
|
+
default: o(() => [
|
|
50
|
+
n(i(w), {
|
|
51
|
+
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
52
|
+
variant: "outlined"
|
|
53
|
+
}, {
|
|
54
|
+
default: o(() => [
|
|
55
|
+
V("span", {
|
|
56
|
+
class: S(a.value ? "text-c-1" : "text-c-3")
|
|
57
|
+
}, T(a.value ? a.value.label : "Select Collection"), 3),
|
|
58
|
+
n(i(h), {
|
|
59
|
+
class: "text-c-3",
|
|
60
|
+
icon: "ChevronDown",
|
|
61
|
+
size: "xs"
|
|
62
|
+
})
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["modelValue", "options"])
|
|
69
|
+
]),
|
|
70
|
+
submit: o(() => [
|
|
71
|
+
N("Create Tag")
|
|
72
|
+
]),
|
|
73
|
+
default: o(() => [
|
|
74
|
+
n(z, {
|
|
75
|
+
modelValue: t.value,
|
|
76
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => t.value = s),
|
|
77
|
+
label: "Tag Name",
|
|
78
|
+
placeholder: "Tag Name"
|
|
79
|
+
}, null, 8, ["modelValue"])
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
}, 8, ["disabled"]));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
L as default
|
|
87
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteWorkspace.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteWorkspace.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"CommandPaletteWorkspace.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteWorkspace.vue"],"names":[],"mappings":";;;;;AAoJA,wBAMG"}
|
|
@@ -1,58 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, null, -1), K = ["onKeydown"], E = { class: "flex" }, I = /* @__PURE__ */ o("div", { class: "flex flex-1 gap-2 max-h-8" }, null, -1), U = /* @__PURE__ */ d({
|
|
1
|
+
import { defineComponent as u, ref as i, openBlock as d, createBlock as f, withCtx as t, createTextVNode as k, createVNode as _ } from "vue";
|
|
2
|
+
import { useToasts as b } from "@scalar/use-toasts";
|
|
3
|
+
import { useRouter as w } from "vue-router";
|
|
4
|
+
import v from "./CommandActionForm.vue.js";
|
|
5
|
+
import N from "./CommandActionInput.vue.js";
|
|
6
|
+
import { useWorkspace as V } from "../../store/store.js";
|
|
7
|
+
const S = /* @__PURE__ */ u({
|
|
9
8
|
__name: "CommandPaletteWorkspace",
|
|
10
9
|
emits: ["close"],
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
name
|
|
10
|
+
setup(W, { emit: r }) {
|
|
11
|
+
const s = r, { push: m } = w(), { toast: c } = b(), { workspaceMutators: l } = V(), e = i(""), n = () => {
|
|
12
|
+
if (!e.value.trim()) {
|
|
13
|
+
c("Please enter a name before creating a workspace.", "error");
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const o = l.add({
|
|
17
|
+
name: e.value
|
|
15
18
|
});
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"onUpdate:modelValue":
|
|
29
|
-
autocomplete: "off",
|
|
30
|
-
autofocus: "",
|
|
31
|
-
class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
|
|
32
|
-
"data-form-type": "other",
|
|
33
|
-
"data-lpignore": "true",
|
|
19
|
+
m(`/workspace/${o.uid}`), s("close");
|
|
20
|
+
};
|
|
21
|
+
return (o, a) => (d(), f(v, {
|
|
22
|
+
disabled: !e.value.trim(),
|
|
23
|
+
onSubmit: n
|
|
24
|
+
}, {
|
|
25
|
+
submit: t(() => [
|
|
26
|
+
k("Create Workspace")
|
|
27
|
+
]),
|
|
28
|
+
default: t(() => [
|
|
29
|
+
_(N, {
|
|
30
|
+
modelValue: e.value,
|
|
31
|
+
"onUpdate:modelValue": a[0] || (a[0] = (p) => e.value = p),
|
|
34
32
|
label: "Workspace Name",
|
|
35
|
-
placeholder: "Workspace Name"
|
|
36
|
-
|
|
37
|
-
}, null, 40, K), [
|
|
38
|
-
[k, t.value]
|
|
39
|
-
])
|
|
33
|
+
placeholder: "Workspace Name"
|
|
34
|
+
}, null, 8, ["modelValue"])
|
|
40
35
|
]),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
v(b(C), {
|
|
44
|
-
class: "max-h-8 text-xs p-0 px-3",
|
|
45
|
-
onClick: s
|
|
46
|
-
}, {
|
|
47
|
-
default: y(() => [
|
|
48
|
-
g(" Continue ")
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
})
|
|
52
|
-
])
|
|
53
|
-
]));
|
|
36
|
+
_: 1
|
|
37
|
+
}, 8, ["disabled"]));
|
|
54
38
|
}
|
|
55
39
|
});
|
|
56
40
|
export {
|
|
57
|
-
|
|
41
|
+
S as default
|
|
58
42
|
};
|