Convert calendar to VueJS component

Update to FullCalendar 3.1.0 as well.
This commit is contained in:
Frederic Guillot
2016-11-15 21:24:25 -05:00
parent 94cd5869bf
commit e2a867166b
10 changed files with 168 additions and 840 deletions

View File

@@ -29,7 +29,6 @@ class CalendarController extends BaseController
'project' => $project,
'title' => $project['name'],
'description' => $this->helper->projectHeader->getDescription($project),
'check_interval' => $this->configModel->get('board_private_refresh_interval'),
)));
}

View File

@@ -1,9 +1,6 @@
<section id="main">
<?= $this->projectHeader->render($project, 'CalendarController', 'show') ?>
<div id="calendar"
data-save-url="<?= $this->url->href('CalendarController', 'save', array('project_id' => $project['id'])) ?>"
data-check-url="<?= $this->url->href('CalendarController', 'project', array('project_id' => $project['id'])) ?>"
data-check-interval="<?= $check_interval ?>"
>
</div>
<calendar save-url="<?= $this->url->href('CalendarController', 'save', array('project_id' => $project['id'])) ?>"
check-url="<?= $this->url->href('CalendarController', 'project', array('project_id' => $project['id'])) ?>">
</calendar>
</section>

View File

@@ -1,5 +1,2 @@
<div id="calendar"
data-check-url="<?= $this->url->href('CalendarController', 'user', array('user_id' => $user['id'])) ?>"
data-save-url="<?= $this->url->href('CalendarController', 'save') ?>"
>
</div>
<calendar check-url="<?= $this->url->href('CalendarController', 'user', array('user_id' => $user['id'])) ?>"
save-url="<?= $this->url->href('CalendarController', 'save') ?>"></calendar>