From 2a0e3134c73d028785a5c540ab6da821874aea2d Mon Sep 17 00:00:00 2001 From: Daniel Spittank Date: Sat, 20 Nov 2021 12:18:45 +0100 Subject: [PATCH] =?UTF-8?q?Pl=C3=A4ne:=20Pausenaufsichten=20implementiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PlanPausen.vue | 185 +++++++++++++++++++++++++++++ src/components/Vertretungsplan.vue | 8 +- src/plugins/vuetify.js | 12 ++ src/views/InfodisplayLehrer.vue | 115 ++++++++++-------- src/views/Plaene.vue | 80 +++++++++++++ 5 files changed, 346 insertions(+), 54 deletions(-) create mode 100644 src/components/PlanPausen.vue create mode 100644 src/views/Plaene.vue diff --git a/src/components/PlanPausen.vue b/src/components/PlanPausen.vue new file mode 100644 index 0000000..22d3ffb --- /dev/null +++ b/src/components/PlanPausen.vue @@ -0,0 +1,185 @@ + + + \ No newline at end of file diff --git a/src/components/Vertretungsplan.vue b/src/components/Vertretungsplan.vue index 8f841d3..90d705a 100644 --- a/src/components/Vertretungsplan.vue +++ b/src/components/Vertretungsplan.vue @@ -11,6 +11,7 @@ sort-by="stunde" group-by="lehrkraft_vertretung" flat + rounded hide-default-footer :expanded.sync="expanded" :single-expand="true" @@ -145,6 +146,7 @@ export default { vp: [], pa: [], zeitraster: new Zeitraster(), + // Felddefinitionen für die Datatable headers: [ { text: 'Datum', @@ -327,9 +329,3 @@ export default { } - \ No newline at end of file diff --git a/src/plugins/vuetify.js b/src/plugins/vuetify.js index 7307811..08a7d18 100644 --- a/src/plugins/vuetify.js +++ b/src/plugins/vuetify.js @@ -1,6 +1,7 @@ import '@mdi/font/css/materialdesignicons.css' // Ensure you are using css-loader import Vue from 'vue'; import Vuetify from 'vuetify/lib/framework'; +import colors from 'vuetify/lib/util/colors'; Vue.use(Vuetify); @@ -8,4 +9,15 @@ export default new Vuetify({ icons: { iconfont: 'mdi' }, + theme: { + dark: false, + themes: { + light: { + + primary: colors.indigo, + + 'primary--text': colors.white + } + } + } }); diff --git a/src/views/InfodisplayLehrer.vue b/src/views/InfodisplayLehrer.vue index 9c4737e..f6d8c68 100644 --- a/src/views/InfodisplayLehrer.vue +++ b/src/views/InfodisplayLehrer.vue @@ -1,9 +1,9 @@ @@ -81,22 +96,25 @@ import Newsreader from '@/components/Newsreader' import Vertretungsplan from '@/components/Vertretungsplan' import AboutDialog from '@/components/AboutDialog' +import Plaene from '@/views/Plaene' export default { name: 'InfodisplayLehrer', data: () => ({ - links: [ + seiten: [ 'Vertretungsplan', - 'Stundenpläne' + 'Pläne', ], + aktuelleSeite: 0, reloadTime: 600000 }), components: { Newsreader, Vertretungsplan, - AboutDialog + AboutDialog, + Plaene }, created() { @@ -108,6 +126,7 @@ export default { // Reload-Event einrichten this.$refs.nr.reload() this.$refs.vp.reload() + this.$refs.p.reload() setTimeout(this.onTimeout, this.reloadTime) } } diff --git a/src/views/Plaene.vue b/src/views/Plaene.vue new file mode 100644 index 0000000..45110e3 --- /dev/null +++ b/src/views/Plaene.vue @@ -0,0 +1,80 @@ + + +