]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge systemtags JS 4041/head
authorLukas Reschke <lukas@statuscode.ch>
Fri, 24 Mar 2017 19:08:27 +0000 (20:08 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Fri, 24 Mar 2017 19:08:27 +0000 (20:08 +0100)
Shaves off 7 requests.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
apps/systemtags/appinfo/app.php
apps/systemtags/js/merged.json [new file with mode: 0644]
core/js/systemtags/merged.json [new file with mode: 0644]

index bb2930e9197e4310abe0404c23db87cefdb64fc7..099ce7f9b95526039e01e005fe593e69749b218a 100644 (file)
@@ -30,15 +30,8 @@ $eventDispatcher->addListener(
        function() {
                // FIXME: no public API for these ?
                \OCP\Util::addScript('oc-backbone-webdav');
-               \OCP\Util::addScript('systemtags/systemtags');
-               \OCP\Util::addScript('systemtags/systemtagmodel');
-               \OCP\Util::addScript('systemtags/systemtagsmappingcollection');
-               \OCP\Util::addScript('systemtags/systemtagscollection');
-               \OCP\Util::addScript('systemtags/systemtagsinputfield');
-               \OCP\Util::addScript('systemtags', 'app');
-               \OCP\Util::addScript('systemtags', 'systemtagsfilelist');
-               \OCP\Util::addScript('systemtags', 'filesplugin');
-               \OCP\Util::addScript('systemtags', 'systemtagsinfoview');
+               \OCP\Util::addScript('systemtags/merged');
+               \OCP\Util::addScript('systemtags', 'merged');
                \OCP\Util::addStyle('systemtags');
                \OCP\Util::addStyle('systemtags', 'systemtagsfilelist');
        }
diff --git a/apps/systemtags/js/merged.json b/apps/systemtags/js/merged.json
new file mode 100644 (file)
index 0000000..0262077
--- /dev/null
@@ -0,0 +1,6 @@
+[
+  "app.js",
+  "systemtagsfilelist.js",
+  "filesplugin.js",
+  "systemtagsinfoview.js"
+]
diff --git a/core/js/systemtags/merged.json b/core/js/systemtags/merged.json
new file mode 100644 (file)
index 0000000..846ba96
--- /dev/null
@@ -0,0 +1,7 @@
+[
+  "systemtags.js",
+  "systemtagmodel.js",
+  "systemtagsmappingcollection.js",
+  "systemtagscollection.js",
+  "systemtagsinputfield.js"
+]