import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: 'guide'
    },
    {
      path: "/guide",
      name: "guide",
      component: () => import("./views/Guide.vue")
    },
    {
      path: "/start",
      name: "start",
      component: () => import("./views/Start.vue")
    },
    {
      path: "/changelog",
      name: "changelog",
      component: () => import("./views/ChangeLog.vue")
    },
    {
      path: "/copy",
      name: "copy",
      component: () => import("./views/TextCopy.vue")
    },
    {
      path: "/loading",
      name: "loading",
      component: () => import("./views/Loading.vue")
    },
    {
      path: "/project-list",
      name: "project-list",
      component: () => import("./views/ProjectList.vue")
    },
    {
      path: "/search",
      name: "search",
      component: () => import("./views/Search.vue")
    },
    {
      path: "/import-photos",
      name: "import-photos",
      component: () => import("./views/ImportPhotos.vue")
    },
    {
      path: "/task-tree",
      name: "task-tree",
      component: () => import("./views/TaskTree.vue")
    },
    {
      path: "/map-tool-bar",
      name: "map-tool-bar",
      component: () => import("./views/MapToolBar.vue")
    },
    {
      path: "/file-list",
      name: "file-list",
      component: () => import("./views/FileList.vue")
    },
    {
      path: "/task-status",
      name: "task-status",
      component: () => import("./views/TaskStatus.vue")
    },
    {
      path: "/draw-tool-bar",
      name: "draw-tool-bar",
      component: () => import("./views/DrawToolBar.vue")
    },
    {
      path: "/geosys-select",
      name: "geosys-select",
      component: () => import("./views/GeoSystemSelect.vue")
    }
  ]
});

export default router