mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 11:12:16 +01:00
Add update lookup and telemetry, Add version and build to app config
This commit is contained in:
committed by
Gregor Vostrak
parent
f147fb9725
commit
2372ee0622
10
resources/css/filament/admin/tailwind.config.js
Normal file
10
resources/css/filament/admin/tailwind.config.js
Normal 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',
|
||||
],
|
||||
}
|
||||
3
resources/css/filament/admin/theme.css
Normal file
3
resources/css/filament/admin/theme.css
Normal file
@@ -0,0 +1,3 @@
|
||||
@import '/vendor/filament/filament/resources/css/theme.css';
|
||||
|
||||
@config 'tailwind.config.js';
|
||||
28
resources/views/filament/widgets/server-overview.blade.php
Normal file
28
resources/views/filament/widgets/server-overview.blade.php
Normal 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>
|
||||
Reference in New Issue
Block a user