mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 14:56:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<div wire:poll.10s>
 | 
						|
    @switch($node->systemInformation()['version'] ?? 'false')
 | 
						|
        @case('false')
 | 
						|
            <x-filament::icon
 | 
						|
                x-tooltip="{
 | 
						|
                    content: 'Error connecting to node!<br>Check browser console for details.',
 | 
						|
                    theme: $store.theme,
 | 
						|
                    allowHTML: true,
 | 
						|
                    placement: 'bottom',
 | 
						|
                }"
 | 
						|
                :icon="'tabler-heart-off'"
 | 
						|
                @class(['fi-ta-icon-item', $sizeClasses, 'fi-color-custom text-custom-500 dark:text-custom-400', 'fi-color-danger'])
 | 
						|
                @style([\Filament\Support\get_color_css_variables('danger', shades: [400, 500], alias: 'tables::columns.icon-column.item') => true])
 | 
						|
            />
 | 
						|
            @script
 | 
						|
            <script>
 | 
						|
                console.error(@json($node->systemInformation())); // TODO Make Purdy
 | 
						|
            </script>
 | 
						|
            @endscript
 | 
						|
            @break
 | 
						|
        @default
 | 
						|
            <x-filament::icon
 | 
						|
                x-tooltip="{
 | 
						|
                    content: '{{ $node->systemInformation()['version'] }}',
 | 
						|
                    theme: $store.theme,
 | 
						|
                    placement: 'bottom',
 | 
						|
                }"
 | 
						|
                :icon="'tabler-heartbeat'"
 | 
						|
                @class(['fi-ta-icon-item', $sizeClasses, 'fi-color-custom text-custom-500 dark:text-custom-400', 'fi-color-success' => true])
 | 
						|
                @style([\Filament\Support\get_color_css_variables('success', shades: [400, 500], alias: 'tables::columns.icon-column.item') => true])
 | 
						|
            />
 | 
						|
    @endswitch
 | 
						|
</div>
 |