Défis de visionnage : objectifs, progression automatique et carte sur l'accueil

- Défis (films / séries / animes / K-dramas / C-dramas / autres / tout ; titres
  terminés ou épisodes vus ; semaine, mois, année ou dates libres), modèles en un tap.
- Progression calculée depuis la bibliothèque : dates de fin + revisionnages ;
  épisodes via un journal privé par jour (episodeLog) rempli à chaque coche,
  avec estimation (répartition début→fin) pour les épisodes sans date.
- Carte « Défis » sur l'accueil (anneau, rythme « 3 films d'avance »),
  feuille de gestion (créer, modifier, archiver, recommencer, supprimer,
  titres comptés → fiche), date de réussite, petite célébration sobre.
- Stockage dans les réglages synchronisés (15 max), inclus dans l'export/import
  (fusion des défis en mode « fusionner »). 18 langues.
- Migration 20261009140000_challenges.sql : réglages jusqu'à 16 000 octets et
  episodeLog retiré des fiches publiques.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
Claude committed 2026-10-09 15:19:58 +00:00
1 parent c246b16e7e
commit 308c0f2327
30 files changed
+2472 -6

No files matched your search

+71
View File
@@ -897,6 +897,77 @@ const dict: Translations = {
'sync.pending_one': "{count} thay đổi đang chờ",
'sync.pending_other': "{count} thay đổi đang chờ",
'sync.now': "Đồng bộ ngay",
// — Défis —
'challenges.title': "Thử thách",
'challenges.manage': "Quản lý",
'challenges.emptyTitle': "Đặt cho mình một mục tiêu",
'challenges.emptyText': "52 phim năm nay, mỗi tuần một anime… Tiến độ được tính tự động.",
'challenges.create': "Tạo thử thách",
'challenges.new': "Thử thách mới",
'challenges.edit': "Sửa thử thách",
'challenges.templates': "Gợi ý thử thách",
'challenges.target': "Mục tiêu",
'challenges.media': "Loại",
'challenges.unit': "Đếm",
'challenges.unit.titles': "Phim đã xem xong",
'challenges.unit.episodes': "Tập đã xem",
'challenges.period': "Khoảng thời gian",
'challenges.period.week': "Tuần này",
'challenges.period.month': "Tháng này",
'challenges.period.year': "Năm nay",
'challenges.period.custom': "Ngày tùy chọn",
'challenges.from': "Từ",
'challenges.to': "Đến",
'challenges.name': "Tên (không bắt buộc)",
'challenges.preview': "Đã {what} trong khoảng này",
'challenges.ahead': "Vượt {what}",
'challenges.behind': "Chậm {what}",
'challenges.onPace': "Đúng nhịp",
'challenges.lastDay': "Ngày cuối",
'challenges.doneOn': "Hoàn thành ngày {date}",
'challenges.done': "Hoàn thành",
'challenges.missed': "Chưa đạt",
'challenges.weekOf': "Tuần từ {date}",
'challenges.progress': "{count} / {target}",
'challenges.active': "Đang diễn ra",
'challenges.finished': "Đã kết thúc",
'challenges.archived': "Đã lưu trữ",
'challenges.archive': "Lưu trữ",
'challenges.unarchive': "Bỏ lưu trữ",
'challenges.renew': "Bắt đầu lại",
'challenges.deleteTitle': "Xóa thử thách này?",
'challenges.deleteText': "Thư viện của bạn không thay đổi.",
'challenges.counted': "Được tính trong thử thách",
'challenges.countedEmpty': "Chưa có gì trong khoảng này.",
'challenges.rewatch': "Xem lại",
'challenges.estimated': "Một số tập không có ngày chính xác: được chia đều từ lúc bắt đầu đến lúc xem xong (ước tính).",
'challenges.celebrate': "Hoàn thành thử thách!",
'challenges.celebrateText': "{name} — tuyệt vời!",
'challenges.limit': "Tối đa {n} thử thách: hãy lưu trữ hoặc xóa bớt một cái.",
'challenges.back': "Quay lại",
'challenges.qty.title_one': "{count} tựa phim",
'challenges.qty.title_other': "{count} tựa phim",
'challenges.qty.film_one': "{count} phim lẻ",
'challenges.qty.film_other': "{count} phim lẻ",
'challenges.qty.serie_one': "{count} phim bộ",
'challenges.qty.serie_other': "{count} phim bộ",
'challenges.qty.anime_one': "{count} anime",
'challenges.qty.anime_other': "{count} anime",
'challenges.qty.kdrama_one': "{count} phim Hàn",
'challenges.qty.kdrama_other': "{count} phim Hàn",
'challenges.qty.cdrama_one': "{count} phim Trung",
'challenges.qty.cdrama_other': "{count} phim Trung",
'challenges.qty.autre_one': "{count} tựa khác",
'challenges.qty.autre_other': "{count} tựa khác",
'challenges.qty.episode_one': "{count} tập",
'challenges.qty.episode_other': "{count} tập",
'challenges.daysLeft_one': "Còn {count} ngày",
'challenges.daysLeft_other': "Còn {count} ngày",
'challenges.startsIn_one': "Bắt đầu sau {count} ngày",
'challenges.startsIn_other': "Bắt đầu sau {count} ngày",
'challenges.more_one': "+ {count} thử thách khác",
'challenges.more_other': "+ {count} thử thách khác",
}
export default dict