From 026d75597904f1e763aa9153b4cd935d52cda498 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 3 Dec 2022 02:09:59 +0100 Subject: [PATCH] add search to appconnect --- frontend/src/lib/components/AppConnect.svelte | 32 +++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/AppConnect.svelte b/frontend/src/lib/components/AppConnect.svelte index b9ae700158..4a88f2eabb 100644 --- a/frontend/src/lib/components/AppConnect.svelte +++ b/frontend/src/lib/components/AppConnect.svelte @@ -47,9 +47,11 @@ import { Alert, Button, Drawer } from './common' import DrawerContent from './common/drawer/DrawerContent.svelte' import ApiConnectForm from './ApiConnectForm.svelte' + import SearchItems from './SearchItems.svelte' export let newPageOAuth = false + let filter = '' let manual = false let value: string = '' let valueToken: TokenResponse @@ -232,8 +234,25 @@ args['api_key'] == '' && key != undefined) || (step == 3 && pathError != '') + + let filteredConnects: [string, { scopes: string[]; extra_params?: Record }][] = [] + let filteredConnectsManual: [string, { img?: string; instructions: string[]; key?: string }][] = + [] + a[0].localeCompare(b[0]))} + bind:filteredItems={filteredConnects} + f={(x) => x[0]} +/> + a[0].localeCompare(b[0]))} + bind:filteredItems={filteredConnectsManual} + f={(x) => x[0]} +/> + { @@ -253,6 +272,15 @@ You can also contribute to windmill and add it as an API integration if relevant. {/if} +
+ +
+

OAuth APIs

{#if Object.keys(connects).length == 0} @@ -260,7 +288,7 @@ {/if}
- {#each Object.entries(connects).sort((a, b) => a[0].localeCompare(b[0])) as [key, values]} + {#each filteredConnects as [key, values]}