Files
shanghai-residences/src/router/modules/chenyun.tsx
T
zhongyidian 76c67b492e feat: 更新 ESLint 和 Prettier 配置,增强代码质量管理
- 在 .gitignore 中添加 public/audio/* 以忽略音频文件。
- 更新 bun.lock,添加 eslint-config-prettier 和 eslint-plugin-prettier 依赖,确保 ESLint 与 Prettier 的兼容性。
- 修改 eslint.config.ts,整合 Prettier 规则,优化代码风格一致性。
- 在 package.json 中添加 lint:fix 和 format 脚本,简化代码格式化和修复流程。
- 更新 tailwind.config.ts 和其他组件文件,统一代码风格,提升可读性。
2026-03-05 13:50:47 +08:00

116 lines
3.1 KiB
TypeScript

import { lazy } from 'react'
import { RouteObject } from 'react-router-dom'
import { ResidenceLayout } from '@/components/layout'
const HomePage = lazy(() => import('@/pages/chenyun/home'))
const ChenyunPlace1 = lazy(() => import('@/pages/chenyun/place/place1'))
const ChenyunPlace2 = lazy(() => import('@/pages/chenyun/place/place2'))
const ChenyunPlace3 = lazy(() => import('@/pages/chenyun/place/place3'))
const ChenyunPlace4 = lazy(() => import('@/pages/chenyun/place/place4'))
const ChenyunPlace5 = lazy(() => import('@/pages/chenyun/place/place5'))
const ChenyunPlace6 = lazy(() => import('@/pages/chenyun/place/place6'))
const ChenyunPlace7 = lazy(() => import('@/pages/chenyun/place/place7'))
const ChenyunPlace8 = lazy(() => import('@/pages/chenyun/place/place8'))
const ChenyunPlace9 = lazy(() => import('@/pages/chenyun/place/place9'))
const ChenyunReflection = lazy(() => import('@/pages/chenyun/reflection'))
const ChenyunInternalization = lazy(() => import('@/pages/chenyun/internalization'))
//陈云 router
// 路径格式:/:moduleName/chenyun/:page
export const ChenyunRoutes: RouteObject[] = [
{
path: '/:moduleName/chenyun',
element: <ResidenceLayout />,
children: [
{
index: true,
element: <HomePage />,
handle: {
videoSrc: 'video/chenyun/chenyun_lukou.mp4',
},
},
{
path: 'home',
element: <HomePage />,
handle: {
videoSrc: 'video/chenyun/chenyun_lukou.mp4',
},
},
{
path: 'place1',
element: <ChenyunPlace1 />,
handle: {
videoSrc: 'video/chenyun/chenyun_01.mp4',
},
},
{
path: 'place2',
element: <ChenyunPlace2 />,
handle: {
videoSrc: 'video/chenyun/chenyun_02.mp4',
},
},
{
path: 'place3',
element: <ChenyunPlace3 />,
handle: {
videoSrc: 'video/chenyun/chenyun_03.mp4',
},
},
{
path: 'place4',
element: <ChenyunPlace4 />,
handle: {
videoSrc: 'video/chenyun/chenyun_05.mp4',
},
},
{
path: 'place5',
element: <ChenyunPlace5 />,
handle: {
videoSrc: 'video/chenyun/chenyun_06.mp4',
},
},
{
path: 'place6',
element: <ChenyunPlace6 />,
handle: {
videoSrc: 'video/chenyun/chenyun_08.mp4',
},
},
{
path: 'place7',
element: <ChenyunPlace7 />,
handle: {
videoSrc: 'video/chenyun/chenyun_09.mp4',
},
},
{
path: 'place8',
element: <ChenyunPlace8 />,
handle: {
videoSrc: 'video/chenyun/chenyun_12.mp4',
},
},
{
path: 'place9',
element: <ChenyunPlace9 />,
handle: {
videoSrc: 'video/chenyun/chenyun_13.mp4',
},
},
{
path: 'reflection',
element: <ChenyunReflection />,
},
{
path: 'internalization',
element: <ChenyunInternalization />,
// handle: {
// videoSrc: "video/chenyun/chenyun_neihua.mp4",
// },
},
],
},
]