diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-12-02 18:57:11 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-01-08 10:14:50 +0100 |
commit | 87d0904b6f6209a553efd5d405c917012a91e259 (patch) | |
tree | 8f5d1c53a68cd192fa3b318c63eba0b9108b40a0 /apps | |
parent | 74b980310852a0b406fa9d073870f92c409d5444 (diff) | |
download | nextcloud-server-87d0904b6f6209a553efd5d405c917012a91e259.tar.gz nextcloud-server-87d0904b6f6209a553efd5d405c917012a91e259.zip |
Split common vendor chunk
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/comments/lib/Listener/LoadSidebarScripts.php | 2 | ||||
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 6 | ||||
-rw-r--r-- | apps/files/src/main.js | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/apps/comments/lib/Listener/LoadSidebarScripts.php b/apps/comments/lib/Listener/LoadSidebarScripts.php index 842788f1de8..a73c11ebf18 100644 --- a/apps/comments/lib/Listener/LoadSidebarScripts.php +++ b/apps/comments/lib/Listener/LoadSidebarScripts.php @@ -52,6 +52,6 @@ class LoadSidebarScripts implements IEventListener { // TODO: make sure to only include the sidebar script when // we properly split it between files list and sidebar Util::addScript(Application::APP_ID, 'comments'); - Util::addScript(Application::APP_ID, 'comments-tab'); + Util::addScript(Application::APP_ID, 'comments-tab', 'files'); } } diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index bba8660399c..c73e8f77a3a 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -196,10 +196,8 @@ class ViewController extends Controller { // Load the files we need \OCP\Util::addStyle('files', 'merged'); - \OCP\Util::addScript('files', 'merged-index'); - \OCP\Util::addScript('files', 'templates'); - \OCP\Util::addScript('files', 'files-app-settings'); - \OCP\Util::addScript('files', 'legacy-filelist-search'); + \OCP\Util::addScript('files', 'merged-index', 'files'); + \OCP\Util::addScript('files', 'main'); // mostly for the home storage's free space // FIXME: Make non static diff --git a/apps/files/src/main.js b/apps/files/src/main.js new file mode 100644 index 00000000000..a979822bdc4 --- /dev/null +++ b/apps/files/src/main.js @@ -0,0 +1,3 @@ +import './files-app-settings' +import './templates' +import './legacy/filelistSearch' |