mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 23:54:44 +02:00
Polishing & throw curl error
This commit is contained in:
parent
45699e1614
commit
a8356fc5d2
@ -307,9 +307,7 @@ class Node extends Model
|
|||||||
|
|
||||||
if ($message->startsWith('cURL error 6: Could not resolve host')) {
|
if ($message->startsWith('cURL error 6: Could not resolve host')) {
|
||||||
$message = str('Could not resolve host');
|
$message = str('Could not resolve host');
|
||||||
}
|
} elseif ($message->startsWith('cURL error 28: Failed to connect to ')) {
|
||||||
|
|
||||||
if ($message->startsWith('cURL error 28: Failed to connect to ')) {
|
|
||||||
$message = $message->after('cURL error 28: ')->before(' after ');
|
$message = $message->after('cURL error 28: ')->before(' after ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,19 +3,27 @@
|
|||||||
@case('false')
|
@case('false')
|
||||||
<x-filament::icon
|
<x-filament::icon
|
||||||
x-tooltip="{
|
x-tooltip="{
|
||||||
content: 'Error connecting to node! Check browser console for details.',
|
content: 'Error connecting to node!<br>Check browser console for details.',
|
||||||
theme: $store.theme,
|
theme: $store.theme,
|
||||||
|
allowHTML: true,
|
||||||
|
placement: 'bottom',
|
||||||
}"
|
}"
|
||||||
:icon="'tabler-heart-off'"
|
:icon="'tabler-heart-off'"
|
||||||
@class(['fi-ta-icon-item', $sizeClasses, 'fi-color-custom text-custom-500 dark:text-custom-400', 'fi-color-danger'])
|
@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])
|
@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()['exception']));
|
||||||
|
</script>
|
||||||
|
@endscript
|
||||||
@break
|
@break
|
||||||
@default
|
@default
|
||||||
<x-filament::icon
|
<x-filament::icon
|
||||||
x-tooltip="{
|
x-tooltip="{
|
||||||
content: '{{ $node->systemInformation()['version'] }}',
|
content: '{{ $node->systemInformation()['version'] }}',
|
||||||
theme: $store.theme,
|
theme: $store.theme,
|
||||||
|
placement: 'bottom',
|
||||||
}"
|
}"
|
||||||
:icon="'tabler-heartbeat'"
|
:icon="'tabler-heartbeat'"
|
||||||
@class(['fi-ta-icon-item', $sizeClasses, 'fi-color-custom text-custom-500 dark:text-custom-400', 'fi-color-success' => true])
|
@class(['fi-ta-icon-item', $sizeClasses, 'fi-color-custom text-custom-500 dark:text-custom-400', 'fi-color-success' => true])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user