45 lines
1.3 KiB
Vue
Raw Normal View History

2018-11-26 16:53:51 +05:30
<template>
<div>
2018-11-26 19:16:54 +05:30
<ProfileInfo :enrolledPrograms="enrolledPrograms"></ProfileInfo>
2018-11-30 12:46:53 +05:30
<CardList :title="'Your Progress'" :description="''" :sectionType="'section-padding section-bg'">
2018-11-26 16:53:51 +05:30
<ProgressCard slot="card-list-slot" v-for="program in enrolledPrograms" :program="program" :key="program"/>
</CardList>
2018-11-30 12:46:53 +05:30
<CardList :title="'Quiz Attempts'" :description="''" :sectionType="'section-padding section'">
2018-12-09 19:57:12 +05:30
<ScoreCard slot="card-list-slot" v-for="program in enrolledPrograms" :program="program" :key="program"/>
2018-11-30 12:46:53 +05:30
</CardList>
2018-11-26 16:53:51 +05:30
</div>
</template>
<script>
import Button from '../components/Button.vue';
import TopSection from "../components/TopSection.vue"
import CardList from "../components/CardList.vue"
import ProgressCard from "../components/ProgressCard.vue"
2018-11-26 19:16:54 +05:30
import ProfileInfo from "../components/ProfileInfo.vue"
2018-11-30 12:46:53 +05:30
import ScoreCard from "../components/ScoreCard.vue"
2018-11-26 16:53:51 +05:30
export default {
name: "ProfilePage",
components: {
AButton: Button,
TopSection,
CardList,
2018-11-26 19:16:54 +05:30
ProfileInfo,
2018-11-30 12:46:53 +05:30
ProgressCard,
ScoreCard
2018-11-26 16:53:51 +05:30
},
data() {
return {
enrolledPrograms: {},
}
},
mounted() {
this.getEnrolledPrograms().then(data => this.enrolledPrograms = data);
},
methods: {
getEnrolledPrograms() {
return lms.call("get_program_enrollments")
}
}
};
2018-11-26 19:16:54 +05:30
</script>