{#if variant === 'static'}
{$t('apps.new.staticProvider')}
gitea
github
gitlab
{#if detectStatus === 'pending'}
{:else}
{/if}
{$t('apps.new.staticDetectProvider')}
{$t('apps.new.staticBaseUrl')}
{#if detectStatus === 'ok'}
{$t('apps.new.staticDetectedOk', { provider: detectedProvider || git.provider })}
{:else if detectStatus === 'error'}
{$t('apps.new.staticDetectedFailed', { error: detectError })}
{/if}
{$t('apps.new.staticRepoOwner')}
*
{$t('apps.new.staticRepoName')}
*
{#if repoLoading}
{:else}
{/if}
{#if repoError}
{repoError}
{/if}
{$t('apps.new.staticBranch')}
{#if branchLoading}
{:else}
{/if}
{#if branchError}
{branchError}
{/if}
{#if showFolderTree}
{$t('apps.new.staticFolder')}
{/if}
{#if showFolderTree}
{$t('apps.new.staticBrowseFolders')}
{#if folderPath}
{$t('apps.new.staticFolderSelectedPrefix')}
{folderPath}
{/if}
{#if treeOpen}
{#if treeLoading}
{$t('apps.new.staticTreeLoading')}
{:else if treeError}
{treeError}
{:else if folders.length === 0}
{$t('apps.new.staticTreeEmpty')}
{:else}
selectFolder('')} >
{$t('apps.new.staticFolderRoot')}
{#each getTopLevelFolders() as folder (folder.path)} {@const isSelected = folderPath === folder.path} {@const isExpanded = expandedDirs.has(folder.path)} {@const children = getChildFolders(folder.path)}
{#if children.length > 0}
toggleDir(folder.path)} aria-label={$t('common.toggle')} >
{:else}
{/if}
selectFolder(folder.path)} >
{folder.path}
{#if isExpanded}
{#each children as child (child.path)} {@const childSelected = folderPath === child.path}
selectFolder(child.path)} >
{child.path.split('/').pop()}
{/each}
{/if}
{/each} {/if}
{/if}
{$t('apps.new.staticToken')}
{$t('apps.new.staticTokenHint')}
{#if testStatus === 'pending'}
{:else if testStatus === 'ok'}
{:else}
{/if}
{$t('apps.new.staticTestConnection')}
{#if testStatus === 'ok'}
{$t('apps.new.staticConnectionOk')}
{:else if testStatus === 'error'}
{$t('apps.new.staticConnectionFailed', { error: testError })}
{/if}
{/if} {:else}
{$t('apps.new.staticProvider')}
gitea
github
gitlab
{#if detectStatus === 'pending'}
{:else}
{/if}
{$t('apps.new.staticDetectProvider')}
{$t('apps.new.staticBaseUrl')}
{#if detectStatus === 'ok'}
{$t('apps.new.staticDetectedOk', { provider: detectedProvider || git.provider })}
{:else if detectStatus === 'error'}
{$t('apps.new.staticDetectedFailed', { error: detectError })}
{/if}
{$t('apps.new.staticRepoOwner')}
*
{$t('apps.new.staticRepoName')}
*
{#if repoLoading}
{:else}
{/if}
{$t('apps.new.staticBrowseRepos')}
{$t('apps.new.staticBranch')}
{#if branchLoading}
{:else}
{/if}
{$t('apps.new.staticBrowseBranches')}
{$t('apps.new.staticToken')}
{#if testStatus === 'pending'}
{:else}
{/if}
{$t('apps.new.staticTestConnection')}
{#if testStatus === 'ok'}
{$t('apps.new.staticConnectionOk')}
{:else if testStatus === 'error'}
{$t('apps.new.staticConnectionFailed', { error: testError })}
{/if}
{/if}
(showRepoPicker = false)} />
(showBranchPicker = false)} />