{ updateHandler(); }} >
{#if PIPELINES_LIST !== null}
{$i18n.t('Manage Pipelines')}
{#if PIPELINES_LIST.length > 0}
{ await tick(); await setPipelines(); }} >
{$i18n.t('Select a pipeline url')}
{#each PIPELINES_LIST as pipelines, idx}
{pipelines.url}
{/each}
{$i18n.t('Upload Pipeline')}
{ document.getElementById('pipelines-upload-input')?.click(); }} > {#if pipelineFiles} {pipelineFiles.length > 0 ? `${pipelineFiles.length}` : ''} pipeline(s) selected. {:else} {$i18n.t('Click here to select a py file.')} {/if}
{ uploadPipelineHandler(); }} disabled={uploading} type="button" > {#if uploading}
{:else}
{/if}
{$i18n.t('Install from Github URL')}
{ addPipelineHandler(); }} disabled={downloading} type="button" > {#if downloading}
{:else}
{/if}
Warning:
Pipelines are a plugin system with arbitrary code execution —
don't fetch random pipelines from sources you don't trust.
{#if pipelines !== null} {#if pipelines.length > 0}
{$i18n.t('Pipelines Valves')}
{#if pipelines.length > 0}
{ await tick(); await getValves(selectedPipelineIdx); }} > {#each pipelines as pipeline, idx}
{pipeline.name} ({pipeline.type ?? 'pipe'})
{/each}
{ deletePipelineHandler(); }} type="button" >
{/if}
{#if pipelines[selectedPipelineIdx].valves} {#if valves} {#each Object.keys(valves_spec.properties) as property, idx}
{valves_spec.properties[property].title}
{ valves[property] = (valves[property] ?? null) === null ? '' : null; }} > {#if (valves[property] ?? null) === null}
{$i18n.t('None')}
{:else}
{$i18n.t('Custom')}
{/if}
{#if (valves[property] ?? null) !== null}
{#if valves_spec.properties[property]?.enum ?? null}
{#each valves_spec.properties[property].enum as option}
{option}
{/each}
{:else if (valves_spec.properties[property]?.type ?? null) === 'boolean'}
{valves[property] ? 'Enabled' : 'Disabled'}
{:else}
{/if}
{/if}
{/each} {:else}
{/if} {:else}
No valves
{/if}
{:else if pipelines.length === 0}
Pipelines Not Detected
{/if} {:else}
{/if} {:else}
{$i18n.t('Pipelines Not Detected')}
{/if} {:else}
{/if}
{$i18n.t('Save')}