-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a33f04
commit 09ae614
Showing
48 changed files
with
33,793 additions
and
24,586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<template> | ||
<div> | ||
<div class="text-lg font-semibold mb-4"> | ||
{{ __('Assessments') }} | ||
</div> | ||
<div v-if="assessments?.length"> | ||
<ListView | ||
:columns="getAssessmentColumns()" | ||
:rows="attempts?.data" | ||
row-key="name" | ||
:options="{ selectable: false, showTooltip: false }" | ||
> | ||
</ListView> | ||
</div> | ||
<div v-else class="text-sm italic text-gray-600"> | ||
{{ __('No Assessments') }} | ||
</div> | ||
</div> | ||
</template> | ||
<script setup> | ||
import { ListView } from 'frappe-ui' | ||
const props = defineProps({ | ||
assessments: { | ||
type: Array, | ||
default: [], | ||
}, | ||
}) | ||
const getSubmissionColumns = () => { | ||
return [ | ||
{ | ||
label: 'Assessment', | ||
key: 'title', | ||
}, | ||
{ | ||
label: 'Type', | ||
key: 'type', | ||
}, | ||
{ | ||
label: 'Status/Score', | ||
key: 'status', | ||
align: 'center', | ||
}, | ||
] | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<template> | ||
<div> | ||
<UpcomingEvaluations :upcoming_evals="batch.data.upcoming_evals" /> | ||
<Assessments :assessments="batch.data.assessments" /> | ||
</div> | ||
</template> | ||
<script setup> | ||
import UpcomingEvaluations from './UpcomingEvaluations.vue' | ||
import Assessments from './Assessments.vue' | ||
const props = defineProps({ | ||
batch: { | ||
type: Object, | ||
default: null, | ||
}, | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<template> | ||
<div class="mb-10"> | ||
<div class="text-lg font-semibold mb-4"> | ||
{{ __('Upcoming Evaluations') }} | ||
</div> | ||
<div v-if="upcoming_evals.length"> | ||
<div class="grid grid-cols-2"> | ||
<div v-for="evl in upcoming_evals"> | ||
<div class="border rounded-md p-3"> | ||
<div class="font-medium mb-3"> | ||
{{ evl.course_title }} | ||
</div> | ||
<div class="flex items-center mb-2"> | ||
<Calendar class="w-4 h-4 stroke-1.5" /> | ||
<span class="ml-2"> | ||
{{ dayjs(evl.date).format('DD MMMM YYYY') }} | ||
</span> | ||
</div> | ||
<div class="flex items-center mb-2"> | ||
<Clock class="w-4 h-4 stroke-1.5" /> | ||
<span class="ml-2"> | ||
{{ formatTime(evl.start_time) }} | ||
</span> | ||
</div> | ||
<div class="flex items-center"> | ||
<UserCog2 class="w-4 h-4 stroke-1.5" /> | ||
<span class="ml-2"> | ||
{{ evl.evaluator_name }} | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div v-else class="text-sm italic text-gray-600"> | ||
{{ __('No upcoming evaluations.') }} | ||
</div> | ||
</div> | ||
</template> | ||
<script setup> | ||
import { Calendar, Clock, UserCog2 } from 'lucide-vue-next' | ||
import { inject } from 'vue' | ||
import { formatTime } from '../utils' | ||
const dayjs = inject('$dayjs') | ||
const props = defineProps({ | ||
upcoming_evals: { | ||
type: Array, | ||
default: [], | ||
}, | ||
}) | ||
</script> |
Oops, something went wrong.