- Quatre pages distinctes (Confidentialité, Conditions d'utilisation, Mentions légales, Crédits) et une page 404, au thème « Encre » (clair / sombre selon l'appareil, police Epilogue) ; le logo des anciennes pages affichait encore « Kino » - Crédits : rubrique « Données des œuvres » (TMDB, AniList, JustWatch) qui remplace « Bases de films » - Réglages : retirés « Bases de films » (clé TMDB), « Installer l'application », l'état / bouton de synchro et les petites légendes inutiles - Stats : retirés Statuts, Plateformes, Records, Mes mieux notés et la note de bas de page - Accueil et Stats : plus de sous-titre sous le titre - Code et ~50 textes devenus inutiles retirés (pwa.ts, vérification de clé / proxy TMDB, recommandations) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
37 files changed
+275
-1496
No files matched your search
@@ -1,14 +1,12 @@
|
||||
import Avatar from './social/Avatar'
|
||||
import { useSocial } from './social/SocialProvider'
|
||||
import { t } from '../i18n'
|
||||
import { AlertTriangle, Check, CloudOff, KeyRound, Loader2, LogOut, RefreshCw, UserRound } from 'lucide-react'
|
||||
import { KeyRound, Loader2, LogOut, UserRound } from 'lucide-react'
|
||||
import { useState, type FormEvent } from 'react'
|
||||
import { PASSWORD_MIN, updatePassword } from '../lib/cloud/auth'
|
||||
import { timeAgo } from '../lib/timeAgo'
|
||||
import type { AccountApi } from '../store'
|
||||
import ConfirmDialog from './ConfirmDialog'
|
||||
import { SectionTitle } from './ui'
|
||||
import { cx } from '../lib/utils'
|
||||
|
||||
/** Réglages → Mon compte : mot de passe, déconnexion. La synchro tourne en arrière-plan. */
|
||||
export default function AccountSection({ account, onMessage }: { account: AccountApi; onMessage: (kind: 'ok' | 'error', text: string) => void }) {
|
||||
@@ -71,46 +69,6 @@ export default function AccountSection({ account, onMessage }: { account: Accoun
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* État de la synchronisation : visible, surtout quand quelque chose bloque */}
|
||||
<div className="flex items-center gap-3.5 px-4 py-3.5" role="status">
|
||||
<span className={cx('grid size-10 shrink-0 place-items-center rounded-full bg-surface-2', sync.state === 'error' ? 'text-accent' : 'text-ink-2')}>
|
||||
{sync.state === 'syncing' ? (
|
||||
<RefreshCw size={18} className="animate-spin" />
|
||||
) : sync.state === 'offline' ? (
|
||||
<CloudOff size={18} />
|
||||
) : sync.state === 'error' ? (
|
||||
<AlertTriangle size={18} />
|
||||
) : (
|
||||
<Check size={18} />
|
||||
)}
|
||||
</span>
|
||||
<span className="min-w-0 flex-1">
|
||||
<span className={cx('block text-sm font-medium', sync.state === 'error' && 'text-accent')}>
|
||||
{sync.state === 'syncing'
|
||||
? t('sync.syncing')
|
||||
: sync.state === 'offline'
|
||||
? t('sync.offline')
|
||||
: sync.state === 'error'
|
||||
? t('sync.error')
|
||||
: sync.lastSyncAt
|
||||
? t('sync.synced', { when: timeAgo(sync.lastSyncAt) })
|
||||
: t('sync.never')}
|
||||
</span>
|
||||
{(sync.pending > 0 || (sync.state === 'error' && sync.error)) && (
|
||||
<span className="mt-0.5 block truncate text-xs text-ink-3">
|
||||
{[sync.pending > 0 ? t('sync.pending', { count: sync.pending }) : '', sync.state === 'error' ? sync.error : ''].filter(Boolean).join(' · ')}
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
<button
|
||||
onClick={() => void account.syncNow().catch(() => {})}
|
||||
disabled={sync.state === 'syncing' || sync.state === 'offline'}
|
||||
className="btn btn-ghost shrink-0 px-3 py-1.5 text-xs"
|
||||
>
|
||||
{t('sync.now')}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={() => (social.me ? social.openProfile(social.me.username) : social.openSearch())}
|
||||
className="flex w-full items-center gap-3.5 px-4 py-4 text-start transition-colors active:bg-surface-2"
|
||||
|
||||
@@ -283,9 +283,9 @@ export function NewPasswordScreen({ onDone }: { onDone: () => void }) {
|
||||
export function LegalLinks() {
|
||||
return (
|
||||
<nav className="mt-4 flex flex-wrap justify-center gap-x-4 gap-y-1 text-[11px] text-ink-3">
|
||||
<a href="/legal.html#conditions" target="_blank" rel="noopener" className="underline underline-offset-2">{t('legal.terms')}</a>
|
||||
<a href="/terms.html" target="_blank" rel="noopener" className="underline underline-offset-2">{t('legal.terms')}</a>
|
||||
<a href="/privacy.html" target="_blank" rel="noopener" className="underline underline-offset-2">{t('legal.privacy')}</a>
|
||||
<a href="/legal.html#mentions" target="_blank" rel="noopener" className="underline underline-offset-2">{t('legal.notice')}</a>
|
||||
<a href="/legal.html" target="_blank" rel="noopener" className="underline underline-offset-2">{t('legal.notice')}</a>
|
||||
</nav>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user