|
|
@@ -42,39 +42,15 @@ export default function SettingsPage() {
|
|
|
</div>
|
|
|
</div>
|
|
|
<div className="flex items-center gap-3">
|
|
|
+ <ShutdownButton />
|
|
|
<WatcherControls />
|
|
|
<SettingsCrud />
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div className="bg-white dark:bg-gray-900 rounded-xl shadow-sm ring-1 ring-gray-200 dark:ring-gray-800 overflow-hidden">
|
|
|
<SettingsList />
|
|
|
</div>
|
|
|
-
|
|
|
- {/* Server Management Section */}
|
|
|
- <div className="mt-8 bg-white dark:bg-gray-900 rounded-xl shadow-sm ring-1 ring-gray-200 dark:ring-gray-800 overflow-hidden">
|
|
|
- <div className="px-6 py-4 border-b border-gray-200 dark:border-gray-800">
|
|
|
- <h3 className="text-base font-semibold text-gray-900 dark:text-white">
|
|
|
- Server Management
|
|
|
- </h3>
|
|
|
- <p className="text-sm text-gray-600 dark:text-gray-400 mt-1">
|
|
|
- Control server lifecycle and perform maintenance operations
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div className="px-6 py-4">
|
|
|
- <div className="space-y-4">
|
|
|
- <div>
|
|
|
- <h4 className="text-sm font-medium text-gray-900 dark:text-white mb-2">
|
|
|
- Graceful Shutdown
|
|
|
- </h4>
|
|
|
- <p className="text-xs text-gray-600 dark:text-gray-400 mb-3">
|
|
|
- Safely shut down the server by stopping all watchers, completing active tasks,
|
|
|
- and properly closing database connections to prevent corruption.
|
|
|
- </p>
|
|
|
- <ShutdownButton />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
);
|
|
|
}
|