sync: update from private repo (f6d625db)
CI / build-and-test (push) Has been cancelled

This commit is contained in:
oss-sync
2026-06-26 03:35:45 +00:00
parent 29ccaf1e92
commit b857c33ef6
371 changed files with 31312 additions and 8172 deletions
@@ -407,9 +407,9 @@ function ConnectionRow(props: ConnectionRowProps) {
<span className="text-sm font-semibold text-slate-900 truncate">{c.label}</span>
<ScopeBadge owner={c.ownerId} />
<HostKeyBadge verified={verified} pending={pending} />
{disabled && <Badge color="red">{c.disabledByAdmin ? 'admin-disabled' : 'disabled'}</Badge>}
{c.allowRemoteUnrestricted && <Badge color="amber">remote: unrestricted</Badge>}
{c.allowPrivateAddresses && <Badge color="amber">private addrs</Badge>}
{disabled && <Badge color="red">{c.disabledByAdmin ? t('ssh.row.adminDisabled') : t('ssh.row.disabled')}</Badge>}
{c.allowRemoteUnrestricted && <Badge color="amber">{t('ssh.row.remoteUnrestricted')}</Badge>}
{c.allowPrivateAddresses && <Badge color="amber">{t('ssh.row.privateAddrs')}</Badge>}
</div>
<div className="text-2xs text-slate-600 font-mono mt-1 truncate">
{c.username}@{c.host}:{c.port}
@@ -517,9 +517,10 @@ function ScopeBadge({ owner }: { owner: string | null }) {
}
function HostKeyBadge({ verified, pending }: { verified: boolean; pending: boolean }) {
if (pending) return <Badge color="amber">host-key pending</Badge>;
if (verified) return <Badge color="emerald">host-key verified</Badge>;
return <Badge color="slate">host-key untested</Badge>;
const { t } = useTranslation('userfolder');
if (pending) return <Badge color="amber">{t('ssh.hostKey.pending')}</Badge>;
if (verified) return <Badge color="emerald">{t('ssh.hostKey.verified')}</Badge>;
return <Badge color="slate">{t('ssh.hostKey.untested')}</Badge>;
}
function Badge({ color, children }: { color: 'slate' | 'blue' | 'emerald' | 'amber' | 'red'; children: React.ReactNode }) {