dependabot/npm_and_yarn/micromatch-4.0.8
parent
be0838c440
commit
61d65b48cf
@ -1,34 +1,39 @@ |
||||
<template> |
||||
<div class="bg-gray-100 rounded-xl p-2 shadow-md"> |
||||
<div class="flex flex-col flex-center"> |
||||
<div class="mx-auto"> |
||||
<a :href="goToShortCut(shortcut)"> |
||||
<div class="course-tool"> |
||||
<BaseAppLink |
||||
:url="url" |
||||
class="course-tool__link" |
||||
> |
||||
<img |
||||
:alt="shortcut.title" |
||||
:src="`/img/tools/${shortcut.type}.png`" |
||||
class="w-32 h-32 object-contain" |
||||
class="course-tool__icon" |
||||
/> |
||||
</a> |
||||
</div> |
||||
|
||||
<div class="flex flex-row gap-2 text-gray-500 pt-3"> |
||||
<a> |
||||
</BaseAppLink> |
||||
<BaseAppLink |
||||
:url="url" |
||||
class="course-tool__title" |
||||
> |
||||
{{ shortcut.title }} |
||||
</a> |
||||
</div> |
||||
</div> |
||||
</BaseAppLink> |
||||
</div> |
||||
</template> |
||||
|
||||
<script setup> |
||||
defineProps({ |
||||
import { computed } from "vue" |
||||
import { storeToRefs } from "pinia" |
||||
import BaseAppLink from "../basecomponents/BaseAppLink.vue" |
||||
import { useCidReqStore } from "../../store/cidReq" |
||||
|
||||
const cidReqStore = useCidReqStore() |
||||
const { course, session } = storeToRefs(cidReqStore) |
||||
|
||||
const props = defineProps({ |
||||
shortcut: { |
||||
type: Object, |
||||
required: true, |
||||
}, |
||||
goToShortCut: { |
||||
type: Function, |
||||
required: true, |
||||
}, |
||||
}) |
||||
|
||||
const url = computed(() => `${props.shortcut.url}?cid=${course.value.id}&sid=${session.value?.id || 0}`) |
||||
</script> |
||||
|
After Width: | Height: | Size: 6.1 KiB |
Loading…
Reference in new issue