mirror of https://github.com/nextcloud/calendar
Setting up angular controllers, adds a blank style sheet for now.
This commit is contained in:
parent
52813b3c0e
commit
a22dc418a9
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* ownCloud - Calendar App
|
||||
*
|
||||
* @author Raghu Nayyar
|
||||
* @author Georg Ehrke
|
||||
* @copyright 2014 Raghu Nayyar <beingminimal@gmail.com>
|
||||
* @copyright 2014 Georg Ehrke <oc.list@georgehrke.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or any later version.
|
||||
*
|
||||
* This library 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 library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
?>
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* ownCloud - Calendar App
|
||||
*
|
||||
* @author Raghu Nayyar
|
||||
* @author Georg Ehrke
|
||||
* @copyright 2014 Raghu Nayyar <beingminimal@gmail.com>
|
||||
* @copyright 2014 Georg Ehrke <oc.list@georgehrke.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or any later version.
|
||||
*
|
||||
* This library 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 library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
app.controller('AppController', ['$scope',
|
||||
function ($scope) {
|
||||
|
||||
}
|
||||
]);
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* ownCloud - Calendar App
|
||||
*
|
||||
* @author Raghu Nayyar
|
||||
* @author Georg Ehrke
|
||||
* @copyright 2014 Raghu Nayyar <beingminimal@gmail.com>
|
||||
* @copyright 2014 Georg Ehrke <oc.list@georgehrke.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or any later version.
|
||||
*
|
||||
* This library 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 library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
app.controller('CalController', ['$scope',
|
||||
function ($scope) {
|
||||
|
||||
}
|
||||
]);
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* ownCloud - Calendar App
|
||||
*
|
||||
* @author Raghu Nayyar
|
||||
* @author Georg Ehrke
|
||||
* @copyright 2014 Raghu Nayyar <beingminimal@gmail.com>
|
||||
* @copyright 2014 Georg Ehrke <oc.list@georgehrke.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or any later version.
|
||||
*
|
||||
* This library 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 library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
app.controller('NavController', ['$scope',
|
||||
function ($scope) {
|
||||
|
||||
}
|
||||
]);
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* ownCloud - Calendar App
|
||||
*
|
||||
* @author Raghu Nayyar
|
||||
* @author Georg Ehrke
|
||||
* @copyright 2014 Raghu Nayyar <beingminimal@gmail.com>
|
||||
* @copyright 2014 Georg Ehrke <oc.list@georgehrke.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or any later version.
|
||||
*
|
||||
* This library 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 library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
app.controller('SettingsController', ['$scope',
|
||||
function ($scope) {
|
||||
|
||||
}
|
||||
]);
|
|
@ -1,2 +1,22 @@
|
|||
|
||||
var app = angular.module('Calendar', ['ngAnimate', 'ngResource', 'ngRoute']);
|
||||
app.controller('AppController', ['$scope',
|
||||
function ($scope) {
|
||||
|
||||
}
|
||||
]);
|
||||
app.controller('CalController', ['$scope',
|
||||
function ($scope) {
|
||||
|
||||
}
|
||||
]);
|
||||
app.controller('NavController', ['$scope',
|
||||
function ($scope) {
|
||||
|
||||
}
|
||||
]);
|
||||
app.controller('SettingsController', ['$scope',
|
||||
function ($scope) {
|
||||
|
||||
}
|
||||
]);
|
||||
|
|
|
@ -25,6 +25,18 @@
|
|||
|
||||
<!-- TODO: Add all Angular, Bootstrap and Custom URLs to this file.-->
|
||||
|
||||
<?php
|
||||
\OCP\Util::addScript('calendar', '../3rdparty/js/angular/angular');
|
||||
\OCP\Util::addScript('calendar', '../3rdparty/js/angular/angular-animate');
|
||||
\OCP\Util::addScript('calendar', '../3rdparty/js/angular/angular-resource');
|
||||
\OCP\Util::addScript('calendar', '../3rdparty/js/angular/angular-route');
|
||||
\OCP\Util::addScript('calendar', 'public/app');
|
||||
|
||||
|
||||
\OCP\Util::addStyle('calendar', 'calendar');
|
||||
|
||||
?>
|
||||
|
||||
<div ng-app="Calendar" ng-controller="AppController">
|
||||
|
||||
<!-- The Left Calendar Navigation -->
|
||||
|
|
Loading…
Reference in New Issue