[修改]删除了updatetoetcd的page页面、widget排布

This commit is contained in:
makotocc0107
2024-08-28 16:13:59 +08:00
committed by Coding
parent fce4719316
commit d910dbb01c
5 changed files with 25 additions and 21 deletions

View File

@@ -7,7 +7,9 @@ use Filament\Widgets\ChartWidget;
class PrometheusMemory extends ChartWidget
{
protected static ?string $heading = 'Chart';
protected static ?int $sort = 3;
protected static ?string $heading = '内存占用率';
protected function getData(): array
{
@@ -34,7 +36,7 @@ class PrometheusMemory extends ChartWidget
'labels' => $labels,
'datasets' => [
[
'label' => 'Memory Usage (%)',
'label' => '内存占用率 (%)',
'data' => $data,
'borderColor' => '#4CAF50',
'backgroundColor' => 'rgba(76, 175, 80, 0.2)',

View File

@@ -11,6 +11,8 @@ use Spatie\Activitylog\ActivityLogStatus;
class UpdateConfigWidget extends Widget
{
protected static ?int $sort = 2;
protected static string $view = 'filament.widgets.update-config-widget';
public function updateSettingsToEtcd()