From 03469add3e22acef5df5c6f5033a640e6be04075 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 25 May 2021 08:21:17 +0200 Subject: [PATCH] * SmallPART: concatenate and minify all Java/TypeScript files to speed up loading --- Gruntfile.js | 21 ++++++++++++++++++++- api/src/Framework/Bundle.php | 1 + 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index d9a8bfbf44..c5deadb665 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -125,7 +125,6 @@ module.exports = function (grunt) { "api/js/etemplate/et2_core_valueWidget.js", "api/js/etemplate/et2_core_inputWidget.js", "api/js/etemplate/et2_widget_color.js", - "api/js/etemplate/et2_widget_countdown.js", "api/js/jquery/blueimp/js/blueimp-gallery.min.js", "api/js/etemplate/expose.js", "api/js/etemplate/et2_widget_description.js", @@ -196,6 +195,7 @@ module.exports = function (grunt) { "api/js/etemplate/et2_extension_itempicker_actions.js", "api/js/etemplate/et2_widget_itempicker.js", "api/js/etemplate/et2_widget_script.js", + "api/js/etemplate/et2_widget_countdown.js", "api/js/etemplate/et2_core_legacyJSFunctions.js", "api/js/etemplate/etemplate2.js" ] @@ -279,6 +279,25 @@ module.exports = function (grunt) { "projectmanager/js/app.js" ] } + }, + smallpart: { + files: { + "smallpart/js/app.min.js": [ + "smallpart/js/et2_widget_videobar.js", + "smallpart/js/et2_videooverlay_interface.js", + "smallpart/js/overlay_plugins/et2_smallpart_overlay_html.js", + "smallpart/js/overlay_plugins/et2_smallpart_question_multiplechoice.js", + "smallpart/js/overlay_plugins/et2_smallpart_question_singlechoice.js", + "smallpart/js/overlay_plugins/et2_smallpart_question_text.js", + "smallpart/js/et2_widget_videooverlay.js", + "smallpart/js/et2_widget_videooverlay_slider_controller.js", + "smallpart/js/et2_widget_videotime.js", + "smallpart/js/et2_widget_comment.js", + "smallpart/js/et2_widget_color_radiobox.js", + "smallpart/js/et2_widget_filter_participants.js", + "smallpart/js/app.js" + ] + } } }, cssmin: { diff --git a/api/src/Framework/Bundle.php b/api/src/Framework/Bundle.php index 44ce6d90c7..64746e2f41 100644 --- a/api/src/Framework/Bundle.php +++ b/api/src/Framework/Bundle.php @@ -252,6 +252,7 @@ class Bundle 'mail' => '/mail/js/app.js', 'projectmanager' => '/projectmanager/js/app.js', 'messenger' => '/messenger/js/app.js', + 'smallpart' => '/smallpart/js/app.js', ) as $bundle => $file) { if (@file_exists(EGW_SERVER_ROOT.$file))