public/js/admin.js aktualisiert
This commit is contained in:
		| @@ -677,14 +677,18 @@ setInterval(() => { | ||||
|                     // Bestimme die Klasse basierend auf der Index-Position | ||||
|                     const className = index % 2 === 0 ? 'even' : 'odd'; // Klassen für gerade und ungerade Indizes | ||||
|  | ||||
|                     // Verwende favoriteGenres (Plural) und überprüfe, ob es Genres gibt | ||||
|                     const favoriteGenres = user.favoriteGenres ? user.favoriteGenres : (user.favoriteGenre || 'Nicht festgelegt'); | ||||
|  | ||||
|                     usersDiv.innerHTML += ` | ||||
|                         <div class="user-item ${className}"> | ||||
|                             <p><strong>Benutzername:</strong> ${user.username}</p> | ||||
|                                     <p><strong>Benachrichtigungen:</strong> ${user.notifications ? 'Aktiviert' : 'Deaktiviert'}</p> | ||||
|                                     <p><strong>Erstnutzung:</strong> ${user.firstUsed}</p> | ||||
|                                     <p><strong>Lieblingsgenre:</strong> ${user.favoriteGenre || 'Nicht festgelegt'}</p> | ||||
|                                     <p><strong>Befehlsanzahl:</strong> ${user.commandCount}</p> | ||||
|                             <p><strong>Benutzerlevel:</strong> ${user.userLevel}</p> | ||||
|                             <p><strong>Benachrichtigungen:</strong> ${user.notifications ? 'Aktiviert' : 'Deaktiviert'}</p> | ||||
|                             <p><strong>Nachtmodus:</strong> ${user.nightMode}</p> <!-- Nachtmodus-Anzeige --> | ||||
|                             <p><strong>Befehlsanzahl:</strong> ${user.commandCount}</p> | ||||
|                             <p><strong>Erstnutzung:</strong> ${user.firstUsed}</p> | ||||
|                             <p><strong>Lieblingsgenres:</strong> ${favoriteGenres}</p> | ||||
|                             <button class="delete-user" data-user-id="${user.userId}">Löschen</button> | ||||
|                         </div> | ||||
|                         <hr> | ||||
| @@ -735,6 +739,12 @@ setInterval(() => { | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|              | ||||
|                 function fetchLastRestart() { | ||||
|     fetch('/api/last-restart') | ||||
|         .then(response => response.json()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user