aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/PageLayout.php
diff options
context:
space:
mode:
authorMarcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de>2025-06-18 05:46:10 +0000
committerMarcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de>2025-06-18 05:46:10 +0000
commit3bdaee3534c1e3adf190f278a213cb685cffee46 (patch)
treef2b41a7fdee39cd8337d1c4533eab79bf9043bd6 /lib/classes/PageLayout.php
parent4c025819a3f3b023423da98f407c80188691bbdb (diff)
Kern-Vue auch in Plugins
Closes #5446 Merge request studip/studip!4247
Diffstat (limited to 'lib/classes/PageLayout.php')
-rw-r--r--lib/classes/PageLayout.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/classes/PageLayout.php b/lib/classes/PageLayout.php
index ed5e1ae..c4d0f6c 100644
--- a/lib/classes/PageLayout.php
+++ b/lib/classes/PageLayout.php
@@ -134,6 +134,13 @@ class PageLayout
'title' => _('Hilfe zur Textformatierung')
]);
+ self::addScript('vue.global.prod.js?v=' . $v);
+ self::addScript('vuex.global.prod.js?v=' . $v);
+
+ // This line fixes the vue-router v3, which is used in several Stud.IP plugins and incorrectly assumes to
+ // interact with Vue2, although Stud.IP v6 uses Vue3.
+ self::addHeadElement('script', [], 'window.Vue.use = () => {};');
+
self::addStylesheet('studip-base.css?v=' . $v, ['media' => 'screen']);
self::addScript('studip-base.js?v=' . $v);
self::addScript('studip-wysiwyg.js?v=' . $v);