From 883e7c8d09a7bbba01e47bb938de7832c2954110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 17 May 2023 08:57:00 +0200 Subject: [PATCH] some updates --- .stylelintrc.json | 6 ++---- app/Providers/AppServiceProvider.php | 7 ------- app/Providers/RouteServiceProvider.php | 2 +- config/purifier.php | 2 +- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 93eafdd..2459fb3 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,6 +1,5 @@ { "extends": [ - "stylelint-config-prettier", "stylelint-config-standard-scss", "stylelint-config-sass-guidelines", "stylelint-config-idiomatic-order" @@ -15,9 +14,7 @@ "**/vendor/*.sass", "**/vendor/**/*.sass", "**/vendor/*.less", - "**/vendor/**/*.less", - "**/vendor/*.vue", - "**/vendor/**/*.vue" + "**/vendor/**/*.less" ], "customSyntax": "postcss-scss", "rules": { @@ -31,6 +28,7 @@ "declaration-colon-space-after": "always-single-line", "function-parentheses-space-inside": "never-single-line", "declaration-colon-newline-after": null, + "value-list-comma-newline-after": null, "scss/double-slash-comment-empty-line-before": [ "always", { diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index a262827..5f983d6 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -6,7 +6,6 @@ use Illuminate\Pagination\Paginator; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\URL; -use Illuminate\Support\Facades\Vite; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider @@ -59,12 +58,6 @@ class AppServiceProvider extends ServiceProvider private function sharetoView() { if (!app()->runningInConsole()) { - // * VITE ALIASES - Vite::macro('image', function (string $asset) { - /** @var \Illuminate\Foundation\Vite $self */ - $self = $this; - $self->asset("resources/assets/images/{$asset}"); - }); // * FORCE BOOTSTRAP PAGINATOR (or custom if in front) // Early boot, request wont be filled as expected. if (collect(explode('/', \request()->getPathInfo()))->get(1) === 'bo') { diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index f078ea4..ec4432c 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -17,7 +17,7 @@ class RouteServiceProvider extends ServiceProvider * * @var string */ - public const HOME = '/home'; + public const HOME = '/'; /** * Define your route model bindings, pattern filters, and other route configuration. diff --git a/config/purifier.php b/config/purifier.php index 63a5345..16ea41b 100644 --- a/config/purifier.php +++ b/config/purifier.php @@ -34,7 +34,7 @@ return [ // * Restricted basics. 'HTML.Allowed' => 'br,p[style],b[style],u[style],i[style],a[href|title|target|rel],strong[style],span[class],ul[style],ol[style],li[style],h2[style],h3[style],h4[style],hr,blockquote[style]', // * Legacy filter en full avec safe legacy. - // 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align,list-style-type,float,width,height,vertical-align,border-color', + // 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align,list-style-type,float,width,height,vertical-align,border-color,margin-left', // * Restricted basics. 'CSS.AllowedProperties' => 'text-align,margin-left', 'AutoFormat.AutoParagraph' => false,