Skip to content

Commit

Permalink
cleaning up some unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Aug 19, 2023
1 parent 518386b commit 2bc0889
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 20 deletions.
5 changes: 0 additions & 5 deletions config/zeus.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
*/
Expand Down
1 change: 0 additions & 1 deletion resources/js/filament.js

This file was deleted.

1 change: 0 additions & 1 deletion resources/js/frontend.js

This file was deleted.

1 change: 0 additions & 1 deletion resources/views/components/app.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" dir="{{ __('filament::layout.direction') ?? 'ltr' }}" class="antialiased filament js-focus-visible">
<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
Expand Down
18 changes: 9 additions & 9 deletions src/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(', '),
]);
}
Expand All @@ -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');
}

Expand All @@ -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;
});
}
Expand Down
3 changes: 0 additions & 3 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 2bc0889

Please sign in to comment.