summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-09 16:37:04 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-09 16:37:04 +0200
commit4a8984a9970b4a6122ea9b31f20380cdbbca39da (patch)
treecf3ef8cab5f1560a97cb14118b56b522afb30192
parenta84b978221e017399b515280a3f758e8f99eaf93 (diff)
dont ignore vendor build directories
-rw-r--r--js/build/app/app.js55
-rw-r--r--js/build/app/controllers/appcontroller.js50
-rw-r--r--js/build/app/controllers/feedcontroller.js129
-rw-r--r--js/build/app/controllers/itemcontroller.js83
-rw-r--r--js/build/app/controllers/settingscontroller.js55
-rw-r--r--js/build/app/directives/audio.js51
-rw-r--r--js/build/app/directives/droppable.js50
-rw-r--r--js/build/app/directives/itemshortcuts.js126
-rw-r--r--js/build/app/directives/newsclickscroll.js48
-rw-r--r--js/build/app/directives/newsitemscroll.js82
-rw-r--r--js/build/app/directives/undonotification.js63
-rw-r--r--js/build/app/services/activefeed.js56
-rw-r--r--js/build/app/services/businesslayer/businesslayer.js54
-rw-r--r--js/build/app/services/businesslayer/feedbusinesslayer.js233
-rw-r--r--js/build/app/services/businesslayer/folderbusinesslayer.js241
-rw-r--r--js/build/app/services/businesslayer/itembusinesslayer.js144
-rw-r--r--js/build/app/services/businesslayer/starredbusinesslayer.js66
-rw-r--r--js/build/app/services/businesslayer/subscriptionsbusinesslayer.js84
-rw-r--r--js/build/app/services/existserror.js38
-rw-r--r--js/build/app/services/feedtype.js36
-rw-r--r--js/build/app/services/language.js60
-rw-r--r--js/build/app/services/models/feedmodel.js198
-rw-r--r--js/build/app/services/models/foldermodel.js159
-rw-r--r--js/build/app/services/models/itemmodel.js133
-rw-r--r--js/build/app/services/newestitem.js46
-rw-r--r--js/build/app/services/opmlparser.js111
-rw-r--r--js/build/app/services/persistence.js577
-rw-r--r--js/build/app/services/services.js65
-rw-r--r--js/build/app/services/showall.js50
-rw-r--r--js/build/app/services/starredcount.js50
-rw-r--r--js/build/app/services/statusflag.js34
-rw-r--r--js/build/app/services/unreadcountformatter.js34
-rw-r--r--js/build/tests/controllers/feedcontrollerSpec.js233
-rw-r--r--js/build/tests/controllers/itemcontrollerSpec.js194
-rw-r--r--js/build/tests/controllers/settingscontrollerSpec.js86
-rw-r--r--js/build/tests/services/activefeedSpec.js49
-rw-r--r--js/build/tests/services/businesslayer/businesslayerSpec.js88
-rw-r--r--js/build/tests/services/businesslayer/feedbusinesslayerSpec.js478
-rw-r--r--js/build/tests/services/businesslayer/folderbusinesslayerSpec.js577
-rw-r--r--js/build/tests/services/businesslayer/itembusinesslayerSpec.js330
-rw-r--r--js/build/tests/services/businesslayer/starredbusinesslayerSpec.js69
-rw-r--r--js/build/tests/services/businesslayer/subsriptionsbusinesslayerSpec.js130
-rw-r--r--js/build/tests/services/feedtypeSpec.js48
-rw-r--r--js/build/tests/services/languageSpec.js61
-rw-r--r--js/build/tests/services/models/feedmodelSpec.js175
-rw-r--r--js/build/tests/services/models/foldermodelSpec.js140
-rw-r--r--js/build/tests/services/models/itemmodelSpec.js160
-rw-r--r--js/build/tests/services/newestitemSpec.js41
-rw-r--r--js/build/tests/services/opmlparserSpec.js167
-rw-r--r--js/build/tests/services/persistenceSpec.js398
-rw-r--r--js/build/tests/services/showallSpec.js46
-rw-r--r--js/build/tests/services/starredcountSpec.js44
-rw-r--r--js/build/tests/services/statusflagSpec.js39
-rw-r--r--js/build/tests/services/unreadcountformaterSpec.js39
-rw-r--r--js/tests/controllers/settingscontrollerSpec.coffee2
-rw-r--r--js/vendor/angular-ui/build/angular-ui-ieshiv.js59
-rw-r--r--js/vendor/angular-ui/build/angular-ui-ieshiv.min.js7
-rw-r--r--js/vendor/angular-ui/build/angular-ui.css50
-rw-r--r--js/vendor/angular-ui/build/angular-ui.js1461
-rw-r--r--js/vendor/angular-ui/build/angular-ui.min.css1
-rw-r--r--js/vendor/angular-ui/build/angular-ui.min.js7
61 files changed, 8439 insertions, 1 deletions
diff --git a/js/build/app/app.js b/js/build/app/app.js
new file mode 100644
index 000000000..0e05ba545
--- /dev/null
+++ b/js/build/app/app.js
@@ -0,0 +1,55 @@
+// Generated by CoffeeScript 1.6.3
+/*
+
+ownCloud - News
+
+@author Bernhard Posselt
+@copyright 2012 Bernhard Posselt dev@bernhard-posselt.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', ['OC', 'ui']).config(function($provide) {
+ var config;
+ return $provide.value('Config', config = {
+ markReadTimeout: 500,
+ scrollTimeout: 500,
+ feedUpdateInterval: 1000 * 60 * 3,
+ itemBatchSize: 40,
+ undoTimeout: 1000 * 10,
+ autoPageFactor: 30
+ });
+ });
+
+ angular.module('News').run([
+ 'Persistence', 'Config', function(Persistence, Config) {
+ return setInterval(function() {
+ Persistence.getAllFeeds(null, false);
+ return Persistence.getAllFolders(null, false);
+ }, Config.feedUpdateInterval);
+ }
+ ]);
+
+ $(document).ready(function() {
+ return $(this).keyup(function(e) {
+ if ((e.which === 116) || (e.which === 82 && e.ctrlKey)) {
+ document.location.reload(true);
+ return false;
+ }
+ });
+ });
+
+}).call(this);
diff --git a/js/build/app/controllers/appcontroller.js b/js/build/app/controllers/appcontroller.js
new file mode 100644
index 000000000..17fba2182
--- /dev/null
+++ b/js/build/app/controllers/appcontroller.js
@@ -0,0 +1,50 @@
+// Generated by CoffeeScript 1.6.3
+/*
+
+ownCloud - News
+
+@author Alessandro Cosentino
+@copyright 2013 Alessandro Cosentino cosenal@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').controller('AppController', [
+ '$scope', 'Persistence', 'FeedBusinessLayer', function($scope, Persistence, FeedBusinessLayer) {
+ var AppController;
+ AppController = (function() {
+ function AppController(_$scope, _persistence, _feedBusinessLayer) {
+ var successCallback,
+ _this = this;
+ this._$scope = _$scope;
+ this._persistence = _persistence;
+ this._feedBusinessLayer = _feedBusinessLayer;
+ this._$scope.initialized = false;
+ this._$scope.feedBusinessLayer = this._feedBusinessLayer;
+ successCallback = function() {
+ return _this._$scope.initialized = true;
+ };
+ this._persistence.init().then(successCallback);
+ }
+
+ return AppController;
+
+ })();
+ return new AppController($scope, Persistence, FeedBusinessLayer);
+ }
+ ]);
+
+}).call(this);
diff --git a/js/build/app/controllers/feedcontroller.js b/js/build/app/controllers/feedcontroller.js
new file mode 100644
index 000000000..08fa1c4c2
--- /dev/null
+++ b/js/build/app/controllers/feedcontroller.js
@@ -0,0 +1,129 @@
+// Generated by CoffeeScript 1.6.3
+/*
+
+ownCloud - News
+
+@author Bernhard Posselt
+@copyright 2012 Bernhard Posselt dev@bernhard-posselt.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').controller('FeedController', [
+ '$scope', '_ExistsError', 'Persistence', 'FolderBusinessLayer', 'FeedBusinessLayer', 'SubscriptionsBusinessLayer', 'StarredBusinessLayer', 'unreadCountFormatter', 'ActiveFeed', 'FeedType', '$window', function($scope, _ExistsError, Persistence, FolderBusinessLayer, FeedBusinessLayer, SubscriptionsBusinessLayer, StarredBusinessLayer, unreadCountFormatter, ActiveFeed, FeedType, $window) {
+ var FeedController;
+ FeedController = (function() {
+ function FeedController(_$scope, _persistence, _folderBusinessLayer, _feedBusinessLayer, _subscriptionsBusinessLayer, _starredBusinessLayer, _unreadCountFormatter, _activeFeed, _feedType, _$window) {
+ var _this = this;
+ this._$scope = _$scope;
+ this._persistence = _persistence;
+ this._folderBusinessLayer = _folderBusinessLayer;
+ this._feedBusinessLayer = _feedBusinessLayer;
+ this._subscriptionsBusinessLayer = _subscriptionsBusinessLayer;
+ this._starredBusinessLayer = _starredBusinessLayer;
+ this._unreadCountFormatter = _unreadCountFormatter;
+ this._activeFeed = _activeFeed;
+ this._feedType = _feedType;
+ this._$window = _$window;
+ this._isAddingFolder = false;
+ this._isAddingFeed = false;
+ this._$scope.folderBusinessLayer = this._folderBusinessLayer;
+ this._$scope.feedBusinessLayer = this._feedBusinessLayer;
+ this._$scope.subscriptionsBusinessLayer = this._subscriptionsBusinessLayer;
+ this._$scope.starredBusinessLayer = this._starredBusinessLayer;
+ this._$scope.unreadCountFormatter = this._unreadCountFormatter;
+ this._$scope.getTotalUnreadCount = function() {
+ var count, title, titleCount;
+ count = _this._subscriptionsBusinessLayer.getUnreadCount(0);
+ if (count > 0) {
+ titleCount = _this._unreadCountFormatter(count);
+ title = 'News (' + titleCount + ') | ownCloud';
+ } else {
+ title = 'News | ownCloud';
+ }
+ if (_this._$window.document.title !== title) {
+ _this._$window.document.title = title;
+ }
+ return count;
+ };
+ this._$scope.isAddingFolder = function() {
+ return _this._isAddingFolder;
+ };
+ this._$scope.isAddingFeed = function() {
+ return _this._isAddingFeed;
+ };
+ this._$scope.addFeed = function(feedUrl, parentFolderId) {
+ var error;
+ if (parentFolderId == null) {
+ parentFolderId = 0;
+ }
+ _this._$scope.feedExistsError = false;
+ try {
+ _this._isAddingFeed = true;
+ if (parentFolderId !== 0) {
+ _this._folderBusinessLayer.open(parentFolderId);
+ }
+ return _this._feedBusinessLayer.create(feedUrl, parentFolderId, function(data) {
+ _this._$scope.feedUrl = '';
+ _this._isAddingFeed = false;
+ return _this._feedBusinessLayer.load(data['feeds'][0].id);
+ }, function() {
+ return _this._isAddingFeed = false;
+ });
+ } catch (_error) {
+ error = _error;
+ if (error instanceof _ExistsError) {
+ _this._$scope.feedExistsError = true;
+ }
+ return _this._isAddingFeed = false;
+ }
+ };
+ this._$scope.addFolder = function(folderName) {
+ var error;
+ _this._$scope.folderExistsError = false;
+ try {
+ _this._isAddingFolder = true;
+ return _this._folderBusinessLayer.create(folderName, function(data) {
+ var activeId;
+ _this._$scope.folderName = '';
+ _this._$scope.addNewFolder = false;
+ _this._isAddingFolder = false;
+ activeId = data['folders'][0].id;
+ return _this._$scope.folderId = _this._folderBusinessLayer.getById(activeId);
+ }, function() {
+ return _this._isAddingFolder = false;
+ });
+ } catch (_error) {
+ error = _error;
+ if (error instanceof _ExistsError) {
+ _this._$scope.folderExistsError = true;
+ }
+ return _this._isAddingFolder = false;
+ }
+ };
+ this._$scope.$on('moveFeedToFolder', function(scope, data) {
+ return _this._feedBusinessLayer.move(data.feedId, data.folderId);
+ });
+ }
+
+ return FeedController;
+
+ })();
+ return new FeedController($scope, Persistence, FolderBusinessLayer, FeedBusinessLayer, SubscriptionsBusinessLayer, StarredBusinessLayer, unreadCountFormatter, ActiveFeed, FeedType, $window);
+ }
+ ]);
+
+}).call(this);
diff --git a/js/build/app/controllers/itemcontroller.js b/js/build/app/controllers/itemcontroller.js
new file mode 100644
index 000000000..1412aeb78
--- /dev/null
+++ b/