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

const DASHBOARD: AppRouteRecordRaw = {
  path: '/manage',
  name: 'manage',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.manage',
    requiresAuth: true,
    icon: 'icon-user',
    order: 0,
  },
  children: [
    {
      path: 'record',
      name: 'Record',
      component: () => import('@/views/dashboard/record-list/index.vue'),
      meta: {
        locale: 'menu.manage.record',
        requiresAuth: true,
        roles: ['*'],
      },
    },

    {
      path: 'face',
      name: 'Face',
      component: () => import('@/views/dashboard/face-list/index.vue'),
      meta: {
        locale: 'menu.manage.face',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default DASHBOARD;
