Files
vf_react/src/routes.js
2025-10-11 16:16:02 +08:00

604 lines
18 KiB
JavaScript
Executable File

/*!
=========================================================
* Argon Dashboard Chakra PRO - v1.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-dashboard-chakra-pro
* Copyright 2022 Creative Tim (https://www.creative-tim.com/)
* Designed and Coded by Simmmple & Creative Tim
=========================================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
// import
// To be changed
// import Tables from "views/Dashboard/Tables.js";
import {
CartIcon,
DocumentIcon,
HomeIcon,
PersonIcon,
StatsIcon,
} from "components/Icons/Icons";
import Calendar from "views/Applications/Calendar";
import DataTables from "views/Applications/DataTables";
import Kanban from "views/Applications/Kanban.js";
import Wizard from "views/Applications/Wizard.js";
import SignInBasic from "views/Authentication/SignIn/SignInBasic.js";
import SignInCover from "views/Authentication/SignIn/SignInCover.js";
import SignInIllustration from "views/Authentication/SignIn/SignInIllustration.js";
import LockBasic from "views/Authentication/Lock/LockBasic.js";
import LockCover from "views/Authentication/Lock/LockCover.js";
import LockIllustration from "views/Authentication/Lock/LockIllustration.js";
import ResetBasic from "views/Authentication/Reset/ResetBasic.js";
import ResetCover from "views/Authentication/Reset/ResetCover.js";
import ResetIllustration from "views/Authentication/Reset/ResetIllustration.js";
import VerificationBasic from "views/Authentication/Verification/VerificationBasic.js";
import VerificationCover from "views/Authentication/Verification/VerificationCover.js";
import VerificationIllustration from "views/Authentication/Verification/VerificationIllustration.js";
import SignUpBasic from "views/Authentication/SignUp/SignUpBasic.js";
import SignUpCover from "views/Authentication/SignUp/SignUpCover.js";
import SignUpIllustration from "views/Authentication/SignUp/SignUpIllustration.js";
import Automotive from "views/Dashboard/Automotive";
import CRM from "views/Dashboard/CRM.js";
import Default from "views/Dashboard/Default.js";
import Landing from "views/Dashboard/Landing.js";
import OrderDetails from "views/Ecommerce/Orders/OrderDetails";
import OrderList from "views/Ecommerce/Orders/OrderList";
import EditProduct from "views/Ecommerce/Products/EditProduct";
import NewProduct from "views/Ecommerce/Products/NewProduct";
import ProductPage from "views/Ecommerce/Products/ProductPage";
import Billing from "views/Pages/Account/Billing.js";
import Subscription from "views/Pages/Account/Subscription.js";
import Invoice from "views/Pages/Account/Invoice.js";
import Settings from "views/Pages/Account/Settings.js";
import Alerts from "views/Pages/Alerts";
import Charts from "views/Pages/Charts.js";
import Pricing from "views/Pages/Pricing.js";
import Overview from "views/Pages/Profile/Overview.js";
import Projects from "views/Pages/Profile/Projects.js";
import Teams from "views/Pages/Profile/Teams.js";
import General from "views/Pages/Projects/General.js";
import Timeline from "views/Pages/Projects/Timeline.js";
import RTLPage from "views/Pages/RTLPage.js";
import NewUser from "views/Pages/Users/NewUser.js";
import Reports from "views/Pages/Users/Reports.js";
import Widgets from "views/Pages/Widgets.js";
import SmartHome from "views/Dashboard/SmartHome";
// 在现有导入语句后添加
import EventHeader from "views/EventDetail/components/EventHeader";
import HistoricalEvents from "views/EventDetail/components/HistoricalEvents";
import RelatedConcepts from "views/EventDetail/components/RelatedConcepts";
import RelatedStocks from "views/EventDetail/components/RelatedStocks";
import ConceptCenter from "views/Concept";
import ProfilePage from "views/Profile/ProfilePage";
import SettingsPage from "views/Settings/SettingsPage";
// 如果有主入口文件,也需要导入
// EventDetail 将通过顶级路由访问,不再在 Admin 下注册
// 导入涨停分析组件
import LimitAnalyse from "views/LimitAnalyse";
// 导入Community页面
import Community from "views/Community";
import ForecastReport from "views/Company/ForecastReport";
import FinancialPanorama from "views/Company/FinancialPanorama";
import CompanyIndex from "views/Company";
import MarketDataView from "views/Company/MarketDataView";
import StockOverview from "views/StockOverview";
import TradingSimulation from "views/TradingSimulation";
const dashRoutes = [
{
name: "Dashboard",
path: "/dashboard",
icon: <HomeIcon color="inherit" />,
authIcon: <HomeIcon color="inherit" />,
collapse: true,
items: [
{
name: "Landing Page",
path: "/dashboard/landing",
component: <Landing/>,
layout: "/landing",
},
{
name: "Default",
path: "/dashboard/default",
component: <Default/>,
layout: "/admin",
},
{
name: "Automotive",
path: "/dashboard/automotive",
component: <Automotive/>,
layout: "/admin",
},
{
name: "Smart Home",
path: "/dashboard/smart-home",
component: <SmartHome/>,
layout: "/admin",
},
{
name: "CRM",
path: "/dashboard/crm",
component: <CRM/>,
layout: "/admin",
},
],
},
{
name: "股票分析",
path: "/stock-analysis",
icon: <StatsIcon color="inherit" />,
authIcon: <StatsIcon color="inherit" />,
collapse: true,
items: [
{
name: "股票概览",
path: "/stock-analysis/overview",
component: <StockOverview/>,
layout: "/admin",
},
{
name: "个股信息",
path: "/stock-analysis/company",
component: <CompanyIndex/>,
layout: "/admin",
},
{
name: "股票行情",
path: "/stock-analysis/market-data",
component: <MarketDataView/>,
layout: "/admin",
},
{
name: "涨停分析",
path: "/stock-analysis/limit-analyse",
component: <LimitAnalyse/>,
layout: "/admin",
},
{
name: "盈利预测报表",
path: "/stock-analysis/forecast-report",
component: <ForecastReport/>,
layout: "/admin",
},
{
name: "盈利预测报表",
path: "/stock-analysis/Financial-report",
component: <FinancialPanorama/>,
layout: "/admin",
},
],
},
{
name: "概念中心",
path: "/concepts",
icon: <StatsIcon color="inherit" />, // 或者使用其他图标
authIcon: <StatsIcon color="inherit" />,
collapse: false,
component: <ConceptCenter/>,
layout: "/admin",
},
{
name: "事件社区",
path: "/community",
icon: <StatsIcon color="inherit" />,
authIcon: <StatsIcon color="inherit" />,
collapse: false,
component: <Community/>,
layout: "/admin",
},
{
name: "模拟盘交易",
path: "/trading-simulation",
icon: <CartIcon color="inherit" />,
authIcon: <CartIcon color="inherit" />,
collapse: false,
component: <TradingSimulation/>,
layout: "/home",
},
{
name: "个人资料",
path: "/profile",
icon: <PersonIcon color="inherit" />,
component: <ProfilePage/>,
layout: "/admin",
invisible: true, // 不在侧边栏显示
},
{
name: "账户设置",
path: "/settings",
icon: <StatsIcon color="inherit" />,
component: <SettingsPage/>,
layout: "/admin",
invisible: true, // 不在侧边栏显示
},
{
name: "PAGES",
category: "pages",
items: [
{
name: "Pages",
path: "/pages",
collapse: true,
icon: <DocumentIcon color="inherit" />,
items: [
{
name: "Profile",
path: "/profile",
collapse: true,
authIcon: <HomeIcon color="inherit" />,
items: [
{
name: "Profile Overview",
secondaryNavbar: true,
path: "/pages/profile/overview",
component: <Overview/>,
layout: "/admin",
},
{
name: "Teams",
secondaryNavbar: true,
path: "/pages/profile/teams",
component: <Teams/>,
layout: "/admin",
},
{
name: "All Projects",
secondaryNavbar: true,
path: "/pages/profile/profile-projects",
component: <Projects/>,
layout: "/admin",
},
],
},
{
name: "Users",
path: "/users",
collapse: true,
authIcon: <PersonIcon color="inherit" />,
items: [
{
name: "Reports",
path: "/pages/users/reports",
component: <Reports/>,
layout: "/admin",
},
{
name: "New User",
path: "/pages/users/new-user",
component: <NewUser/>,
layout: "/admin",
},
],
},
{
name: "Account",
path: "/account",
collapse: true,
authIcon: <PersonIcon color="inherit" />,
items: [
{
name: "Settings",
path: "/pages/account/settings",
component: <Settings/>,
layout: "/admin",
},
{
name: "Billing",
component: <Billing/>,
path: "/pages/account/billing",
layout: "/admin",
},
{
name: "Subscription",
component: <Subscription/>,
path: "/pages/account/subscription",
layout: "/home",
},
{
name: "Invoice",
component: <Invoice/>,
path: "/pages/account/invoice",
layout: "/admin",
},
],
},
{
name: "Projects",
path: "/projects",
collapse: true,
authIcon: <StatsIcon color="inherit" />,
items: [
{
name: "General",
path: "/pages/projects/general",
component: <General/>,
layout: "/admin",
},
{
name: "Timeline",
path: "/pages/projects/timeline",
component: <Timeline/>,
layout: "/admin",
},
],
},
{
name: "Pricing Page",
component: <Pricing/>,
path: "/pages/pricing-page",
layout: "/auth",
},
{
name: "RTL",
component: <RTLPage/>,
path: "/pages/rtl-support-page",
layout: "/rtl",
},
{
name: "Widgets",
component: <Widgets/>,
path: "/pages/widgets",
layout: "/admin",
},
{
name: "Charts",
component: <Charts/>,
path: "/pages/charts",
layout: "/admin",
},
{
name: "Alerts",
path: "/pages/alerts",
component: <Alerts/>,
layout: "/admin",
},
],
},
{
name: "Applications",
path: "/applications",
icon: <StatsIcon color="inherit" />,
collapse: true,
items: [
{
name: "Kanban",
component: <Kanban/>,
authIcon: <DocumentIcon color="inherit" />,
path: "/applications/kanban",
layout: "/admin",
},
{
name: "Wizard",
component: <Wizard/>,
authIcon: <CartIcon color="inherit" />,
path: "/applications/wizard",
layout: "/admin",
},
{
name: "Data Tables",
path: "/applications/data-tables",
authIcon: <PersonIcon color="inherit" />,
component: <DataTables/>,
layout: "/admin",
},
{
name: "Calendar",
component: <Calendar/>,
authIcon: <StatsIcon color="inherit" />,
path: "/applications/calendar",
layout: "/admin",
},
],
},
{
name: "Ecommerce",
path: "/ecommerce",
icon: <CartIcon color="inherit" />,
collapse: true,
items: [
{
name: "Products",
path: "/products",
collapse: true,
authIcon: <DocumentIcon color="inherit" />,
items: [
{
name: "New Product",
component: <NewProduct/>,
secondaryNavbar: true,
path: "/ecommerce/products/new-product",
layout: "/admin",
},
{
name: "Edit Product",
component: <EditProduct/>,
path: "/ecommerce/products/edit-product",
layout: "/admin",
},
{
name: "Product Page",
component: <ProductPage/>,
path: "/ecommerce/products/product-page",
layout: "/admin",
},
],
},
{
name: "Orders",
path: "/orders",
collapse: true,
authIcon: <StatsIcon color="inherit" />,
items: [
{
name: "Order List",
component: <OrderList/>,
path: "/ecommerce/orders/order-list",
layout: "/admin",
},
{
name: "Order Details",
component: <OrderDetails/>,
path: "/ecommerce/orders/order-details",
layout: "/admin",
},
],
},
],
},
{
name: "Authentication",
path: "/authentication",
icon: <PersonIcon color="inherit" />,
collapse: true,
items: [
{
name: "Sign In",
path: "/authentication/sign-in",
collapse: true,
authIcon: <DocumentIcon color="inherit" />,
items: [
{
name: "Basic",
component: <SignInBasic/>,
path: "/authentication/sign-in/basic",
layout: "/auth",
},
{
name: "Cover",
component: <SignInCover/>,
path: "/authentication/sign-in/cover",
layout: "/auth",
},
{
name: "Illustration",
component: <SignInIllustration/>,
secondaryNavbar: true,
path: "/authentication/sign-in/illustration",
layout: "/auth",
},
],
},
{
name: "Sign Up",
path: "/authentication/sign-up",
collapse: true,
authIcon: <DocumentIcon color="inherit" />,
items: [
{
name: "Basic",
component: <SignUpBasic/>,
path: "/authentication/sign-up/basic",
layout: "/auth",
},
{
name: "Cover",
component: <SignUpCover/>,
path: "/authentication/sign-up/cover",
layout: "/auth",
},
{
name: "Illustration",
secondaryNavbar: true,
component: <SignUpIllustration/>,
path: "/authentication/sign-up/illustration",
layout: "/auth",
},
],
},
{
name: "Reset password",
path: "/authentication/reset",
collapse: true,
authIcon: <DocumentIcon color="inherit" />,
items: [
{
name: "Basic",
component: <ResetBasic/>,
path: "/authentication/reset/basic",
layout: "/auth",
},
{
name: "Cover",
component: <ResetCover/>,
path: "/authentication/reset/cover",
layout: "/auth",
},
{
name: "Illustration",
secondaryNavbar: true,
component: <ResetIllustration/>,
path: "/authentication/reset/illustration",
layout: "/auth",
},
],
},
{
name: "Lock",
path: "/authentication/lock",
collapse: true,
authIcon: <DocumentIcon color="inherit" />,
items: [
{
name: "Basic",
component: <LockBasic/>,
path: "/authentication/lock/basic",
layout: "/auth",
},
{
name: "Cover",
component: <LockCover/>,
path: "/authentication/lock/cover",
layout: "/auth",
},
{
name: "Illustration",
secondaryNavbar: true,
component: <LockIllustration/>,
path: "/authentication/lock/illustration",
layout: "/auth",
},
],
},
{
name: "2-Step Verification",
path: "/authentication/verification",
collapse: true,
authIcon: <DocumentIcon color="inherit" />,
items: [
{
name: "Basic",
component: <VerificationBasic/>,
path: "/authentication/verification/basic",
layout: "/auth",
},
{
name: "Cover",
component: <VerificationCover/>,
path: "/authentication/verification/cover",
layout: "/auth",
},
{
name: "Illustration",
secondaryNavbar: true,
component: <VerificationIllustration/>,
path: "/authentication/verification/illustration",
layout: "/auth",
},
],
},
],
},
],
},
];
export default dashRoutes;