From 4688917db77b9db252cf8dfa0c0098fb409903f7 Mon Sep 17 00:00:00 2001
From: carey036 <45777074+carey036@users.noreply.github.com>
Date: Tue, 30 Apr 2024 17:33:57 +0800
Subject: [PATCH] feat: add chat page for berry
---
web/berry/src/menu-items/panel.js | 13 +++++++++--
web/berry/src/routes/MainRoutes.js | 5 ++++
web/berry/src/views/Chat/index.js | 37 ++++++++++++++++++++++++++++++
3 files changed, 53 insertions(+), 2 deletions(-)
create mode 100644 web/berry/src/views/Chat/index.js
diff --git a/web/berry/src/menu-items/panel.js b/web/berry/src/menu-items/panel.js
index 556b157f..e5c34df4 100644
--- a/web/berry/src/menu-items/panel.js
+++ b/web/berry/src/menu-items/panel.js
@@ -8,11 +8,12 @@ import {
IconKey,
IconGardenCart,
IconUser,
- IconUserScan
+ IconUserScan,
+ IconFileTextAi
} from '@tabler/icons-react';
// constant
-const icons = { IconDashboard, IconSitemap, IconArticle, IconCoin, IconAdjustments, IconKey, IconGardenCart, IconUser, IconUserScan };
+const icons = { IconDashboard, IconSitemap, IconArticle, IconCoin, IconAdjustments, IconKey, IconGardenCart, IconUser, IconUserScan,IconFileTextAi };
// ==============================|| DASHBOARD MENU ITEMS ||============================== //
@@ -29,6 +30,14 @@ const panel = {
breadcrumbs: false,
isAdmin: false
},
+ {
+ id: 'chat',
+ title: '聊天',
+ type: 'item',
+ url: '/panel/chat',
+ icon: icons.IconFileTextAi,
+ breadcrumbs: false
+ },
{
id: 'channel',
title: '渠道',
diff --git a/web/berry/src/routes/MainRoutes.js b/web/berry/src/routes/MainRoutes.js
index 74f7e4c2..e1cee839 100644
--- a/web/berry/src/routes/MainRoutes.js
+++ b/web/berry/src/routes/MainRoutes.js
@@ -9,6 +9,7 @@ const Log = Loadable(lazy(() => import('views/Log')));
const Redemption = Loadable(lazy(() => import('views/Redemption')));
const Setting = Loadable(lazy(() => import('views/Setting')));
const Token = Loadable(lazy(() => import('views/Token')));
+const Chat = Loadable(lazy(() => import('views/Chat')));
const Topup = Loadable(lazy(() => import('views/Topup')));
const User = Loadable(lazy(() => import('views/User')));
const Profile = Loadable(lazy(() => import('views/Profile')));
@@ -39,6 +40,10 @@ const MainRoutes = {
path: 'log',
element: