Skip to content

Commit

Permalink
Move template
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Nov 25, 2018
1 parent 921cfdf commit 6783962
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 93 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function index() {
$this->defaultBoardService->createDefaultBoard($this->l10n->t('Personal'), $this->userId, '000000');
}

return new TemplateResponse('deck', 'vue', $params);
return new TemplateResponse('deck', 'main', $params);
}

}
79 changes: 14 additions & 65 deletions templates/main.php
Original file line number Diff line number Diff line change
@@ -1,78 +1,27 @@
<?php
/**
* @copyright Copyright (c) 2016 Julius Härtl <jus@bitgrid.net>
* @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @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 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.
* 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 <http://www.gnu.org/licenses/>.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use OCP\Util;

Util::addScript('activity', 'richObjectStringParser');
if (\OC_Util::getVersion()[0] > 14) {
Util::addScript('activity', 'templates');
}

Util::addStyle('activity', 'style');
Util::addStyle('comments', 'comments');
Util::addScript('oc-backbone-webdav');

Util::addStyle('deck', '../js/build/vendor');
Util::addScript('deck', 'build/vendor');

Util::addStyle('deck', 'style');
Util::addScript('deck', 'build/deck');

if (\OC_Util::getVersion()[0] < 14) {
Util::addStyle('deck', 'comp-13');
}
style('deck', 'style');
script('deck', 'deck');
?>

<div
class="app app-deck"
data-ng-app="Deck"
ng-controller="AppController"
ng-cloak
config="<?php p(json_encode($_)); ?>"
ng-class="{'app-navigation-hide': appNavigationHide, 'compact-mode': compactMode}">

<div id="app-navigation" data-ng-controller="ListController" ng-init="initSidebar()">
<?php print_unescaped($this->inc('part.navigation')); ?>
<?php /* print_unescaped($this->inc('part.settings')); */ ?>
</div>
<div id="app-content" ng-class="{ 'details-visible': sidebar.show }"><div id="app-navigation-toggle-custom" class="icon-menu" ng-click="toggleSidebar()"></div><div ui-view></div></div>
<div id="app-sidebar" ng-class="{ 'details-visible': sidebar.show }" ng-if="sidebar.show" class="details-view scroll-container" ui-view="sidebarView"></div>
<route-loading-indicator></route-loading-indicator>

<script type="text/ng-template" id="/boardlist.mainView.html">
<?php print_unescaped($this->inc('part.boardlist')); ?>
</script>
<script type="text/ng-template" id="/board.sidebarView.html">
<?php print_unescaped($this->inc('part.board.sidebarView')); ?>
</script>
<script type="text/ng-template" id="/board.html">
<?php print_unescaped($this->inc('part.board.mainView')); ?>
</script>
<script type="text/ng-template" id="/card.sidebarView.html">
<?php print_unescaped($this->inc('part.card')); ?>
</script>
<script type="text/ng-template" id="/card.attachments.html">
<?php print_unescaped($this->inc('part.card.attachments')); ?>
</script>

</div>
<input type="hidden" id="debug-mode" value="<?php p($_['debug'] ? 'true' : 'false'); ?>">
27 changes: 0 additions & 27 deletions templates/vue.php

This file was deleted.

0 comments on commit 6783962

Please sign in to comment.