Skip to content

Commit

Permalink
update frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Aug 5, 2024
1 parent 621a445 commit 8fa739c
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 16 deletions.
6 changes: 3 additions & 3 deletions contrib/data/www/web/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/web/static/css/main.02a3b3b6.css",
"main.js": "/web/static/js/main.f5d1d81a.js",
"main.js": "/web/static/js/main.b9891a96.js",
"static/js/125.c581c2fe.chunk.js": "/web/static/js/125.c581c2fe.chunk.js",
"static/js/330.ad792767.chunk.js": "/web/static/js/330.ad792767.chunk.js",
"static/js/982.9ce0f4e3.chunk.js": "/web/static/js/982.9ce0f4e3.chunk.js",
Expand All @@ -15,7 +15,7 @@
"index.html": "/web/index.html",
"static/media/getFetch.cjs": "/web/static/media/getFetch.c4cca45e22bc1b2c7d0d.cjs",
"main.02a3b3b6.css.map": "/web/static/css/main.02a3b3b6.css.map",
"main.f5d1d81a.js.map": "/web/static/js/main.f5d1d81a.js.map",
"main.b9891a96.js.map": "/web/static/js/main.b9891a96.js.map",
"125.c581c2fe.chunk.js.map": "/web/static/js/125.c581c2fe.chunk.js.map",
"330.ad792767.chunk.js.map": "/web/static/js/330.ad792767.chunk.js.map",
"982.9ce0f4e3.chunk.js.map": "/web/static/js/982.9ce0f4e3.chunk.js.map",
Expand All @@ -28,6 +28,6 @@
},
"entrypoints": [
"static/css/main.02a3b3b6.css",
"static/js/main.f5d1d81a.js"
"static/js/main.b9891a96.js"
]
}
2 changes: 1 addition & 1 deletion contrib/data/www/web/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/web/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="TeddyCloud Admin"/><link rel="manifest" href="/web/manifest.json"/><title>TeddyCloud</title><script defer="defer" src="/web/static/js/main.f5d1d81a.js"></script><link href="/web/static/css/main.02a3b3b6.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/web/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="TeddyCloud Admin"/><link rel="manifest" href="/web/manifest.json"/><title>TeddyCloud</title><script defer="defer" src="/web/static/js/main.b9891a96.js"></script><link href="/web/static/css/main.02a3b3b6.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions contrib/data/www/web/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@
"cancel": "Cancel",
"confirmDeleteDialog": "Möchtest du die Datei {{fileToDelete}} wirklich löschen?",
"confirmDeleteModal": "Bestätige Löschvorgang",
"confirmMultipleDeleteDialog": "Möchtest du die markierten Zeilen wirklich löschen?",
"date": "Datum",
"delete": "Löschen",
"deleteMultiple": "Markierte Zeilen löschen",
"episode": "Episode",
"filter": "Filter im aktuellen Ordner",
"maxSelectedRows": "Du kannst nur maximal {{maxSelectedRows}} Dateien auswählen",
Expand Down Expand Up @@ -311,6 +313,7 @@
},
"esp32BoxFlashing": {
"attention": "Achtung",
"browserNotSupported": "ESP32 Box Flashing kann nur mit Browsern genutzt werden, die die Web Serial API unterstützen. Dein genutzter Browser unterstützt diese Funktion leider nicht. Bitte verwende einen Browser, der die Web Serial API unterstützt, wie z.B. Chrome oder Edge.",
"disableHttpOnlyForFlashing": "Bitte deaktiviere \"Webinterface http only\" und öffne diese Seite mit HTTPS.",
"enabledWebHttpOnly": "\"Webinterface HTTP only\" aktiv",
"enabledWebHttpsClientCertAuth": "\"HTTPS client cert auth\" aktiv",
Expand Down Expand Up @@ -348,7 +351,7 @@
"hintPatchFlash": "Um das ausgewählte / gelesene Flash mit dem dem CA-Zertifikat deiner TeddyCloud zu versehen und ggf. weitere Anpassungen wie Hostname der TeddyCloud und/oder der WiFi-Zugangsdaten vorzunehmen, klicke nach Eingabe auf \"Patch\" oder gehe ohne Patching direkt zum nächsten Schritt. ",
"hintPatchHost": "Gib den gewünschten Hostnamen deiner TeddyCloud-Instanz ein.",
"hintPatchWifi": "Gib optional die WiFi Zugangsdaten für deine Toniebox ein.",
"hintReadESP32ImportFlash": "Verbinde dein UART mit deinem PC und der Toniebox. Trenne die Stromversorgung deiner Toniebox. Schliesse die J100-Pinlöcher kurz. Klicke auf \"Flash lesen\" oder \"Datei laden\" und wähle dann den COM-Port. Schließe dann deine Toniebox an die Stromversorgung an und warte, bis der Schritt abgeschlossen ist!",
"hintReadESP32ImportFlash": "Trenne die Stromversorgung deiner Toniebox. Verbinde dein UART mit deinem PC und der Toniebox. Schliesse die J100-Pinlöcher kurz. Klicke auf \"Flash lesen\" oder \"Datei laden\" und wähle dann den COM-Port. Schließe dann deine Toniebox an die Stromversorgung an und warte, bis der Schritt abgeschlossen ist!",
"hostname": "TeddyCloud-Hostname:",
"hostnameSettings": "Hostname Teddycloud",
"hostnameToLong": "Der Hostname sollte weniger als 13 Zeichen lang sein.",
Expand Down Expand Up @@ -484,15 +487,18 @@
"encoder": {
"filename": "Dateiname",
"navigationTitle": "Audio Encoder",
"processing": "Verarbeitung läuft...",
"removeFile": "Datei entfernen",
"saveAs": "Datei speichern unter",
"targetDirectory": "Zielpfad auswählen",
"title": "Audio Encoder",
"upload": "Hochladen",
"uploadFailed": "Das Hochladen ist fehlgeschlagen",
"uploadFiles": "Datei(en) auswählen",
"uploading": "Lädt hoch",
"uploadSuccessful": "Die Datei wurde der Bibliothek hinzugefügt"
"uploadHint": "Ziehe die Audiodateien hier her!",
"uploading": "Lädt hoch...",
"uploadSuccessful": "Die Datei wurde der Bibliothek hinzugefügt",
"uploadText": "Klicke oder ziehe die Audiodateien, die du in eine TAF-Datei konvertieren möchtest, zum Hochladen in diesen Bereich"
},
"infoModal": {
"exists": "Existiert:",
Expand Down
10 changes: 8 additions & 2 deletions contrib/data/www/web/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@
"cancel": "Cancel",
"confirmDeleteDialog": "Are you sure you want to delete {{fileToDelete}}?",
"confirmDeleteModal": "Confirm delete",
"confirmMultipleDeleteDialog": "Are you sure you want to delete the selected rows?",
"date": "Date",
"delete": "Delete",
"deleteMultiple": "Delete selected rows",
"episode": "Episode",
"filter": "Filter within current folder",
"maxSelectedRows": "You can only select up to {{maxSelectedRows}} files",
Expand Down Expand Up @@ -310,6 +312,7 @@
},
"esp32BoxFlashing": {
"attention": "Attention",
"browserNotSupported": "ESP32 Box Flashing can only be used with browsers that support the Web Serial API. Unfortunately, your current browser does not support this feature. Please use a browser that supports the Web Serial API, such as Chrome or Edge.",
"disableHttpOnlyForFlashing": "Please disable \"Webinterface http only\" and open page with https.",
"enabledWebHttpOnly": "\"Webinterface HTTP only\" enabled",
"enabledWebHttpsClientCertAuth": "\"HTTPS client cert auth\" enabled",
Expand Down Expand Up @@ -347,7 +350,7 @@
"hintPatchFlash": "To apply the selected/read flash with your TeddyCloud CA certificate and possibly make other adjustments like the TeddyCloud hostname and/or WiFi credentials, click 'Patch' after entering the information or proceed to the next step without patching.",
"hintPatchHost": "Enter the desired hostname for your TeddyCloud instance.",
"hintPatchWifi": "Optionally enter the WiFi credentials for your Toniebox.",
"hintReadESP32ImportFlash": "Now connect your UART with your PC and Toniebox. Disconnect the Powersource of your Toniebox. Short cut the J100 pinholes. Click on \"Read Flash\" or \"Load File\", then choose the COM-Port. Then connect your Toniebox to power and wait till the step is done!",
"hintReadESP32ImportFlash": "Now disconnect the Powersource of your Toniebox. Connect your UART with your PC and Toniebox. Short cut the J100 pinholes. Click on \"Read Flash\" or \"Load File\", then choose the COM-Port. Then connect your Toniebox to power and wait till the step is done!",
"hostname": "TeddyCloud Hostname:",
"hostnameSettings": "Hostname TeddyCloud",
"hostnameToLong": "The hostname should be less than 13 characters long.",
Expand Down Expand Up @@ -483,15 +486,18 @@
"encoder": {
"filename": "Filename",
"navigationTitle": "Audio Encoder",
"processing": "Processing...",
"removeFile": "Remove file",
"saveAs": "Save file as",
"targetDirectory": "Choose target directory",
"title": "Audio Encoder",
"upload": "Upload",
"uploadFailed": "The upload encountered an error",
"uploadFiles": "Select File(s)",
"uploadHint": "Drag the audio files here!",
"uploading": "Uploading...",
"uploadSuccessful": "The file was added successfully to the library"
"uploadSuccessful": "The file was added successfully to the library",
"uploadText": "Click or drag the audio files you want to convert to a taf file to upload them in this area"
},
"infoModal": {
"exists": "Exists:",
Expand Down
10 changes: 8 additions & 2 deletions contrib/data/www/web/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@
"cancel": "Annuler",
"confirmDeleteDialog": "Êtes-vous sûr de vouloir supprimer {{fileToDelete}}?",
"confirmDeleteModal": "Confirmer la suppression",
"confirmMultipleDeleteDialog": "Êtes-vous sûr de vouloir supprimer les lignes sélectionnées ?",
"date": "Date",
"delete": "Supprimer",
"deleteMultiple": "Supprimer les lignes sélectionnées",
"episode": "Épisode",
"filter": "Filtrer dans le dossier actuel",
"maxSelectedRows": "Vous ne pouvez sélectionner que jusqu'à {{maxSelectedRows}} fichiers",
Expand Down Expand Up @@ -310,6 +312,7 @@
},
"esp32BoxFlashing": {
"attention": "Attention",
"browserNotSupported": "Le flashage de la boîte ESP32 ne peut être utilisé qu'avec des navigateurs prenant en charge l'API Web Serial. Malheureusement, votre navigateur actuel ne prend pas en charge cette fonctionnalité. Veuillez utiliser un navigateur prenant en charge l'API Web Serial, comme Chrome ou Edge.",
"disableHttpOnlyForFlashing": "Veuillez désactiver \"Interface web uniquement HTTP\" et ouvrir la page avec HTTPS.",
"enabledWebHttpOnly": "\"Interface web uniquement HTTP\" activée",
"enabledWebHttpsClientCertAuth": "\"Authentification du certificat client HTTPS\" activée",
Expand Down Expand Up @@ -347,7 +350,7 @@
"hintPatchFlash": "Pour appliquer le flash sélectionné/lu avec le certificat CA de votre TeddyCloud et éventuellement effectuer d'autres ajustements tels que le nom d'hôte de TeddyCloud et/ou les identifiants WiFi, cliquez sur 'Patch' après avoir entré les informations ou passez à l'étape suivante sans patch.",
"hintPatchHost": "Entrez le nom d'hôte souhaité pour votre instance TeddyCloud.",
"hintPatchWifi": "Entrez optionnellement les identifiants WiFi pour votre Toniebox.",
"hintReadESP32ImportFlash": "Connecte ton UART à ton PC et à la Toniebox. Déconnecte l'alimentation de ta Toniebox. Court-circuite les trous de broche J100. Clique sur \"Lire le Flash\" ou \"Charger le fichier\", puis choisis le port COM. Ensuite, connecte ta Toniebox à l'alimentation et attends que l'étape soit terminée !",
"hintReadESP32ImportFlash": "Déconnecte l'alimentation de ta Toniebox. Connecte ton UART à ton PC et à la Toniebox. Court-circuite les trous de broche J100. Clique sur \"Lire le Flash\" ou \"Charger le fichier\", puis choisis le port COM. Ensuite, connecte ta Toniebox à l'alimentation et attends que l'étape soit terminée !",
"hostname": "Nom d'hôte TeddyCloud:",
"hostnameSettings": "Nom d'hôte TeddyCloud",
"hostnameToLong": "Le nom d'hôte doit être inférieur à 13 caractères.",
Expand Down Expand Up @@ -484,15 +487,18 @@
"encoder": {
"filename": "Nom du fichier",
"navigationTitle": "Encodeur audio",
"processing": "Traitement...",
"removeFile": "Supprimer le fichier",
"saveAs": "Enregistrer le fichier sous",
"targetDirectory": "Choisir le répertoire cible",
"title": "Encodeur audio",
"upload": "Télécharger",
"uploadFailed": "Le téléchargement a rencontré une erreur",
"uploadFiles": "Sélectionner le(s) fichier(s)",
"uploadHint": "Faites glisser les fichiers audio ici !",
"uploading": "Téléchargement...",
"uploadSuccessful": "Le fichier a été ajouté avec succès à la bibliothèque"
"uploadSuccessful": "Le fichier a été ajouté avec succès à la bibliothèque",
"uploadText": "Cliquez ou faites glisser les fichiers audio que vous souhaitez convertir en fichier taf pour les télécharger dans cette zone"
},
"infoModal": {
"exists": "Existe:",
Expand Down
2 changes: 1 addition & 1 deletion teddycloud_web
Submodule teddycloud_web updated 36 files
+4 −1 .vscode/settings.json
+27 −10 README.md
+0 −16 package-lock.json
+0 −1 package.json
+9 −3 public/translations/de.json
+8 −2 public/translations/en.json
+8 −2 public/translations/fr.json
+1 −0 src/api/.openapi-generator-ignore
+392 −557 src/api/apis/TeddyCloudApi.ts
+1 −1 src/components/TonieMeeting.tsx
+61 −34 src/components/footer/AudioPlayerFooter.tsx
+6 −2 src/components/footer/StyledFooter.tsx
+4 −24 src/components/form/InputField.tsx
+3 −22 src/components/form/InputNumberField.tsx
+4 −22 src/components/form/SwitchField.tsx
+5 −1 src/components/settings/SettingsSubNav.tsx
+8 −32 src/components/tonieboxes/TonieboxCard.tsx
+2 −13 src/components/tonieboxes/TonieboxSettingsPage.tsx
+6 −6 src/components/tonies/TonieArticleSearch.tsx
+10 −48 src/components/tonies/TonieCard.tsx
+7 −10 src/components/tonies/ToniesCustomJsonEditor.tsx
+119 −98 src/components/utils/FileBrowser.tsx
+6 −10 src/components/utils/TonieInformationModal.tsx
+3 −0 src/pages/community/ChangelogPage.tsx
+6 −2 src/pages/community/ContributionToniesJsonPage.tsx
+24 −18 src/pages/home/FeaturesPage.tsx
+1 −1 src/pages/home/HomePage.tsx
+1 −0 src/pages/home/StatsPage.tsx
+2 −13 src/pages/settings/SettingsPage.tsx
+137 −99 src/pages/tonieboxes/ESP32BoxFlashing.tsx
+29 −14 src/pages/tonies/EncoderPage.tsx
+1 −1 src/pages/tonies/TonieAudioPlaylistsPage.tsx
+1 −1 src/pages/tonies/ToniesPage.tsx
+7 −4 src/utils/boxModels.tsx
+3 −0 src/utils/checkWebSerialSupport.tsx
+4 −1 src/utils/restartServer.tsx

0 comments on commit 8fa739c

Please sign in to comment.