5c7116557d
- Integrated HTMX for server-driven UI updates and fragments - Adopted Alpine.js for global reactive state and tab management - Replaced legacy player with Plyr.io for premium streaming experience - Implemented real-time download polling via HTMX - Added server-sent Toast notification system - Fixed navigation and authentication scoping issues
82 lines
2.0 KiB
HTML
82 lines
2.0 KiB
HTML
<div class="section-container">
|
|
<div class="section-header">
|
|
<h2>📥 Téléchargements</h2>
|
|
<div class="header-actions">
|
|
<button class="btn btn-sm btn-secondary"
|
|
hx-post="/api/downloads/cleanup"
|
|
hx-swap="none"
|
|
title="Supprimer les téléchargements terminés de la liste">
|
|
Nettoyer terminés
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="downloads-container">
|
|
{% include "components/downloads_list.html" %}
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.section-container { margin-bottom: 40px; }
|
|
.download-item {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 10px;
|
|
padding: 15px;
|
|
margin-bottom: 15px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
.progress-container {
|
|
height: 8px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 4px;
|
|
margin: 10px 0;
|
|
overflow: hidden;
|
|
}
|
|
.progress-bar {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #00d9ff, #00ff88);
|
|
transition: width 0.3s ease;
|
|
}
|
|
.download-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 5px;
|
|
}
|
|
.download-name {
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 70%;
|
|
}
|
|
.download-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.8rem;
|
|
color: #aaa;
|
|
}
|
|
.download-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
justify-content: flex-end;
|
|
}
|
|
.btn-icon {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: none;
|
|
color: white;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
.btn-icon:hover { background: rgba(0, 217, 255, 0.2); color: #00d9ff; }
|
|
.btn-icon.danger:hover { background: rgba(244, 67, 54, 0.2); color: #f44336; }
|
|
.btn-icon.success:hover { background: rgba(76, 175, 80, 0.2); color: #4caf50; }
|
|
</style>
|