Skip to content

Commit

Permalink
Cleaning up management.html (#348)
Browse files Browse the repository at this point in the history
* Cleaning up `management.html`:
- dark mode needs far less code
- file upload progress bars now use more colors and the label is always on top and centered-
- file reduced by about 6KB/250loc

* Fixing upload progress bar for firmware

* removing debug host

* use [html] attribute for rfidmusic label

---------

Co-authored-by: fabian <[email protected]>
Co-authored-by: Dirk Carstensen <[email protected]>
  • Loading branch information
3 people authored Oct 22, 2024
1 parent 7abedc9 commit f99feda
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 413 deletions.
6 changes: 3 additions & 3 deletions html/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"desc": "Einen Ordner samt Inhalt (und allen Unterordnern) hochladen"
},
"search": {
"placeholder": "Dateien suchen.."
"placeholder": "Dateien suchen..."
},
"upload": {
"title": "Upload",
Expand All @@ -111,12 +111,12 @@
"selectFile": "Wähle eine Datei zum Hochladen!",
"success": "Upload erfolgreich ({{elapsed}}, {{speed}} KB/s)",
"error": "Upload fehlgeschlagen",
"timeCalc": "Verbleibende Zeit wird berechnet..",
"timeCalc": "Verbleibende Zeit wird berechnet...",
"minutes_one": "Minute",
"minutes_other": "Minuten",
"seconds": "Sekunden",
"fewSec": "wenige",
"progress": "{{percent}}% ({{speed}} KB/s), {{remaining.value}} {{remaining.unit}} verbleibend.."
"progress": "{{percent}}% ({{speed}} KB/s), {{remaining.value}} {{remaining.unit}} verbleibend..."
},
"rfid": {
"title": "RFID-Zuweisungen",
Expand Down
8 changes: 4 additions & 4 deletions html/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"infos": "Infos",
"darkmode": "Dark Mode",
"restartinfo": "ESPuino is being restarted...<br>Page reloads automatically after restart finished.",
"shutdowninfo": "ESPuino is now switched off...<br>Page reloads automatically when the ESPuino is switched on again..",
"shutdowninfo": "ESPuino is now switched off...<br>Page reloads automatically when the ESPuino is switched on again.",
"toast": {
"rfidDetect": "RFID tag {{rfidId}} detected.",
"success": "Action performed successfully.",
Expand Down Expand Up @@ -102,7 +102,7 @@
"desc": "Upload directory with all files and subdirectories"
},
"search": {
"placeholder": "Search files.."
"placeholder": "Search files..."
},
"upload": {
"title": "Upload",
Expand All @@ -111,12 +111,12 @@
"selectFile": "Please select files to upload!",
"success": "Upload successful ({{elapsed}}, {{speed}} KB/s)",
"error": "Upload error",
"timeCalc": "Remaining time is being calculated..",
"timeCalc": "Remaining time is being calculated...",
"minutes_one": "minute",
"minutes_other": "minutes",
"seconds": "seconds",
"fewSec": "few",
"progress": "{{percent}}% ({{speed}} KB/s), {{remaining.value}} {{remaining.unit}} remaining.."
"progress": "{{percent}}% ({{speed}} KB/s), {{remaining.value}} {{remaining.unit}} remaining..."
},
"rfid": {
"title": "RFID Assignments",
Expand Down
6 changes: 3 additions & 3 deletions html/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"desc": "Télécharger un répertoire avec tous les fichiers et sous-répertoires"
},
"search": {
"placeholder": "Rechercher des fichiers.."
"placeholder": "Rechercher des fichiers..."
},
"upload": {
"title": "Télécharger",
Expand All @@ -111,12 +111,12 @@
"selectFile": "Veuillez sélectionner les fichiers à télécharger!",
"success": "Téléchargement réussi ({{elapsed}}, {{speed}} Ko/s)",
"error": "Erreur de téléchargement",
"timeCalc": "Le temps restant est calculé..",
"timeCalc": "Le temps restant est calculé...",
"minutes_one": "minute",
"minutes_other": "minutes",
"seconds": "secondes",
"fewSec": "quelques",
"progress": "{{percent}}% ({{speed}} Ko/s), {{remaining.value}} {{remaining.unit}} restant.."
"progress": "{{percent}}% ({{speed}} Ko/s), {{remaining.value}} {{remaining.unit}} restant..."
},
"rfid": {
"title": "Assignations RFID",
Expand Down
Loading

0 comments on commit f99feda

Please sign in to comment.