From 61728f3044c59c5c6f0661081b8b678ce28e1554 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Thu, 21 Nov 2024 15:43:35 +0100 Subject: [PATCH] dashboard & widgets: template cleanup; property definiton cleanup; delete unwrapInjectedRef -> resolved since vue3.3; --- public/js/apps/Cis/RoomInformation.js | 1 - public/js/apps/Cis/Stundenplan.js | 1 - public/js/apps/Dashboard/Admin.js | 1 - public/js/apps/Dashboard/Fhc.js | 1 - public/js/components/Calendar/Minimized.js | 1 - public/js/components/Cis/Cms/ContentModal.js | 8 +++----- public/js/components/Cis/Menu/Entry.js | 2 +- public/js/components/Dashboard/Section.js | 2 +- public/js/components/DashboardWidget/Stundenplan.js | 8 ++++---- public/js/components/Drop/Grid.js | 2 +- public/js/plugin/Phrasen.js | 2 +- 11 files changed, 11 insertions(+), 18 deletions(-) diff --git a/public/js/apps/Cis/RoomInformation.js b/public/js/apps/Cis/RoomInformation.js index 8f9ad2583..51b63030d 100644 --- a/public/js/apps/Cis/RoomInformation.js +++ b/public/js/apps/Cis/RoomInformation.js @@ -15,6 +15,5 @@ const app = Vue.createApp({ setScrollbarWidth(); -app.config.unwrapInjectedRef = true; app.use(Phrasen); app.mount('#content'); \ No newline at end of file diff --git a/public/js/apps/Cis/Stundenplan.js b/public/js/apps/Cis/Stundenplan.js index 7405bf98d..441d83f35 100644 --- a/public/js/apps/Cis/Stundenplan.js +++ b/public/js/apps/Cis/Stundenplan.js @@ -143,6 +143,5 @@ const app = Vue.createApp({ ` }); -app.config.unwrapInjectedRef = true; app.use(Phrasen, {reload: true}); app.mount('#content'); \ No newline at end of file diff --git a/public/js/apps/Dashboard/Admin.js b/public/js/apps/Dashboard/Admin.js index 9d64998a8..0470f82a7 100644 --- a/public/js/apps/Dashboard/Admin.js +++ b/public/js/apps/Dashboard/Admin.js @@ -13,7 +13,6 @@ const app = Vue.createApp({ DashboardAdmin } }); -app.config.unwrapInjectedRef = true; app.use(FhcApi); app.use(Phrasen); app.mount('#main'); \ No newline at end of file diff --git a/public/js/apps/Dashboard/Fhc.js b/public/js/apps/Dashboard/Fhc.js index b060e1b59..d096d4cde 100644 --- a/public/js/apps/Dashboard/Fhc.js +++ b/public/js/apps/Dashboard/Fhc.js @@ -15,7 +15,6 @@ const app = Vue.createApp({ setScrollbarWidth(); -app.config.unwrapInjectedRef = true; app.use(FhcApi); app.use(Phrasen); app.mount('#content'); \ No newline at end of file diff --git a/public/js/components/Calendar/Minimized.js b/public/js/components/Calendar/Minimized.js index fc0f96785..ace5dce48 100644 --- a/public/js/components/Calendar/Minimized.js +++ b/public/js/components/Calendar/Minimized.js @@ -17,7 +17,6 @@ export default { }, methods: { maximize() { - // NOTE(chris): set "app.config.unwrapInjectedRef = true" for this to work this.minimized = false; } }, diff --git a/public/js/components/Cis/Cms/ContentModal.js b/public/js/components/Cis/Cms/ContentModal.js index 7a8d9beb8..b1b46530f 100644 --- a/public/js/components/Cis/Cms/ContentModal.js +++ b/public/js/components/Cis/Cms/ContentModal.js @@ -13,12 +13,10 @@ export default { }, props:{ contentID:{ - type: Number, - required: true, + type: Number }, ort_kurzbz:{ - type: String, - required: true, + type: String } }, data(){ @@ -51,7 +49,7 @@ export default { }, template:/*html*/` - +