From 77e34a1a33e16454366f120741316fe8558f5b09 Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: 2025年8月16日 17:26:56 +0100 Subject: [PATCH 1/4] docs: README: light/dark mode logo --- README.md | 5 +++- art/boost-dark-mode.svg | 58 +++++++++++++++++++++++++++++++++++++++ art/boost-light-mode.svg | 59 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 art/boost-dark-mode.svg create mode 100644 art/boost-light-mode.svg diff --git a/README.md b/README.md index f0c030c7..64f34fa8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -

Logo Laravel Boost

+

+ ![Boost Logo Dark Mode](/art/boost-light-mode.svg#gh-light-mode-only) + ![Boost Logo Dark Mode](/art/boost-dark-mode.svg#gh-dark-mode-only) +

Build Status diff --git a/art/boost-dark-mode.svg b/art/boost-dark-mode.svg new file mode 100644 index 00000000..3ebb1996 --- /dev/null +++ b/art/boost-dark-mode.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/art/boost-light-mode.svg b/art/boost-light-mode.svg new file mode 100644 index 00000000..7287bb43 --- /dev/null +++ b/art/boost-light-mode.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From a706262c2e91bff6d1f32a7b3854e634712347be Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: 2025年8月16日 17:28:03 +0100 Subject: [PATCH 2/4] docs: README: move to img tag --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 64f34fa8..2ea157b3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

- ![Boost Logo Dark Mode](/art/boost-light-mode.svg#gh-light-mode-only) - ![Boost Logo Dark Mode](/art/boost-dark-mode.svg#gh-dark-mode-only) + Boost Logo Dark Mode + Boost Logo Dark Mode

From e0ab2f63d899e80a9dac368f2f001c7f010a06b4 Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: 2025年8月16日 17:31:50 +0100 Subject: [PATCH 3/4] static: remove unnecessary phpstan ignore --- src/BoostServiceProvider.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/BoostServiceProvider.php b/src/BoostServiceProvider.php index adcf83f1..4904831e 100644 --- a/src/BoostServiceProvider.php +++ b/src/BoostServiceProvider.php @@ -22,7 +22,7 @@ class BoostServiceProvider extends ServiceProvider public function register(): void { $this->mergeConfigFrom( - __DIR__.'/../config/boost.php', + __DIR__ . '/../config/boost.php', 'boost' ); @@ -36,7 +36,7 @@ public function register(): void ]; $cacheKey = 'boost.roster.scan'; - $lastModified = max(array_map(fn ($path) => file_exists($path) ? filemtime($path) : 0, $lockFiles)); + $lastModified = max(array_map(fn($path) => file_exists($path) ? filemtime($path) : 0, $lockFiles)); $cached = cache()->get($cacheKey); if ($cached && isset($cached['timestamp']) && $cached['timestamp']>= $lastModified) { @@ -64,14 +64,13 @@ public function boot(Router $router): void return; } - // @phpstan-ignore-next-line Mcp::local('laravel-boost', Boost::class); $this->registerPublishing(); $this->registerCommands(); $this->registerRoutes(); $this->registerBrowserLogger(); - $this->callAfterResolving('blade.compiler', fn (BladeCompiler $bladeCompiler) => $this->registerBladeDirectives($bladeCompiler)); + $this->callAfterResolving('blade.compiler', fn(BladeCompiler $bladeCompiler) => $this->registerBladeDirectives($bladeCompiler)); $this->hookIntoResponses($router); } @@ -79,7 +78,7 @@ private function registerPublishing(): void { if ($this->app->runningInConsole()) { $this->publishes([ - __DIR__.'/../config/boost.php' => config_path('boost.php'), + __DIR__ . '/../config/boost.php' => config_path('boost.php'), ], 'boost-config'); } } @@ -164,7 +163,7 @@ private function registerBrowserLogger(): void private function registerBladeDirectives(BladeCompiler $bladeCompiler): void { - $bladeCompiler->directive('boostJs', fn () => ''); + $bladeCompiler->directive('boostJs', fn() => ''); } private static function mapJsTypeToPsr3Level(string $type): string From 3b68c7d977f958b2a756855ebecc4839a2a8dcb6 Mon Sep 17 00:00:00 2001 From: ashleyhindle <454975+ashleyhindle@users.noreply.github.com> Date: 2025年8月16日 16:32:11 +0000 Subject: [PATCH 4/4] Fix code styling --- src/BoostServiceProvider.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BoostServiceProvider.php b/src/BoostServiceProvider.php index 4904831e..44a98912 100644 --- a/src/BoostServiceProvider.php +++ b/src/BoostServiceProvider.php @@ -22,7 +22,7 @@ class BoostServiceProvider extends ServiceProvider public function register(): void { $this->mergeConfigFrom( - __DIR__ . '/../config/boost.php', + __DIR__.'/../config/boost.php', 'boost' ); @@ -36,7 +36,7 @@ public function register(): void ]; $cacheKey = 'boost.roster.scan'; - $lastModified = max(array_map(fn($path) => file_exists($path) ? filemtime($path) : 0, $lockFiles)); + $lastModified = max(array_map(fn ($path) => file_exists($path) ? filemtime($path) : 0, $lockFiles)); $cached = cache()->get($cacheKey); if ($cached && isset($cached['timestamp']) && $cached['timestamp']>= $lastModified) { @@ -70,7 +70,7 @@ public function boot(Router $router): void $this->registerCommands(); $this->registerRoutes(); $this->registerBrowserLogger(); - $this->callAfterResolving('blade.compiler', fn(BladeCompiler $bladeCompiler) => $this->registerBladeDirectives($bladeCompiler)); + $this->callAfterResolving('blade.compiler', fn (BladeCompiler $bladeCompiler) => $this->registerBladeDirectives($bladeCompiler)); $this->hookIntoResponses($router); } @@ -78,7 +78,7 @@ private function registerPublishing(): void { if ($this->app->runningInConsole()) { $this->publishes([ - __DIR__ . '/../config/boost.php' => config_path('boost.php'), + __DIR__.'/../config/boost.php' => config_path('boost.php'), ], 'boost-config'); } } @@ -163,7 +163,7 @@ private function registerBrowserLogger(): void private function registerBladeDirectives(BladeCompiler $bladeCompiler): void { - $bladeCompiler->directive('boostJs', fn() => ''); + $bladeCompiler->directive('boostJs', fn () => ''); } private static function mapJsTypeToPsr3Level(string $type): string

AltStyle によって変換されたページ (->オリジナル) /