{ if (deleteTarget) { handleDelete(deleteTarget.path, deleteTarget.name); deleteTarget = null; } }} /> {#if !configured}
{$i18n.t('No Terminal connection configured.')}
{$i18n.t('Add your Open Terminal URL and API key in Settings → Integrations.')}
{:else}
{#if isDragOver}
{currentPath}
{/if}
{#each breadcrumbs as crumb, i} {#if i > 1} / {/if} {/each} {#if selectedFile} / {selectedFile.split('/').pop()} {/if}
{#if !selectedFile} {/if}
{#if selectedFile !== null} {#if fileLoading}
{:else if fileImageUrl !== null} {selectedFile?.split('/').pop()} {:else if filePdfData !== null} {:else if fileContent !== null}
{fileContent}
{:else}
{$i18n.t('Could not read file.')}
{/if} {:else} {#if uploading}
{$i18n.t('Uploading...')}
{:else if loading}
{:else if error}
{error}
{:else if entries.length === 0 && !creatingFolder}
{$i18n.t('Empty — drop files here to upload')}
{/if} {#if !loading && !error && !uploading && !selectedFile} {#if creatingFolder}
{ if (e.key === 'Enter') submitNewFolder(); if (e.key === 'Escape') { creatingFolder = false; newFolderName = ''; } }} on:blur={submitNewFolder} />
{/if} {#if entries.length > 0 || creatingFolder}
    {#each entries as entry}
  • e.stopPropagation()} aria-label={$i18n.t('More')} > {#if entry.type !== 'directory'} { e.stopPropagation(); downloadFile(`${currentPath}${entry.name}`); }} >
    {$i18n.t('Download')}
    {/if} { e.stopPropagation(); deleteTarget = { path: `${currentPath}${entry.name}`, name: entry.name }; showDeleteConfirm = true; }} >
    {$i18n.t('Delete')}
  • {/each}
{/if} {/if} {/if}
{/if}