Admin panel v1
This commit is contained in:
9
resources/css/filament.css
vendored
Normal file
9
resources/css/filament.css
vendored
Normal 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;
|
||||
@@ -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'))
|
||||
|
||||
11
resources/views/filament/pages/settings.blade.php
Normal file
11
resources/views/filament/pages/settings.blade.php
Normal 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>
|
||||
29
resources/views/filament/pages/system.blade.php
Normal file
29
resources/views/filament/pages/system.blade.php
Normal 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>
|
||||
11
resources/views/filament/pages/terms.blade.php
Normal file
11
resources/views/filament/pages/terms.blade.php
Normal 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>
|
||||
@@ -0,0 +1,5 @@
|
||||
<x-filament::widget>
|
||||
<x-filament::card>
|
||||
{{-- Widget content --}}
|
||||
</x-filament::card>
|
||||
</x-filament::widget>
|
||||
10
resources/views/vendor/filament/components/brand.blade.php
vendored
Normal file
10
resources/views/vendor/filament/components/brand.blade.php
vendored
Normal 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
|
||||
Reference in New Issue
Block a user