Admin panel v1

This commit is contained in:
Ralph J. Smit
2022-08-05 18:11:23 +02:00
parent d89482c4aa
commit 9d1b12b0a3
62 changed files with 2010 additions and 577 deletions

9
resources/css/filament.css vendored Normal file
View File

@@ -0,0 +1,9 @@
@import "../../vendor/filament/filament/resources/css/app.css";
@import "../../node_modules/tippy.js/dist/tippy.css";
@import "../../node_modules/tippy.js/themes/light.css";
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@@ -19,7 +19,7 @@
@endif
@if($logo = setting('logo'))
<link rel="icon" type="image/x-icon" href="{{ $logo }}">
<link rel="icon" type="image/x-icon" href="{{ \Illuminate\Support\Facades\Storage::disk('logos')->url($logo) }}">
@endif
@if(view()->exists('header'))

View File

@@ -0,0 +1,11 @@
<x-filament::page>
<x-filament::form wire:submit.prevent="save">
{{ $this->form }}
<div class="mt-4">
<x-filament-support::button type="submit">
{{ __('Save') }}
</x-filament-support::button>
</div>
</x-filament::form>
</x-filament::page>

View File

@@ -0,0 +1,29 @@
<x-filament::page>
<div class="px-4 py-3 rounded-md border border-gray-400">
<p>{{ __("Check your system's version here. If there's an update available you'll be able to press the update button to update your system.") }}</p>
<ul class="mt-4">
<li>{{ __("Current version") }}: {{ $this->getCurrentVersion() }}</li>
<li>{{ __("Remote version") }}: {{ $this->getRemoteVersion() }} <span class="text-primary-500" wire:click="refreshRemoteVersion">{{ __('Refresh') }}</span></li>
<li>{{ __('Horizon worker status') }}: <span @class(['text-red-600' => ! $this->getHorizonWorkerStatus(), 'text-green-600' => $this->getHorizonWorkerStatus()])> {{ $this->getHorizonWorkerStatus() ? __('Active') : __('Inactive') }}</span></li>
</ul>
@if($this->hasAvailableUpdate())
<div class="mt-8 bg-primary-600 text-white rounded px-4 py-3">
<h2 class="text-lg">{{ __('Update available') }}</h2>
<p>{{ __('An update is available for your system, please upgrade.') }}</p>
<a href="https://docs.ploi-core.io/digging-deeper/manual-update" target="_blank" class="block mt-4 underline font-bold">{{ __('Find out how to upgrade here') }}</a>
</div>
@endif
</div>
<div class="mt-8 pl-4 px-4 py-4 rounded-md border border-gray-400">
<ul class="list-disc ml-4">
<li><a class="text-primary-600" href="https://docs.ploi-core.io/">Ploi Core Docs</a></li>
<li><a class="text-primary-600" href="https://ploi.io/">Ploi Website</a></li>
<li><a class="text-primary-600" href="https://ploi.io/login">Ploi Panel</a></li>
<li><a class="text-primary-600" href="https://github.com/ploi-deploy/ploi-core">Ploi GitHub repository </a></li>
</ul>
</div>
</x-filament::page>

View File

@@ -0,0 +1,11 @@
<x-filament::page>
<form wire:submit.prevent="save">
{{ $this->form }}
<div class="mt-4">
<x-filament-support::button type="submit">
{{ __('Save') }}
</x-filament-support::button>
</div>
</form>
</x-filament::page>

View File

@@ -0,0 +1,5 @@
<x-filament::widget>
<x-filament::card>
{{-- Widget content --}}
</x-filament::card>
</x-filament::widget>

View File

@@ -0,0 +1,10 @@
@if($logo = setting('logo'))
<img src="{{ Storage::disk('logos')->url($logo) }}" class="h-8" alt="{{ setting('name') }}" />
@elseif (filled($brand = config('filament.brand')))
<div @class([
'text-xl font-bold tracking-tight filament-brand',
'dark:text-white' => config('filament.dark_mode'),
])>
{{ $brand }}
</div>
@endif