setMessage({ kind, text })} />}
{guest && (
<>
{t('account.title')}
{t('guest.banner')}
>
)}
{admin && (
<>
{t('settings.admin')}
} title={t('admin.title')} hint={adminHint} onClick={onOpenAdmin} />
>
)}
{t('settings.language')}
{t('settings.languageHint')}
{t('settings.rating')}
{(['5', '10'] as const).map((scale) => (
))}
{t('settings.ratingHint')}
{t('settings.appearance')}
{THEME_MODES.map(({ value, label }) => {
const on = settings.themeMode === value
return (
)
})}
{t('settings.appearanceHint')}
{t('settings.installApp')}
{installed ? (
{t('settings.installed')}
) : (
)}
{t('settings.installHint')}
{showInstall && (
setShowInstall(false)}>
e.stopPropagation()}>
{t('install.title')}
{t(`install.${platform}`).split('\n').map((step, i) => (
-
{i + 1}
{step}
))}
{canInstall && (
)}
)}
{t('settings.databases')}
AniList
{t('settings.anilistActive')}
{t('settings.noConfig')}
{/* Mode découverte : TMDB passe par le serveur, rien à régler ici */}
{guest ? null : account ? (
TMDB
{proxy === 'ok'
? t('settings.tmdbActive')
: proxy === 'checking'
? t('settings.checking')
: proxy === 'offline'
? t('settings.offline')
: proxy === 'missing-key'
? t('settings.proxyMissingKey')
: proxy === 'not-deployed'
? t('settings.proxyNotDeployed')
: t('settings.unavailable')}
{proxy === 'missing-key'
? t('settings.proxyMissingKeyHint')
: proxy === 'not-deployed'
? t('settings.proxyNotDeployedHint')
: proxy === 'error'
? t('settings.proxyErrorHint')
: t('settings.proxyOkHint')}
{proxy !== 'ok' && proxy !== 'checking' && (
)}
) : (
TMDB
{keyState === 'ok' ? t('settings.tmdbActive') : keyState === 'bad' ? t('settings.keyRefused') : keyState === 'testing' ? t('settings.checking') : t('settings.notConfigured')}
{t('settings.tmdbHelp')}
{t('settings.keyLocal')}
)}
Top 5
{t('settings.topHint')}
{TOP_CATEGORIES.map((c) => {
const on = settings.topCategories.includes(c.value)
return (
)
})}
{settings.topCategories.length === 0 && {t('settings.topNone')}
}
{t('settings.backup')}
} title={t('settings.export')} hint={t('settings.exportHint', { count: items.length })} onClick={onExport} />
} title={t('settings.import')} hint={t('settings.importHint')} onClick={() => fileRef.current?.click()} />
onFile(e.target.files?.[0])} />
} title={t('import.row')} hint={t('import.rowHint')} onClick={() => setShowImport(true)} />
{showImport && setShowImport(false)} />}
{pending && (
{pending.format === 'legacy' && {t('settings.legacyDetected')}}
{pending.skipped ? t('settings.foundSkipped', { n: pending.items.length, skipped: pending.skipped }) : t('settings.found', { count: pending.items.length })}
{t('settings.mergeHint')}
)}
{t('settings.storage')}
{t('settings.used')}
{usage ?? '—'}
{account
? t('settings.storageCloud')
: t('settings.storageLocal')}
{t('settings.danger')}
|
} title={t('settings.clearAll')} hint={account ? t('settings.clearAllHintCloud', { count: items.length }) : t('settings.clearAllHint', { count: items.length })} onClick={() => setConfirm('reset')} danger />
{account && (
}
title={deleting ? t('settings.deleting') : t('settings.deleteAccount')}
hint={t('settings.deleteAccountHint')}
onClick={() => !deleting && setConfirm('delete-account')}
danger
/>
)}
{t('settings.about')}
{(
[
['/privacy.html', t('legal.privacy')],
['/legal.html#conditions', t('legal.terms')],
['/legal.html#mentions', t('legal.notice')],
['/legal.html#credits', t('legal.credits')],
] as const
).map(([href, label]) => (
{label}
))}
{t('legal.tmdb')}
Bobinoo v2.2 · {account ? t('settings.footerCloud') : t('settings.footerLocal')}
setConfirm(null)}
/>
setConfirm(null)}
/>
confirmImport('replace')}
onCancel={() => setConfirm(null)}
/>
>
)
}