From 2bc0889263099171977e6a3747c80fb841f83681 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Sat, 19 Aug 2023 03:18:19 +0300 Subject: [PATCH] cleaning up some unused files --- config/zeus.php | 5 ----- resources/js/filament.js | 1 - resources/js/frontend.js | 1 - resources/views/components/app.blade.php | 1 - src/CoreServiceProvider.php | 18 +++++++++--------- webpack.mix.js | 3 --- 6 files changed, 9 insertions(+), 20 deletions(-) delete mode 100644 resources/js/filament.js delete mode 100644 resources/js/frontend.js diff --git a/config/zeus.php b/config/zeus.php index 47d40ff..fcf3a15 100644 --- a/config/zeus.php +++ b/config/zeus.php @@ -26,11 +26,6 @@ */ 'site_description' => 'All about ' . config('app.name', 'Laravel'), - /** - * Num of recent pages/posts displayed on frontend. - */ - 'site_recent_count' => 5, // todo move to sky - /** * this will be setup the default seo site color theme. read more about it in 'laravel-seo'. */ diff --git a/resources/js/filament.js b/resources/js/filament.js deleted file mode 100644 index 8337712..0000000 --- a/resources/js/filament.js +++ /dev/null @@ -1 +0,0 @@ -// diff --git a/resources/js/frontend.js b/resources/js/frontend.js deleted file mode 100644 index ab0c014..0000000 --- a/resources/js/frontend.js +++ /dev/null @@ -1 +0,0 @@ -// \ No newline at end of file diff --git a/resources/views/components/app.blade.php b/resources/views/components/app.blade.php index 3967b68..69744bc 100644 --- a/resources/views/components/app.blade.php +++ b/resources/views/components/app.blade.php @@ -1,7 +1,6 @@ - diff --git a/src/CoreServiceProvider.php b/src/CoreServiceProvider.php index 3601945..ab4109d 100644 --- a/src/CoreServiceProvider.php +++ b/src/CoreServiceProvider.php @@ -19,18 +19,18 @@ class CoreServiceProvider extends PackageServiceProvider public function packageBooted(): void { if (class_exists(AboutCommand::class) && class_exists(InstalledVersions::class)) { - $packages = [ + $packages = collect([ 'sky', 'wind', 'bolt', 'thunder', 'rain', 'rhea', - ]; - AboutCommand::add('Zeus', fn () => [ + ]); + AboutCommand::add('Zeus', fn() => [ 'Core Version' => InstalledVersions::getPrettyVersion('lara-zeus/core'), - 'Packages' => collect($packages) - ->filter(fn (string $package): bool => InstalledVersions::isInstalled("lara-zeus/{$package}")) + 'Packages' => $packages + ->filter(fn(string $package): bool => InstalledVersions::isInstalled("lara-zeus/{$package}")) ->join(', '), ]); } @@ -40,7 +40,7 @@ public function packageBooted(): void }); FilamentAsset::register([ - Css::make('filament-lara-zeus', __DIR__ . '/../resources/dist/lara-zeus.css'), + Css::make('filament-lara-zeus', __DIR__.'/../resources/dist/lara-zeus.css'), ], 'lara-zeus'); } @@ -55,9 +55,9 @@ public function configurePackage(Package $package): void public static function setThemePath($path): void { - $viewPath = 'zeus::themes.' . config('zeus.theme') . '.' . $path; - View::share($path . 'Theme', $viewPath); - App::singleton($path . 'Theme', function () use ($viewPath) { + $viewPath = 'zeus::themes.'.config('zeus.theme').'.'.$path; + View::share($path.'Theme', $viewPath); + App::singleton($path.'Theme', function () use ($viewPath) { return $viewPath; }); } diff --git a/webpack.mix.js b/webpack.mix.js index a8c0315..b3449a3 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -3,9 +3,6 @@ const tailwindcss = require("tailwindcss"); const postcssImport = require("postcss-import"); mix - //.js('resources/js/frontend.js', 'dist') - //.js('resources/js/filament.js', 'dist') - .postCss('resources/css/filament.css', 'dist/filament-tail.css', [ postcssImport, tailwindcss("./tailwind-filament.config.js"),