Renamed Pages
This commit is contained in:
parent
8ff1028665
commit
0225642459
@ -1,7 +1,7 @@
|
||||
import Vue from 'vue/dist/vue.js';
|
||||
import VueRouter from 'vue-router/dist/vue-router.js'
|
||||
|
||||
import AcademyRoot from "./AcademyRoot.vue";
|
||||
import lmsRoot from "./lmsRoot.vue";
|
||||
import routes from './routes';
|
||||
import './call';
|
||||
|
||||
@ -103,8 +103,8 @@ frappe.ready(() => {
|
||||
lms.view = new Vue({
|
||||
el: "#lms-app",
|
||||
router: new VueRouter({ routes }),
|
||||
template: "<academy-root/>",
|
||||
components: { AcademyRoot },
|
||||
template: "<lms-root/>",
|
||||
components: { lmsRoot },
|
||||
created: function() {
|
||||
if(lms.store.checkLogin()){
|
||||
lms.store.updateState()
|
||||
|
@ -13,7 +13,7 @@ import ContentNavigation from "../components/ContentNavigation.vue"
|
||||
|
||||
export default {
|
||||
props:['program_name', 'course', 'type', 'content'],
|
||||
name: "AcademyCoursePage",
|
||||
name: "CoursePage",
|
||||
data() {
|
||||
return{
|
||||
nextContent: '',
|
@ -15,7 +15,7 @@ import AcademyProgramCard from "../components/AcademyProgramCard.vue"
|
||||
import AcademyTopSectionButton from "../components/AcademyTopSectionButton.vue"
|
||||
|
||||
export default {
|
||||
name: "AcademyHome",
|
||||
name: "Home",
|
||||
data() {
|
||||
return{
|
||||
portal: {},
|
@ -18,7 +18,7 @@ import AcademyCourseCard from "../components/AcademyCourseCard.vue"
|
||||
|
||||
export default {
|
||||
props: ['program_name'],
|
||||
name: "AcademyProgramPage",
|
||||
name: "ProgramPage",
|
||||
components: {
|
||||
AButton: Button,
|
||||
AcademyTopSection,
|
@ -1,11 +1,11 @@
|
||||
import AcademyHome from "./pages/AcademyHome.vue";
|
||||
import AcademyProgramPage from "./pages/AcademyProgramPage.vue";
|
||||
import AcademyCoursePage from "./pages/AcademyCoursePage.vue";
|
||||
import Home from "./pages/Home.vue";
|
||||
import ProgramPage from "./pages/ProgramPage.vue";
|
||||
import CoursePage from "./pages/CoursePage.vue";
|
||||
|
||||
const routes = [
|
||||
{name: 'home', path: '', component: AcademyHome},
|
||||
{name: 'program', path: '/Program/:program_name', component: AcademyProgramPage, props: true},
|
||||
{name: 'content', path: '/Program/:program_name/:course/:type/:content', component: AcademyCoursePage, props: true},
|
||||
{name: 'home', path: '', component: Home},
|
||||
{name: 'program', path: '/Program/:program_name', component: ProgramPage, props: true},
|
||||
{name: 'content', path: '/Program/:program_name/:course/:type/:content', component: CoursePage, props: true},
|
||||
];
|
||||
|
||||
export default routes;
|
Loading…
x
Reference in New Issue
Block a user