+ {Object.keys(sidebarItems).map((key) =>
(
{key}
- {sidebar[key].map((item: SidebarItem, i) => (
+ {sidebarItems[key].map((item: SidebarItem, i) => (
= ({ isDesktop, collapsed, open
(open ? PanelBottomClose : PanelBottomOpen);
return (
-
)}
diff --git a/dashboard/src/routes/_dashboard/nodes.tsx b/dashboard/src/routes/_dashboard/nodes.tsx
index 1e06b51..cda20a2 100644
--- a/dashboard/src/routes/_dashboard/nodes.tsx
+++ b/dashboard/src/routes/_dashboard/nodes.tsx
@@ -1,5 +1,35 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { Alert, AlertDescription, AlertTitle, Card, CardContent, CardFooter, CardHeader, CardTitle } from '@marzneshin/components';
+import { NodesTable } from '@marzneshin/features/nodes';
+import { Link, createFileRoute } from '@tanstack/react-router'
+import { Info } from 'lucide-react';
+import { FC } from 'react';
+import { useTranslation } from 'react-i18next';
+
+export const NodesPage: FC = () => {
+ const { t } = useTranslation();
+ return (
+
+
+
+ {t('nodes')}
+
+
+
+
+
+
+
+
+ {t('page.nodes.certificate-alert.title')}
+
+ {t('page.nodes.certificate-alert.desc')}
+ {t('page.nodes.certificate-alert.click')}
+
+
+
+ )
+};
export const Route = createFileRoute('/_dashboard/nodes')({
- component: () => Hello /_dashboard/nodes!
-})
\ No newline at end of file
+ component: () =>
+})
diff --git a/dashboard/src/routes/_dashboard/settings.tsx b/dashboard/src/routes/_dashboard/settings.tsx
new file mode 100644
index 0000000..40743cd
--- /dev/null
+++ b/dashboard/src/routes/_dashboard/settings.tsx
@@ -0,0 +1,25 @@
+
+import { Card, CardContent, CardHeader, CardTitle } from '@marzneshin/components'
+import { CertificateButton } from '@marzneshin/features/settings'
+import { createFileRoute } from '@tanstack/react-router'
+import { useTranslation } from 'react-i18next'
+
+export const Settings = () => {
+ const { t } = useTranslation()
+ return (
+
+
+
+
+ {t('settings')}
+
+
+
+
+
+ )
+}
+
+export const Route = createFileRoute('/_dashboard/settings')({
+ component: () =>
+})
diff --git a/dashboard/src/utils/index.ts b/dashboard/src/utils/index.ts
index 3adb899..d3ce67c 100644
--- a/dashboard/src/utils/index.ts
+++ b/dashboard/src/utils/index.ts
@@ -1,2 +1,4 @@
export * from './cn'
export * from './fetch'
+export * from './cn'
+export * from './query-client'
diff --git a/dashboard/src/utils/query-client.ts b/dashboard/src/utils/query-client.ts
new file mode 100644
index 0000000..6d46de5
--- /dev/null
+++ b/dashboard/src/utils/query-client.ts
@@ -0,0 +1,3 @@
+import { QueryClient } from '@tanstack/react-query';
+
+export const queryClient = new QueryClient();