diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 45645af..44800f9 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -23,6 +23,7 @@ const tabs = [ { path: '/fetch', label: 'Create an Account' }, { path: { name: 'search' }, label: 'Course Search' }, { path: '/schedule', label: 'Schedule View' }, + { path: '/mycourses', label: 'Course View' }, { path: '/admin/createcourse', label: 'Create Course' }, { path: '/login', label: 'Login' }, ]; diff --git a/src/router/index.js b/src/router/index.js index edd2b8f..2eeb1d0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -8,6 +8,7 @@ import AdminCreateCourseView from "../views/AdminCreateCourseView.vue"; import LoginPage from "../views/LoginPage.vue"; import SignUp from "../views/SignUp.vue"; import ScheduleView from "../views/ScheduleView.vue"; +import StudentCourseView from "../views/StudentCourseView.vue"; const router = createRouter({ // the history mode determines how vue router interacts with the url. @@ -52,7 +53,12 @@ const router = createRouter({ path: "/schedule", name: "schedule", component: ScheduleView, - } + }, + { + path: "/mycourses", + name: "mycourses", + component: StudentCourseView, + }, ], }); diff --git a/src/views/StudentCourseView.vue b/src/views/StudentCourseView.vue new file mode 100644 index 0000000..c83aa8d --- /dev/null +++ b/src/views/StudentCourseView.vue @@ -0,0 +1,182 @@ + + + + +