diff --git a/Dockerfile b/Dockerfile index 8c03f76..cf59ad9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,7 +39,6 @@ FROM registry.s-web.fr/ldc-web/projets/ldc-web-images-docker/uwil-production-8.5 ARG USER=www-data COPY --chown=${USER}:${USER} . /app/srcs -COPY --chown=${USER}:${USER} ./resources/favicons/front/ /app/srcs/public/ COPY --chown=${USER}:${USER} ./resources/favicons/back/ /app/srcs/public/favicon-back/ COPY --from=vendor --chown=${USER}:${USER} /app/vendor/ /app/srcs/vendor/ COPY --from=frontend --chown=${USER}:${USER} /app/public/build/ /app/srcs/public/build/ diff --git a/app/Http/Controllers/Front/HomeController.php b/app/Http/Controllers/Front/HomeController.php deleted file mode 100644 index f439723..0000000 --- a/app/Http/Controllers/Front/HomeController.php +++ /dev/null @@ -1,19 +0,0 @@ - true, - 'page_paths' => [ - resource_path('ts/front/Pages'), - ], + 'page_paths' => [], 'page_extensions' => [ 'js', diff --git a/config/laravellocalization.php b/config/laravellocalization.php index 40e2e5b..cbd22e3 100644 --- a/config/laravellocalization.php +++ b/config/laravellocalization.php @@ -37,19 +37,19 @@ return [ //'cy' => ['name' => 'Welsh', 'script' => 'Latn', 'native' => 'Cymraeg', 'regional' => 'cy_GB'], //'da' => ['name' => 'Danish', 'script' => 'Latn', 'native' => 'dansk', 'regional' => 'da_DK'], //'se' => ['name' => 'Northern Sami', 'script' => 'Latn', 'native' => 'davvisámegiella', 'regional' => 'se_NO'], - 'de' => ['name' => 'German', 'script' => 'Latn', 'native' => 'Deutsch', 'regional' => 'de_DE'], + // 'de' => ['name' => 'German', 'script' => 'Latn', 'native' => 'Deutsch', 'regional' => 'de_DE'], //'luo' => ['name' => 'Luo', 'script' => 'Latn', 'native' => 'Dholuo', 'regional' => ''], //'nv' => ['name' => 'Navajo', 'script' => 'Latn', 'native' => 'Diné bizaad', 'regional' => ''], //'dua' => ['name' => 'Duala', 'script' => 'Latn', 'native' => 'duálá', 'regional' => ''], //'et' => ['name' => 'Estonian', 'script' => 'Latn', 'native' => 'eesti', 'regional' => 'et_EE'], //'na' => ['name' => 'Nauru', 'script' => 'Latn', 'native' => 'Ekakairũ Naoero', 'regional' => ''], //'guz' => ['name' => 'Ekegusii', 'script' => 'Latn', 'native' => 'Ekegusii', 'regional' => ''], - 'en' => ['name' => 'English', 'script' => 'Latn', 'native' => 'English', 'regional' => 'en_GB'], + // 'en' => ['name' => 'English', 'script' => 'Latn', 'native' => 'English', 'regional' => 'en_GB'], //'en-AU' => ['name' => 'Australian English', 'script' => 'Latn', 'native' => 'Australian English', 'regional' => 'en_AU'], //'en-GB' => ['name' => 'British English', 'script' => 'Latn', 'native' => 'British English', 'regional' => 'en_GB'], //'en-CA' => ['name' => 'Canadian English', 'script' => 'Latn', 'native' => 'Canadian English', 'regional' => 'en_CA'], //'en-US' => ['name' => 'U.S. English', 'script' => 'Latn', 'native' => 'U.S. English', 'regional' => 'en_US'], - 'es' => ['name' => 'Spanish', 'script' => 'Latn', 'native' => 'español', 'regional' => 'es_ES'], + // 'es' => ['name' => 'Spanish', 'script' => 'Latn', 'native' => 'español', 'regional' => 'es_ES'], //'eo' => ['name' => 'Esperanto', 'script' => 'Latn', 'native' => 'esperanto', 'regional' => ''], //'eu' => ['name' => 'Basque', 'script' => 'Latn', 'native' => 'euskara', 'regional' => 'eu_ES'], //'ewo' => ['name' => 'Ewondo', 'script' => 'Latn', 'native' => 'ewondo', 'regional' => ''], @@ -133,7 +133,7 @@ return [ //'mtr' => ['name' => 'Mewari', 'script' => 'Latn', 'native' => 'Mewari', 'regional' => ''], //'mua' => ['name' => 'Mundang', 'script' => 'Latn', 'native' => 'Mundang', 'regional' => ''], //'mi' => ['name' => 'Māori', 'script' => 'Latn', 'native' => 'Māori', 'regional' => 'mi_NZ'], - 'nl' => ['name' => 'Dutch', 'script' => 'Latn', 'native' => 'Nederlands', 'regional' => 'nl_NL'], + // 'nl' => ['name' => 'Dutch', 'script' => 'Latn', 'native' => 'Nederlands', 'regional' => 'nl_NL'], //'nmg' => ['name' => 'Kwasio', 'script' => 'Latn', 'native' => 'ngumba', 'regional' => ''], //'yav' => ['name' => 'Yangben', 'script' => 'Latn', 'native' => 'nuasue', 'regional' => ''], //'nn' => ['name' => 'Norwegian Nynorsk', 'script' => 'Latn', 'native' => 'nynorsk', 'regional' => 'nn_NO'], @@ -145,7 +145,7 @@ return [ //'hz' => ['name' => 'Herero', 'script' => 'Latn', 'native' => 'Otjiherero', 'regional' => ''], //'uz-Latn' => ['name' => 'Uzbek (Latin)', 'script' => 'Latn', 'native' => 'oʼzbekcha', 'regional' => 'uz_UZ'], //'nds' => ['name' => 'Low German', 'script' => 'Latn', 'native' => 'Plattdüütsch', 'regional' => 'nds_DE'], - 'pl' => ['name' => 'Polish', 'script' => 'Latn', 'native' => 'polski', 'regional' => 'pl_PL'], + // 'pl' => ['name' => 'Polish', 'script' => 'Latn', 'native' => 'polski', 'regional' => 'pl_PL'], //'pt' => ['name' => 'Portuguese', 'script' => 'Latn', 'native' => 'português', 'regional' => 'pt_PT'], //'pt-BR' => ['name' => 'Brazilian Portuguese', 'script' => 'Latn', 'native' => 'português do Brasil', 'regional' => 'pt_BR'], //'ff' => ['name' => 'Fulah', 'script' => 'Latn', 'native' => 'Pulaar', 'regional' => 'ff_SN'], diff --git a/lang/de/back.php b/lang/de/back.php deleted file mode 100644 index 7570e5e..0000000 --- a/lang/de/back.php +++ /dev/null @@ -1,7 +0,0 @@ - "Tableau de bord", -]; diff --git a/lang/de/enums.php b/lang/de/enums.php deleted file mode 100644 index a4a2520..0000000 --- a/lang/de/enums.php +++ /dev/null @@ -1,11 +0,0 @@ - [ - // "conceptor" => "Concepteur", - // "admin" => "Administrateur", - // "visitor" => "Visiteur", - // ], -]; diff --git a/lang/de/errors.php b/lang/de/errors.php deleted file mode 100644 index b2f9363..0000000 --- a/lang/de/errors.php +++ /dev/null @@ -1,56 +0,0 @@ - [ - "title" => "Ungültige Anfrage", - "description" => "Der Server konnte Ihre Anfrage nicht verstehen. Bitte überprüfen Sie sie und versuchen Sie es erneut.", - ], - "401" => [ - "title" => "Nicht autorisiert", - "description" => "Sie müssen angemeldet sein, um auf diese Seite zuzugreifen.", - ], - "403" => [ - "title" => "Zugriff verweigert", - "description" => "Entschuldigung, Sie haben keine Berechtigung, auf diese Seite zuzugreifen.", - ], - "404" => [ - "title" => "Seite nicht gefunden", - "description" => "Entschuldigung, die von Ihnen gesuchte Seite konnte nicht gefunden werden.", - ], - "405" => [ - "title" => "Methode nicht erlaubt", - "description" => "Die für diese Anfrage verwendete Methode ist nicht erlaubt.", - ], - "408" => [ - "title" => "Zeitüberschreitung", - "description" => "Der Server hat zu lange gebraucht, um zu antworten. Bitte versuchen Sie es erneut.", - ], - "419" => [ - "title" => "Seite abgelaufen", - "description" => "Ihre Sitzung ist abgelaufen. Bitte aktualisieren Sie die Seite und versuchen Sie es erneut.", - ], - "422" => [ - "title" => "Nicht verarbeitbare Entität", - "description" => "Die bereitgestellten Daten sind ungültig. Bitte überprüfen Sie sie und versuchen Sie es erneut.", - ], - "429" => [ - "title" => "Zu viele Anfragen", - "description" => "Sie haben zu viele Anfragen in kurzer Zeit gesendet. Bitte warten Sie einen Moment und versuchen Sie es erneut.", - ], - "500" => [ - "title" => "Serverfehler", - "description" => "Ups, es ist ein Fehler auf unseren Servern aufgetreten.", - ], - "502" => [ - "title" => "Fehlerhafte Gateway-Antwort", - "description" => "Der Server hat eine ungültige Antwort erhalten. Bitte versuchen Sie es später erneut.", - ], - "503" => [ - "title" => "Dienst nicht verfügbar", - "description" => "Entschuldigung, wir führen gerade Wartungsarbeiten durch. Bitte versuchen Sie es später erneut.", - ], - "504" => [ - "title" => "Gateway-Zeitüberschreitung", - "description" => "Der Server hat zu lange gebraucht, um zu antworten. Bitte versuchen Sie es später erneut.", - ], -]; diff --git a/lang/de/front.php b/lang/de/front.php deleted file mode 100644 index f28dc82..0000000 --- a/lang/de/front.php +++ /dev/null @@ -1,6 +0,0 @@ - "Hallo Welt", - "back_to_your_website" => "Zurück zur Startseite", -]; diff --git a/lang/de/models.php b/lang/de/models.php deleted file mode 100644 index 690ae38..0000000 --- a/lang/de/models.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - // "users" => "utilisateur|utilisateurs", - ], -]; diff --git a/lang/de/validation.php b/lang/de/validation.php deleted file mode 100644 index b72159a..0000000 --- a/lang/de/validation.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - // "published" => "publié", - ], -]; \ No newline at end of file diff --git a/lang/en/back.php b/lang/en/back.php deleted file mode 100644 index 7570e5e..0000000 --- a/lang/en/back.php +++ /dev/null @@ -1,7 +0,0 @@ - "Tableau de bord", -]; diff --git a/lang/en/enums.php b/lang/en/enums.php deleted file mode 100644 index a4a2520..0000000 --- a/lang/en/enums.php +++ /dev/null @@ -1,11 +0,0 @@ - [ - // "conceptor" => "Concepteur", - // "admin" => "Administrateur", - // "visitor" => "Visiteur", - // ], -]; diff --git a/lang/en/errors.php b/lang/en/errors.php deleted file mode 100644 index f716b76..0000000 --- a/lang/en/errors.php +++ /dev/null @@ -1,56 +0,0 @@ - [ - "title" => "Bad Request", - "description" => "The server could not understand your request. Please check and try again.", - ], - "401" => [ - "title" => "Unauthorized", - "description" => "You must be logged in to access this page.", - ], - "403" => [ - "title" => "Forbidden", - "description" => "Sorry, you are forbidden from accessing this page.", - ], - "404" => [ - "title" => "Page Not Found", - "description" => "Sorry, the page you are looking for could not be found.", - ], - "405" => [ - "title" => "Method Not Allowed", - "description" => "The method used for this request is not allowed.", - ], - "408" => [ - "title" => "Request Timeout", - "description" => "The server took too long to respond. Please try again.", - ], - "419" => [ - "title" => "Page Expired", - "description" => "Your session has expired. Please refresh and try again.", - ], - "422" => [ - "title" => "Unprocessable Entity", - "description" => "The data provided was invalid. Please check and try again.", - ], - "429" => [ - "title" => "Too Many Requests", - "description" => "You have made too many requests in a short time. Please slow down.", - ], - "500" => [ - "title" => "Server Error", - "description" => "Whoops, something went wrong on our servers.", - ], - "502" => [ - "title" => "Bad Gateway", - "description" => "The server received an invalid response. Please try again later.", - ], - "503" => [ - "title" => "Service Unavailable", - "description" => "Sorry, we are doing some maintenance. Please check back soon.", - ], - "504" => [ - "title" => "Gateway Timeout", - "description" => "The server took too long to respond. Please try again later.", - ], -]; diff --git a/lang/en/front.php b/lang/en/front.php deleted file mode 100644 index a9c94a1..0000000 --- a/lang/en/front.php +++ /dev/null @@ -1,6 +0,0 @@ - "Hello World", - "back_to_your_website" => "Return to the home page", -]; diff --git a/lang/en/models.php b/lang/en/models.php deleted file mode 100644 index 690ae38..0000000 --- a/lang/en/models.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - // "users" => "utilisateur|utilisateurs", - ], -]; diff --git a/lang/en/validation.php b/lang/en/validation.php deleted file mode 100644 index b72159a..0000000 --- a/lang/en/validation.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - // "published" => "publié", - ], -]; \ No newline at end of file diff --git a/lang/es/back.php b/lang/es/back.php deleted file mode 100644 index 7570e5e..0000000 --- a/lang/es/back.php +++ /dev/null @@ -1,7 +0,0 @@ - "Tableau de bord", -]; diff --git a/lang/es/enums.php b/lang/es/enums.php deleted file mode 100644 index a4a2520..0000000 --- a/lang/es/enums.php +++ /dev/null @@ -1,11 +0,0 @@ - [ - // "conceptor" => "Concepteur", - // "admin" => "Administrateur", - // "visitor" => "Visiteur", - // ], -]; diff --git a/lang/es/errors.php b/lang/es/errors.php deleted file mode 100644 index d5e2344..0000000 --- a/lang/es/errors.php +++ /dev/null @@ -1,56 +0,0 @@ - [ - "title" => "Solicitud incorrecta", - "description" => "El servidor no pudo entender su solicitud. Por favor, verifique e intente nuevamente.", - ], - "401" => [ - "title" => "No autorizado", - "description" => "Debe iniciar sesión para acceder a esta página.", - ], - "403" => [ - "title" => "Acceso prohibido", - "description" => "Lo sentimos, no está autorizado para acceder a esta página.", - ], - "404" => [ - "title" => "Página no encontrada", - "description" => "Lo sentimos, la página que busca no se encuentra.", - ], - "405" => [ - "title" => "Método no permitido", - "description" => "El método utilizado para esta solicitud no está permitido.", - ], - "408" => [ - "title" => "Tiempo de espera agotado", - "description" => "El servidor tardó demasiado en responder. Por favor, intente nuevamente.", - ], - "419" => [ - "title" => "Página expirada", - "description" => "Su sesión ha expirado. Por favor, actualice y vuelva a intentarlo.", - ], - "422" => [ - "title" => "Entidad no procesable", - "description" => "Los datos proporcionados no son válidos. Por favor, verifique e intente nuevamente.", - ], - "429" => [ - "title" => "Demasiadas solicitudes", - "description" => "Ha realizado demasiadas solicitudes en poco tiempo. Por favor, espere antes de intentar nuevamente.", - ], - "500" => [ - "title" => "Error del servidor", - "description" => "Ups, ocurrió un error en nuestros servidores.", - ], - "502" => [ - "title" => "Puerta de enlace incorrecta", - "description" => "El servidor recibió una respuesta inválida. Por favor, intente nuevamente más tarde.", - ], - "503" => [ - "title" => "Servicio no disponible", - "description" => "Lo sentimos, estamos realizando mantenimiento. Por favor, vuelva más tarde.", - ], - "504" => [ - "title" => "Tiempo de espera de la puerta de enlace agotado", - "description" => "El servidor tardó demasiado en responder. Por favor, intente nuevamente más tarde.", - ], -]; diff --git a/lang/es/front.php b/lang/es/front.php deleted file mode 100644 index 17a9360..0000000 --- a/lang/es/front.php +++ /dev/null @@ -1,6 +0,0 @@ - "Hola Mundo", - "back_to_your_website" => "Volver a la página de inicio", -]; diff --git a/lang/es/models.php b/lang/es/models.php deleted file mode 100644 index 690ae38..0000000 --- a/lang/es/models.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - // "users" => "utilisateur|utilisateurs", - ], -]; diff --git a/lang/es/validation.php b/lang/es/validation.php deleted file mode 100644 index b72159a..0000000 --- a/lang/es/validation.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - // "published" => "publié", - ], -]; \ No newline at end of file diff --git a/lang/fr/enums.php b/lang/fr/enums.php index a4a2520..e8aff62 100644 --- a/lang/fr/enums.php +++ b/lang/fr/enums.php @@ -3,9 +3,8 @@ declare(strict_types=1); return [ - // "user-role" => [ - // "conceptor" => "Concepteur", - // "admin" => "Administrateur", - // "visitor" => "Visiteur", - // ], + "user-role" => [ + "project-manager" => "Chef de projet", + "developper" => "Développeur", + ], ]; diff --git a/lang/nl/back.php b/lang/nl/back.php deleted file mode 100644 index 7570e5e..0000000 --- a/lang/nl/back.php +++ /dev/null @@ -1,7 +0,0 @@ - "Tableau de bord", -]; diff --git a/lang/nl/enums.php b/lang/nl/enums.php deleted file mode 100644 index a4a2520..0000000 --- a/lang/nl/enums.php +++ /dev/null @@ -1,11 +0,0 @@ - [ - // "conceptor" => "Concepteur", - // "admin" => "Administrateur", - // "visitor" => "Visiteur", - // ], -]; diff --git a/lang/nl/errors.php b/lang/nl/errors.php deleted file mode 100644 index 0ec4fa4..0000000 --- a/lang/nl/errors.php +++ /dev/null @@ -1,56 +0,0 @@ - [ - "title" => "Ongeldig verzoek", - "description" => "De server kon je verzoek niet begrijpen. Controleer het en probeer het opnieuw.", - ], - "401" => [ - "title" => "Niet geautoriseerd", - "description" => "Je moet ingelogd zijn om deze pagina te bekijken.", - ], - "403" => [ - "title" => "Toegang geweigerd", - "description" => "Sorry, je hebt geen toestemming om deze pagina te bekijken.", - ], - "404" => [ - "title" => "Pagina niet gevonden", - "description" => "Sorry, de door jou gezochte pagina bestaat niet.", - ], - "405" => [ - "title" => "Methode niet toegestaan", - "description" => "De gebruikte methode voor dit verzoek is niet toegestaan.", - ], - "408" => [ - "title" => "Time-out", - "description" => "De server deed er te lang over om te reageren. Probeer het opnieuw.", - ], - "419" => [ - "title" => "Pagina verlopen", - "description" => "Je sessie is verlopen. Vernieuw de pagina en probeer het opnieuw.", - ], - "422" => [ - "title" => "Niet verwerkbare entiteit", - "description" => "De opgegeven gegevens zijn ongeldig. Controleer ze en probeer het opnieuw.", - ], - "429" => [ - "title" => "Te veel verzoeken", - "description" => "Je hebt te veel verzoeken in korte tijd gedaan. Wacht even en probeer het opnieuw.", - ], - "500" => [ - "title" => "Serverfout", - "description" => "Oeps, er is een fout op onze servers opgetreden.", - ], - "502" => [ - "title" => "Ongeldige gateway", - "description" => "De server heeft een ongeldig antwoord ontvangen. Probeer het later opnieuw.", - ], - "503" => [ - "title" => "Dienst niet beschikbaar", - "description" => "Sorry, we voeren onderhoud uit. Probeer het later opnieuw.", - ], - "504" => [ - "title" => "Gateway Time-out", - "description" => "De server deed er te lang over om te reageren. Probeer het later opnieuw.", - ], -]; \ No newline at end of file diff --git a/lang/nl/front.php b/lang/nl/front.php deleted file mode 100644 index 6397686..0000000 --- a/lang/nl/front.php +++ /dev/null @@ -1,6 +0,0 @@ - "Hallo wereld", - "back_to_your_website" => "Terug naar de startpagina", -]; diff --git a/lang/nl/models.php b/lang/nl/models.php deleted file mode 100644 index 690ae38..0000000 --- a/lang/nl/models.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - // "users" => "utilisateur|utilisateurs", - ], -]; diff --git a/lang/nl/validation.php b/lang/nl/validation.php deleted file mode 100644 index b72159a..0000000 --- a/lang/nl/validation.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - // "published" => "publié", - ], -]; \ No newline at end of file diff --git a/lang/pl/back.php b/lang/pl/back.php deleted file mode 100644 index 7570e5e..0000000 --- a/lang/pl/back.php +++ /dev/null @@ -1,7 +0,0 @@ - "Tableau de bord", -]; diff --git a/lang/pl/enums.php b/lang/pl/enums.php deleted file mode 100644 index a4a2520..0000000 --- a/lang/pl/enums.php +++ /dev/null @@ -1,11 +0,0 @@ - [ - // "conceptor" => "Concepteur", - // "admin" => "Administrateur", - // "visitor" => "Visiteur", - // ], -]; diff --git a/lang/pl/errors.php b/lang/pl/errors.php deleted file mode 100644 index 26618bf..0000000 --- a/lang/pl/errors.php +++ /dev/null @@ -1,56 +0,0 @@ - [ - "title" => "Nieprawidłowe żądanie", - "description" => "Serwer nie mógł zrozumieć Twojego żądania. Sprawdź je i spróbuj ponownie.", - ], - "401" => [ - "title" => "Nieautoryzowany", - "description" => "Musisz być zalogowany, aby uzyskać dostęp do tej strony.", - ], - "403" => [ - "title" => "Dostęp zabroniony", - "description" => "Przepraszamy, nie masz uprawnień do tej strony.", - ], - "404" => [ - "title" => "Strona nie znaleziona", - "description" => "Przepraszamy, strona, której szukasz, nie istnieje.", - ], - "405" => [ - "title" => "Metoda niedozwolona", - "description" => "Użyta metoda żądania nie jest dozwolona.", - ], - "408" => [ - "title" => "Przekroczono czas oczekiwania", - "description" => "Serwer potrzebował zbyt dużo czasu, aby odpowiedzieć. Spróbuj ponownie.", - ], - "419" => [ - "title" => "Strona wygasła", - "description" => "Twoja sesja wygasła. Odśwież stronę i spróbuj ponownie.", - ], - "422" => [ - "title" => "Nieprzetwarzalna jednostka", - "description" => "Dostarczone dane są nieprawidłowe. Sprawdź je i spróbuj ponownie.", - ], - "429" => [ - "title" => "Za dużo żądań", - "description" => "Wysłano zbyt wiele żądań w krótkim czasie. Poczekaj chwilę i spróbuj ponownie.", - ], - "500" => [ - "title" => "Błąd serwera", - "description" => "Ups, wystąpił błąd po stronie serwera.", - ], - "502" => [ - "title" => "Zła brama", - "description" => "Serwer otrzymał nieprawidłową odpowiedź. Spróbuj ponownie później.", - ], - "503" => [ - "title" => "Usługa niedostępna", - "description" => "Przepraszamy, trwa konserwacja. Spróbuj ponownie później.", - ], - "504" => [ - "title" => "Przekroczono czas oczekiwania bramy", - "description" => "Serwer potrzebował zbyt dużo czasu, aby odpowiedzieć. Spróbuj ponownie później.", - ], -]; diff --git a/lang/pl/front.php b/lang/pl/front.php deleted file mode 100644 index e8cf5ac..0000000 --- a/lang/pl/front.php +++ /dev/null @@ -1,6 +0,0 @@ - "Witaj świecie", - "back_to_your_website" => "Powrót do strony głównej", -]; diff --git a/lang/pl/models.php b/lang/pl/models.php deleted file mode 100644 index 690ae38..0000000 --- a/lang/pl/models.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - // "users" => "utilisateur|utilisateurs", - ], -]; diff --git a/lang/pl/validation.php b/lang/pl/validation.php deleted file mode 100644 index b72159a..0000000 --- a/lang/pl/validation.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - // "published" => "publié", - ], -]; \ No newline at end of file diff --git a/resources/favicons/front/android-icon-144x144.png b/resources/favicons/front/android-icon-144x144.png deleted file mode 100644 index c92fc36..0000000 Binary files a/resources/favicons/front/android-icon-144x144.png and /dev/null differ diff --git a/resources/favicons/front/android-icon-192x192.png b/resources/favicons/front/android-icon-192x192.png deleted file mode 100644 index 2d53c6e..0000000 Binary files a/resources/favicons/front/android-icon-192x192.png and /dev/null differ diff --git a/resources/favicons/front/android-icon-36x36.png b/resources/favicons/front/android-icon-36x36.png deleted file mode 100644 index de42461..0000000 Binary files a/resources/favicons/front/android-icon-36x36.png and /dev/null differ diff --git a/resources/favicons/front/android-icon-48x48.png b/resources/favicons/front/android-icon-48x48.png deleted file mode 100644 index 962d30b..0000000 Binary files a/resources/favicons/front/android-icon-48x48.png and /dev/null differ diff --git a/resources/favicons/front/android-icon-72x72.png b/resources/favicons/front/android-icon-72x72.png deleted file mode 100644 index 4510fa0..0000000 Binary files a/resources/favicons/front/android-icon-72x72.png and /dev/null differ diff --git a/resources/favicons/front/android-icon-96x96.png b/resources/favicons/front/android-icon-96x96.png deleted file mode 100644 index f2732bf..0000000 Binary files a/resources/favicons/front/android-icon-96x96.png and /dev/null differ diff --git a/resources/favicons/front/apple-icon-114x114.png b/resources/favicons/front/apple-icon-114x114.png deleted file mode 100644 index 87d6b72..0000000 Binary files a/resources/favicons/front/apple-icon-114x114.png and /dev/null differ diff --git a/resources/favicons/front/apple-icon-120x120.png b/resources/favicons/front/apple-icon-120x120.png deleted file mode 100644 index 86811dc..0000000 Binary files a/resources/favicons/front/apple-icon-120x120.png and /dev/null differ diff --git a/resources/favicons/front/apple-icon-144x144.png b/resources/favicons/front/apple-icon-144x144.png deleted file mode 100644 index c92fc36..0000000 Binary files a/resources/favicons/front/apple-icon-144x144.png and /dev/null differ diff --git a/resources/favicons/front/apple-icon-152x152.png b/resources/favicons/front/apple-icon-152x152.png deleted file mode 100644 index ff41715..0000000 Binary files a/resources/favicons/front/apple-icon-152x152.png and /dev/null differ diff --git a/resources/favicons/front/apple-icon-180x180.png b/resources/favicons/front/apple-icon-180x180.png deleted file mode 100644 index 9fa3160..0000000 Binary files a/resources/favicons/front/apple-icon-180x180.png and /dev/null differ diff --git a/resources/favicons/front/apple-icon-57x57.png b/resources/favicons/front/apple-icon-57x57.png deleted file mode 100644 index 1713575..0000000 Binary files a/resources/favicons/front/apple-icon-57x57.png and /dev/null differ diff --git a/resources/favicons/front/apple-icon-60x60.png b/resources/favicons/front/apple-icon-60x60.png deleted file mode 100644 index 17d0fbf..0000000 Binary files a/resources/favicons/front/apple-icon-60x60.png and /dev/null differ diff --git a/resources/favicons/front/apple-icon-72x72.png b/resources/favicons/front/apple-icon-72x72.png deleted file mode 100644 index 4510fa0..0000000 Binary files a/resources/favicons/front/apple-icon-72x72.png and /dev/null differ diff --git a/resources/favicons/front/apple-icon-76x76.png b/resources/favicons/front/apple-icon-76x76.png deleted file mode 100644 index 7248415..0000000 Binary files a/resources/favicons/front/apple-icon-76x76.png and /dev/null differ diff --git a/resources/favicons/front/favicon-16x16.png b/resources/favicons/front/favicon-16x16.png deleted file mode 100644 index 8f13f54..0000000 Binary files a/resources/favicons/front/favicon-16x16.png and /dev/null differ diff --git a/resources/favicons/front/favicon-32x32.png b/resources/favicons/front/favicon-32x32.png deleted file mode 100644 index 7f21663..0000000 Binary files a/resources/favicons/front/favicon-32x32.png and /dev/null differ diff --git a/resources/favicons/front/favicon.ico b/resources/favicons/front/favicon.ico deleted file mode 100644 index 467711c..0000000 Binary files a/resources/favicons/front/favicon.ico and /dev/null differ diff --git a/resources/favicons/front/manifest.json b/resources/favicons/front/manifest.json deleted file mode 100644 index 013d4a6..0000000 --- a/resources/favicons/front/manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "App", - "icons": [ - { - "src": "\/android-icon-36x36.png", - "sizes": "36x36", - "type": "image\/png", - "density": "0.75" - }, - { - "src": "\/android-icon-48x48.png", - "sizes": "48x48", - "type": "image\/png", - "density": "1.0" - }, - { - "src": "\/android-icon-72x72.png", - "sizes": "72x72", - "type": "image\/png", - "density": "1.5" - }, - { - "src": "\/android-icon-96x96.png", - "sizes": "96x96", - "type": "image\/png", - "density": "2.0" - }, - { - "src": "\/android-icon-144x144.png", - "sizes": "144x144", - "type": "image\/png", - "density": "3.0" - }, - { - "src": "\/android-icon-192x192.png", - "sizes": "192x192", - "type": "image\/png", - "density": "4.0" - } - ] -} \ No newline at end of file diff --git a/resources/favicons/front/ms-icon-144x144.png b/resources/favicons/front/ms-icon-144x144.png deleted file mode 100644 index c92fc36..0000000 Binary files a/resources/favicons/front/ms-icon-144x144.png and /dev/null differ diff --git a/resources/favicons/front/ms-icon-150x150.png b/resources/favicons/front/ms-icon-150x150.png deleted file mode 100644 index 78c8cd0..0000000 Binary files a/resources/favicons/front/ms-icon-150x150.png and /dev/null differ diff --git a/resources/favicons/front/ms-icon-310x310.png b/resources/favicons/front/ms-icon-310x310.png deleted file mode 100644 index e0d5a87..0000000 Binary files a/resources/favicons/front/ms-icon-310x310.png and /dev/null differ diff --git a/resources/favicons/front/ms-icon-70x70.png b/resources/favicons/front/ms-icon-70x70.png deleted file mode 100644 index ca90a5b..0000000 Binary files a/resources/favicons/front/ms-icon-70x70.png and /dev/null differ diff --git a/resources/sass/front/app.scss b/resources/sass/front/app.scss deleted file mode 100644 index 5fd50ea..0000000 --- a/resources/sass/front/app.scss +++ /dev/null @@ -1,20 +0,0 @@ -// * COMMON CSS. -@use './../common'; - -body { - height: 100vh; - padding: 1.5rem; - margin: 0; - background-color: #f3f4f6; - - > div { - display: flex; - height: 100%; - flex-direction: column; - align-items: center; - justify-content: center; - border-radius: 0.5rem; - background-color: #fff; - box-shadow: 0 1px 2px 0 #0000000d; - } -} diff --git a/resources/ts/back/app.tsx b/resources/ts/back/app.tsx deleted file mode 100644 index 175647e..0000000 --- a/resources/ts/back/app.tsx +++ /dev/null @@ -1,30 +0,0 @@ -// * Packages -import { createInertiaApp } from "@inertiajs/react"; -import { resolvePageComponent } from "laravel-vite-plugin/inertia-helpers"; -import { createRoot } from "react-dom/client"; -import axios from "axios"; - -// @ts-expect-error Env is always present. -const appName = import.meta.env.VITE_APP_NAME || "Laravel"; - -createInertiaApp({ - title: (title) => `${title} - ${appName}`, - resolve: (name) => - resolvePageComponent( - `./Pages/${name}.tsx`, - // @ts-expect-error Glob error. - import.meta.glob("./Pages/**/*.tsx"), - ), - setup({ el, App, props }) { - const root = createRoot(el); - - // eslint-disable-next-line react/jsx-filename-extension, react/jsx-props-no-spreading - root.render(); - }, - progress: { - color: "#4B5563", - }, -}); - -window.axios = axios; -window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest"; diff --git a/resources/ts/front/Layouts/AppLayout.tsx b/resources/ts/front/Layouts/AppLayout.tsx deleted file mode 100644 index 36b119d..0000000 --- a/resources/ts/front/Layouts/AppLayout.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import { Head, usePage } from "@inertiajs/react"; -import { ReactNode } from "react"; - -interface BreadcrumbItem { - title: string; - url: string; -} - -interface AppLayoutProps { - children: ReactNode; -} - -export default function AppLayout({ children }: AppLayoutProps) { - const { breadcrumbs } = usePage().props as { - breadcrumbs?: BreadcrumbItem[]; - }; - - return ( - <> - - {breadcrumbs?.length > 0 && ( - - )} - - {children} - - ); -} diff --git a/resources/ts/front/Pages/Errors/Default.tsx b/resources/ts/front/Pages/Errors/Default.tsx deleted file mode 100644 index b4fea19..0000000 --- a/resources/ts/front/Pages/Errors/Default.tsx +++ /dev/null @@ -1,24 +0,0 @@ -// * Packages -import { Head, Link } from "@inertiajs/react"; -import { route } from "ziggy-js"; -// * Other -import AppLayout from "@/front/Layouts/AppLayout"; -import useTrans from "@/hooks/use-translations"; - -export default function Default({ status }: { status: number }) { - return ( - - -

- {status} - {useTrans(`errors.${status}.title`)} -

-

{useTrans(`errors.${status}.description`)}

- - {useTrans("front.back_to_your_website")} - -
- ); -} diff --git a/resources/ts/front/Pages/Home.tsx b/resources/ts/front/Pages/Home.tsx deleted file mode 100644 index 7b6f2cb..0000000 --- a/resources/ts/front/Pages/Home.tsx +++ /dev/null @@ -1,16 +0,0 @@ -// * Packages -import { Head } from "@inertiajs/react"; -// * Other -import AppLayout from "@/front/Layouts/AppLayout"; -import useTrans from "@/hooks/use-translations"; - -export default function Home() { - return ( - - -

- {useTrans("front.homepage")} -

-
- ); -} diff --git a/resources/views/app.blade.php b/resources/views/app.blade.php index ead399b..37c7607 100644 --- a/resources/views/app.blade.php +++ b/resources/views/app.blade.php @@ -1,2 +1,2 @@ {{-- Keep this file for inertia orientation in case of error --}} -@extends(\request()->routeIs('back.*') ? 'back.app' : 'front.app') +@extends('back.app') diff --git a/resources/views/front/app.blade.php b/resources/views/front/app.blade.php deleted file mode 100644 index 4d009ad..0000000 --- a/resources/views/front/app.blade.php +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - {{ config('app.name') }} - - - - - - - - - @routes(nonce: $nonce ?? '') - @if (app()->hasDebugModeEnabled()) - @viteReactRefresh - @endif - @vite(["resources/ts/{$page['component']}.tsx", 'resources/sass/front/app.scss']) - @inertiaHead - - - - @inertia - - - diff --git a/routes/breadcrumbs/back.php b/routes/breadcrumbs/back.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/routes/breadcrumbs/back.php @@ -0,0 +1 @@ +push( - Str::ucfirst(trans('front.homepage')), - route('front.homepage') - ); -}); diff --git a/routes/web-front.php b/routes/web-front.php deleted file mode 100644 index 0430511..0000000 --- a/routes/web-front.php +++ /dev/null @@ -1,6 +0,0 @@ -name('homepage'); diff --git a/vite.config.ts b/vite.config.ts index adf5ec0..95d8aa0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,7 +9,6 @@ export default defineConfig({ laravel({ input: [ 'resources/ts/app.tsx', - 'resources/sass/front/app.scss', 'resources/sass/back/app.scss', ], refresh: true, @@ -17,10 +16,6 @@ export default defineConfig({ react(), copy({ targets: [ - { - src: path.normalize("resources/favicons/front/*"), - dest: path.normalize("public/") - }, { src: path.normalize("resources/favicons/back/*"), dest: path.normalize("public/favicon-back")