import type { IMenuItem } from '@/types'
import {
  FolderOpened,
  ToiletPaper,
  VideoCamera,
  Suitcase,
  Collection,
  Files,
  Monitor,
  Edit,
  User,
  Filter,
  Coordinate,
  Notebook,
  Picture,
  UserFilled,
  Promotion,
  School,
  Guide,
  QuestionFilled,
  EditPen,
  DataAnalysis,
  ChatDotRound,
  Setting,
} from '@element-plus/icons-vue'
export const menus: IMenuItem[] = [
  {
    tag: 'v1-resource',
    name: '资源管理',
    path: '/resource',
    children: [
      {
        tag: 'v1-resource-video-list',
        icon: VideoCamera,
        name: '视频',
        path: '/resource/video',
      },
      {
        tag: 'v1-resource-courseware-list',
        icon: Suitcase,
        name: '课件',
        path: '/resource/courseware',
      },
      {
        tag: 'v1-resource-lesson-plan-list',
        icon: FolderOpened,
        name: '教案',
        path: '/resource/lessonplan',
      },
      {
        tag: 'v1-resource-other-information-list',
        icon: Files,
        name: '其他资料',
        path: '/resource/other',
      },
      {
        icon: Collection,
        name: '题库管理',
        path: import.meta.env.VITE_QA_CENTER_URL + '/question/list?project_tag=resourse_ci',
      },
      {
        icon: ToiletPaper,
        name: '试卷管理',
        path: import.meta.env.VITE_QA_CENTER_URL + '/paper/list?project_tag=resourse_ci',
      },
    ],
  },
  {
    tag: 'v1-course',
    name: '课程管理',
    path: '/course',
    children: [
      {
        tag: 'v1-course-list',
        icon: Monitor,
        name: '我的课程',
        path: '/course/my',
      },
      {
        tag: 'v1-course-create',
        icon: Edit,
        name: '新建课程',
        path: '/course/update-course',
      },
    ],
  },
  {
    tag: 'v1-learning',
    name: '基础信息',
    path: '/admin',
    children: [
      {
        tag: 'v1-backend-lecturer-list',
        icon: UserFilled,
        name: '讲师管理',
        path: '/admin/teacher',
      },
      {
        tag: 'v1-learning-teacher-list',
        icon: School,
        name: '教工用户管理',
        path: '/admin/staff',
      },
      {
        tag: 'v1-learning-student-list',
        icon: User,
        name: '学生管理',
        path: '/admin/student',
      },
      {
        tag: 'v1-backend-specialty-list',
        icon: Promotion,
        name: '专业管理',
        path: '/admin/pro',
      },
      {
        tag: 'v1-learning-class-list',
        icon: School,
        name: '班级管理',
        path: '/admin/class',
      },
      {
        tag: 'v1-learning-semester-list',
        icon: Guide,
        name: '学期管理',
        path: '/admin/semester',
      },

      {
        tag: 'v1-backend-category-list',
        icon: Filter,
        name: '类别管理',
        path: '/admin/category',
      },
      {
        icon: Coordinate,
        name: '资源审核管理',
        path: '/admin/audit',
      },
    ],
  },
  {
    tag: 'v1-backend',
    name: '系统管理',
    path: '/system',
    children: [
      {
        tag: 'v1-backend-data-dictionary-list',
        icon: Notebook,
        name: '数据字典',
        path: '/system/dictionary',
      },
      {
        tag: 'v1-backend-cover-list',
        icon: Picture,
        name: '封面管理',
        path: '/system/cover',
      },
      {
        tag: 'v1-backend-suggestion-list',
        icon: ChatDotRound,
        name: ' 投诉建议管理',
        path: '/system/suggestion',
      },
      ...(import.meta.env.MODE === 'school'
        ? [
            {
              icon: Setting,
              name: '大模型配置',
              path: '/system/llm',
            },
          ]
        : []),
    ],
  },
  {
    tag: 'v1-teaching',
    name: '教学管理',
    path: '/teach',
    children: [
      {
        tag: 'v1-teaching-discussion',
        icon: QuestionFilled,
        name: '帖子管理',
        path: '/teach/posts',
      },
      {
        tag: 'v1-teaching-paper-paper-list',
        icon: EditPen,
        name: '批改试卷',
        path: '/teach/exam',
      },
      {
        tag: 'v1-teaching-job-list',
        icon: Edit,
        name: '批改大作业',
        path: '/teach/work',
      },
      ...(import.meta.env.MODE === 'school'
        ? [
            {
              icon: DataAnalysis,
              name: '课程资源数据画像',
              // path:
              //   import.meta.env.VITE_BI_URL +
              //   '/bi/?proc=1&action=viewer&hback=true&isInPreview=true&db=!7d2b!!8346!!6559!!80b2!e-SaaS!2f!!8d44!!6e90!!6570!!636e!!753b!!50cf!.db&platform=PC&browserType=chrome',
              path: '/teach/chart/resource',
            },
            {
              icon: DataAnalysis,
              name: '在线学习数据画像',
              // path:
              //   import.meta.env.VITE_BI_URL +
              //   '/bi/?proc=1&action=viewer&hback=true&isInPreview=true&db=!7d2b!!8346!!6559!!80b2!e-SaaS!2f!!5b66!!4e60!!884c!!4e3a!!753b!!50cf!.db&platform=PC&browserType=chrome',
              path: '/teach/chart/learning',
            },
            {
              icon: DataAnalysis,
              name: '数据可视化',
              path: '/teach/chart/visualization',
            },
            {
              icon: DataAnalysis,
              name: '生源地分布',
              // path:
              //   import.meta.env.VITE_BI_URL +
              //   '/bi/?proc=1&action=viewer&hback=true&isInPreview=true&db=!7d2b!!8346!!6559!!80b2!e-SaaS!2f!!751f!!6e90!!5730!!5206!!5e03!.db&platform=PC&browserType=chrome',
              path: '/teach/chart/origin',
            },
          ]
        : []),
    ],
  },
]
