Minor - rename components

pull/3924/head
Julio Montoya 4 years ago
parent 82e81a2458
commit 6f8b9134e7
  1. 2
      assets/vue/components/course/CourseToolList.vue
  2. 2
      assets/vue/components/course/ShortCutList.vue
  3. 15
      assets/vue/views/course/Home.vue

@ -8,7 +8,7 @@
<v-icon <v-icon
:icon="tool.tool.icon" :icon="tool.tool.icon"
size="48px" size="48px"
class="font-extrabold text-transparent bg-clip-text bg-gradient-to-br from-blue-400 to-green-600" class="font-extrabold text-transparent bg-clip-text bg-gradient-to-br from-blue-400 to-blue-600"
/> />
<!-- <img--> <!-- <img-->
<!-- :alt="tool.tool.name"--> <!-- :alt="tool.tool.name"-->

@ -29,7 +29,7 @@
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
export default { export default {
name: 'HomeShortCutCard', name: 'ShortCutList',
props: { props: {
shortcut: Object, shortcut: Object,
goToShortCut: { goToShortCut: {

@ -91,14 +91,15 @@
<div <div
class="grid gap-5 grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 2xl:grid-cols-6" class="grid gap-5 grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 2xl:grid-cols-6"
> >
<HomeCourseCard <CourseToolList
v-for="tool in tools.authoring" v-for="tool in tools.authoring"
:course="course" :course="course"
:tool="tool" :tool="tool"
:go-to-course-tool="goToCourseTool" :go-to-course-tool="goToCourseTool"
:change-visibility="changeVisibility" :change-visibility="changeVisibility"
/> />
<HomeCourseCard
<CourseToolList
v-for="tool in tools.interaction" v-for="tool in tools.interaction"
:course="course" :course="course"
:tool="tool" :tool="tool"
@ -106,7 +107,7 @@
:change-visibility="changeVisibility" :change-visibility="changeVisibility"
/> />
<HomeShortCutCard <ShortCutList
v-for="shortcut in shortcuts" v-for="shortcut in shortcuts"
:shortcut="shortcut" :shortcut="shortcut"
:go-to-short-cut="goToShortCut" :go-to-short-cut="goToShortCut"
@ -119,8 +120,8 @@
<script> <script>
import Loading from '../../components/Loading.vue'; import Loading from '../../components/Loading.vue';
import Toolbar from '../../components/Toolbar.vue'; import Toolbar from '../../components/Toolbar.vue';
import HomeCourseCard from '../../components/course/HomeCourseCard.vue'; import CourseToolList from '../../components/course/CourseToolList.vue';
import HomeShortCutCard from '../../components/course/HomeShortCutCard.vue'; import ShortCutList from '../../components/course/ShortCutList.vue';
import {useRoute} from 'vue-router' import {useRoute} from 'vue-router'
import axios from "axios"; import axios from "axios";
@ -134,8 +135,8 @@ export default {
components: { components: {
Loading, Loading,
Toolbar, Toolbar,
HomeCourseCard, CourseToolList,
HomeShortCutCard ShortCutList
}, },
setup() { setup() {
const state = reactive({ const state = reactive({

Loading…
Cancel
Save