Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove core.js
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst authored and juliusknorr committed Jan 9, 2019
commit 1e80259051cd1b6e4ded633f93d6b1ca06b78a52
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