summaryrefslogtreecommitdiffstats
path: root/js/controller
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-19 02:22:02 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-19 02:22:02 +0200
commit90584316b8f275fcad904b644676544eb0322636 (patch)
tree35ead28e8f0cdccc1771464442bb83ce5b558cc6 /js/controller
parentded252d29e99e068ea341506129e47a05e053a24 (diff)
add test for firstrun page
Diffstat (limited to 'js/controller')
-rw-r--r--js/controller/AppController.js19
-rw-r--r--js/controller/ItemsController.js14
-rw-r--r--js/controller/NavigationController.js14
-rw-r--r--js/controller/SettingsController.js14
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