{#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}
loadDir(crumb.path)} > {crumb.label}
{/each} {#if selectedFile}
/
{selectedFile.split('/').pop()}
{/if}
{#if selectedFile !== null}
downloadFile(selectedFile)} aria-label={$i18n.t('Download')} >
{#if fileLoading}
{:else if fileImageUrl !== null}
{:else if filePdfUrl !== 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}
{$i18n.t('Empty — drop files here to upload')}
{:else}
{#each entries as entry}
{ if (entry.type !== 'file') return; e.dataTransfer?.setData( 'application/x-terminal-file', JSON.stringify({ path: `${currentPath}${entry.name}`, name: entry.name, url: terminalUrl, key: terminalKey }) ); }} on:click={() => openEntry(entry)} > {#if entry.type === 'directory'}
{:else}
{/if}
{entry.name}
{#if entry.type === 'file' && entry.size !== undefined}
{formatSize(entry.size)}
{/if}
{/each}
{/if} {/if}
{/if}