import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';

const workshop: AppRouteModule = {
  path: '/workshop',
  name: 'Workshop',
  component: LAYOUT,
  redirect: '/workshop/visualization',
  meta: {
    orderNo: 20,
    icon: 'carbon:factory',
    title: '车间可视化',
    ignoreAuth: true, // 临时绕过权限验证，用于测试
  },
  children: [
    {
      path: 'simple',
      name: 'WorkshopSimpleTest',
      component: () => import('/@/views/workshop/SimpleTest.vue'),
      meta: {
        title: '简单测试',
        ignoreAuth: true,
      },
    },
    {
      path: 'visualization',
      name: 'WorkshopVisualization',
      component: () => import('/@/views/workshop/WorkshopVisualization.vue'),
      meta: {
        title: '车间监控',
        icon: 'carbon:chart-network',
        ignoreAuth: true, // 临时绕过权限验证，用于测试
      },
    },
    {
      path: 'test',
      name: 'WorkshopTest',
      component: () => import('/@/views/workshop/TestPage.vue'),
      meta: {
        title: '测试页面',
        icon: 'carbon:bug',
        hideMenu: true,
        ignoreAuth: true, // 临时绕过权限验证，用于测试
      },
    },
    {
      path: '3d',
      name: 'Workshop3D',
      component: () => import('/@/views/workshop/Workshop3D.vue'),
      meta: {
        title: '3D车间',
        icon: 'carbon:cube',
        ignoreAuth: true,
      },
    },
    {
      path: '3d-test',
      name: 'Workshop3DTest',
      component: () => import('/@/views/workshop/Workshop3DTest.vue'),
      meta: {
        title: '3D测试',
        icon: 'carbon:cube',
        ignoreAuth: true,
      },
    },
  ],
};

export default workshop;
