implement install-commands button (#10)

* fix: type conversion

* implement install-commands button
This commit is contained in:
UUBulb
2024-11-30 13:44:17 +08:00
committed by GitHub
parent 35436e69bb
commit 7d672fa8c5
8 changed files with 149 additions and 12 deletions

View File

@@ -22,6 +22,7 @@ import ServerGroupPage from './routes/server-group';
import NotificationGroupPage from './routes/notification-group';
import { ServerProvider } from './hooks/useServer';
import { NotificationProvider } from './hooks/useNotfication';
import { ConfigProvider } from './hooks/useConfig';
import CronPage from './routes/cron';
import NotificationPage from './routes/notification';
import AlertRulePage from './routes/alert-rule';
@@ -33,7 +34,15 @@ import ProfilePage from './routes/profile';
const router = createBrowserRouter([
{
path: "/dashboard",
element: <AuthProvider><ProtectedRoute><Root /></ProtectedRoute></AuthProvider>,
element: (
<AuthProvider>
<ProtectedRoute>
<ConfigProvider>
<Root />
</ConfigProvider>
</ProtectedRoute>
</AuthProvider>
),
errorElement: <ErrorPage />,
children: [
{