summaryrefslogtreecommitdiffstats
path: root/js/public
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-23 16:08:39 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-23 16:08:39 +0100
commitd65fa8090469286396342ff2299b58b79d83f8f3 (patch)
treec1364cc456f556205d8e14f729b38ba745b3ba06 /js/public
parent1f670b3180cfd71b8085c4ef0fe414a6a78e7d44 (diff)
fixed dicontainer and added basic controllers
Diffstat (limited to 'js/public')
-rw-r--r--js/public/app.js185
1 files changed, 183 insertions, 2 deletions
diff --git a/js/public/app.js b/js/public/app.js
index 84953edac..d7b0d2f2a 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -90,6 +90,181 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
(function() {
+ angular.module('News').controller('SettingsController', [
+ '$scope', '_SettingsController', function($scope, _SettingsController) {
+ return new _SettingsController($scope);
+ }
+ ]);
+
+ angular.module('News').controller('FeedController', [
+ '$scope', '_FeedController', 'FolderModel', 'FeedModel', function($scope, _FeedController, FolderModel, FeedModel) {
+ return new _FeedController($scope, FolderModel, FeedModel);
+ }
+ ]);
+
+ angular.module('News').controller('ItemController', [
+ '$scope', '_ItemController', 'ItemModel', function($scope, _ItemController, ItemModel) {
+ return new _ItemController($scope, ItemModel);
+ }
+ ]);
+
+}).call(this);
+
+// Generated by CoffeeScript 1.4.0
+
+/*
+
+ownCloud - News
+
+@author Bernhard Posselt
+@copyright 2012 Bernhard Posselt nukeawhale@gmail.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/>.
+*/
+
+
+(function() {
+
+ angular.module('News').factory('_FeedController', function() {
+ var FeedController;
+ FeedController = (function() {
+
+ function FeedController($scope, folderModel, feedModel) {
+ this.$scope = $scope;
+ this.folderModel = folderModel;
+ this.feedModel = feedModel;
+ }
+
+ return FeedController;
+
+ })();
+ return FeedController;
+ });
+
+}).call(this);
+
+// Generated by CoffeeScript 1.4.0
+
+/*
+
+ownCloud - News
+
+@author Bernhard Posselt
+@copyright 2012 Bernhard Posselt nukeawhale@gmail.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/>.
+*/
+
+
+(function() {
+
+ angular.module('News').factory('_ItemController', function() {
+ var ItemController;
+ ItemController = (function() {
+
+ function ItemController($scope, itemModel) {
+ this.$scope = $scope;
+ this.itemModel = itemModel;
+ }
+
+ return ItemController;
+
+ })();
+ return ItemController;
+ });
+
+}).call(this);
+
+// Generated by CoffeeScript 1.4.0
+
+/*
+
+ownCloud - News
+
+@author Bernhard Posselt
+@copyright 2012 Bernhard Posselt nukeawhale@gmail.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/>.
+*/
+
+
+(function() {
+
+ angular.module('News').factory('_SettingsController', function() {
+ var SettingsController;
+ SettingsController = (function() {
+
+ function SettingsController($scope) {
+ this.$scope = $scope;
+ }
+
+ return SettingsController;
+
+ })();
+ return SettingsController;
+ });
+
+}).call(this);
+
+// Generated by CoffeeScript 1.4.0
+
+/*
+
+ownCloud - News
+
+@author Bernhard Posselt
+@copyright 2012 Bernhard Posselt nukeawhale@gmail.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/>.
+*/
+
+
+(function() {
+
angular.module('News').factory('_ActiveFeed', function() {
var ActiveFeed;
ActiveFeed = (function() {
@@ -857,8 +1032,8 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
(function() {
angular.module('News').factory('Persistence', [
- '_Persistence', 'Request', 'Loading', 'Config', '$rootScope', 'ActiveFeed', function(_Persistence, Request, Loading, Config, ActiveFeed, $rootScope) {
- return new _Persistence(Request, Loading, Config, ActiveFeed, $rootScope);
+ '_Persistence', 'Request', 'FeedLoading', 'Config', '$rootScope', 'ActiveFeed', function(_Persistence, Request, FeedLoading, Config, ActiveFeed, $rootScope) {
+ return new _Persistence(Request, FeedLoading, Config, ActiveFeed, $rootScope);
}
]);
@@ -868,6 +1043,12 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}
]);
+ angular.module('News').factory('FeedLoading', [
+ '_Loading', function(_Loading) {
+ return new _Loading();
+ }
+ ]);
+
angular.module('News').factory('ActiveFeed', [
'_ActiveFeed', function(_ActiveFeed) {
return new _ActiveFeed();