import { createRouter, createWebHistory } from "vue-router";
import Mark from "@/features/mark/Mark.vue";

const routes = [
  { path: "/", component: Mark },
  { path: "/mark", component: Mark, name: "Mark" },
  {
    // 整卷批量复核
    path: "/admin/exam/inspected/start",
    component: () =>
      import("@/features/student/studentInspect/StudentInspect.vue"),
  },
  {
    // 批量导入复核
    path: "/admin/exam/inspected/import/start",
    component: () =>
      import("@/features/student/importInspect/ImportInspect.vue"),
  },
  {
    //成绩校验
    path: "/admin/exam/score/verify/start",
    component: () => import("@/features/student/scoreVerify/ScoreVerify.vue"),
  },
  {
    // 任务批量复核
    path: "/admin/exam/library/inspected/start",
    component: () => import("@/features/library/inspect/LibraryInspect.vue"),
  },
  {
    // 仲裁
    path: "/admin/exam/arbitrate/start",
    component: () => import("@/features/arbitrate/Arbitrate.vue"),
  },
  {
    // 成绩查询-试卷轨迹
    path: "/admin/exam/track/student",
    name: "StudentTrack",
    component: () => import("@/features/student/studentTrack/StudentTrack.vue"),
  },
  {
    // 质量分析
    path: "/admin/exam/quality",
    component: () => import("@/features/library/quality/Quality.vue"),
  },
  {
    // 评卷管理-任务管理-轨迹图
    path: "/admin/exam/track/library",
    component: () => import("@/features/library/libraryTrack/LibraryTrack.vue"),
  },
  {
    // 试评任务轨迹
    path: "/admin/exam/track/trialLibrary",
    name: "TrialRoute",
    component: () => import("@/features/library/libraryTrack/LibraryTrack.vue"),
  },
  {
    // 数据检查
    path: "/admin/exam/check/answer/start",
    name: "ConfirmData",
    component: () => import("@/features/admin/confirmPaper/ConfirmPaper.vue"),
  },
  {
    // 人工确认
    path: "/admin/exam/check/student/start",
    name: "ConfirmPaper",
    component: () => import("@/features/admin/confirmPaper/ConfirmPaper.vue"),
  },
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    component: () => import("@/components/PageError404.vue"),
  },
];

// 3. Create the router instance and pass the `routes` option
// You can pass in additional options here, but let's
// keep it simple for now.
const router = createRouter({
  // 4. Provide the history implementation to use. We are using the hash history for simplicity here.
  history: createWebHistory("web"),
  routes, // short for `routes: routes`
});

export default router;
