Compare commits
2 Commits
49af82de5c
...
2c744608fe
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c744608fe | |||
| 567ebe3c33 |
@@ -160,7 +160,7 @@ $(function () {
|
|||||||
else if (status === 'background_ready') {
|
else if (status === 'background_ready') {
|
||||||
progressHtml = `<div class="progress-container"><div class="progress-fill" style="width:0%;"></div></div>`;
|
progressHtml = `<div class="progress-container"><div class="progress-fill" style="width:0%;"></div></div>`;
|
||||||
statusHtml = `<span class="status-text pending-text"><i class="fas fa-cloud-upload-alt"></i> Prêt pour tâche de fond</span>`;
|
statusHtml = `<span class="status-text pending-text"><i class="fas fa-cloud-upload-alt"></i> Prêt pour tâche de fond</span>`;
|
||||||
actionHtml = `<button class="btn btn-primary" data-id="${entry.id}" data-action="startBg"><i class="fas fa-play"></i> Lancer</button>`;
|
actionHtml = `<button class="btn btn-primary action-btn" data-id="${entry.id}" data-action="startBg"><i class="fas fa-play"></i> Lancer</button>`;
|
||||||
}
|
}
|
||||||
else if (status === 'ready_stream') {
|
else if (status === 'ready_stream') {
|
||||||
// Transition rapide, normalement ne devrait pas rester visible
|
// Transition rapide, normalement ne devrait pas rester visible
|
||||||
@@ -309,11 +309,12 @@ $(function () {
|
|||||||
const action = $(this).data('action');
|
const action = $(this).data('action');
|
||||||
const entry = videoEntries.find(e => e.id === entryId);
|
const entry = videoEntries.find(e => e.id === entryId);
|
||||||
if (!entry) return;
|
if (!entry) return;
|
||||||
|
|
||||||
if (action === 'login') {
|
if (action === 'login') {
|
||||||
window.open(ENDPOINTS.urlAuth, "_self");
|
window.open(ENDPOINTS.urlAuth, "_self");
|
||||||
}
|
}
|
||||||
else if (action === 'startBg') {
|
else if (action === 'startBg') {
|
||||||
|
|
||||||
if (entry.status === 'background_ready') {
|
if (entry.status === 'background_ready') {
|
||||||
await launchBackground(entry);
|
await launchBackground(entry);
|
||||||
// Après fin du background, la queue pourrait reprendre s'il y a d'autres pending,
|
// Après fin du background, la queue pourrait reprendre s'il y a d'autres pending,
|
||||||
|
|||||||
@@ -324,8 +324,8 @@ final class HomeController extends AbstractController
|
|||||||
|
|
||||||
// 2. Suppression du fichier physique (si présent)
|
// 2. Suppression du fichier physique (si présent)
|
||||||
$path = $this->projectDir . '/public/downloader/user/';
|
$path = $this->projectDir . '/public/downloader/user/';
|
||||||
$filePath = $path . $this->getUser()->getId() . '/' . $userDownloader->getName();
|
$filePath = $path . $this->getUser()->getId() . '/' . $userDownloader->getNameFile();
|
||||||
|
|
||||||
if ($this->filesystem->exists($filePath)) {
|
if ($this->filesystem->exists($filePath)) {
|
||||||
$this->filesystem->remove($filePath);
|
$this->filesystem->remove($filePath);
|
||||||
}
|
}
|
||||||
@@ -349,7 +349,7 @@ final class HomeController extends AbstractController
|
|||||||
#[Route('/test', name: 'app_test')]
|
#[Route('/test', name: 'app_test')]
|
||||||
public function test()
|
public function test()
|
||||||
{
|
{
|
||||||
|
die;
|
||||||
return $this->render('/frontend/test.html.twig', []);
|
return $this->render('/frontend/test.html.twig', []);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user