[修改]删除了updatetoetcd的page页面、widget排布
This commit is contained in:
@@ -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)',
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user