{ return s.content }} bind:filteredItems={filteredScriptItems} /> { return s.value }} bind:filteredItems={filteredResourceItems} /> { return YAML.stringify(s.value, null, 4) }} bind:filteredItems={filteredFlowItems} /> { return YAML.stringify(s.value, null, 4) }} bind:filteredItems={filteredAppItems} />
{#snippet children({ item })} {/snippet}
Searching among
{#if scripts}{scripts?.length}{:else} {/if}
scripts,
{#if resources}{resources?.length}{:else} {/if}
resources,
{#if flows}{flows?.length}{:else} {/if}
flows,
{#if apps}{apps?.length}{:else} {/if}
apps
{#if resources} {@const nTruncated = resources.filter((r) => r.truncated).length} {#if nTruncated > 0}
{nTruncated} of those resources {nTruncated === 1 ? 'is' : 'are'} too large to search in full — only {nTruncated === 1 ? 'its' : 'their'} beginning is matched.
{/if} {/if}
{#if search.trim().length > 0}
{#if (searchKind == 'all' || searchKind == 'scripts') && filteredScriptItems?.length > 0} {#each filteredScriptItems.slice(0, showNbScripts) ?? [] as item} {#snippet actions()} {/snippet}
{@html item.marked}
							
{/each} {#if filteredScriptItems.length > showNbScripts} {/if} {/if} {#if (searchKind == 'all' || searchKind == 'resources') && filteredResourceItems?.length > 0} {#each filteredResourceItems.slice(0, showNbResources) ?? [] as item} {#snippet actions()} {#if item.truncated} Truncated {#snippet text()} This resource is too large to search in full: only its beginning is matched and shown. {/snippet} {/if} {/snippet}
{@html item.marked}
{/each} {#if filteredResourceItems.length > showNbResources} {/if} {/if} {#if (searchKind == 'all' || searchKind == 'flows') && filteredFlowItems?.length > 0} {#each filteredFlowItems.slice(0, showNbFlows) ?? [] as item} {#snippet actions()} {/snippet}
{@html item.marked}
{/each} {#if filteredFlowItems.length > showNbFlows} {/if} {/if} {#if (searchKind == 'all' || searchKind == 'apps') && filteredAppItems?.length > 0} {#each filteredAppItems.slice(0, showNbApps) ?? [] as item} {#snippet actions()} {/snippet}
{@html item.marked}
{/each} {#if filteredAppItems.length > showNbApps} {/if} {/if}
{:else}
Empty Search Filter
Start writing, search everywhere a path is referenced for instance
{/if}