feat: flat design Sunset Glitch palette + Font Awesome icons
This commit is contained in:
@@ -5,23 +5,23 @@
|
||||
|
||||
<!-- Stats Cards -->
|
||||
<div id="admin-stats" class="admin-stats-grid" style="display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-bottom: 30px;">
|
||||
<div class="admin-stat-card" style="padding: 20px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #ced0ce; text-align: center;">
|
||||
<div class="admin-stat-card" style="padding: 20px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #2a2d32;text-align: center;">
|
||||
<div style="font-size: 2rem; font-weight: 800; color: var(--primary);" id="stat-total-users">{{ users|length }}</div>
|
||||
<div style="color: var(--text-dim); font-size: 0.85rem;">Utilisateurs</div>
|
||||
</div>
|
||||
<div class="admin-stat-card" style="padding: 20px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #ced0ce; text-align: center;">
|
||||
<div class="admin-stat-card" style="padding: 20px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #2a2d32;text-align: center;">
|
||||
<div style="font-size: 2rem; font-weight: 800; color: var(--accent);" id="stat-active-users">{{ users|selectattr('is_active')|list|length }}</div>
|
||||
<div style="color: var(--text-dim); font-size: 0.85rem;">Actifs</div>
|
||||
</div>
|
||||
<div class="admin-stat-card" style="padding: 20px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #ced0ce; text-align: center;">
|
||||
<div class="admin-stat-card" style="padding: 20px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #2a2d32;text-align: center;">
|
||||
<div style="font-size: 2rem; font-weight: 800; color: #f0a500;" id="stat-admin-users">{{ users|selectattr('is_admin')|list|length }}</div>
|
||||
<div style="color: var(--text-dim); font-size: 0.85rem;">Admins</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Users Table -->
|
||||
<div style="background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #ced0ce; overflow: hidden;">
|
||||
<div style="padding: 20px 25px; border-bottom: 1px solid #ced0ce;">
|
||||
<div style="background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #2a2d32;overflow: hidden;">
|
||||
<div style="padding: 20px 25px; border-bottom: 1px solid #2a2d32;">
|
||||
<h3 style="margin: 0; color: var(--primary);">Gestion des utilisateurs</h3>
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<div style="overflow-x: auto;">
|
||||
<table style="width: 100%; border-collapse: collapse;">
|
||||
<thead>
|
||||
<tr style="border-bottom: 1px solid #ced0ce;">
|
||||
<tr style="border-bottom: 1px solid #2a2d32;">
|
||||
<th style="padding: 12px 20px; text-align: left; color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase;">Utilisateur</th>
|
||||
<th style="padding: 12px 15px; text-align: left; color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase;">Email</th>
|
||||
<th style="padding: 12px 15px; text-align: center; color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase;">Statut</th>
|
||||
@@ -41,7 +41,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for user in users %}
|
||||
<tr style="border-bottom: 1px solid #ced0ce; {% if not user.is_active %}opacity: 0.5;{% endif %}">
|
||||
<tr style="border-bottom: 1px solid #2a2d32; {% if not user.is_active %}opacity: 0.5;{% endif %}">
|
||||
<td style="padding: 12px 20px;">
|
||||
<div style="font-weight: 600;">{{ user.username }}</div>
|
||||
{% if user.full_name %}
|
||||
@@ -55,7 +55,7 @@
|
||||
</span>
|
||||
</td>
|
||||
<td style="padding: 12px 15px; text-align: center;">
|
||||
<span style="display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; background: {% if user.is_admin %}rgba(244,162,97,0.15); color: #f4a261{% else %}#e6e8e6; color: var(--text-dim){% endif %};">
|
||||
<span style="display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; background: {% if user.is_admin %}rgba(244,162,97,0.15); color: #f4a261{% else %}var(--bg-elevated); color: var(--text-dim){% endif %};">
|
||||
{% if user.is_admin %}Admin{% else %}User{% endif %}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% set accent = "#f15025" %}
|
||||
{% set accent = "#FF9F1C" %}
|
||||
{% set default_lang = settings.default_lang if settings else 'vostfr' %}
|
||||
|
||||
{% set _groups = namespace(items={}) %}
|
||||
@@ -36,9 +36,9 @@
|
||||
{% set first_url = group.providers[0].url %}
|
||||
<div class="sr-card" style="--sr-accent: {{ accent }};">
|
||||
<a class="sr-poster-link" href="{{ first_url }}" target="_blank" rel="noopener">
|
||||
<img class="sr-poster-img" src="{{ group.cover or 'https://placehold.co/240x360/e6e8e6/f15025?text=No+Image' }}"
|
||||
<img class="sr-poster-img" src="{{ group.cover or 'https://placehold.co/240x360/29274c/7e52a0?text=No+Image' }}"
|
||||
alt="{{ group.title }}" loading="lazy" referrerpolicy="no-referrer"
|
||||
onerror="this.src='https://placehold.co/240x360/e6e8e6/f15025?text=Error'; this.onerror=null;">
|
||||
onerror="this.src='https://placehold.co/240x360/29274c/7e52a0?text=Error'; this.onerror=null;">
|
||||
</a>
|
||||
<div class="sr-body">
|
||||
<div class="sr-top">
|
||||
@@ -114,7 +114,7 @@
|
||||
.sr-card {
|
||||
display: flex; gap: 20px;
|
||||
background: var(--bg-card); border-radius: var(--card-radius);
|
||||
padding: 20px; border: 1px solid #ced0ce;
|
||||
padding: 20px; border: 1px solid #2a2d32;"
|
||||
transition: var(--transition);
|
||||
}
|
||||
.sr-card:hover { border-color: var(--sr-accent); }
|
||||
@@ -126,24 +126,24 @@
|
||||
.sr-rating { flex-shrink: 0; font-size: 0.8rem; font-weight: 700; color: #ffcc00; }
|
||||
.sr-synopsis { font-size: 0.85rem; color: var(--text-dim); margin: 0; line-height: 1.5; }
|
||||
.sr-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
|
||||
.sr-tag { font-size: 0.65rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #e6e8e6; color: var(--text-dim); }
|
||||
.sr-tag { font-size: 0.65rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--bg-elevated); color: var(--text-dim); }
|
||||
.sr-providers { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.sr-provider-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--sr-accent); color: var(--sr-accent); background: transparent; cursor: pointer; transition: var(--transition); letter-spacing: 0.5px; text-decoration: none; }
|
||||
.sr-provider-badge:hover { background: var(--sr-accent); color: #fff; }
|
||||
.sr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
|
||||
.sr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; border: 1px solid #ced0ce; cursor: pointer; transition: var(--transition); text-decoration: none; background: transparent; color: var(--text-main); min-height: 34px; }
|
||||
.sr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; border: 1px solid #2a2d32; cursor: pointer; transition: var(--transition); text-decoration: none; background: transparent; color: var(--text-main); min-height: 34px; }
|
||||
.sr-btn:hover { border-color: var(--text-main); background: var(--bg-card); }
|
||||
.sr-btn-dl { border-color: var(--secondary); color: var(--secondary); }
|
||||
.sr-btn-dl:hover { background: var(--secondary); color: #191919; }
|
||||
.sr-btn-dl:hover { background: var(--secondary); color: #ffffff; }
|
||||
.sr-btn-watch { border-color: var(--sr-accent); color: var(--sr-accent); }
|
||||
.sr-btn-watch:hover { background: var(--sr-accent); color: #fff; }
|
||||
.sr-btn-follow { border-color: var(--accent); color: var(--accent); }
|
||||
.sr-btn-follow:hover { background: var(--accent); color: #fff; }
|
||||
.sr-btn-followed { border-color: var(--accent); color: var(--accent); background: rgba(241,80,37,0.1); pointer-events: none; }
|
||||
.sr-btn-followed { border-color: var(--accent); color: var(--accent); background: rgba(255,191,105,0.1); pointer-events: none; }
|
||||
.sr-dropdown { position: relative; }
|
||||
.sr-dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--bg-card); border: 1px solid #ced0ce; border-radius: 4px; padding: 4px; z-index: 100; }
|
||||
.sr-dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--bg-card); border: 1px solid #2a2d32; border-radius: 4px; padding: 4px; z-index: 100; }
|
||||
.sr-dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: none; background: transparent; color: var(--text-main); font-size: 0.8rem; cursor: pointer; border-radius: 4px; transition: var(--transition); text-align: left; }
|
||||
.sr-dropdown-item:hover { background: #ced0ce; }
|
||||
.sr-dropdown-item:hover { background: var(--bg-elevated); }
|
||||
.sr-empty { text-align: center; padding: 100px 20px; color: var(--text-dim); }
|
||||
.sr-empty i { font-size: 4rem; margin-bottom: 20px; display: block; opacity: 0.2; }
|
||||
@media (max-width: 768px) {
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
background: var(--bg-card);
|
||||
border-radius: var(--card-radius);
|
||||
padding: 30px;
|
||||
border: 1px solid #ced0ce;
|
||||
border: 1px solid var(--secondary);
|
||||
animation: fadeIn 0.3s ease-out;
|
||||
}
|
||||
|
||||
@@ -71,19 +71,19 @@
|
||||
}
|
||||
|
||||
.view-grid .episode-item {
|
||||
background: #ffffff;
|
||||
background: var(--bg-elevated);
|
||||
padding: 20px 15px;
|
||||
border-radius: 4px;
|
||||
text-align: center;
|
||||
transition: var(--transition);
|
||||
border: 1px solid #ced0ce;
|
||||
border: 1px solid var(--secondary);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.view-grid .episode-item:hover {
|
||||
background: #e6e8e6;
|
||||
background: var(--text-dim);
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
@@ -102,15 +102,15 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
background: #ffffff;
|
||||
background: var(--bg-elevated);
|
||||
padding: 12px 20px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #ced0ce;
|
||||
border: 1px solid var(--secondary);
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.view-list .episode-item:hover {
|
||||
background: #e6e8e6;
|
||||
background: var(--text-dim);
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
<header>
|
||||
<h1>⚡ Ohm Stream Downloader</h1>
|
||||
<h1><i class="fa-solid fa-bolt"></i> Ohm Stream Downloader</h1>
|
||||
<p class="subtitle">Téléchargez vos vidéos, animes et séries depuis vos hébergeurs préférés</p>
|
||||
|
||||
<!-- User info and logout button -->
|
||||
<div id="userInfo" x-show="isAuthenticated" class="auth-panel" x-cloak>
|
||||
<div style="display: flex; align-items: center; gap: 10px;">
|
||||
<span style="color: var(--primary); font-size: 1.2rem;">👤</span>
|
||||
<span style="color: var(--primary); font-size: 1.2rem;"><i class="fa-solid fa-user"></i></span>
|
||||
<span style="color: var(--text-main); font-size: 14px;">Connecté en tant que <strong x-text="username" style="color: var(--primary);">-</strong></span>
|
||||
</div>
|
||||
<button class="btn btn-secondary btn-small"
|
||||
onclick="removeToken(); isAuthenticated = false"
|
||||
hx-post="/api/auth/logout"
|
||||
hx-on::after-request="window.location.href = '/login'">
|
||||
🚪 Déconnexion
|
||||
<i class="fa-solid fa-right-from-bracket"></i> Déconnexion
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Login prompt (shown when not logged in) -->
|
||||
<div id="loginPrompt" x-show="!isAuthenticated" class="auth-panel" style="justify-content: center;" x-cloak>
|
||||
<p style="color: var(--primary); margin: 0;">
|
||||
👋 Bienvenue! <a href="/login" class="btn btn-secondary btn-small" style="margin-left: 10px;">Se connecter</a> pour accéder à toutes les fonctionnalités.
|
||||
<i class="fa-solid fa-hand"></i> Bienvenue! <a href="/login" class="btn btn-secondary btn-small" style="margin-left: 10px;">Se connecter</a> pour accéder à toutes les fonctionnalités.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<div class="section-container">
|
||||
<div class="section-header">
|
||||
<h2>🎯 Recommandé pour vous</h2>
|
||||
<h2><i class="fa-solid fa-bullseye"></i> Recommandé pour vous</h2>
|
||||
<button class="btn btn-secondary btn-small"
|
||||
hx-get="/api/recommendations"
|
||||
hx-target="#recommendationsList">
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<div class="section-container">
|
||||
<div class="section-header">
|
||||
<h2>🔥 Dernières sorties</h2>
|
||||
<h2><i class="fa-solid fa-fire"></i> Dernières sorties</h2>
|
||||
<button class="btn btn-secondary btn-small"
|
||||
hx-get="/api/releases/latest"
|
||||
hx-target="#releasesList">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="login-prompt" style="text-align: center; padding: 40px 20px;">
|
||||
<i class="fas fa-lock" style="font-size: 2rem; color: #f15025; margin-bottom: 15px;"></i>
|
||||
<p style="color: #ced0ce; font-size: 0.95rem;">Connectez-vous pour accéder à cette section.</p>
|
||||
<i class="fa-solid fa-lock" style="font-size: 2rem; color: #FF9F1C; margin-bottom: 15px;"></i>
|
||||
<p style="color: #8a8f98; font-size: 0.95rem;">Connectez-vous pour accéder à cette section.</p>
|
||||
</div>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
mozallowfullscreen></iframe>
|
||||
</div>
|
||||
<div class="player-info-hint">
|
||||
💡 Lecteur externe utilisé. Les contrôles dépendent de l'hébergeur.
|
||||
<i class="fa-solid fa-lightbulb"></i> Lecteur externe utilisé. Les contrôles dépendent de l'hébergeur.
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="video-wrapper">
|
||||
@@ -42,7 +42,7 @@
|
||||
padding: 15px;
|
||||
background: #000;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #ced0ce;
|
||||
border: 1px solid #2a2d32;
|
||||
}
|
||||
.iframe-container {
|
||||
position: relative;
|
||||
@@ -65,7 +65,7 @@
|
||||
}
|
||||
.player-info-hint {
|
||||
font-size: 0.8rem;
|
||||
color: #888;
|
||||
color: var(--text-dim);
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% set accent = "#f15025" %}
|
||||
{% set accent = "#FF9F1C" %}
|
||||
{% set default_lang = settings.default_lang if settings else 'vf' %}
|
||||
|
||||
{% set _groups = namespace(items={}) %}
|
||||
@@ -28,9 +28,9 @@
|
||||
{% set first_url = group.providers[0].url %}
|
||||
<div class="sr-card" style="--sr-accent: {{ accent }};">
|
||||
<a class="sr-poster-link" href="{{ first_url }}" target="_blank" rel="noopener">
|
||||
<img class="sr-poster-img" src="{{ group.cover or 'https://placehold.co/240x360/e6e8e6/f15025?text=No+Image' }}"
|
||||
<img class="sr-poster-img" src="{{ group.cover or 'https://placehold.co/240x360/29274c/7e52a0?text=No+Image' }}"
|
||||
alt="{{ group.title }}" loading="lazy" referrerpolicy="no-referrer"
|
||||
onerror="this.src='https://placehold.co/240x360/e6e8e6/f15025?text=Error'; this.onerror=null;">
|
||||
onerror="this.src='https://placehold.co/240x360/29274c/7e52a0?text=Error'; this.onerror=null;">
|
||||
</a>
|
||||
<div class="sr-body">
|
||||
<h3 class="sr-title">{{ group.title }}</h3>
|
||||
@@ -93,7 +93,7 @@
|
||||
.sr-card {
|
||||
display: flex; gap: 20px;
|
||||
background: var(--bg-card); border-radius: var(--card-radius);
|
||||
padding: 20px; border: 1px solid #ced0ce;
|
||||
padding: 20px; border: 1px solid #2a2d32;"
|
||||
transition: var(--transition);
|
||||
}
|
||||
.sr-card:hover { border-color: var(--sr-accent); }
|
||||
@@ -106,19 +106,19 @@
|
||||
.sr-provider-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--sr-accent); color: var(--sr-accent); background: transparent; cursor: pointer; transition: var(--transition); letter-spacing: 0.5px; text-decoration: none; }
|
||||
.sr-provider-badge:hover { background: var(--sr-accent); color: #fff; }
|
||||
.sr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
|
||||
.sr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; border: 1px solid #ced0ce; cursor: pointer; transition: var(--transition); text-decoration: none; background: transparent; color: var(--text-main); min-height: 34px; }
|
||||
.sr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; border: 1px solid #2a2d32; cursor: pointer; transition: var(--transition); text-decoration: none; background: transparent; color: var(--text-main); min-height: 34px; }
|
||||
.sr-btn:hover { border-color: var(--text-main); background: var(--bg-card); }
|
||||
.sr-btn-dl { border-color: var(--secondary); color: var(--secondary); }
|
||||
.sr-btn-dl:hover { background: var(--secondary); color: #191919; }
|
||||
.sr-btn-dl:hover { background: var(--secondary); color: #ffffff; }
|
||||
.sr-btn-watch { border-color: var(--sr-accent); color: var(--sr-accent); }
|
||||
.sr-btn-watch:hover { background: var(--sr-accent); color: #fff; }
|
||||
.sr-btn-follow { border-color: var(--accent); color: var(--accent); }
|
||||
.sr-btn-follow:hover { background: var(--accent); color: #fff; }
|
||||
.sr-btn-followed { border-color: var(--accent); color: var(--accent); background: rgba(241,80,37,0.1); pointer-events: none; }
|
||||
.sr-btn-followed { border-color: var(--accent); color: var(--accent); background: rgba(255,191,105,0.1); pointer-events: none; }
|
||||
.sr-dropdown { position: relative; }
|
||||
.sr-dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--bg-card); border: 1px solid #ced0ce; border-radius: 4px; padding: 4px; z-index: 100; }
|
||||
.sr-dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--bg-card); border: 1px solid #2a2d32; border-radius: 4px; padding: 4px; z-index: 100; }
|
||||
.sr-dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: none; background: transparent; color: var(--text-main); font-size: 0.8rem; cursor: pointer; border-radius: 4px; transition: var(--transition); text-align: left; }
|
||||
.sr-dropdown-item:hover { background: #ced0ce; }
|
||||
.sr-dropdown-item:hover { background: var(--bg-elevated); }
|
||||
.sr-empty { text-align: center; padding: 100px 20px; color: var(--text-dim); }
|
||||
.sr-empty i { font-size: 4rem; margin-bottom: 20px; display: block; opacity: 0.2; }
|
||||
@media (max-width: 768px) {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
</div>
|
||||
|
||||
<!-- General Preferences -->
|
||||
<div class="settings-card card" style="margin-bottom: 30px; padding: 25px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #ced0ce;">
|
||||
<div class="settings-card card" style="margin-bottom: 30px; padding: 25px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #2a2d32;">
|
||||
<h3 style="margin-bottom: 20px; color: var(--primary);">General</h3>
|
||||
|
||||
<form id="settings-form" class="settings-form">
|
||||
@@ -43,7 +43,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Content Filters -->
|
||||
<div class="settings-card card" style="margin-bottom: 30px; padding: 25px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #ced0ce;">
|
||||
<div class="settings-card card" style="margin-bottom: 30px; padding: 25px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #2a2d32;">
|
||||
<h3 style="margin-bottom: 20px; color: var(--primary);">Filtres de contenu</h3>
|
||||
|
||||
<div class="form-group">
|
||||
@@ -66,12 +66,12 @@
|
||||
</div>
|
||||
|
||||
<!-- Categories -->
|
||||
<div class="settings-card card" style="margin-bottom: 30px; padding: 25px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #ced0ce;">
|
||||
<div class="settings-card card" style="margin-bottom: 30px; padding: 25px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #2a2d32;">
|
||||
<h3 style="margin-bottom: 20px; color: var(--primary);">Categories</h3>
|
||||
<p style="color: var(--text-dim); font-size: 13px; margin-bottom: 15px;">Activez ou desactivez les categories. Au moins une doit rester active.</p>
|
||||
|
||||
<div style="display: flex; gap: 15px; flex-wrap: wrap;">
|
||||
<label class="toggle-card" style="flex: 1; min-width: 200px; padding: 15px; background: #ffffff; border-radius: 4px; border: 1px solid #ced0ce; display: flex; align-items: center; justify-content: space-between; cursor: pointer;">
|
||||
<label class="toggle-card" style="flex: 1; min-width: 200px; padding: 15px; background: var(--bg-elevated); border-radius: 4px; border: 1px solid var(--secondary); display: flex; align-items: center; justify-content: space-between; cursor: pointer;">
|
||||
<div>
|
||||
<div style="font-weight: 600; font-size: 1.1rem;">Animes</div>
|
||||
<div style="font-size: 0.8rem; color: var(--text-dim);">Films et series anime</div>
|
||||
@@ -79,7 +79,7 @@
|
||||
<input type="checkbox" id="anime_enabled" {% if settings.anime_enabled %}checked{% endif %} onchange="toggleCategory('anime_enabled', this.checked)" style="width: 20px; height: 20px; cursor: pointer; accent-color: var(--primary);">
|
||||
</label>
|
||||
|
||||
<label class="toggle-card" style="flex: 1; min-width: 200px; padding: 15px; background: #ffffff; border-radius: 4px; border: 1px solid #ced0ce; display: flex; align-items: center; justify-content: space-between; cursor: pointer;">
|
||||
<label class="toggle-card" style="flex: 1; min-width: 200px; padding: 15px; background: var(--bg-elevated); border-radius: 4px; border: 1px solid var(--secondary); display: flex; align-items: center; justify-content: space-between; cursor: pointer;">
|
||||
<div>
|
||||
<div style="font-weight: 600; font-size: 1.1rem;">Series TV</div>
|
||||
<div style="font-size: 0.8rem; color: var(--text-dim);">Series americaines et europeennes</div>
|
||||
@@ -90,7 +90,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Providers Management -->
|
||||
<div class="settings-card card" style="padding: 25px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #ced0ce;">
|
||||
<div class="settings-card card" style="padding: 25px; background: var(--bg-card); border-radius: var(--card-radius); border: 1px solid #2a2d32;">
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;">
|
||||
<h3 style="margin: 0; color: var(--primary);">Disponibilite des Fournisseurs</h3>
|
||||
<button class="btn btn-secondary btn-small" hx-post="/api/providers/health/check" hx-swap="none">
|
||||
@@ -100,13 +100,13 @@
|
||||
|
||||
<div class="providers-settings-list" style="display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px;">
|
||||
{% for provider in providers %}
|
||||
<div class="provider-status-card" style="padding: 15px; background: #ffffff; border-radius: 4px; border: 1px solid #ced0ce; display: flex; align-items: center; justify-content: space-between;">
|
||||
<div class="provider-status-card" style="padding: 15px; background: var(--bg-elevated); border-radius: 4px; border: 1px solid var(--secondary); display: flex; align-items: center; justify-content: space-between;">
|
||||
<div style="display: flex; align-items: center; gap: 12px;">
|
||||
<span style="font-size: 1.5rem;">{{ provider.icon }}</span>
|
||||
<div>
|
||||
<div style="font-weight: 600;">{{ provider.name }}</div>
|
||||
<div style="font-size: 0.75rem; display: flex; align-items: center; gap: 5px;">
|
||||
<span class="status-dot" style="width: 8px; height: 8px; border-radius: 50%; background: {% if provider.status == 'up' %}var(--accent){% elif provider.status == 'down' %}var(--danger){% else %}#aaa{% endif %};"></span>
|
||||
<span class="status-dot" style="width: 8px; height: 8px; border-radius: 50%; background: {% if provider.status == 'up' %}var(--accent){% elif provider.status == 'down' %}var(--danger){% else %}var(--text-muted){% endif %};"></span>
|
||||
<span style="color: {% if provider.status == 'up' %}var(--accent){% elif provider.status == 'down' %}var(--danger){% else %}var(--text-dim){% endif %}; text-transform: uppercase; font-weight: 800;">
|
||||
{{ provider.status | upper }}
|
||||
</span>
|
||||
|
||||
@@ -38,17 +38,17 @@
|
||||
min-width: 250px;
|
||||
padding: 12px 16px;
|
||||
border-radius: 4px;
|
||||
background: #e6e8e6;
|
||||
color: #191919;
|
||||
border: 1px solid #ced0ce;
|
||||
background: var(--bg-card);
|
||||
color: var(--text-main);
|
||||
border: 1px solid var(--secondary);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-left: 4px solid #ced0ce;
|
||||
border-left: 4px solid var(--secondary);
|
||||
}
|
||||
.toast-success { border-left-color: #2d936c; }
|
||||
.toast-error { border-left-color: #e63946; }
|
||||
.toast-info { border-left-color: #f15025; }
|
||||
.toast-info { border-left-color: #FFBF69; }
|
||||
.toast-content { display: flex; align-items: center; gap: 10px; }
|
||||
.toast-close { background: none; border: none; color: #aaa; cursor: pointer; }
|
||||
</style>
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
.filter-tabs {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
border-bottom: 1px solid #ced0ce;
|
||||
border-bottom: 1px solid #2a2d32;
|
||||
padding-bottom: 12px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
@@ -188,7 +188,7 @@
|
||||
}
|
||||
|
||||
.filter-tab:hover {
|
||||
background: #e6e8e6;
|
||||
background: var(--bg-elevated);
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
background: var(--bg-card);
|
||||
border-radius: var(--card-radius);
|
||||
padding: 16px;
|
||||
border: 1px solid #ced0ce;
|
||||
border: 1px solid #2a2d32;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
@@ -258,16 +258,16 @@
|
||||
|
||||
.poster-badge.paused {
|
||||
background: #f4a261;
|
||||
color: #191919;
|
||||
color: #15171A;
|
||||
}
|
||||
|
||||
.poster-badge.completed {
|
||||
background: #9c27b0;
|
||||
color: #fff;
|
||||
background: #FF9F1C;
|
||||
color: #15171A;
|
||||
}
|
||||
|
||||
.poster-badge.archived {
|
||||
background: #ced0ce;
|
||||
background: rgba(206, 208, 206, 0.2);
|
||||
color: var(--text-dim);
|
||||
}
|
||||
|
||||
@@ -277,7 +277,7 @@
|
||||
left: 8px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 20px;
|
||||
background: #f15025;
|
||||
background: #FF9F1C;
|
||||
color: var(--bg-dark);
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
@@ -325,9 +325,9 @@
|
||||
}
|
||||
|
||||
.meta-provider {
|
||||
background: rgba(241, 80, 37, 0.1);
|
||||
background: rgba(255, 191, 105, 0.1);
|
||||
color: var(--primary);
|
||||
border: 1px solid rgba(241, 80, 37, 0.3);
|
||||
border: 1px solid rgba(255, 191, 105, 0.3);
|
||||
}
|
||||
|
||||
.meta-lang {
|
||||
@@ -373,7 +373,7 @@
|
||||
gap: 6px;
|
||||
margin-top: auto;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid #ced0ce;
|
||||
border-top: 1px solid #2a2d32;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
@@ -387,18 +387,12 @@
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
background: #e6e8e6;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
background: #e6e8e6;
|
||||
background: var(--bg-elevated);
|
||||
color: var(--text-dim);
|
||||
}
|
||||
|
||||
.action-btn:hover {
|
||||
background: #ced0ce;
|
||||
background: var(--secondary);
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
@@ -419,11 +413,11 @@
|
||||
}
|
||||
|
||||
.btn-complete {
|
||||
color: #9c27b0;
|
||||
color: #FFBF69;
|
||||
}
|
||||
|
||||
.btn-complete:hover {
|
||||
background: rgba(156, 39, 176, 0.15);
|
||||
background: rgba(255, 191, 105, 0.15);
|
||||
}
|
||||
|
||||
.btn-delete {
|
||||
@@ -440,7 +434,7 @@
|
||||
padding: 80px 40px;
|
||||
background: var(--bg-card);
|
||||
border-radius: var(--card-radius);
|
||||
border: 1px dashed #ced0ce;
|
||||
border: 1px dashed #2a2d32;
|
||||
}
|
||||
|
||||
.watchlist-empty i {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="section-container">
|
||||
<div class="section-header">
|
||||
<h2>📋 Ma Watchlist</h2>
|
||||
<h2><i class="fa-solid fa-clipboard-list"></i> Ma Watchlist</h2>
|
||||
<div class="header-actions">
|
||||
<button class="btn btn-sm btn-primary" hx-post="/api/watchlist/check" hx-swap="none">
|
||||
<i class="fas fa-sync"></i> Vérifier épisodes
|
||||
@@ -35,15 +35,15 @@
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
padding: 15px;
|
||||
background: #e6e8e6;
|
||||
background: var(--bg-card);
|
||||
border-radius: 4px;
|
||||
border: 1px solid #ced0ce;
|
||||
border: 1px solid var(--secondary);
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
.watchlist-item:hover { border-color: #f15025; }
|
||||
.watchlist-item:hover { border-color: #FFBF69; }
|
||||
.item-poster img { width: 80px; height: 120px; border-radius: 4px; object-fit: cover; }
|
||||
.item-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
|
||||
.item-info h3 { font-size: 1rem; margin-bottom: 5px; color: #191919; }
|
||||
.item-info h3 { font-size: 1rem; margin-bottom: 5px; color: #F2F2F2; }
|
||||
.item-meta { display: flex; gap: 8px; margin-bottom: 8px; }
|
||||
.item-actions { display: flex; gap: 10px; margin-top: 10px; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user