fix: 🔥 remove unused files

This commit is contained in:
Alexis Gousseau 2026-04-28 10:46:41 +02:00
parent 166dc35ee8
commit 4d5afbf9fd
No known key found for this signature in database
GPG key ID: 7F3C786EE12DBB72
69 changed files with 12 additions and 747 deletions

View file

@ -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/

View file

@ -1,19 +0,0 @@
<?php
namespace App\Http\Controllers\Front;
use Inertia\Inertia;
use Uwil\LaravelCommon\Controllers\Controller;
class HomeController extends Controller
{
/**
* Show home page.
*
* @return \Inertia\Response
*/
public function homepage(): \Inertia\Response
{
return Inertia::render('front/Pages/Home');
}
}

View file

@ -43,9 +43,7 @@ return [
'ensure_pages_exist' => true,
'page_paths' => [
resource_path('ts/front/Pages'),
],
'page_paths' => [],
'page_extensions' => [
'js',

View file

@ -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'],

View file

@ -1,7 +0,0 @@
<?php
declare(strict_types=1);
return [
// "dashboard" => "Tableau de bord",
];

View file

@ -1,11 +0,0 @@
<?php
declare(strict_types=1);
return [
// "user-role" => [
// "conceptor" => "Concepteur",
// "admin" => "Administrateur",
// "visitor" => "Visiteur",
// ],
];

View file

@ -1,56 +0,0 @@
<?php
return [
"400" => [
"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.",
],
];

View file

@ -1,6 +0,0 @@
<?php
return [
"homepage" => "Hallo Welt",
"back_to_your_website" => "Zurück zur Startseite",
];

View file

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
return [
"classes" => [
// "users" => "utilisateur|utilisateurs",
],
];

View file

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
return [
"custom" => [
// "published" => "publié",
],
];

View file

@ -1,7 +0,0 @@
<?php
declare(strict_types=1);
return [
// "dashboard" => "Tableau de bord",
];

View file

@ -1,11 +0,0 @@
<?php
declare(strict_types=1);
return [
// "user-role" => [
// "conceptor" => "Concepteur",
// "admin" => "Administrateur",
// "visitor" => "Visiteur",
// ],
];

View file

@ -1,56 +0,0 @@
<?php
return [
"400" => [
"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.",
],
];

View file

@ -1,6 +0,0 @@
<?php
return [
"homepage" => "Hello World",
"back_to_your_website" => "Return to the home page",
];

View file

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
return [
"classes" => [
// "users" => "utilisateur|utilisateurs",
],
];

View file

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
return [
"custom" => [
// "published" => "publié",
],
];

View file

@ -1,7 +0,0 @@
<?php
declare(strict_types=1);
return [
// "dashboard" => "Tableau de bord",
];

View file

@ -1,11 +0,0 @@
<?php
declare(strict_types=1);
return [
// "user-role" => [
// "conceptor" => "Concepteur",
// "admin" => "Administrateur",
// "visitor" => "Visiteur",
// ],
];

View file

@ -1,56 +0,0 @@
<?php
return [
"400" => [
"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.",
],
];

View file

@ -1,6 +0,0 @@
<?php
return [
"homepage" => "Hola Mundo",
"back_to_your_website" => "Volver a la página de inicio",
];

View file

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
return [
"classes" => [
// "users" => "utilisateur|utilisateurs",
],
];

View file

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
return [
"custom" => [
// "published" => "publié",
],
];

View file

@ -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",
],
];

View file

@ -1,7 +0,0 @@
<?php
declare(strict_types=1);
return [
// "dashboard" => "Tableau de bord",
];

View file

@ -1,11 +0,0 @@
<?php
declare(strict_types=1);
return [
// "user-role" => [
// "conceptor" => "Concepteur",
// "admin" => "Administrateur",
// "visitor" => "Visiteur",
// ],
];

View file

@ -1,56 +0,0 @@
<?php
return [
"400" => [
"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.",
],
];

View file

@ -1,6 +0,0 @@
<?php
return [
"homepage" => "Hallo wereld",
"back_to_your_website" => "Terug naar de startpagina",
];

View file

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
return [
"classes" => [
// "users" => "utilisateur|utilisateurs",
],
];

View file

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
return [
"custom" => [
// "published" => "publié",
],
];

View file

@ -1,7 +0,0 @@
<?php
declare(strict_types=1);
return [
// "dashboard" => "Tableau de bord",
];

View file

@ -1,11 +0,0 @@
<?php
declare(strict_types=1);
return [
// "user-role" => [
// "conceptor" => "Concepteur",
// "admin" => "Administrateur",
// "visitor" => "Visiteur",
// ],
];

View file

@ -1,56 +0,0 @@
<?php
return [
"400" => [
"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.",
],
];

View file

@ -1,6 +0,0 @@
<?php
return [
"homepage" => "Witaj świecie",
"back_to_your_website" => "Powrót do strony głównej",
];

View file

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
return [
"classes" => [
// "users" => "utilisateur|utilisateurs",
],
];

View file

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
return [
"custom" => [
// "published" => "publié",
],
];

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -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"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

View file

@ -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;
}
}

View file

@ -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(<App {...props} />);
},
progress: {
color: "#4B5563",
},
});
window.axios = axios;
window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";

View file

@ -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 (
<>
<Head>
{breadcrumbs?.length > 0 && (
<script type="application/ld+json">
{JSON.stringify({
"@context": "https://schema.org",
"@type": "BreadcrumbList",
itemListElement: breadcrumbs.map((crumb, index) => ({
"@type": "ListItem",
position: index + 1,
name: crumb.title,
item: crumb.url,
})),
})}
</script>
)}
</Head>
{children}
</>
);
}

View file

@ -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 (
<AppLayout>
<Head title={String(status)} />
<h1 className="text-4xl font-extrabold tracking-tight lg:text-5xl">
{status} - {useTrans(`errors.${status}.title`)}
</h1>
<p className="my-5">{useTrans(`errors.${status}.description`)}</p>
<Link
className="rounded-md font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 underline-offset-4 hover:underline text-blue-600 hover:text-blue-600/80 visited:text-purple-600"
href={route("front.homepage")}
>
{useTrans("front.back_to_your_website")}
</Link>
</AppLayout>
);
}

View file

@ -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 (
<AppLayout>
<Head title={useTrans("front.homepage")} />
<h1 className="text-4xl font-extrabold tracking-tight lg:text-5xl">
{useTrans("front.homepage")}
</h1>
</AppLayout>
);
}

View file

@ -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')

View file

@ -1,29 +0,0 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title inertia>{{ config('app.name') }}</title>
<x-uwil-common::head.robots />
<x-uwil-common::head.canonical />
<x-uwil-common::head.hreflang />
<x-uwil-common::head.og />
<x-uwil-common::head.favicon mask-icon-color="#ff0000" tile-color="#ff0000" theme-color="#ff0000" />
<!-- Scripts -->
@routes(nonce: $nonce ?? '')
@if (app()->hasDebugModeEnabled())
@viteReactRefresh
@endif
@vite(["resources/ts/{$page['component']}.tsx", 'resources/sass/front/app.scss'])
@inertiaHead
</head>
<body>
@inertia
</body>
</html>

View file

@ -0,0 +1 @@
<?php

View file

@ -1,13 +0,0 @@
<?php
use Diglactic\Breadcrumbs\Breadcrumbs;
use Diglactic\Breadcrumbs\Generator;
use Illuminate\Support\Str;
// * DASHBOARD
Breadcrumbs::for('front.homepage', function (Generator $trail) {
$trail->push(
Str::ucfirst(trans('front.homepage')),
route('front.homepage')
);
});

View file

@ -1,6 +0,0 @@
<?php
use App\Http\Controllers\Front\HomeController;
use Illuminate\Support\Facades\Route;
Route::get('/', [HomeController::class, 'homepage'])->name('homepage');

View file

@ -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")