blob: 982ff905fb38a7e4489b185525bff8fc018394d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<template>
<div id="editor">
<ActionBar />
<EditorLists :peerTeachers="peerTeachers" :labs="labs" />
</div>
</template>
<script lang="ts">
import ActionBar from '@/components/ActionBar.vue';
import { defineComponent } from 'vue';
import EditorLists from '@/components/EditorLists.vue';
import Lab from '@/models/Lab';
import PeerTeacher from '@/models/PeerTeacher';
export default defineComponent({
name: 'Editor',
components: {
ActionBar,
EditorLists,
},
computed: {
labs(): Lab[] {
return Array.from(this.$store.state.labs.values()).sort((a, b) => a.id
.localeCompare(b.id));
},
peerTeachers(): PeerTeacher[] {
return Array.from(this.$store.state.peerTeachers.values()).sort((a, b) => a.lastname
.toUpperCase().localeCompare(b.lastname.toUpperCase()));
},
},
});
</script>
<style>
#editor {
display: flex;
flex-direction: column;
max-height: inherit;
}
</style>
|