import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:git-branch',
      order: 6,
      title: '流程管理',
    },
    name: 'Workflow',
    path: '/workflow',
    children: [
      {
        name: 'WorkflowStart',
        path: '/workflow/start',
        component: () => import('#/views/workflow/start/index.vue'),
        meta: {
          icon: 'lucide:play-circle',
          title: '发起流程',
        },
      },
      {
        name: 'WorkflowDefinitions',
        path: '/workflow/definitions',
        component: () => import('#/views/workflow/definitions/index.vue'),
        meta: {
          icon: 'lucide:file-text',
          title: '流程定义',
        },
      },
      {
        name: 'WorkflowTasks',
        path: '/workflow/tasks',
        component: () => import('#/views/workflow/tasks/index.vue'),
        meta: {
          icon: 'lucide:clock',
          title: '我的任务',
        },
      },
      {
        name: 'WorkflowInstances',
        path: '/workflow/instances',
        component: () => import('#/views/workflow/instances/index.vue'),
        meta: {
          icon: 'lucide:layers',
          title: '流程实例',
        },
      },
      {
        name: 'WorkflowMonitor',
        path: '/workflow/monitor',
        component: () => import('#/views/workflow/monitor/index.vue'),
        meta: {
          icon: 'lucide:activity',
          title: '流程监控',
        },
      },
      {
        name: 'WorkflowDesigner',
        path: '/workflow/designer/:id',
        component: () => import('#/views/workflow/designer/index.vue'),
        meta: {
          title: '流程设计器',
          hideInMenu: true,
        },
      },
    ],
  },
];

export default routes;
