feat: 🚧 Starting working on Spotify authentification for playlist creation

This commit is contained in:
2024-07-01 00:19:39 +02:00
parent f3d606ee7d
commit 708c8beac6
3 changed files with 59 additions and 4 deletions

34
templates/create.html Normal file
View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fête de la musique</title>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
{{ bootstrap.load_css() }}
</head>
<body>
<div>
<div>
<script>
if ("{{type}}" === "error") {
Swal.fire({
title: "{{ response }}",
text: "{{ comment }}",
icon: "{{ type }}",
confirmButtonText: "Try again",
}).then(function() {
window.location = "/";
})
}
Swal.fire({
title:"{{ response }}",
text: "{{ comment }}",
icon: "{{ type }}",
confirmButtonText: "Add some music!",
}).then(function() {
window.location = "/search/{{ roomid }}";
})
</script>
</div>
</div>
</body>