Add update lookup and telemetry, Add version and build to app config

This commit is contained in:
Constantin Graf
2024-10-04 21:59:02 +02:00
committed by Gregor Vostrak
parent f147fb9725
commit 2372ee0622
31 changed files with 1195 additions and 680 deletions

View File

@@ -0,0 +1,10 @@
import preset from '../../../../vendor/filament/filament/tailwind.config.preset'
export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}

View File

@@ -0,0 +1,3 @@
@import '/vendor/filament/filament/resources/css/theme.css';
@config 'tailwind.config.js';

View File

@@ -0,0 +1,28 @@
<x-filament-widgets::widget>
<x-filament::section>
<div>
<span class="text-gray-950 font-bold">Version</span> <span>v{{ $version }}</span><br>
<span class="text-gray-950 font-bold">Build</span> {{ $build }}
</div>
@if ($currentVersion !== null)
<div class="mt-4 inline-flex items-center justify-center gap-1">
@if ($needsUpdate)
<span>
<x-filament::icon
icon="heroicon-o-exclamation-triangle"
class="h-5 w-5 text-orange-500 dark:text-orange-400"
/>
</span>
<span>Update available (v{{ $currentVersion }})</span>
@else
<x-filament::icon
icon="heroicon-o-check-circle"
class="h-5 w-5 text-green-500 dark:text-green-400"
/>
<span>Current version</span>
@endif
</div>
@endif
</x-filament::section>
</x-filament-widgets::widget>