<commit_before>import React from 'react'
import { Route }            from 'react-router-dom'
import styled               from 'styled-components'

import HomeTemplate         from '../views/common/pages/HomeTemplate'
import HomeIndex            from '../views/common/pages/HomeIndex'

// 测试组件
import AsyncTable           from '../views/test/AsyncTable'                             // 测试异步表格

// 引入 '客户管理' 版块
import RepairList           from '../views/Repair/pages/RepairList'                     // 客户报修
import ClientReview         from '../views/Repair/pages/ClientReview'                   // 客户回访
import UpkeepList           from '../views/Repair/pages/UpkeepList'                     // 维修费设置
import Rectification        from '../views/Repair/pages/Rectification'                  // 整改通知

import Test           from '../views/Repair/pages/test'
import Repair           from '../views/Repair/pages/Details/Repair'
import ReturnVisit           from '../views/Repair/pages/Details/ReturnVisit'
import ReturnVisitDetail           from '../views/Repair/pages/Details/ReturnVisitDetail'
import Maintenance           from '../views/Repair/pages/Details/Maintenance'
import CorrectionDetail           from '../views/Repair/pages/Details/CorrectionDetail'

// 引入 '仓库管理' 版块
import InventoryManage      from '../views/Warehouse/pages/InventoryManage'             // 库存管理( 合并: 汇总, 入库, 出库 )
import ReceiveStatistics    from '../views/Warehouse/pages/ReceiveStatistics'           // 领用统计
import MaterialManagement   from '../views/Warehouse/pages/MaterialManagement'          // 材料管理

const HomeBox = ({ routes }) => (
    <HomeTemplate>
        {
            routes.map((route, i) => (
                <RouteWithSubRoutes key={i} {...route} />
            ))
        }
    </HomeTemplate>
)

const routes = [
    {
        path: '/home',
        component: HomeBox,
        routes: [
            {
                path: '/home/index',                            // 默认首页
                component: HomeIndex
            }
        ]
    }, {
        path: '/test',
        component: HomeBox,
        routes: [
            {
                path: '/test/table',                            // 测试 - 异步表格
                component: AsyncTable
            }
        ]
    }, {
        path: '/upkeep',
        component: HomeBox,
        routes: [
            {
                path: '/upkeep/repairList',                     // 客户管理 - 客户报修
                component: RepairList
            }, {
                path: '/upkeep/clientReview',                   // 客户管理 - 客户回访
                component: ClientReview
            }, {
                path: '/upkeep/upkeepList',                     // 客户管理 - 维修费设置
                component: UpkeepList
            }, {
                path: '/upkeep/rectification',                  // 客户管理 - 整改通知
                component: Rectification
            }, {
                path: '/upkeep/test',
                component: Test
            }, {
                path: '/upkeep/repair',
                component: Repair
            }, {
                path: '/upkeep/returnVisit',
                component: ReturnVisit
            }, {
                path: '/upkeep/returnVisitDetail',
                component: ReturnVisitDetail
            }, {
                path: '/upkeep/maintenance',
                component: Maintenance
            }, {
                path: '/upkeep/correctionDetail',
                component: CorrectionDetail
            }
        ]
    }, {
        path: '/warehouse',
        component: HomeBox,
        routes: [
            {
                path: '/warehouse/inventoryManage',             // 仓库管理 - 库存管理
                component: InventoryManage
            }, {
                path: '/warehouse/receiveStatistics',           // 仓库管理 - 领用统计
                component: ReceiveStatistics
            }, {<commit_msg>:bug: 恢复被冲掉的 HomeRouter.js 文件<commit_after>import React from 'react'
import { Route }            from 'react-router-dom'
import styled               from 'styled-components'

import HomeTemplate         from '../views/common/pages/HomeTemplate'
import HomeIndex            from '../views/common/pages/HomeIndex'

// 测试组件
import AsyncTable           from '../views/test/AsyncTable'                             // 测试异步表格

// 引入 '客户管理' 版块
import RepairList           from '../views/Repair/pages/RepairList'                     // 客户报修
import ClientReview         from '../views/Repair/pages/ClientReview'                   // 客户回访
import UpkeepList           from '../views/Repair/pages/UpkeepList'                     // 维修费设置
import Rectification        from '../views/Repair/pages/Rectification'                  // 整改通知
import ClientReviewDetails  from '../views/Repair/pages/Details/ClientReviewDetails'    // [详情]'客户回访'

// 引入 '仓库管理' 版块
import InventoryManage      from '../views/Warehouse/pages/InventoryManage'             // 库存管理( 合并: 汇总, 入库, 出库 )
import ReceiveStatistics    from '../views/Warehouse/pages/ReceiveStatistics'           // 领用统计
import MaterialManagement   from '../views/Warehouse/pages/MaterialManagement'          // 材料管理

const HomeBox = ({ routes }) => (
    <HomeTemplate>
        {
            routes.map((route, i) => (
                <RouteWithSubRoutes key={i} {...route} />
            ))
        }
    </HomeTemplate>
)

const routes = [
    {
        path: '/home',
        component: HomeBox,
        routes: [
            {
                path: '/home/index',                            // 默认首页
                component: HomeIndex
            }
        ]
    }, {
        path: '/test',
        component: HomeBox,
        routes: [
            {
                path: '/test/table',                            // 测试 - 异步表格
                component: AsyncTable
            }
        ]
    }, {
        path: '/upkeep',
        component: HomeBox,
        routes: [
            {
                path: '/upkeep/repairList',                     // 客户管理 - 客户报修
                component: RepairList
            }, {
                path: '/upkeep/clientReview',                   // 客户管理 - 客户回访
                component: ClientReview
            }, {
                path: '/upkeep/upkeepList',                     // 客户管理 - 维修费设置
                component: UpkeepList
            }, {
                path: '/upkeep/rectification',                  // 客户管理 - 整改通知
                component: Rectification
            }, {
                path: '/upkeep/clientReviewDetails/:id',        // [详情] - '客户回访'
                component: ClientReviewDetails
            }
        ]
    }, {
        path: '/warehouse',
        component: HomeBox,
        routes: [
            {
                path: '/warehouse/inventoryManage',             // 仓库管理 - 库存管理
                component: InventoryManage
            }, {
                path: '/warehouse/receiveStatistics',           // 仓库管理 - 领用统计
                component: ReceiveStatistics
            }, {
{'fraction_non_alphanumeric': 0.11120664946976211, 'fraction_numerical': 0.0, 'mean_word_length': 1.166718410431543, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5076463', 'n_tokens_mistral': 1974, 'n_tokens_neox': 2030, 'n_words': 362}