diff options
Diffstat (limited to 'js/controller')
-rw-r--r-- | js/controller/AppController.js | 19 | ||||
-rw-r--r-- | js/controller/ItemsController.js | 14 | ||||
-rw-r--r-- | js/controller/NavigationController.js | 14 | ||||
-rw-r--r-- | js/controller/SettingsController.js | 14 |
4 files changed, 61 insertions, 0 deletions
diff --git a/js/controller/AppController.js b/js/controller/AppController.js new file mode 100644 index 000000000..ee8115c84 --- /dev/null +++ b/js/controller/AppController.js @@ -0,0 +1,19 @@ +/** + * ownCloud - News + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Bernhard Posselt <dev@bernhard-posselt.com> + * @copyright Bernhard Posselt 2014 + */ +app.controller('AppController', function (Loading, Feed, Folder) { + 'use strict'; + + this.loading = Loading; + + this.isFirstRun = function () { + return Feed.size() === 0 && Folder.size() === 0; + }; + +});
\ No newline at end of file diff --git a/js/controller/ItemsController.js b/js/controller/ItemsController.js new file mode 100644 index 000000000..61ca72fdc --- /dev/null +++ b/js/controller/ItemsController.js @@ -0,0 +1,14 @@ +/** + * ownCloud - News + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Bernhard Posselt <dev@bernhard-posselt.com> + * @copyright Bernhard Posselt 2014 + */ +app.controller('ItemsController', function () { + 'use strict'; + + console.log('here'); +});
\ No newline at end of file diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js new file mode 100644 index 000000000..700e6bd02 --- /dev/null +++ b/js/controller/NavigationController.js @@ -0,0 +1,14 @@ +/** + * ownCloud - News + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Bernhard Posselt <dev@bernhard-posselt.com> + * @copyright Bernhard Posselt 2014 + */ +app.controller('NavigationController', function () { + 'use strict'; + + console.log('here'); +});
\ No newline at end of file diff --git a/js/controller/SettingsController.js b/js/controller/SettingsController.js new file mode 100644 index 000000000..321b6dff9 --- /dev/null +++ b/js/controller/SettingsController.js @@ -0,0 +1,14 @@ +/** + * ownCloud - News + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Bernhard Posselt <dev@bernhard-posselt.com> + * @copyright Bernhard Posselt 2014 + */ +app.controller('SettingsController', function () { + 'use strict'; + + console.log('here'); +});
\ No newline at end of file |