133 lines
5.4 KiB
HTML
133 lines
5.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Lycostorrent - Recherche</title>
|
|
|
|
<!-- Chargement du thème (en premier pour éviter le flash) -->
|
|
<script src="/static/js/theme-loader.js"></script>
|
|
|
|
<!-- PWA Meta Tags -->
|
|
<meta name="theme-color" content="#e63946">
|
|
<meta name="description" content="Recherche de torrents avec enrichissement TMDb">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
<meta name="apple-mobile-web-app-title" content="Lycostorrent">
|
|
|
|
<!-- PWA Manifest -->
|
|
<link rel="manifest" href="/static/manifest.json">
|
|
|
|
<!-- Icons -->
|
|
<link rel="icon" type="image/png" sizes="192x192" href="/static/icons/icon-192x192.png">
|
|
<link rel="apple-touch-icon" href="/static/icons/icon-192x192.png">
|
|
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
|
<link rel="stylesheet" href="/static/css/themes.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<!-- Header -->
|
|
<header class="header">
|
|
<h1>🔍 Lycostorrent</h1>
|
|
<p class="subtitle">Recherche de torrents</p>
|
|
<nav class="main-nav" id="mainNav">
|
|
<!-- Navigation générée dynamiquement -->
|
|
</nav>
|
|
</header>
|
|
|
|
<!-- Barre de recherche -->
|
|
<section class="search-section">
|
|
<div class="search-bar">
|
|
<input
|
|
type="text"
|
|
id="search-input"
|
|
placeholder="Rechercher un film, série, musique..."
|
|
autocomplete="off"
|
|
>
|
|
<button id="search-btn" class="btn-primary">Rechercher</button>
|
|
</div>
|
|
|
|
<!-- Catégorie -->
|
|
<div class="search-options">
|
|
<div class="option-group">
|
|
<label>Catégorie</label>
|
|
<select id="category-select">
|
|
<option value="all">Tout</option>
|
|
<option value="movies">Films</option>
|
|
<option value="tv">Séries TV</option>
|
|
<option value="audio">Audio</option>
|
|
<option value="pc">PC</option>
|
|
<option value="console">Console</option>
|
|
<option value="books">Livres</option>
|
|
<option value="other">Autre</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Sélection des trackers (style Nouveautés) -->
|
|
<div class="trackers-selector">
|
|
<button id="toggleTrackers" class="toggle-btn">🔧 Sélectionner les trackers</button>
|
|
<div id="trackersPanel" class="trackers-panel hidden">
|
|
<div class="trackers-actions">
|
|
<button id="selectAllTrackers">Tout sélectionner</button>
|
|
<button id="deselectAllTrackers">Tout désélectionner</button>
|
|
</div>
|
|
<div id="trackers-list" class="trackers-list">
|
|
<p class="loading">Chargement des trackers...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Filtres dynamiques (masquables) -->
|
|
<section id="filters-section" class="filters-section hidden">
|
|
<div class="filters-header">
|
|
<h3>🎛️ Filtres <span id="results-count" class="results-count"></span></h3>
|
|
<button id="toggle-filters" class="btn-toggle" title="Masquer/Afficher les filtres">▼</button>
|
|
</div>
|
|
<div id="filters-content" class="filters-content">
|
|
<div id="filters-container" class="filters-container">
|
|
<!-- Filtres générés dynamiquement -->
|
|
</div>
|
|
<button id="clear-filters" class="btn-secondary">Effacer les filtres</button>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Résultats -->
|
|
<section id="results-section" class="results-section">
|
|
<div id="results-container">
|
|
<p class="placeholder-text">Effectuez une recherche pour voir les résultats</p>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Loading overlay -->
|
|
<div id="loading-overlay" class="loading-overlay hidden">
|
|
<div class="spinner"></div>
|
|
<p>Recherche en cours...</p>
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<footer class="app-footer">
|
|
<span>Lycostorrent v<span id="app-version">1.1.0</span></span>
|
|
</footer>
|
|
</div>
|
|
|
|
<script src="/static/js/search.js"></script>
|
|
<script>
|
|
fetch('/api/version').then(r => r.json()).then(data => {
|
|
if (data.version) document.getElementById('app-version').textContent = data.version;
|
|
}).catch(() => {});
|
|
|
|
// Enregistrement du Service Worker pour PWA
|
|
if ('serviceWorker' in navigator) {
|
|
window.addEventListener('load', () => {
|
|
navigator.serviceWorker.register('/static/sw.js')
|
|
.then(reg => console.log('✅ Service Worker enregistré'))
|
|
.catch(err => console.log('❌ Service Worker erreur:', err));
|
|
});
|
|
}
|
|
</script>
|
|
<script src="/static/js/nav.js"></script>
|
|
</body>
|
|
</html> |