Skip to content

Commit

Permalink
Added dev warning and composer upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Poseidon281 committed May 17, 2024
1 parent b65da25 commit b5ef6dc
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 39 deletions.
9 changes: 9 additions & 0 deletions app/Filament/Client/Pages/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Filament\Pages\Page;
use App\Models\Server;
use Filament\Actions\CreateAction;

class Dashboard extends Page
{
Expand All @@ -28,9 +29,17 @@ public function getViewData(): array
$servers = Server::where('uuid', $user->id)->get();

return [
'inDevelopment' => true,
'heading' => 'Welcome to ' . config('app.name'),
'subheading' => 'Welcome back ' . $user->name_first . ' ' . $user->name_last,
'ServersCount' => $servers->count(),
"development" => [
CreateAction::make()
->label(trans('dashboard/index.sections.intro-developers.button_issues'))
->icon('tabler-brand-github')
->url('https://github.com/pelican-dev/panel/issues/new/choose', true)
->color('warning'),
]
];
}
}
78 changes: 39 additions & 39 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions resources/views/filament/client/pages/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,22 @@
</x-filament::tabs.item>
</x-filament::tabs>

@if ($inDevelopment)
<x-filament::section
icon="tabler-code"
icon-color="primary"
id="intro-developers"
:header-actions="$development"
>
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-developers.heading') }}</x-slot>

<p>This side is still in development and bugs or issues may occur</p>

<p><br /></p>

<p>{{ trans('dashboard/index.sections.intro-developers.extra_note') }}</p>

</x-filament::section>
@endif

</x-filament-panels::page>

0 comments on commit b5ef6dc

Please sign in to comment.