import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'

const OPS: AppRouteRecordRaw = {
  path: '/ops',
  name: 'ops',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.ops',
    requiresAuth: true,
    icon: 'icon-settings',
    order: 3,
  },
  children: [
    {
      path: 'resource-context',
      alias: ['/resource-context'],
      name: 'OpsResourceContext',
      component: () => import('@/views/ops/pages/resource-context/index.vue'),
      meta: {
        locale: 'menu.ops.resourceContext',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'alert/raw-events',
      alias: ['/alert/raw-events'],
      name: 'OpsAlertRawEvents',
      component: () => import('@/views/ops/pages/alert/raw-events/index.vue'),
      meta: {
        locale: 'menu.ops.alert.rawEvents',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'alert/incidents',
      alias: ['/alert/incidents'],
      name: 'OpsAlertIncidents',
      component: () => import('@/views/ops/pages/alert/incidents/index.vue'),
      meta: {
        locale: 'menu.ops.alert.incidents',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'alert/suppression',
      alias: ['/alert/suppression'],
      name: 'OpsAlertSuppression',
      component: () => import('@/views/ops/pages/alert/suppress/index.vue'),
      meta: {
        locale: 'menu.ops.alert.suppression',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'business-system',
      alias: ['/business-system'],
      name: 'OpsBusinessSystem',
      component: () => import('@/views/ops/pages/business-system/index.vue'),
      meta: {
        locale: 'menu.ops.businessSystem',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'business-system/detail',
      alias: ['/business-system/detail'],
      name: 'OpsBusinessSystemDetail',
      component: () => import('@/views/ops/pages/business-system/detail.vue'),
      meta: {
        locale: 'menu.ops.businessSystem.detail',
        requiresAuth: true,
        roles: ['*'],
        hideInMenu: true,
      },
    },
    {
      path: 'business-topology',
      alias: ['/business-topology'],
      name: 'OpsBusinessTopology',
      component: () => import('@/views/ops/pages/business-topology/index.vue'),
      meta: {
        locale: 'menu.ops.businessTopology',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'big-screen',
      name: 'OpsBigScreen',
      component: () => import('@/views/ops/pages/big-screen/index.vue'),
      meta: {
        locale: 'menu.ops.bigScreen',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'governance',
      alias: ['/governance'],
      name: 'OpsGovernance',
      component: () => import('@/views/ops/pages/governance/index.vue'),
      meta: {
        locale: 'menu.ops.governance',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'automation',
      alias: ['/automation'],
      name: 'OpsAutomation',
      component: () => import('@/views/ops/pages/automation/index.vue'),
      meta: {
        locale: 'menu.ops.automation',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    // {
    //   path: 'menu-management',
    //   name: 'MenuManagement',
    //   component: () => import('@/views/ops/pages/system-settings/menu-management/index.vue'),
    //   meta: {
    //     locale: 'menu.ops.systemSettings.menuManagement',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'system-logs',
    //   name: 'SystemLogs',
    //   component: () => import('@/views/ops/pages/system-settings/system-logs/index.vue'),
    //   meta: {
    //     locale: 'menu.ops.systemSettings.systemLogs',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'license-center',
    //   name: 'OpsLicenseCenter',
    //   component: () => import('@/views/ops/pages/system-settings/license-center/index.vue'),
    //   meta: {
    //     locale: 'menu.ops.systemSettings.licenseCenter',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'web-test',
    //   name: 'WebTest',
    //   component: () => import('@/views/ops/pages/help/index.vue'),
    //   meta: {
    //     locale: 'menu.ops.webTest',
    //     requiresAuth: true,
    //     roles: ['*'],
    //     is_web_page: true,
    //     web_url: 'https://www.baidu.com'
    //   },
    // },
    // {
    //   path: 'netarch/topo-group',
    //   name: 'TopologyGroup',
    //   component: () => import('@/views/ops/pages/netarch/topo-group/index.vue'),
    //   meta: {
    //     locale: 'menu.ops.netarch.topoGroup',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'netarch/topo',
    //   name: 'Topology',
    //   component: () => import('@/views/ops/pages/netarch/topo/index.vue'),
    //   meta: {
    //     locale: 'menu.ops.netarch.topo',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'feedback/all',
    //   name: 'FeedbackAll',
    //   component: () => import('@/views/ops/pages/feedback/all/index.vue'),
    //   meta: {
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'report/history',
    //   name: 'ReportHistory',
    //   component: () => import('@/views/ops/pages/report/history/index.vue'),
    //   meta: {
    //     locale: 'menu.ops.report.history',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'assets/device',
    //   name: 'AssetsDevice',
    //   component: () => import('@/views/ops/pages/assets/device/list/index.vue'),
    //   meta: {
    //     locale: '设备管理',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'assets/device/form',
    //   name: 'AssetsDeviceForm',
    //   component: () => import('@/views/ops/pages/assets/device/form/index.vue'),
    //   meta: {
    //     locale: '新增/编辑设备',
    //     requiresAuth: true,
    //     roles: ['*'],
    //     hideInMenu: true,
    //   },
    // },
    // {
    //   path: 'assets/supplier',
    //   name: 'AssetsSupplier',
    //   component: () => import('@/views/ops/pages/assets/supplier/list/index.vue'),
    //   meta: {
    //     locale: '供应商管理',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'assets/supplier/form',
    //   name: 'AssetsSupplierForm',
    //   component: () => import('@/views/ops/pages/assets/supplier/form/index.vue'),
    //   meta: {
    //     locale: '新增/编辑供应商',
    //     requiresAuth: true,
    //     roles: ['*'],
    //     hideInMenu: true,
    //   },
    // },
    // {
    //   path: 'assets/classify',
    //   name: 'AssetsClassify',
    //   component: () => import('@/views/ops/pages/assets/classify/index.vue'),
    //   meta: {
    //     locale: '资产分类',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'kb/items',
    //   name: 'KbItems',
    //   component: () => import('@/views/ops/pages/kb/items/index.vue'),
    //   meta: {
    //     locale: '知识库文档',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'favorite',
    //   name: 'Favorite',
    //   component: () => import('@/views/ops/pages/favorite/index.vue'),
    //   meta: {
    //     locale: '收藏管理',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
  ],
}

export default OPS
