Fix styling
This commit is contained in:
parent
1d0a1ab16a
commit
dc4916dc19
@ -37,7 +37,7 @@ class PullSentinelImageJob implements ShouldBeEncrypted, ShouldQueue
|
||||
try {
|
||||
$version = get_latest_sentinel_version();
|
||||
if (isDev()) {
|
||||
$version = "0.0.5";
|
||||
$version = '0.0.5';
|
||||
}
|
||||
if (! $version) {
|
||||
ray('Failed to get latest Sentinel version');
|
||||
|
||||
@ -8,18 +8,23 @@ use Livewire\Component;
|
||||
class Server extends Component
|
||||
{
|
||||
public ModelsServer $server;
|
||||
|
||||
public $chartId = 'server';
|
||||
|
||||
public $data;
|
||||
|
||||
public $categories;
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.charts.server');
|
||||
}
|
||||
|
||||
public function mount()
|
||||
{
|
||||
$this->loadData();
|
||||
}
|
||||
|
||||
public function loadData()
|
||||
{
|
||||
$metrics = $this->server->getMetrics();
|
||||
|
||||
@ -487,6 +487,7 @@ $schema://$host {
|
||||
$parsedCollection = collect($cpu)->flatMap(function ($item) {
|
||||
return collect(explode("\n", trim($item)))->map(function ($line) {
|
||||
[$time, $value] = explode(',', trim($line));
|
||||
|
||||
return [(int) $time, (float) $value];
|
||||
});
|
||||
})->toArray();
|
||||
|
||||
@ -9,9 +9,13 @@ use Illuminate\View\Component;
|
||||
class ApexCharts extends Component
|
||||
{
|
||||
public string $chartId;
|
||||
|
||||
public $seriesData;
|
||||
|
||||
public $categories;
|
||||
|
||||
public $seriesName;
|
||||
|
||||
public function __construct($chartId, $seriesData, $categories, $seriesName = '')
|
||||
{
|
||||
$this->chartId = $chartId;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user