a[0].localeCompare(b[0])) : undefined} bind:filteredItems={filteredConnects} f={(x) => x[0]} /> a[0].localeCompare(b[0]))} bind:filteredItems={filteredConnectsManual} f={(x) => x[0]} /> { dispatch('close') }} on:open={() => { loadResources() }} size="800px" > {#if step == 1}

OAuth APIs

{#if filteredConnects} {#each filteredConnects as [key, values]} {/each} {:else} {#each new Array(3) as _} {/each} {/if}
{#if manual == false && resource_type != ''}

Scopes

{#if !manual && resource_type != ''} {#each scopes as v}
{/each}
({(scopes ?? []).length} item{(scopes ?? []).length > 1 ? 's' : ''})
{/if} {/if}

Non OAuth APIs & Resources

{#if filteredConnectsManual} {#each filteredConnectsManual as [key, _]} {/each} {:else} {#each new Array(9) as _} {/each} {/if}
{:else if step == 2 && manual} {#if apiTokenApps[resource_type]}

Instructions

    {#each apiTokenApps[resource_type].instructions as step}
  1. {@html step}
  2. {/each}
{#if apiTokenApps[resource_type].img}
connect
{/if} {/if} {#if resource_type == 'postgresql' || resource_type == 'mysql' || resource_type == 'mongodb'} {/if}

Value

{#key resource_type} {/key}

Description