a.localeCompare(b)) .map((key) => ({ key })) : undefined} bind:filteredItems={filteredConnects} f={(x) => x.key} /> a[0].localeCompare(b[0]))} bind:filteredItems={filteredConnectsManual} f={(x) => x[0]} /> {#if step == 1}

OAuth APIs

{#if filteredConnects} {#each filteredConnects as { key }} {/each} {:else} {#each new Array(3) as _} {/each} {/if}
{#if connects && connects.length == 0}
No OAuth APIs has been setup on the instance. To add oauth APIs, first sync the resource types with the hub, then add oauth configuration. See documentation
{/if}

Others

{#if connectsManual && connectsManual?.length < 10}
Resource Types have not been synced with the hub. Go to the admins workspace to sync them (and add a schedule to do daily):

1. Go to the "admins" workspaces: sync resource types

2: Run the synchronization script: sync resource types

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

Instructions

    {#each apiTokenApps[resourceType].instructions as step}
  1. {@html step}
  2. {/each}
{#if apiTokenApps[resourceType].img}
connect
{/if} {:else if !emptyString(resourceTypeInfo?.description)}

{resourceTypeInfo?.name} description

{/if} {#if resourceType == 'postgresql' || resourceType == 'mysql' || resourceType == 'mongodb'} {/if}

Resource description

{#if renderDescription}
GH Markdown