Skip to content

Commit

Permalink
Remove core.js
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Dec 20, 2018
1 parent 033c057 commit 44c50a2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 97 deletions.
39 changes: 0 additions & 39 deletions build/mergejs.php

This file was deleted.

25 changes: 0 additions & 25 deletions build/mergejschecker.sh

This file was deleted.

3 changes: 0 additions & 3 deletions core/js/core.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"vendor": [
"css-vars-ponyfill/dist/css-vars-ponyfill.min.js"
],
"libraries": [
"jquery-showpassword.js",
"jquery.avatar.js",
Expand Down
10 changes: 0 additions & 10 deletions core/vendor/core.js

This file was deleted.

20 changes: 0 additions & 20 deletions lib/private/legacy/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,26 +124,6 @@ public static function initTemplateEngine($renderAs) {
OC_Util::addScript('files/client');
OC_Util::addScript('contactsmenu');
OC_Util::addScript('contactsmenu_templates');

if (\OC::$server->getConfig()->getSystemValue('debug')) {
// Add the stuff we need always
// following logic will import all vendor libraries that are
// specified in core/js/core.json
$fileContent = file_get_contents(OC::$SERVERROOT . '/core/js/core.json');
if($fileContent !== false) {
$coreDependencies = json_decode($fileContent, true);
foreach(array_reverse($coreDependencies['vendor']) as $vendorLibrary) {
//remove trailing ".js" as addVendorScript will append it
OC_Util::addVendorScript(
substr($vendorLibrary, 0, -3),null,true);
}
} else {
throw new \Exception('Cannot read core/js/core.json');
}
} else {
// Import all (combined) default vendor libraries
OC_Util::addVendorScript('core', null, true);
}
OC_Util::addScript('core', 'dist/main', true);

if (\OC::$server->getRequest()->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE])) {
Expand Down

0 comments on commit 44c50a2

Please sign in to comment.