diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 91e2e452..26ac93c7 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,4 +1,7 @@ module.exports = { + globals: { + route: 'readonly', + }, parser: "@typescript-eslint/parser", parserOptions: { ecmaVersion: 2020, diff --git a/app/Http/Middlewares/HandleInertiaRequests.php b/app/Http/Middlewares/HandleInertiaRequests.php index 4d21fae6..034e2b1d 100644 --- a/app/Http/Middlewares/HandleInertiaRequests.php +++ b/app/Http/Middlewares/HandleInertiaRequests.php @@ -38,7 +38,7 @@ class HandleInertiaRequests extends Middleware 'recaptchaKey' => config('services.google.recaptcha.public'), 'dynamicPages' => $dynamicPages, 'ziggy' => fn(): array => [ - ...(new Ziggy)->toArray(), + ...(new Ziggy())->toArray(), 'location' => $request->url(), ], // More props here. diff --git a/config/inertia.php b/config/inertia.php index d2f79543..b962ff26 100644 --- a/config/inertia.php +++ b/config/inertia.php @@ -24,10 +24,8 @@ return [ 'enabled' => true, 'url' => 'http://127.0.0.1:13714', - // avec k8s 'url' => 'http://inertia-ssr:13714', - + // Avec k8s 'url' => 'http://inertia-ssr:13714',. // "ensure_bundle_exists" => false, - ], /** diff --git a/resources/ts/front/Components/Theme/Sections/CarouselSection.tsx b/resources/ts/front/Components/Theme/Sections/CarouselSection.tsx index 12a24ef8..85445728 100644 --- a/resources/ts/front/Components/Theme/Sections/CarouselSection.tsx +++ b/resources/ts/front/Components/Theme/Sections/CarouselSection.tsx @@ -15,7 +15,7 @@ type CarouselSectionProps = CarouselProps & { itemCardSize?: { width?: string; height?: string; - } + }; }; /** @@ -68,18 +68,18 @@ export default function CarouselSection(props: CarouselSectionProps) { } = props; const buttonProps = button ? { - button: { - href: button.href, - label: button.label, - ...(button.icon - ? { - icon: { - icon: button.icon.icon, - }, - } - : {}), - }, - } + button: { + href: button.href, + label: button.label, + ...(button.icon + ? { + icon: { + icon: button.icon.icon, + }, + } + : {}), + }, + } : {}; return (
{ const isLast = index === cols.length - 1; return ( -
+

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

-

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

+

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

{({ href }) => ( - - {useTrans("front.back_to_your_website")} + + {GetTranslation("front.back_to_your_website")} )} diff --git a/resources/ts/front/Pages/MadeInFrance.tsx b/resources/ts/front/Pages/MadeInFrance.tsx index 1bc163e3..2555d3ff 100644 --- a/resources/ts/front/Pages/MadeInFrance.tsx +++ b/resources/ts/front/Pages/MadeInFrance.tsx @@ -90,7 +90,7 @@ export default function MadeInFrance() { createInertiaApp({ @@ -27,9 +27,8 @@ createServer((page) => // @ts-expect-error location: new URL(page.props.ziggy.location), }); + return ; /* eslint-enable */ - - return ; }, }), ); diff --git a/resources/ts/ziggy.d.ts b/resources/ts/ziggy.d.ts index b3c9b786..279b7257 100644 --- a/resources/ts/ziggy.d.ts +++ b/resources/ts/ziggy.d.ts @@ -1,5 +1,5 @@ -import type { route as routeFn } from 'ziggy-js'; +import type { route as routeFn } from "ziggy-js"; declare global { - const route: typeof routeFn; + const route: typeof routeFn; }