* * @author Julius Härtl * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * */ use OCP\Util; Util::addStyle('deck', '../js/vendor/ng-sortable/dist/ng-sortable.min'); Util::addStyle('deck', 'style'); Util::addScript('deck', 'vendor/angular/angular.min'); Util::addScript('deck', 'vendor/angular-route/angular-route.min'); Util::addScript('deck', 'vendor/angular-sanitize/angular-sanitize.min'); Util::addScript('deck', 'vendor/angular-animate/angular-animate.min'); Util::addScript('deck', 'vendor/angular-ui-router/release/angular-ui-router.min'); Util::addScript('deck', 'vendor/ng-sortable/dist/ng-sortable.min'); Util::addScript('deck', 'vendor/angular-ui-select/dist/select.min'); Util::addScript('deck', 'vendor/markdown-it/dist/markdown-it.min'); Util::addScript('deck', 'vendor/angular-markdown-it/dist/ng-markdownit.min'); Util::addScript('deck', 'vendor/markdown-it-link-target/dist/markdown-it-link-target.min'); if(!\OC::$server->getConfig()->getSystemValue('debug', false)) { Util::addScript('deck', 'public/app'); } else { // Load seperate JS files when debug mode is enabled $js = [ 'app' => ['App', 'Config', 'Run'], 'controller' => ['AppController', 'BoardController', 'CardController', 'ListController'], 'directive' => ['appnavigationentryutils', 'appPopoverMenuUtils', 'autofocusoninsert', 'avatar', 'elastic', 'search'], 'filters' => ['cardFilter', 'cardSearchFilter', 'iconWhiteFilter', 'lightenColorFilter', 'orderObjectBy', 'relativeDateFilter', 'textColorFilter'], 'service' => ['ApiService', 'BoardService', 'CardService', 'LabelService', 'StackService', 'StatusService'], ]; foreach($js as $folder=>$files) { foreach ($files as $file) { Util::addScript('deck', $folder.'/'.$file); } } } ?>
inc('part.navigation')); ?> inc('part.settings')); */ ?>