@scalar/api-client 2.1.21 → 2.1.22
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 +21 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +4 -4
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +80 -80
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +3 -12
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +37 -37
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +3 -12
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +11 -44
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +8 -17
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +10 -10
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +7 -16
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +5 -5
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +7 -16
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +31 -31
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +5 -5
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +65 -65
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +7 -16
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +5 -5
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +33 -33
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +5 -5
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +21 -21
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +5 -5
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +14 -14
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +48 -56
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.d.ts +6 -15
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts +3 -12
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts +4 -25
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +7 -28
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +12 -37
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +7 -28
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +34 -34
- package/dist/components/DataTable/DataTableRow.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableText.vue.d.ts +3 -12
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +37 -37
- package/dist/components/Form/Form.vue.d.ts +3 -12
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.d.ts +3 -12
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +7 -32
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IconSelector.vue.d.ts +6 -15
- package/dist/components/IconSelector.vue.d.ts.map +1 -1
- package/dist/components/IconSelector.vue.js +14 -14
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +4 -4
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +20 -20
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts +1 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +6 -15
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +22 -22
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +6 -15
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +35 -35
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +3 -12
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +3 -12
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +4 -4
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +4 -4
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +7 -16
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +33 -33
- package/dist/components/ScalarAsciiArt.vue.d.ts +3 -12
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.d.ts +6 -15
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts +4 -25
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Search/useSearch.d.ts +4 -4
- package/dist/components/SideNav/SideHelp.vue.d.ts +1 -1
- package/dist/components/SideNav/SideHelp.vue.js +48 -48
- package/dist/components/SideNav/SideNav.vue.d.ts +1 -1
- package/dist/components/SideNav/SideNav.vue2.js +27 -27
- package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -12
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +3 -12
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +8 -17
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +7 -16
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts +7 -16
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +7 -16
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +8 -8
- package/dist/components/Sidebar/Sidebar.vue.d.ts +4 -25
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts +3 -12
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts +1 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +11 -34
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +6 -15
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +21 -21
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +6 -15
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +24 -24
- package/dist/components/SubpageHeader.vue.d.ts +1 -1
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.d.ts +3 -12
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +66 -66
- package/dist/components/TopNav/TopNavItem.vue.d.ts +11 -20
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue2.js +32 -32
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +4 -27
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.d.ts +1 -1
- package/dist/hooks/useFileDialog.d.ts +15 -0
- package/dist/hooks/useFileDialog.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts +4 -4
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +2 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/send-request.d.ts +5 -5
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +93 -99
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +4 -4
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts +1 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +15 -15
- package/dist/views/Cookies/CookieRaw.vue.d.ts +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +14 -14
- package/dist/views/Cookies/Cookies.vue.d.ts +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +2 -2
- package/dist/views/Environment/Environment.vue.d.ts +1 -1
- package/dist/views/Environment/Environment.vue2.js +29 -29
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +6 -15
- package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +6 -15
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +27 -27
- package/dist/views/Request/Request.vue.d.ts +4 -4
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +6 -15
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +14 -14
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +82 -82
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +31 -31
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +92 -92
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +7 -16
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +60 -60
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +11 -34
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +71 -71
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +34 -34
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +34 -34
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +14 -37
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +67 -67
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +3 -12
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.d.ts +7 -16
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +97 -97
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +9 -34
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +117 -117
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +6 -15
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +60 -60
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +9 -18
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +26 -26
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +26 -26
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +6 -15
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +15 -15
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +19 -19
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +35 -35
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +18 -18
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +12 -12
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +3 -12
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +42 -42
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +85 -85
- package/dist/views/Servers/ServerForm.vue.d.ts +1 -1
- package/dist/views/Servers/Servers.vue.d.ts +1 -1
- package/dist/views/Servers/Servers.vue2.js +29 -29
- package/dist/views/Settings/Settings.vue.d.ts +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +37 -37
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts +1 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.js +38 -38
- package/package.json +13 -18
|
@@ -4,21 +4,21 @@ declare function __VLS_template(): {
|
|
|
4
4
|
options?(_: {}): any;
|
|
5
5
|
submit?(_: {}): any;
|
|
6
6
|
};
|
|
7
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<{
|
|
8
8
|
loading?: ReturnType<typeof useLoadingState>;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
submit: () =>
|
|
12
|
-
cancel: () =>
|
|
13
|
-
back: (e: KeyboardEvent) =>
|
|
14
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
10
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
submit: () => any;
|
|
12
|
+
cancel: () => any;
|
|
13
|
+
back: (e: KeyboardEvent) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
15
15
|
loading?: ReturnType<typeof useLoadingState>;
|
|
16
16
|
disabled?: boolean;
|
|
17
|
-
}
|
|
17
|
+
}> & Readonly<{
|
|
18
18
|
onSubmit?: (() => any) | undefined;
|
|
19
19
|
onCancel?: (() => any) | undefined;
|
|
20
20
|
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
21
|
-
}, {}, {}>;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
23
23
|
export default _default;
|
|
24
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -26,13 +26,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
26
26
|
$slots: S;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
-
type __VLS_TypePropsToOption<T> = {
|
|
31
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
-
} : {
|
|
34
|
-
type: import('vue').PropType<T[K]>;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
29
|
//# sourceMappingURL=CommandActionForm.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandActionForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionForm.vue"],"names":[],"mappings":"AAsCA,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"CommandActionForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionForm.vue"],"names":[],"mappings":"AAsCA,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAA;AA0BvE,iBAAS,cAAc;qBA+DM,GAAG;qBACH,GAAG;oBACJ,GAAG;EAoB9B;AACD,QAAA,MAAM,eAAe;cA3GT,UAAU,CAAC,OAAO,eAAe,CAAC;eACjC,OAAO;;;;;;cADR,UAAU,CAAC,OAAO,eAAe,CAAC;eACjC,OAAO;;;;;kFAqHlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as i, createElementBlock as
|
|
1
|
+
import { defineComponent as n, openBlock as i, createElementBlock as d, withKeys as a, withModifiers as l, createElementVNode as t, renderSlot as s, createVNode as r, unref as m, withCtx as p, createTextVNode as f } from "vue";
|
|
2
2
|
import { ScalarButton as u } from "@scalar/components";
|
|
3
|
-
const
|
|
3
|
+
const b = { class: "flex flex-col rounded min-h-20 relative" }, x = { class: "flex gap-2" }, c = { class: "flex flex-1 max-h-8" }, h = /* @__PURE__ */ n({
|
|
4
4
|
__name: "CommandActionForm",
|
|
5
5
|
props: {
|
|
6
6
|
loading: {},
|
|
@@ -8,17 +8,17 @@ const c = { class: "flex flex-col rounded min-h-20 relative" }, b = { class: "fl
|
|
|
8
8
|
},
|
|
9
9
|
emits: ["submit", "cancel", "back"],
|
|
10
10
|
setup(g) {
|
|
11
|
-
return (e, o) => (i(),
|
|
11
|
+
return (e, o) => (i(), d("form", {
|
|
12
12
|
class: "flex w-full flex-col gap-3",
|
|
13
|
-
onKeydown: o[0] || (o[0] =
|
|
13
|
+
onKeydown: o[0] || (o[0] = a(l(() => {
|
|
14
14
|
}, ["stop"]), ["enter"])),
|
|
15
|
-
onSubmit: o[1] || (o[1] = l((
|
|
15
|
+
onSubmit: o[1] || (o[1] = l((v) => e.$emit("submit"), ["prevent", "stop"]))
|
|
16
16
|
}, [
|
|
17
|
-
t("div",
|
|
17
|
+
t("div", b, [
|
|
18
18
|
s(e.$slots, "default")
|
|
19
19
|
]),
|
|
20
|
-
t("div",
|
|
21
|
-
t("div",
|
|
20
|
+
t("div", x, [
|
|
21
|
+
t("div", c, [
|
|
22
22
|
s(e.$slots, "options")
|
|
23
23
|
]),
|
|
24
24
|
r(m(u), {
|
|
@@ -29,7 +29,7 @@ const c = { class: "flex flex-col rounded min-h-20 relative" }, b = { class: "fl
|
|
|
29
29
|
}, {
|
|
30
30
|
default: p(() => [
|
|
31
31
|
s(e.$slots, "submit", {}, () => [
|
|
32
|
-
f("Continue")
|
|
32
|
+
o[2] || (o[2] = f("Continue"))
|
|
33
33
|
])
|
|
34
34
|
]),
|
|
35
35
|
_: 3
|
|
@@ -39,5 +39,5 @@ const c = { class: "flex flex-col rounded min-h-20 relative" }, b = { class: "fl
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
h as default
|
|
43
43
|
};
|
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
modelValue?: string;
|
|
3
3
|
placeholder?: string;
|
|
4
|
-
}
|
|
5
|
-
"update:modelValue": (v: string) =>
|
|
6
|
-
onDelete: (event: KeyboardEvent) =>
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
4
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
+
"update:modelValue": (v: string) => any;
|
|
6
|
+
onDelete: (event: KeyboardEvent) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
8
8
|
modelValue?: string;
|
|
9
9
|
placeholder?: string;
|
|
10
|
-
}
|
|
10
|
+
}> & Readonly<{
|
|
11
11
|
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
12
12
|
onOnDelete?: ((event: KeyboardEvent) => any) | undefined;
|
|
13
|
-
}, {}, {}>;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
export default _default;
|
|
15
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
-
type __VLS_TypePropsToOption<T> = {
|
|
17
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
-
} : {
|
|
20
|
-
type: import('vue').PropType<T[K]>;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
15
|
//# sourceMappingURL=CommandActionInput.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandActionInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionInput.vue"],"names":[],"mappings":";iBA0De,MAAM;kBACL,MAAM;;;;;iBADP,MAAM;kBACL,MAAM;;;;;
|
|
1
|
+
{"version":3,"file":"CommandActionInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionInput.vue"],"names":[],"mappings":";iBA0De,MAAM;kBACL,MAAM;;;;;iBADP,MAAM;kBACL,MAAM;;;;;AAuGtB,wBAUG"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
-
close: () =>
|
|
3
|
-
back: (e: KeyboardEvent) =>
|
|
4
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
2
|
+
close: () => any;
|
|
3
|
+
back: (e: KeyboardEvent) => any;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
5
5
|
onClose?: (() => any) | undefined;
|
|
6
6
|
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
7
|
-
}, {}, {}>;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=CommandPaletteCollection.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteCollection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteCollection.vue"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"CommandPaletteCollection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteCollection.vue"],"names":[],"mappings":";;;;;;;AA+PA,wBASG"}
|
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
/** The request uid to pre-select */
|
|
3
3
|
metaData?: {
|
|
4
4
|
itemUid: string;
|
|
5
5
|
};
|
|
6
|
-
}
|
|
7
|
-
close: () =>
|
|
8
|
-
back: (e: KeyboardEvent) =>
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
6
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
close: () => any;
|
|
8
|
+
back: (e: KeyboardEvent) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
10
10
|
/** The request uid to pre-select */
|
|
11
11
|
metaData?: {
|
|
12
12
|
itemUid: string;
|
|
13
13
|
};
|
|
14
|
-
}
|
|
14
|
+
}> & Readonly<{
|
|
15
15
|
onClose?: (() => any) | undefined;
|
|
16
16
|
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
17
|
-
}, {}, {}>;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
export default _default;
|
|
19
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
-
type __VLS_TypePropsToOption<T> = {
|
|
21
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
-
} : {
|
|
24
|
-
type: import('vue').PropType<T[K]>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
19
|
//# sourceMappingURL=CommandPaletteExample.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":";IAiIE,oCAAoC;eACzB;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;;;;;IAD9B,oCAAoC;eACzB;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;;;;;
|
|
1
|
+
{"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":";IAiIE,oCAAoC;eACzB;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;;;;;IAD9B,oCAAoC;eACzB;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;;;;;AAqShC,wBAUG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, ref as f, openBlock as u, createBlock as v, withCtx as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as y, ref as f, openBlock as u, createBlock as v, withCtx as o, createVNode as s, unref as a, createElementVNode as x, createElementBlock as N, Fragment as V, renderList as B, createTextVNode as i, toDisplayString as b } from "vue";
|
|
2
|
+
import k from "../HttpMethod/HttpMethod.vue.js";
|
|
3
3
|
import { ScalarDropdown as R, ScalarDropdownItem as W, ScalarButton as j, ScalarIcon as z } from "@scalar/components";
|
|
4
4
|
import { useToasts as I } from "@scalar/use-toasts";
|
|
5
5
|
import { useRouter as M } from "vue-router";
|
|
@@ -12,69 +12,69 @@ const F = { class: "flex items-center gap-2" }, H = { class: "max-h-40 custom-sc
|
|
|
12
12
|
metaData: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["close", "back"],
|
|
15
|
-
setup(
|
|
15
|
+
setup(h, { emit: _ }) {
|
|
16
16
|
var d;
|
|
17
|
-
const w =
|
|
17
|
+
const w = h, c = _, { push: C } = M(), {
|
|
18
18
|
activeRequest: S,
|
|
19
19
|
activeWorkspace: D,
|
|
20
20
|
activeWorkspaceRequests: E,
|
|
21
21
|
requests: n,
|
|
22
22
|
requestExampleMutators: $
|
|
23
|
-
} = U(), { toast: g } = I(), r = f(""),
|
|
23
|
+
} = U(), { toast: g } = I(), r = f(""), l = f(
|
|
24
24
|
// Ensure we pre-select the correct request
|
|
25
25
|
n[((d = w.metaData) == null ? void 0 : d.itemUid) ?? ""] ?? S.value
|
|
26
|
-
), p = (m) =>
|
|
26
|
+
), p = (m) => l.value = m, q = () => {
|
|
27
27
|
if (!r.value) {
|
|
28
28
|
g("Please enter a name before creating an example.", "error");
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
const m = $.add(
|
|
32
|
-
|
|
32
|
+
l.value,
|
|
33
33
|
r.value
|
|
34
34
|
);
|
|
35
35
|
m && (C(
|
|
36
|
-
`/workspace/${D.value.uid}/request/${
|
|
36
|
+
`/workspace/${D.value.uid}/request/${l.value.uid}/examples/${m.uid}`
|
|
37
37
|
), c("close"));
|
|
38
38
|
};
|
|
39
|
-
return (m,
|
|
39
|
+
return (m, t) => (u(), v(P, {
|
|
40
40
|
disabled: !r.value.trim(),
|
|
41
41
|
onSubmit: q
|
|
42
42
|
}, {
|
|
43
|
-
options:
|
|
44
|
-
s(
|
|
43
|
+
options: o(() => [
|
|
44
|
+
s(a(R), {
|
|
45
45
|
placement: "bottom",
|
|
46
46
|
resize: ""
|
|
47
47
|
}, {
|
|
48
|
-
items:
|
|
48
|
+
items: o(() => [
|
|
49
49
|
x("div", H, [
|
|
50
|
-
(u(!0), N(V, null, B(
|
|
50
|
+
(u(!0), N(V, null, B(a(E), (e) => (u(), v(a(W), {
|
|
51
51
|
key: e,
|
|
52
52
|
class: "flex h-7 w-full items-center justify-between px-1 pr-[26px]",
|
|
53
|
-
onClick: (L) => p(
|
|
53
|
+
onClick: (L) => p(a(n)[e])
|
|
54
54
|
}, {
|
|
55
|
-
default:
|
|
56
|
-
i(b(
|
|
57
|
-
s(
|
|
58
|
-
method:
|
|
55
|
+
default: o(() => [
|
|
56
|
+
i(b(a(n)[e].summary) + " ", 1),
|
|
57
|
+
s(k, {
|
|
58
|
+
method: a(n)[e].method
|
|
59
59
|
}, null, 8, ["method"])
|
|
60
60
|
]),
|
|
61
61
|
_: 2
|
|
62
62
|
}, 1032, ["onClick"]))), 128))
|
|
63
63
|
])
|
|
64
64
|
]),
|
|
65
|
-
default:
|
|
66
|
-
s(
|
|
65
|
+
default: o(() => [
|
|
66
|
+
s(a(j), {
|
|
67
67
|
class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
|
|
68
68
|
variant: "outlined",
|
|
69
|
-
onClick:
|
|
69
|
+
onClick: t[2] || (t[2] = (e) => p(l.value))
|
|
70
70
|
}, {
|
|
71
|
-
default:
|
|
72
|
-
i(b(
|
|
71
|
+
default: o(() => [
|
|
72
|
+
i(b(l.value.summary) + " ", 1),
|
|
73
73
|
x("div", F, [
|
|
74
|
-
s(
|
|
75
|
-
method:
|
|
74
|
+
s(k, {
|
|
75
|
+
method: l.value.method
|
|
76
76
|
}, null, 8, ["method"]),
|
|
77
|
-
s(
|
|
77
|
+
s(a(z), {
|
|
78
78
|
class: "text-c-3",
|
|
79
79
|
icon: "ChevronDown",
|
|
80
80
|
size: "xs"
|
|
@@ -87,16 +87,16 @@ const F = { class: "flex items-center gap-2" }, H = { class: "max-h-40 custom-sc
|
|
|
87
87
|
_: 1
|
|
88
88
|
})
|
|
89
89
|
]),
|
|
90
|
-
submit:
|
|
90
|
+
submit: o(() => t[3] || (t[3] = [
|
|
91
91
|
i("Create Example")
|
|
92
|
-
]),
|
|
93
|
-
default:
|
|
92
|
+
])),
|
|
93
|
+
default: o(() => [
|
|
94
94
|
s(T, {
|
|
95
95
|
modelValue: r.value,
|
|
96
|
-
"onUpdate:modelValue":
|
|
96
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => r.value = e),
|
|
97
97
|
label: "Example Name",
|
|
98
98
|
placeholder: "Example Name",
|
|
99
|
-
onOnDelete:
|
|
99
|
+
onOnDelete: t[1] || (t[1] = (e) => c("back", e))
|
|
100
100
|
}, null, 8, ["modelValue"])
|
|
101
101
|
]),
|
|
102
102
|
_: 1
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
-
close: () =>
|
|
3
|
-
back: (e: KeyboardEvent) =>
|
|
4
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
2
|
+
close: () => any;
|
|
3
|
+
back: (e: KeyboardEvent) => any;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
5
5
|
onClose?: (() => any) | undefined;
|
|
6
6
|
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
7
|
-
}, {}, {}>;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=CommandPaletteImport.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteImport.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteImport.vue"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"CommandPaletteImport.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteImport.vue"],"names":[],"mappings":";;;;;;;AAmfA,wBASG"}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useLoadingState as
|
|
3
|
-
import { useToasts as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { getOpenApiDocumentDetails as
|
|
1
|
+
import { defineComponent as $, ref as R, computed as v, openBlock as l, createBlock as k, unref as r, withCtx as p, createVNode as y, createTextVNode as i, createElementBlock as u, Fragment as m, toDisplayString as w, createElementVNode as U, createCommentVNode as T } from "vue";
|
|
2
|
+
import { useLoadingState as j, ScalarButton as D, ScalarIcon as M, ScalarCodeBlock as _ } from "@scalar/components";
|
|
3
|
+
import { useToasts as z } from "@scalar/use-toasts";
|
|
4
|
+
import E from "./CommandActionForm.vue.js";
|
|
5
|
+
import W from "./CommandActionInput.vue.js";
|
|
6
|
+
import { getOpenApiDocumentDetails as h } from "../../libs/getOpenApiDocumentDetails.js";
|
|
7
7
|
import { isUrl as x } from "../../libs/isUrl.js";
|
|
8
8
|
import { useFileDialog as J } from "../../hooks/useFileDialog.js";
|
|
9
9
|
import { useWorkspace as Y } from "../../store/store.js";
|
|
10
|
-
const q = { class: "flex justify-between" },
|
|
10
|
+
const q = { class: "flex justify-between" }, le = /* @__PURE__ */ $({
|
|
11
11
|
__name: "CommandPaletteImport",
|
|
12
12
|
emits: ["close", "back"],
|
|
13
|
-
setup(
|
|
14
|
-
const f =
|
|
15
|
-
() =>
|
|
13
|
+
setup(G, { emit: F }) {
|
|
14
|
+
const f = F, { activeWorkspace: g, importSpecFile: b, importSpecFromUrl: L } = Y(), { toast: c } = z(), s = j(), t = R(""), o = v(
|
|
15
|
+
() => h(t.value)
|
|
16
16
|
), C = v(
|
|
17
17
|
() => o.value ? o.value.type : "json"
|
|
18
|
-
), S = v(() => x(
|
|
18
|
+
), S = v(() => x(t.value)), V = v(() => !!o.value), { open: A } = J({
|
|
19
19
|
onChange: async (a) => {
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
22
|
-
const
|
|
23
|
-
|
|
20
|
+
const e = a == null ? void 0 : a[0];
|
|
21
|
+
if (e) {
|
|
22
|
+
const n = new FileReader();
|
|
23
|
+
n.onload = async (N) => {
|
|
24
24
|
var I;
|
|
25
|
-
const
|
|
25
|
+
const O = (I = N.target) == null ? void 0 : I.result;
|
|
26
26
|
try {
|
|
27
|
-
await b(
|
|
27
|
+
await b(O, g.value.uid), c("Import successful", "info"), f("close");
|
|
28
28
|
} catch (d) {
|
|
29
29
|
console.error(d);
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const P = (d == null ? void 0 : d.message) || "Unknown error";
|
|
31
|
+
c(`Import failed: ${P}`, "error");
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, n.readAsText(e);
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
multiple: !1,
|
|
37
37
|
accept: ".json,.yaml,.yml"
|
|
38
38
|
});
|
|
39
|
-
async function
|
|
40
|
-
if (!(!
|
|
41
|
-
|
|
39
|
+
async function B() {
|
|
40
|
+
if (!(!t.value || s.isLoading)) {
|
|
41
|
+
s.startLoading();
|
|
42
42
|
try {
|
|
43
43
|
if (S.value)
|
|
44
|
-
await
|
|
45
|
-
|
|
44
|
+
await L(
|
|
45
|
+
t.value,
|
|
46
46
|
void 0,
|
|
47
47
|
void 0,
|
|
48
48
|
g.value.uid
|
|
49
49
|
);
|
|
50
|
-
else if (
|
|
50
|
+
else if (V.value)
|
|
51
51
|
await b(
|
|
52
|
-
String(
|
|
52
|
+
String(t.value),
|
|
53
53
|
g.value.uid
|
|
54
54
|
);
|
|
55
55
|
else {
|
|
56
|
-
|
|
56
|
+
c("Import failed: Invalid URL or OpenAPI document", "error"), s.invalidate(2e3, !0);
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
s.clear(), f("close"), c("Import successful", "info");
|
|
60
60
|
} catch (a) {
|
|
61
61
|
console.error("[importCollection]", a);
|
|
62
|
-
const
|
|
63
|
-
|
|
62
|
+
const e = (a == null ? void 0 : a.message) || "Unknown error";
|
|
63
|
+
s.invalidate(2e3, !0), c(`Import failed: ${e}`, "error");
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
return (a,
|
|
68
|
-
disabled: !
|
|
69
|
-
loading:
|
|
70
|
-
onSubmit:
|
|
67
|
+
return (a, e) => (l(), k(E, {
|
|
68
|
+
disabled: !t.value.trim(),
|
|
69
|
+
loading: r(s),
|
|
70
|
+
onSubmit: B
|
|
71
71
|
}, {
|
|
72
72
|
options: p(() => [
|
|
73
|
-
y(
|
|
73
|
+
y(r(D), {
|
|
74
74
|
class: "p-2 max-h-8 gap-1.5 text-xs hover:bg-b-2 relative",
|
|
75
75
|
variant: "outlined",
|
|
76
|
-
onClick:
|
|
76
|
+
onClick: r(A)
|
|
77
77
|
}, {
|
|
78
78
|
default: p(() => [
|
|
79
|
-
|
|
80
|
-
y(
|
|
79
|
+
e[5] || (e[5] = i(" JSON, or YAML File ")),
|
|
80
|
+
y(r(M), {
|
|
81
81
|
class: "text-c-3",
|
|
82
82
|
icon: "UploadSimple",
|
|
83
83
|
size: "md"
|
|
@@ -87,47 +87,47 @@ const q = { class: "flex justify-between" }, G = /* @__PURE__ */ w("div", { clas
|
|
|
87
87
|
}, 8, ["onClick"])
|
|
88
88
|
]),
|
|
89
89
|
submit: p(() => [
|
|
90
|
-
|
|
91
|
-
S.value ? (l(),
|
|
92
|
-
|
|
93
|
-
], 64)) : o.value && C.value ? (l(),
|
|
94
|
-
o.value.title ? (l(),
|
|
95
|
-
|
|
96
|
-
], 64)) : (l(),
|
|
97
|
-
|
|
90
|
+
e[6] || (e[6] = i(" Import ")),
|
|
91
|
+
S.value ? (l(), u(m, { key: 0 }, [
|
|
92
|
+
i(" from URL ")
|
|
93
|
+
], 64)) : o.value && C.value ? (l(), u(m, { key: 1 }, [
|
|
94
|
+
o.value.title ? (l(), u(m, { key: 0 }, [
|
|
95
|
+
i(' "' + w(o.value.title) + '" ', 1)
|
|
96
|
+
], 64)) : (l(), u(m, { key: 1 }, [
|
|
97
|
+
i(w(o.value.version) + " Spec", 1)
|
|
98
98
|
], 64))
|
|
99
|
-
], 64)) : (l(),
|
|
100
|
-
|
|
99
|
+
], 64)) : (l(), u(m, { key: 2 }, [
|
|
100
|
+
i("Collection")
|
|
101
101
|
], 64))
|
|
102
102
|
]),
|
|
103
103
|
default: p(() => [
|
|
104
|
-
!o.value ||
|
|
104
|
+
!o.value || r(x)(t.value) ? (l(), k(W, {
|
|
105
105
|
key: 0,
|
|
106
|
-
modelValue:
|
|
107
|
-
"onUpdate:modelValue":
|
|
106
|
+
modelValue: t.value,
|
|
107
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => t.value = n),
|
|
108
108
|
placeholder: "Paste Swagger/OpenAPI File URL or content",
|
|
109
|
-
onOnDelete:
|
|
110
|
-
}, null, 8, ["modelValue"])) : (l(),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
y(
|
|
109
|
+
onOnDelete: e[1] || (e[1] = (n) => f("back", n))
|
|
110
|
+
}, null, 8, ["modelValue"])) : (l(), u(m, { key: 1 }, [
|
|
111
|
+
U("div", q, [
|
|
112
|
+
e[4] || (e[4] = U("div", { class: "pl-8 text-xs min-h-8 py-2 text-c-2" }, "Preview", -1)),
|
|
113
|
+
y(r(D), {
|
|
114
114
|
class: "ml-auto p-2 max-h-8 gap-1.5 text-xs hover:bg-b-2 relative",
|
|
115
115
|
variant: "ghost",
|
|
116
|
-
onClick:
|
|
116
|
+
onClick: e[2] || (e[2] = (n) => t.value = "")
|
|
117
117
|
}, {
|
|
118
|
-
default: p(() => [
|
|
119
|
-
|
|
120
|
-
]),
|
|
118
|
+
default: p(() => e[3] || (e[3] = [
|
|
119
|
+
i(" Clear ")
|
|
120
|
+
])),
|
|
121
121
|
_: 1
|
|
122
122
|
})
|
|
123
123
|
]),
|
|
124
|
-
o.value && !
|
|
124
|
+
o.value && !r(x)(t.value) ? (l(), k(r(_), {
|
|
125
125
|
key: 0,
|
|
126
126
|
class: "border max-h-[40dvh] mt-1 bg-b-2 rounded [--scalar-small:--scalar-font-size-4]",
|
|
127
|
-
content:
|
|
127
|
+
content: t.value,
|
|
128
128
|
copy: !1,
|
|
129
129
|
lang: C.value
|
|
130
|
-
}, null, 8, ["content", "lang"])) :
|
|
130
|
+
}, null, 8, ["content", "lang"])) : T("", !0)
|
|
131
131
|
], 64))
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
@@ -135,5 +135,5 @@ const q = { class: "flex justify-between" }, G = /* @__PURE__ */ w("div", { clas
|
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
export {
|
|
138
|
-
|
|
138
|
+
le as default
|
|
139
139
|
};
|
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
metaData?: {
|
|
3
3
|
itemUid: string;
|
|
4
4
|
parentUid: string;
|
|
5
5
|
};
|
|
6
|
-
}
|
|
7
|
-
close: () =>
|
|
8
|
-
back: (e: KeyboardEvent) =>
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
6
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
close: () => any;
|
|
8
|
+
back: (e: KeyboardEvent) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
10
10
|
metaData?: {
|
|
11
11
|
itemUid: string;
|
|
12
12
|
parentUid: string;
|
|
13
13
|
};
|
|
14
|
-
}
|
|
14
|
+
}> & Readonly<{
|
|
15
15
|
onClose?: (() => any) | undefined;
|
|
16
16
|
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
17
|
-
}, {}, {}>;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
export default _default;
|
|
19
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
-
type __VLS_TypePropsToOption<T> = {
|
|
21
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
-
} : {
|
|
24
|
-
type: import('vue').PropType<T[K]>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
19
|
//# sourceMappingURL=CommandPaletteRequest.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":";eAkMa;QACT,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB;;;;;eAHU;QACT,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB;;;;;
|
|
1
|
+
{"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":";eAkMa;QACT,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB;;;;;eAHU;QACT,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB;;;;;AA2VH,wBAUG"}
|