/**
                   _ooOoo_
                  o8888888o
                  88" . "88
                  (| -_- |)
                  O\  =  /O
               ____/`---'\____
             .'  \\|     |//  `.
            /  \\|||  :  |||//  \
           /  _||||| -:- |||||-  \
           |   | \\\  -  /// |   |
           | \_|  ''\---/''  |   |
           \  .-\__  `-`  ___/-. /
         ___`. .'  /--.--\  `. . __
      ."" '<  `.___\_<|>_/___.'  >'"".
     | | :  `- \`.;`\ _ /`;.`/ - ` : | |
     \  \ `-.   \_ __\ /__ _/   .-` /  /
======`-.____`-.___\_____/___.-`____.-'======
                   `=---='

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           佛祖保佑       永无霸葛
           心外无法       法外无心
**/
import datachannel from './datachannel/index.js'
import workspace from './workspace/index.js'
import editorWorkspace from './editorWorkspace/index.js'
import platform from './platform/index.js'
import settings from './settings/index.js'
import plugins from './plugins/index.js'
import member from './member/index.js'
import stat from './stat/index.js'
import socialmedia from './socialmedia/index.js'
import formdesigner from './formdesigner/index.js'

// 路由设置
const routes = [
  {
    path: '/',
    redirect: '/main'
  },
  {
    path: '/main',
    name: 'main',
    meta: { title: '首页', icon: 'fa fa-desktop' },
    component: 'workspace/main'
  },
  workspace,
  editorWorkspace,
  {
    path: '/catalogIndex',
    name: 'catalogIndex',
    meta: { title: '栏目', icon: 'fa fa-file-text-o' },
    component: 'contentcore/catalogIndex'
  },
  {
    path: '/settings/catalog/:catalogId',
    component: 'contentcore/catalogInfo',
    props: true
  },
  {
    path: '/settings/catalog/add/:catalogId',
    component: 'contentcore/CatalogAddForm',
    props: true
  },
  {
    path: '/special/:catalogid/:id',
    name: 'specialForm',
    component: 'special/specialForm',
    props: true
  },
  // workspace,

  settings,
  plugins,
  member,
  socialmedia,
  stat,
  datachannel,
  platform,
  formdesigner,
  // {
  //   path: '/locking',
  //   name: 'locking',
  //   component: 'locking'
  // },
  {
    path: '/404',
    component: 'error/notFound404'
  }
  //  {
  //    path: '/*',
  //    component: 'error/notFound404'
  //  }
]
window.routes = routes

export default routes
