import { RouteConfig } from 'vue-router'

/**
 * 协同日程
 */

export const scheduleRoutes: Array<RouteConfig> = [
  {
    path: '/schedule',
    component: () => import('@/layout/home.vue'),
    redirect: '/schedule/schedule-home',
    children: [
      {
        path: 'schedule-home',
        name: 'ScheduleHome',
        component: () => import('@/views/schedule/schedule.vue'),
        meta: {
          title: '协同日程'
        }
      },
      {
        path: 'schedule-detail/:id',
        name: 'ScheduleDetail',
        component: () => import('@/views/schedule/schedule-detail.vue'),
        meta: {
          title: '日程详情'
        }
      },
      {
        path: 'comment',
        name: 'Comment',
        component: () => import('@/views/schedule/comment-list.vue'),
        meta: {
          title: '评论'
        }
      },
      {
        path: 'team',
        name: 'ScheduleTeam',
        component: () => import('@/views/schedule/team-frame.vue'),
        meta: {
          title: '所有成员'
        }
      },
      {
        path: 'team/:id',
        name: 'ScheduleTeamDetail',
        component: () => import('@/views/schedule/team-detail.vue'),
        meta: {
          title: '所有成员'
        }
      },
      {
        path: 'create-events',
        name: 'CreateEvents',
        component: () => import('@/views/schedule/create-events.vue'),
        meta: {
          title: '新建日程'
        }
      },
      {
        path: 'test',
        name: 'Test',
        component: () => import('@/views/schedule/test.vue'),
        meta: {
          title: 'Test'
        }
      },
      {
        path: 'file',
        name: 'File',
        component: () => import('@/views/schedule/file.vue'),
        meta: {
          title: '附件'
        }
      },
      {
        path: 'speech-recognition',
        name: 'SpeechRecognition',
        component: () => import('@/views/schedule/speech-recognition.vue'),
        meta: {
          title: '语音识别'
        }
      },
      {
        path: 'select-locale',
        name: 'SelectLocale',
        component: () => import('@/views/schedule/select-locale.vue'),
        meta: {
          title: '选择地点'
        }
      }
    ]
  }
]
