//import Login from '@/view/login' //import ServerSideLogin from '@/view/serverside/login' // import HTTP404 from '@/view/404' import Index from '@/view/resource/index' import Indexarea from '@/view/resource/indexarea.vue' import Indexschool from '@/view/resource/indexschool.vue' import Synch from '@/view/resource/resourceindex/synchronization.vue' import Library from '@/view/resource/resourceindex/library.vue' import Details from '@/view/resource/resourceindex/details.vue' import Videodetails from '@/view/resource/resourceindex/videodetails.vue' import Activity from '@/view/resource/activity' import ActivityGuide from '@/view/resource/activity_guide.vue' import ActivityShow from '@/view/resource/activity_show.vue' import ActivityRank from '@/view/resource/activity_rank.vue' import ActivityCertificate from '@/view/resource/activity_certificate.vue' import ActivityDetails from '@/view/resource/activity_details.vue' import Login from '@/view/resource/login.vue' import HomePage from '@/view/resource/HomePage' import Teacher from '@/view/resource/Teacher' import TeacherZone from '@/view/resource/TeacherZone' //import { resolve } from 'url'; import ZonesHome from '../components/resource/ZonesHome.vue' import TeacherWork from '../components/resource/TeacherWork.vue' import TeachDetails from '../components/resource/TeachDetails.vue' import TeachVideos from '../components/resource/TeacherVideos.vue' import TeachSource from '../components/resource/TeachSource.vue' import TeachResearch from '../components/resource/TeachResearch.vue' import TeachTopic from '../components/resource/TeachTopic.vue' import TeachActivies from '../components/resource/TeachActivies.vue' import TeachClass from '../components/resource/TeachClass.vue' import TeachTopclass from '../components/resource/TeachTopclass.vue' import text from '../components/resource/text.vue' export const routes = [ { name: 'index', path: '/', redirect: "/HomePage", component: Index }, { name: 'resource', path: '/resource', component: Index }, { name: 'indexarea', path: '/arearesource', component: Indexarea }, { name: 'Indexschool', path: '/schoolresource', component: Indexschool }, { name: 'synch', path: '/synch', component: Synch }, { name: 'library', path: '/library', component: Library }, { name: 'details', path: '/details', component: Details }, { name: 'videodetails', path: '/videodetails', component: Videodetails }, { name: 'activity', path: '/activity', component: Activity }, { name: 'ActivityGuide', path: '/activityguide', component: ActivityGuide }, { name: 'ActivityShow', path: '/activityshow', component: ActivityShow }, { name: 'ActivityRank', path: '/activityrank', component: ActivityRank }, { name: 'ActivityCertificate', path: '/activitycertificate', component: ActivityCertificate }, { name: 'ActivityDetails', path: '/activitydetails', component: ActivityDetails }, { name: 'Login', path: '/login', component: Login }, { name: 'HomePage', path: '/HomePage',component: HomePage,}, { name: 'Teacher', path: '/Teacher', component: Teacher }, { name: 'text', path: '/text', component: text }, { name: 'TeacherZone', path: '/TeacherZone', component: TeacherZone, redirect: "/TeacherZone/ZonesHome", children: [ { name: 'ZonesHome', path: 'ZonesHome', component: ZonesHome }, { name: 'TeacherWork', path: 'TeacherWork', component: TeacherWork }, { name: 'TeachDetails', path: 'TeachDetails', component: TeachDetails }, { name: 'TeachSource', path: 'TeachSource', component: TeachSource }, { name: 'TeachResearch', path: 'TeachResearch', component: TeachResearch }, { name: 'TeachTopic', path: 'TeachTopic', component: TeachTopic }, { name: 'TeachActivies', path: 'TeachActivies', component: TeachActivies }, { name: 'TeachClass', path: 'TeachClass', component: TeachClass }, { name: 'TeachTopclass', path: 'TeachTopclass', component: TeachTopclass }, { name: 'TeachVideos', path: 'TeachVideos', component: TeachVideos } ] }, ]