Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7160e3401 | ||
|
|
cb305bcfe1 | ||
|
|
db6c504325 | ||
|
|
6ce972179e | ||
|
|
d0681c62ab |
No files matched your search
@@ -19,7 +19,7 @@ npm run build # build de prod
|
||||
|
||||
## Déploiement
|
||||
- Remote git : **Gitea** `https://gitea.rdacet.fr/romain/kino.git` (branche `main`).
|
||||
- Claude Code (cloud) accède directement à Gitea : jeton `GITEA_TOKEN` en « network secret » de l'environnement (portée `write:repository`). Claude pousse sur une branche `claude/…` ; Romain fusionne dans `main` depuis Gitea (ce qui déploie). Plus de dépôt GitHub.
|
||||
- Claude Code (cloud) accède directement à Gitea : jeton `GITEA_TOKEN` en « network secret » de l'environnement (portée `write:repository`). Depuis le 27 nov. 2026, Romain demande que Claude **fusionne et pousse directement dans `main`** sans redemander (ce qui déploie), puis vérifie le déploiement (Gitea Actions + site en ligne). Plus de dépôt GitHub.
|
||||
- Push via **PowerShell** : `git push`.
|
||||
- **Gitea Actions** (`.gitea/workflows/deploy.yml`) build et publie sur le **VPS** (nginx en LXC) à chaque push sur `main`. Site : https://azuucine.rdacet.fr
|
||||
- `vite.config.ts` contient un garde-fou : le build échoue si `VITE_SUPABASE_URL` / `VITE_SUPABASE_ANON_KEY` manquent en CI (variables/secrets Gitea Actions). La CSP et les en-têtes de sécurité y sont aussi définis (source unique → convertis en conf nginx par `deploy/headers-to-nginx.mjs`).
|
||||
|
||||
@@ -80,6 +80,13 @@ export default function App() {
|
||||
const openSeed = (seed: SearchResult) => pushLayer({ kind: 'title', seed })
|
||||
const openPerson = (p: { id: string; name?: string; photo?: string }) => pushLayer({ kind: 'person', personId: p.id, name: p.name, photo: p.photo })
|
||||
const openNew = () => setAdding(true)
|
||||
/** « Valider » sur une fiche : ferme la recherche et toutes les fiches, puis revient à l'accueil */
|
||||
const backHome = () => {
|
||||
setLayers([])
|
||||
setAdding(false)
|
||||
// Laisse les fenêtres retirer leur entrée d'historique avant de changer d'onglet
|
||||
setTimeout(() => go('home'), 50)
|
||||
}
|
||||
const toSettings = () => {
|
||||
setLayers([])
|
||||
setAdding(false)
|
||||
@@ -129,6 +136,7 @@ export default function App() {
|
||||
onGoToSettings={toSettings}
|
||||
onOpenPerson={openPerson}
|
||||
focus={l.item ? l.focus : undefined}
|
||||
onDone={backHome}
|
||||
/>
|
||||
) : (
|
||||
<PersonSheet
|
||||
|
||||
@@ -51,13 +51,15 @@ interface Props {
|
||||
onOpenPerson?: (p: { id: string; name?: string; photo?: string }) => void
|
||||
/** Ouverte après un +1 qui termine une saison (ou la série) : on amène l'utilisateur à la note */
|
||||
focus?: Completion
|
||||
/** « Valider » (titre dans ma bibliothèque) : ferme tout et revient à l'accueil */
|
||||
onDone?: () => void
|
||||
}
|
||||
|
||||
/**
|
||||
* Fiche d'un titre, façon Letterboxd : tout se fait ici, et chaque geste est enregistré tout de suite.
|
||||
* Vu / En cours / À voir, note, coup de cœur, avis, épisodes, casting et note moyenne du public.
|
||||
*/
|
||||
export default function TitleSheet({ item: initial, seed, onClose, onGoToSettings, onOpenPerson, focus: initialFocus }: Props) {
|
||||
export default function TitleSheet({ item: initial, seed, onClose, onGoToSettings, onOpenPerson, focus: initialFocus, onDone }: Props) {
|
||||
const { items, settings, add, update, lists, patchMany } = useMedia()
|
||||
const actions = useLibraryActions()
|
||||
const social = useSocial()
|
||||
@@ -361,7 +363,8 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
||||
srcSet={backdropSrcSet(heroImage)}
|
||||
sizes="100vw"
|
||||
alt=""
|
||||
className="hero-fade h-[42vh] min-h-56 w-full object-cover object-[center_25%] lg:h-[72vh] lg:max-h-[48rem]"
|
||||
// Téléphone : l'image garde son format 16/9 (avant, recadrée dans un cadre plus haut, elle était agrandie et floue)
|
||||
className="hero-fade aspect-video w-full object-cover object-[center_25%] lg:aspect-auto lg:h-[72vh] lg:max-h-[48rem]"
|
||||
/>
|
||||
) : (
|
||||
<div className="h-6" />
|
||||
@@ -646,8 +649,19 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Titre dans ma bibliothèque : un seul geste pour tout fermer et revenir à l'accueil */}
|
||||
{item && onDone && (
|
||||
<div className="safe-bottom border-t border-line bg-bg">
|
||||
<div className="mx-auto max-w-2xl px-4 py-3">
|
||||
<button onClick={onDone} className="btn btn-primary w-full">
|
||||
<Check size={18} strokeWidth={2.5} /> {t('title.done')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{toast && (
|
||||
<div role="status" className="safe-bottom pointer-events-none fixed inset-x-0 bottom-4 z-[70] flex justify-center px-4">
|
||||
<div role="status" className={cx('safe-bottom pointer-events-none fixed inset-x-0 z-[70] flex justify-center px-4', item && onDone ? 'bottom-24' : 'bottom-4')}>
|
||||
<span className="rounded-md bg-ink px-4 py-2 text-sm font-medium text-bg">{toast}</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -855,6 +855,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "لم تجده؟ أنشئ الصفحة بنفسك.",
|
||||
'title.manualTitle': "عنوان جديد",
|
||||
'title.inLibrary': "في مكتبتك",
|
||||
'title.done': 'تم',
|
||||
'title.added': "تمت الإضافة إلى مكتبتك",
|
||||
'title.adding': "جارٍ الإضافة…",
|
||||
'title.yourRating': "تقييمك",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "Nicht gefunden? Lege den Titel selbst an.",
|
||||
'title.manualTitle': "Neuer Titel",
|
||||
'title.inLibrary': "In deiner Bibliothek",
|
||||
'title.done': 'Fertig',
|
||||
'title.added': "Zu deiner Bibliothek hinzugefügt",
|
||||
'title.adding': "Wird hinzugefügt…",
|
||||
'title.yourRating': "Deine Bewertung",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "Can’t find it? Create it yourself.",
|
||||
'title.manualTitle': "New title",
|
||||
'title.inLibrary': "In your library",
|
||||
'title.done': 'Done',
|
||||
'title.added': "Added to your library",
|
||||
'title.adding': "Adding…",
|
||||
'title.yourRating': "Your rating",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "¿No lo encuentras? Crea la ficha tú mismo.",
|
||||
'title.manualTitle': "Nuevo título",
|
||||
'title.inLibrary': "En tu biblioteca",
|
||||
'title.done': 'Listo',
|
||||
'title.added': "Añadido a tu biblioteca",
|
||||
'title.adding': "Añadiendo…",
|
||||
'title.yourRating': "Tu nota",
|
||||
|
||||
@@ -755,6 +755,7 @@ const dict = {
|
||||
'title.manualHint': "Introuvable ? Crée la fiche toi-même.",
|
||||
'title.manualTitle': "Nouveau titre",
|
||||
'title.inLibrary': "Dans ta bibliothèque",
|
||||
'title.done': 'Valider',
|
||||
'title.added': "Ajouté à ta bibliothèque",
|
||||
'title.adding': "Ajout…",
|
||||
'title.yourRating': "Ta note",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "नहीं मिला? ख़ुद बनाएँ।",
|
||||
'title.manualTitle': "नया शीर्षक",
|
||||
'title.inLibrary': "आपकी लाइब्रेरी में",
|
||||
'title.done': 'हो गया',
|
||||
'title.added': "आपकी लाइब्रेरी में जोड़ा गया",
|
||||
'title.adding': "जोड़ रहे हैं…",
|
||||
'title.yourRating': "आपकी रेटिंग",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "Tidak ketemu? Buat sendiri.",
|
||||
'title.manualTitle': "Judul baru",
|
||||
'title.inLibrary': "Di pustakamu",
|
||||
'title.done': 'Selesai',
|
||||
'title.added': "Ditambahkan ke pustakamu",
|
||||
'title.adding': "Menambahkan…",
|
||||
'title.yourRating': "Nilaimu",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "Non lo trovi? Crea tu la scheda.",
|
||||
'title.manualTitle': "Nuovo titolo",
|
||||
'title.inLibrary': "Nella tua libreria",
|
||||
'title.done': 'Fatto',
|
||||
'title.added': "Aggiunto alla tua libreria",
|
||||
'title.adding': "Aggiunta…",
|
||||
'title.yourRating': "Il tuo voto",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "見つからない場合は自分で作成できます。",
|
||||
'title.manualTitle': "新しい作品",
|
||||
'title.inLibrary': "ライブラリにあります",
|
||||
'title.done': '完了',
|
||||
'title.added': "ライブラリに追加しました",
|
||||
'title.adding': "追加中…",
|
||||
'title.yourRating': "あなたの評価",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "찾을 수 없나요? 직접 만들어 보세요.",
|
||||
'title.manualTitle': "새 작품",
|
||||
'title.inLibrary': "내 라이브러리에 있음",
|
||||
'title.done': '완료',
|
||||
'title.added': "내 라이브러리에 추가했어요",
|
||||
'title.adding': "추가하는 중…",
|
||||
'title.yourRating': "내 평점",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "Niet gevonden? Maak hem zelf aan.",
|
||||
'title.manualTitle': "Nieuwe titel",
|
||||
'title.inLibrary': "In je bibliotheek",
|
||||
'title.done': 'Klaar',
|
||||
'title.added': "Toegevoegd aan je bibliotheek",
|
||||
'title.adding': "Toevoegen…",
|
||||
'title.yourRating': "Jouw beoordeling",
|
||||
|
||||
@@ -821,6 +821,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "Nie możesz znaleźć? Utwórz go sam.",
|
||||
'title.manualTitle': "Nowy tytuł",
|
||||
'title.inLibrary': "W twojej bibliotece",
|
||||
'title.done': 'Gotowe',
|
||||
'title.added': "Dodano do twojej biblioteki",
|
||||
'title.adding': "Dodawanie…",
|
||||
'title.yourRating': "Twoja ocena",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "Não encontrou? Crie a ficha você mesmo.",
|
||||
'title.manualTitle': "Novo título",
|
||||
'title.inLibrary': "Na sua biblioteca",
|
||||
'title.done': 'Concluir',
|
||||
'title.added': "Adicionado à sua biblioteca",
|
||||
'title.adding': "Adicionando…",
|
||||
'title.yourRating': "Sua nota",
|
||||
|
||||
@@ -821,6 +821,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "Не нашли? Создайте карточку сами.",
|
||||
'title.manualTitle': "Новое название",
|
||||
'title.inLibrary': "В вашей библиотеке",
|
||||
'title.done': 'Готово',
|
||||
'title.added': "Добавлено в вашу библиотеку",
|
||||
'title.adding': "Добавление…",
|
||||
'title.yourRating': "Ваша оценка",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "หาไม่เจอ? สร้างเองได้เลย",
|
||||
'title.manualTitle': "เรื่องใหม่",
|
||||
'title.inLibrary': "อยู่ในคลังของคุณ",
|
||||
'title.done': 'เสร็จสิ้น',
|
||||
'title.added': "เพิ่มในคลังของคุณแล้ว",
|
||||
'title.adding': "กำลังเพิ่ม…",
|
||||
'title.yourRating': "คะแนนของคุณ",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "Bulamadın mı? Kendin oluştur.",
|
||||
'title.manualTitle': "Yeni başlık",
|
||||
'title.inLibrary': "Kitaplığında",
|
||||
'title.done': 'Tamam',
|
||||
'title.added': "Kitaplığına eklendi",
|
||||
'title.adding': "Ekleniyor…",
|
||||
'title.yourRating': "Puanın",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "Không tìm thấy? Tự tạo thẻ phim.",
|
||||
'title.manualTitle': "Phim mới",
|
||||
'title.inLibrary': "Trong thư viện của bạn",
|
||||
'title.done': 'Xong',
|
||||
'title.added': "Đã thêm vào thư viện",
|
||||
'title.adding': "Đang thêm…",
|
||||
'title.yourRating': "Điểm của bạn",
|
||||
|
||||
@@ -753,6 +753,7 @@ const dict: Translations = {
|
||||
'title.manualHint': "找不到?自己创建条目。",
|
||||
'title.manualTitle': "新作品",
|
||||
'title.inLibrary': "已在你的片库中",
|
||||
'title.done': '完成',
|
||||
'title.added': "已添加到你的片库",
|
||||
'title.adding': "正在添加…",
|
||||
'title.yourRating': "你的评分",
|
||||
|
||||
Reference in new issue
Block a user