Commit 531c022251de7e3832e9b3dca6b70dc33a89c938
1 parent
ea70ea8f
Exists in
master
and in
37 other branches
Update dist
Showing
121 changed files
with
121 additions
and
1067 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 121 files displayed.
dist/index.html
1 | -<!doctype html><html ng-app="angular"><head><base href="/"><meta charset="utf-8"><title>angular</title><meta name="description" content=""><meta name="viewport" content="width=device-width"><link rel="stylesheet" href="/designs/themes/angular-theme/dist/styles/vendor-9c255acee7.css"><link rel="stylesheet" href="/designs/themes/angular-theme/dist/styles/app-1cbf5925d3.css"></head><body><!--[if lt IE 10]> | |
1 | +<!doctype html><html ng-app="angular"><head><base href="/"><meta charset="utf-8"><title>angular</title><meta name="description" content=""><meta name="viewport" content="width=device-width"><link rel="stylesheet" href="/designs/themes/angular-theme/dist/styles/vendor-ebefc2c7fc.css"><link rel="stylesheet" href="/designs/themes/angular-theme/dist/styles/app-1cbf5925d3.css"></head><body><!--[if lt IE 10]> | |
2 | 2 | <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> |
3 | - <![endif]--><div ui-view=""></div><script src="/designs/themes/angular-theme/dist/scripts/vendor-d1e4173192.js"></script><script src="/designs/themes/angular-theme/dist/scripts/app-8e457c72a6.js"></script></body></html> | |
4 | 3 | \ No newline at end of file |
4 | + <![endif]--><div ui-view=""></div><script src="/designs/themes/angular-theme/dist/scripts/vendor-bcf412b41d.js"></script><script src="/designs/themes/angular-theme/dist/scripts/app-da900f6af6.js"></script></body></html> | |
5 | 5 | \ No newline at end of file | ... | ... |
dist/maps/scripts/app-0744cea416.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-0744cea416.js"],"names":["angular","module","noosferoProfileImageBlock","ProfileImageBlockController","vm","this","profile","owner","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoMembersBlock","MembersBlockController","noosfero","members","profiles","one","id","get","per_page","then","result","people","$inject","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","article","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","$state","AUTH_EVENTS","relativeDate","creationDate","fromNow","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","go","current","reload","$on","loginSuccess","close","logoutSuccess","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","activate","ProfileController","identifier","ProfileHomeController","customGET","transitionTo","page","path","MainController","ContentViewerController","articles","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","resolve","abstract","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","setBaseUrl","defaults","Content-Type","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,sBAIzC,WACE,YAOA,SAASC,KAgBP,QAASC,KACP,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAIC,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYV,EACZW,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UA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RhE,aAAc,qBACdsB,YAAa,oBACbpB,cAAe,2BAKrB,WACE,YAOA,SAAS6D,GAAOE,EAAcC,EAAmBC,EAAqBC,GACpEH,EAAaI,cAAa,GAC1BH,EAAkBI,WAAWC,SAAS,IACtCJ,EAAoBK,WAAW,WAC/BJ,EAAcK,SAASpB,QAAQxC,MAAQ6D,eAAgB,oDAIzDX,EAAOtI,SAAW,eAAgB,oBAAqB,sBAAuB,iBAb9E5B,QACGC,OAAO,WACPiK,OAAOA,MAYZlK,QAAQC,OAAO,WAAWyJ,KAAK,iBAAkB,SAASoB,GAAiBA,EAAeC,IAAI,+BAA+B,sGAC7HD,EAAeC,IAAI,qBAAqB,qDACxCD,EAAeC,IAAI,2BAA2B,qIAC9CD,EAAeC,IAAI,qCAAqC,2JACxDD,EAAeC,IAAI,iCAAiC,inBACpDD,EAAeC,IAAI,kCAAkC,mKACrDD,EAAeC,IAAI,oCAAoC,2hDACvDD,EAAeC,IAAI,qDAAqD,0MACxED,EAAeC,IAAI,yCAAyC,iYAC5DD,EAAeC,IAAI,2CAA2C,mIAC9DD,EAAeC,IAAI,2DAA2D,sOAC9ED,EAAeC,IAAI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,4eAC9FD,EAAeC,IAAI,kEAAkE,+9BACrFD,EAAeC,IAAI,kEAAkE,0xBACrFD,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,0BAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD","file":"scripts/app-0744cea416.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(result) {\n vm.members = result.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {\n creationDate: '='\n },\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n // \"vm.creation\" is avaible by directive option \"bindToController: true\"\n vm.relativeDate = moment(vm.creationDate).fromNow();\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n if(!vm.currentUser) vm.openLogin();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.profile = profiles[0];\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profile(vm.profile.id).customGET('home_page').then(function(result) {\n if(result.article) {\n $state.transitionTo('main.profile.page', {page: result.article.path, profile: vm.profile.identifier});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: '/:profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm',\n abstract: true\n })\n .state('main.profile.home', {\n url: '',\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<ul class=\\\"timeline\\\"><li ng-class-even=\\\"\\'timeline-inverted\\'\\\" ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></li></ul>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<div class=\\\"timeline-badge success\\\"><i class=\\\"fa fa-file-text\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-08f6258234.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-08f6258234.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","profiles","one","id","get","content_type","then","result","articles","$inject","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","per_page","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","ProfileController","ProfileHomeController","customGET","fields","transitionTo","location","MainController","ContentViewerController","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","resolve","abstract","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","setBaseUrl","defaults","Content-Type","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,iBAAkB,mBACnC,wBAIxB,WACE,YAOA,SAASC,KAgBP,QAASC,GAA0BC,EAAUC,GAC3C,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAChBH,EAAGI,aAEHJ,EAAGK,aAAe,SAASC,GACzBP,EAAOQ,GAAG,qBAAsBC,KAAMF,EAAQG,KAAMP,QAASI,EAAQJ,QAAQQ,cAI/EZ,EAASa,SAASC,IAAIZ,EAAGE,QAAQW,IAAID,IAAI,YAAYE,KAAKC,aAAc,mBAAmBC,KAAK,SAASC,GACvGjB,EAAGI,UAAYa,EAAOC,WA1B1BrB,EAA0BsB,SAAW,WAAY,SAAjD,IAAIC,IACFC,SAAU,IACVC,YAAa,wEACbC,OACIC,MAAO,IACPrB,MAAO,KAEXsB,WAAY5B,EACZ6B,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBT1B,QACGC,OAAO,WACPyB,UAAU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D,gPAC7ED,EAAeC,IAAI,4DAA4D,0BAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-08f6258234.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle'}).then(function(result) {\n vm.documents = result.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(result) {\n vm.members = result.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.profile = profiles[0];\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(result) {\n if(result.article) {\n $state.transitionTo('main.profile.page', {page: result.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: '/:profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm',\n abstract: true\n })\n .state('main.profile.home', {\n url: '',\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<timeline><timeline-event ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\" when-visible=\\\"animateElementIn\\\" when-not-visible=\\\"animateElementOut\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></timeline-event></timeline>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block {{block.type | lowercase}}\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<timeline-badge class=\\\"success\\\"><i class=\\\"fa fa-file-text\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile.info({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/recent-documents/recent-documents.html\",\"<div deckgrid=\\\"\\\" source=\\\"vm.documents\\\" class=\\\"deckgrid\\\"><div class=\\\"a-card panel media\\\" ng-click=\\\"mother.vm.openDocument(card);\\\"><div class=\\\"author media-left\\\" ng-show=\\\"card.author.image\\\"><img ng-src=\\\"{{card.author.image.url}}\\\" class=\\\"img-circle\\\"></div><div class=\\\"header media-body\\\"><h5 class=\\\"title media-heading\\\" ng-bind=\\\"card.title\\\"></h5><div class=\\\"subheader\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"card.created_at\\\"></span></span></div></div><img ng-if=\\\"card.image\\\" ng-src=\\\"card.image.url\\\"><div class=\\\"post-lead\\\" ng-bind-html=\\\"card.body | stripTags | truncate: 100: \\'...\\'\\\"></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-167116291c.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-167116291c.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","limit","block","settings","profiles","one","id","get","content_type","per_page","then","response","data","articles","$inject","directive","restrict","templateUrl","scope","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","noosferoBlog","BlogController","posts","perPage","currentPage","loadPage","customGET","totalPosts","headers","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","replace","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","toLowerCase","replaceWith","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","currentProfile","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","debug","create","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","ProfileController","ProfileHomeController","fields","transitionTo","location","MainController","ContentViewerController","ContentViewerActionsController","CmsController","$httpParamSerializer","SweetAlert","save","customPOST","Content-Type","swal","title","timer","runBlock","addFullRequestInterceptor","operation","route","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","resolve","views","mainBlockContent","abstract","content","actions@main","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","$provide","debugEnabled","html5Mode","enabled","setBaseUrl","setFullResponse","defaults","decorator","$delegate","$document","uiViewElement","scrollToElementAnimated","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,iBAAkB,mBACnC,mBAAoB,WAAY,6BAIxD,WACE,YAOA,SAASC,KAgBP,QAASC,GAA0BC,EAAUC,GAC3C,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAChBH,EAAGI,aAEHJ,EAAGK,aAAe,SAASC,GACzBP,EAAOQ,GAAG,qBAAsBC,KA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iB,SAAUC,EAAWC,GACvD,MAAO,UAAUC,GACfD,EAAUE,wBAAwBD,OAGxChB,EAAO5J,SAAW,eAAgB,oBAAqB,sBAAuB,gBAAiB,YAjB/F9B,QACGC,OAAO,WACPyL,OAAOA,MAmBZ1L,QAAQC,OAAO,WAAW6K,KAAK,iBAAkB,SAAS8B,GAAiBA,EAAeC,IAAI,mBAAmB,4aACjHD,EAAeC,IAAI,yCAAyC,2QAC5DD,EAAeC,IAAI,+BAA+B,sGAClDD,EAAeC,IAAI,qBAAqB,4DACxCD,EAAeC,IAAI,qCAAqC,2JACxDD,EAAeC,IAAI,2BAA2B,qIAC9CD,EAAeC,IAAI,iCAAiC,inBACpDD,EAAeC,IAAI,kCAAkC,mKACrDD,EAAeC,IAAI,oCAAoC,wjDACvDD,EAAeC,IAAI,qDAAqD,uLACxED,EAAeC,IAAI,yCAAyC,4ZAC5DD,EAAeC,IAAI,2CAA2C,mIAC9DD,EAAeC,IAAI,2DAA2D,sOAC9ED,EAAeC,IAAI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,mfAC9FD,EAAeC,IAAI,kEAAkE,s/BACrFD,EAAeC,IAAI,kEAAkE,iyBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,61BACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,wDAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-167116291c.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline', 'duScroll', 'oitozero.ngSweetAlert']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n var limit = vm.block.settings.limit || 5;\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle', per_page: limit}).then(function(response) {\n vm.documents = response.data.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(response) {\n vm.members = response.data.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController(noosfero) {\n var vm = this;\n vm.posts = [];\n vm.perPage = 3;\n vm.currentPage = 1;\n\n vm.loadPage = function() {\n noosfero.articles.one(vm.article.id).customGET('children', {\n content_type: 'TinyMceArticle',\n per_page: vm.perPage,\n page: vm.currentPage\n }).then(function(response) {\n vm.totalPosts = response.headers('total');\n vm.posts = response.data.articles;\n });\n }\n vm.loadPage();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n var currentProfile;\n\n return {\n currentProfile: currentProfile,\n profiles: Restangular.service('profiles'),\n articles: Restangular.service('articles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(response) {\n vm.activities = response.data.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(response) {\n vm.profile = response.data[0];\n noosfero.currentProfile = vm.profile;\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.data.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(response) {\n if(response.data.article) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(response) {\n vm.article = response.data.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerActionsController', ContentViewerActionsController);\n\n\n /** @ngInject */\n function ContentViewerActionsController(noosfero) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('CmsController', CmsController);\n\n\n /** @ngInject */\n function CmsController(noosfero, $stateParams, $httpParamSerializer, $state, SweetAlert) {\n var vm = this;\n vm.article = {};\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n }\n\n vm.save = function() {\n noosfero.profiles.one(vm.profile.id).customPOST(\n {article: vm.article},\n 'articles',\n {},\n {'Content-Type':'application/json'}\n ).then(function(response) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier});\n SweetAlert.swal({\n title: \"Good job!\",\n text: \"Article saved!\",\n type: \"success\",\n timer: 1000\n });\n });\n }\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile.cms', {\n url: '^/myprofile/:profile/cms',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/cms/cms.html',\n controller: 'CmsController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n })\n .state('main.profile', {\n url: '^/:profile',\n abstract: true,\n views: {\n 'content': {\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.home', {\n url: '',\n views: {\n 'mainBlockContent': {\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n },\n 'actions@main': {\n templateUrl: 'app/content-viewer/navbar-actions.html',\n controller: 'ContentViewerActionsController',\n controllerAs: 'vm'\n }\n }\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider, $provide) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n RestangularProvider.setFullResponse(true);\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n\n $provide.decorator('$uiViewScroll', function ($delegate, $document) {\n return function (uiViewElement) {\n $document.scrollToElementAnimated(uiViewElement);\n };\n });\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/cms/cms.html\",\"<form><div class=\\\"form-group\\\"><label for=\\\"titleInput\\\">Title</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"titleInput\\\" placeholder=\\\"title\\\" ng-model=\\\"vm.article.name\\\"></div><div class=\\\"form-group\\\"><label for=\\\"bodyInput\\\">Text</label> <textarea class=\\\"form-control\\\" id=\\\"bodyInput\\\" rows=\\\"10\\\" ng-model=\\\"vm.article.body\\\"></textarea></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.save()\\\">Save</button></form>\");\n$templateCache.put(\"app/content-viewer/navbar-actions.html\",\"<ul class=\\\"nav navbar-nav navbar-right\\\"><li><a href=\\\"#\\\" role=\\\"button\\\" ui-sref=\\\"main.profile.cms({profile: vm.profile.identifier})\\\"><span class=\\\"fa-stack\\\"><i class=\\\"fa fa-file-o fa-stack-2x\\\"></i> <i class=\\\"fa fa-plus fa-stack-1x\\\"></i></span> New Post</a></li></ul>\");\n$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"content\\\"></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul><div ui-view=\\\"actions\\\"></div></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<timeline><timeline-event ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></timeline-event></timeline>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block {{block.type | lowercase}}\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<timeline-badge class=\\\"success\\\"><i class=\\\"fa fa-file-text\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile.info({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\': true\\\"></div></div></div></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.posts | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\': true\\\"></div></div></div></div><pagination ng-model=\\\"vm.currentPage\\\" total-items=\\\"vm.totalPosts\\\" class=\\\"pagination-sm center-block\\\" boundary-links=\\\"true\\\" items-per-page=\\\"vm.perPage\\\" ng-change=\\\"vm.loadPage()\\\" first-text=\\\"«\\\" last-text=\\\"»\\\" previous-text=\\\"‹\\\" next-text=\\\"›\\\"></pagination></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"mainBlockContent\\\" autoscroll=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/recent-documents/recent-documents.html\",\"<div deckgrid=\\\"\\\" source=\\\"vm.documents\\\" class=\\\"deckgrid\\\"><div class=\\\"a-card panel media\\\" ng-click=\\\"mother.vm.openDocument(card);\\\"><div class=\\\"author media-left\\\" ng-show=\\\"card.author.image\\\"><img ng-src=\\\"{{card.author.image.url}}\\\" class=\\\"img-circle\\\"></div><div class=\\\"header media-body\\\"><h5 class=\\\"title media-heading\\\" ng-bind=\\\"card.title\\\"></h5><div class=\\\"subheader\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"card.created_at\\\"></span></span></div></div><img ng-show=\\\"card.image\\\" ng-src=\\\"{{card.image.url}}\\\" class=\\\"img-responsive article-image\\\"><div class=\\\"post-lead\\\" ng-bind-html=\\\"card.body | stripTags | truncate: 100: \\'...\\': true\\\"></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-20413d4745.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-20413d4745.js"],"names":["angular","module","noosferoProfileImageBlock","ProfileImageBlockController","vm","this","profile","owner","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","article","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","$inject","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","profiles","service","profileId","one","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","$state","AUTH_EVENTS","relativeDate","creationDate","fromNow","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","go","current","reload","$on","loginSuccess","close","logoutSuccess","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","then","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","noosfero","$stateParams","ProfileInfoController","activate","id","get","result","ProfileController","identifier","MainController","ContentViewerController","path","page","articles","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","when","state","resolve","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","set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', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {\n creationDate: '='\n },\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n // \"vm.creation\" is avaible by directive option \"bindToController: true\"\n vm.relativeDate = moment(vm.creationDate).fromNow();\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n if(!vm.currentUser) vm.openLogin();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.profile = profiles[0];\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $urlRouterProvider.when('/:profile', '/profile/:profile');\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: ':profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:.*}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ng-href=\\\"/\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><i ng-if=\\\"!vm.currentUser.person.image\\\" class=\\\"fa fa-user\\\"></i> <img ng-if=\\\"vm.currentUser.person.image\\\" ng-src=\\\"{{vm.currentUser.person.image.url}}\\\" class=\\\"profile-image\\\"> <span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ng-href=\\\"/{{vm.currentUser.person.identifier}}\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ng-href=\\\"/myprofile/{{vm.currentUser.person.identifier}}\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<ul class=\\\"timeline\\\"><li ng-class-even=\\\"\\'timeline-inverted\\'\\\" ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></li></ul>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong> has joined the community</h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<div class=\\\"timeline-badge success\\\"><i class=\\\"fa fa-file-text\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong> has published on community <strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ng-href=\\\"/{{vm.activity.target.article.profile.identifier}}/{{vm.activity.target.article.path}}\\\">{{vm.activity.target.article.title}}</a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-bind-html=\\\"vm.article.body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a ng-href=\\\"/{{vm.profile.identifier}}/{{child.path}}\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center\\\"><div class=\\\"profile-image\\\"><a ng-href=\\\"/{{vm.owner.identifier}}\\\"><img ng-show=\\\"{{vm.owner.image}}\\\" src=\\\"{{vm.owner.image.url}}\\\" class=\\\"img-responsive\\\"> <i ng-show=\\\"{{!vm.owner.image}}\\\" class=\\\"fa fa-users fa-5x\\\"></i></a></div><div class=\\\"admin-link\\\"><a target=\\\"_self\\\" ng-href=\\\"/myprofile/{{vm.owner.identifier}}\\\">Control panel</a></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-235a0cc46e.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-235a0cc46e.js"],"names":["angular","module","noosferoProfileImageBlock","ProfileImageBlockController","vm","this","profile","owner","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoMembersBlock","MembersBlockController","noosfero","members","profiles","one","id","get","per_page","then","result","people","$inject","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","article","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","$state","AUTH_EVENTS","relativeDate","creationDate","fromNow","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","go","current","reload","$on","loginSuccess","close","logoutSuccess","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","activate","ProfileController","identifier","ProfileHomeController","customGET","fields","transitionTo","page","path","location","MainController","ContentViewerController","articles","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","resolve","abstract","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","setBaseUrl","defaults","Content-Type","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,iBAAkB,2BAI3D,WACE,YAOA,SAASC,KAgBP,QAASC,KACP,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAIC,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYV,EACZW,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,4BAA6BN,MA2B5C,WACE,YAOA,SAASc,KAgBP,QAASC,GAAuBC,GAC9B,GAAId,GAAKC,IACTD,GAAGe,WAEHD,EAASC,QAAQD,EAASE,SAASC,IAAIjB,EAAGG,MAAMe,KAAKD,MAAME,KAAKC,SAAU,IAAIC,KAAK,SAASC,GAC1FtB,EAAGe,QAAUO,EAAOC,SApBxBV,EAAuBW,SAAW,WAAlC,IAAIpB,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYI,EACZH,aAAc,KACdC,kBAAk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AQC,OAAO,WAAW2J,KAAK,iBAAkB,SAASoB,GAAiBA,EAAeC,IAAI,+BAA+B,sGAC7HD,EAAeC,IAAI,qBAAqB,qDACxCD,EAAeC,IAAI,2BAA2B,qIAC9CD,EAAeC,IAAI,qCAAqC,2JACxDD,EAAeC,IAAI,iCAAiC,inBACpDD,EAAeC,IAAI,kCAAkC,mKACrDD,EAAeC,IAAI,oCAAoC,2hDACvDD,EAAeC,IAAI,qDAAqD,0MACxED,EAAeC,IAAI,yCAAyC,iYAC5DD,EAAeC,IAAI,2CAA2C,mIAC9DD,EAAeC,IAAI,2DAA2D,sOAC9ED,EAAeC,IAAI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,4eAC9FD,EAAeC,IAAI,kEAAkE,+9BACrFD,EAAeC,IAAI,kEAAkE,0xBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,umBACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,0BAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE","file":"scripts/app-235a0cc46e.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'angular-loading-bar']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(result) {\n vm.members = result.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {\n creationDate: '='\n },\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n // \"vm.creation\" is avaible by directive option \"bindToController: true\"\n vm.relativeDate = moment(vm.creationDate).fromNow();\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n if(!vm.currentUser) vm.openLogin();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.profile = profiles[0];\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(result) {\n if(result.article) {\n $state.transitionTo('main.profile.page', {page: result.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: '/:profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm',\n abstract: true\n })\n .state('main.profile.home', {\n url: '',\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<ul class=\\\"timeline\\\"><li ng-class-even=\\\"\\'timeline-inverted\\'\\\" ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></li></ul>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<div class=\\\"timeline-badge success\\\"><i class=\\\"fa fa-file-text\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-2df6a3ca08.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-2df6a3ca08.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","limit","block","settings","profiles","one","id","get","content_type","per_page","then","response","data","articles","$inject","directive","restrict","templateUrl","scope","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","noosferoBlog","BlogController","posts","perPage","currentPage","loadPage","customGET","totalPosts","headers","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","$q","currentProfile","defer","promise","setCurrentProfile","resolve","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","debug","create","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","ProfileController","ProfileHomeController","fields","transitionTo","location","MainController","ContentViewerController","ContentViewerActionsController","CmsController","$httpParamSerializer","SweetAlert","save","customPOST","Content-Type","swal","title","timer","runBlock","addFullRequestInterceptor","operation","route","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","views","mainBlockContent","abstract","content","actions@main","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","$provide","debugEnabled","html5Mode","enabled","setBaseUrl","setFullResponse","defaults","decorator","$delegate","$document","uiViewElement","scrollToElementAnimated","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,iBAAkB,mBACnC,mBAAoB,WAAY,6BAIxD,WACE,YAOA,SAASC,KAgBP,QAASC,GAA0BC,EAAUC,GAC3C,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAChBH,EAAGI,aAEHJ,EAAGK,aAAe,SAASC,GACzBP,EAAOQ,GAAG,qBAAsBC,KAAMF,EAAQG,KAAMP,QAASI,EAAQJ,QAAQQ,aAG/E,IAAIC,GAAQX,EAAGY,MAAMC,SAASF,OAAS,CAEvCb,GAASgB,SAASC,IAAIf,EAAGE,QAAQc,IAAID,IAAI,YAAYE,KAAKC,aAAc,iBAAkBC,SAAUR,IAAQS,KAAK,SAASC,GACxHrB,EAAGI,UAAYiB,EAASC,KAAKC,WA3BjC1B,EAA0B2B,SAAW,WAAY,SAAjD,IAAIC,IACFC,SAAU,IACVC,YAAa,wEACbC,OACIhB,MAAO,IACPT,MAAO,KAEX0B,WAAYhC,EACZiC,aAAc,KACdC,kBAAkB,EAGpB,OAAON,GAlBT/B,QACGC,OAAO,WACP8B,UAAU,+BAAgC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iBA,EAAeC,IAAI,mBAAmB,4aACjHD,EAAeC,IAAI,yCAAyC,4MAC5DD,EAAeC,IAAI,+BAA+B,sGAClDD,EAAeC,IAAI,qBAAqB,4DACxCD,EAAeC,IAAI,2BAA2B,qIAC9CD,EAAeC,IAAI,qCAAqC,2JACxDD,EAAeC,IAAI,iCAAiC,inBACpDD,EAAeC,IAAI,kCAAkC,mKACrDD,EAAeC,IAAI,oCAAoC,wjDACvDD,EAAeC,IAAI,qDAAqD,uLACxED,EAAeC,IAAI,yCAAyC,4ZAC5DD,EAAeC,IAAI,2CAA2C,mIAC9DD,EAAeC,IAAI,2DAA2D,sOAC9ED,EAAeC,IAAI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,mfAC9FD,EAAeC,IAAI,kEAAkE,s/BACrFD,EAAeC,IAAI,kEAAkE,iyBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,61BACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,wDAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-2df6a3ca08.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline', 'duScroll', 'oitozero.ngSweetAlert']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n var limit = vm.block.settings.limit || 5;\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle', per_page: limit}).then(function(response) {\n vm.documents = response.data.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(response) {\n vm.members = response.data.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController(noosfero) {\n var vm = this;\n vm.posts = [];\n vm.perPage = 3;\n vm.currentPage = 1;\n\n vm.loadPage = function() {\n noosfero.articles.one(vm.article.id).customGET('children', {\n content_type: 'TinyMceArticle',\n per_page: vm.perPage,\n page: vm.currentPage\n }).then(function(response) {\n vm.totalPosts = response.headers('total');\n vm.posts = response.data.articles;\n });\n }\n vm.loadPage();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular, $q) {\n var currentProfile = $q.defer();\n\n return {\n currentProfile: currentProfile.promise,\n setCurrentProfile: function(profile) { currentProfile.resolve(profile) },\n profiles: Restangular.service('profiles'),\n articles: Restangular.service('articles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profiles.one(vm.profile.id).one('activities').get();\n }).then(function(response) {\n vm.activities = response.data.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(response) {\n vm.profile = response.data[0];\n noosfero.setCurrentProfile(vm.profile);\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.data.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'});\n }).then(function(response) {\n if(response.data.article) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page});\n }).then(function(response) {\n vm.article = response.data.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerActionsController', ContentViewerActionsController);\n\n\n /** @ngInject */\n function ContentViewerActionsController(noosfero, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('CmsController', CmsController);\n\n\n /** @ngInject */\n function CmsController(noosfero, $stateParams, $httpParamSerializer, $state, SweetAlert) {\n var vm = this;\n vm.article = {};\n vm.profile = null;\n\n vm.save = function() {\n noosfero.currentProfile.then(function(profile) {\n return noosfero.profiles.one(profile.id).customPOST(\n {article: vm.article},\n 'articles',\n {},\n {'Content-Type':'application/json'}\n )\n }).then(function(response) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: response.data.article.profile.identifier});\n SweetAlert.swal({\n title: \"Good job!\",\n text: \"Article saved!\",\n type: \"success\",\n timer: 1000\n });\n });\n }\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile.cms', {\n url: '^/myprofile/:profile/cms',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/cms/cms.html',\n controller: 'CmsController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n })\n .state('main.profile', {\n url: '^/:profile',\n abstract: true,\n views: {\n 'content': {\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.home', {\n url: '',\n views: {\n 'mainBlockContent': {\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n },\n 'actions@main': {\n templateUrl: 'app/content-viewer/navbar-actions.html',\n controller: 'ContentViewerActionsController',\n controllerAs: 'vm'\n }\n }\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider, $provide) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n RestangularProvider.setFullResponse(true);\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n\n $provide.decorator('$uiViewScroll', function ($delegate, $document) {\n return function (uiViewElement) {\n $document.scrollToElementAnimated(uiViewElement);\n };\n });\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/cms/cms.html\",\"<form><div class=\\\"form-group\\\"><label for=\\\"titleInput\\\">Title</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"titleInput\\\" placeholder=\\\"title\\\" ng-model=\\\"vm.article.name\\\"></div><div class=\\\"form-group\\\"><label for=\\\"bodyInput\\\">Text</label> <textarea class=\\\"form-control\\\" id=\\\"bodyInput\\\" rows=\\\"10\\\" ng-model=\\\"vm.article.body\\\"></textarea></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.save()\\\">Save</button></form>\");\n$templateCache.put(\"app/content-viewer/navbar-actions.html\",\"<ul class=\\\"nav navbar-nav\\\"><li ng-show=\\\"vm.profile\\\"><a href=\\\"#\\\" role=\\\"button\\\" ui-sref=\\\"main.profile.cms({profile: vm.profile.identifier})\\\"><i class=\\\"fa fa-file fa-fw fa-lg\\\"></i> New Post</a></li></ul>\");\n$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"content\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul><div ui-view=\\\"actions\\\"></div></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<timeline><timeline-event ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></timeline-event></timeline>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block {{block.type | lowercase}}\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<timeline-badge class=\\\"success\\\"><i class=\\\"fa fa-file-text\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile.info({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\': true\\\"></div></div></div></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.posts | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\': true\\\"></div></div></div></div><pagination ng-model=\\\"vm.currentPage\\\" total-items=\\\"vm.totalPosts\\\" class=\\\"pagination-sm center-block\\\" boundary-links=\\\"true\\\" items-per-page=\\\"vm.perPage\\\" ng-change=\\\"vm.loadPage()\\\" first-text=\\\"«\\\" last-text=\\\"»\\\" previous-text=\\\"‹\\\" next-text=\\\"›\\\"></pagination></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"mainBlockContent\\\" autoscroll=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/recent-documents/recent-documents.html\",\"<div deckgrid=\\\"\\\" source=\\\"vm.documents\\\" class=\\\"deckgrid\\\"><div class=\\\"a-card panel media\\\" ng-click=\\\"mother.vm.openDocument(card);\\\"><div class=\\\"author media-left\\\" ng-show=\\\"card.author.image\\\"><img ng-src=\\\"{{card.author.image.url}}\\\" class=\\\"img-circle\\\"></div><div class=\\\"header media-body\\\"><h5 class=\\\"title media-heading\\\" ng-bind=\\\"card.title\\\"></h5><div class=\\\"subheader\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"card.created_at\\\"></span></span></div></div><img ng-show=\\\"card.image\\\" ng-src=\\\"{{card.image.url}}\\\" class=\\\"img-responsive article-image\\\"><div class=\\\"post-lead\\\" ng-bind-html=\\\"card.body | stripTags | truncate: 100: \\'...\\': true\\\"></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-33ee2c5596.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-33ee2c5596.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","limit","block","settings","profiles","one","id","get","content_type","per_page","then","response","data","articles","$inject","directive","restrict","templateUrl","scope","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","noosferoBlog","BlogController","posts","perPage","currentPage","loadPage","customGET","totalPosts","headers","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","currentProfile","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","debug","create","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","ProfileController","ProfileHomeController","fields","transitionTo","location","MainController","ContentViewerController","ContentViewerActionsController","CmsController","$httpParamSerializer","SweetAlert","save","customPOST","Content-Type","swal","title","timer","runBlock","addFullRequestInterceptor","operation","route","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","resolve","views","mainBlockContent","abstract","content","actions@main","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","$provide","debugEnabled","html5Mode","enabled","setBaseUrl","setFullResponse","defaults","decorator","$delegate","$document","uiViewElement","scrollToElementAnimated","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,iBAAkB,mBACnC,mBAAoB,WAAY,6BAIxD,WACE,YAOA,SAASC,KAgBP,QAASC,GAA0BC,EAAUC,GAC3C,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAChBH,EAAGI,aAEHJ,EAAGK,aAAe,SAASC,GACzBP,EAAOQ,GAAG,qBAAsBC,KAAMF,EAAQG,KAAMP,QAASI,EAAQJ,QAAQQ,aAG/E,IAAIC,GAAQX,EAAGY,MAAMC,SAASF,OAAS,CAEvCb,GAASgB,SAASC,IAAIf,EAAGE,QAAQc,IAAID,IAAI,YAAYE,KAAKC,aAAc,iBAAkBC,SAAUR,IAAQS,KAAK,SAASC,GACxHrB,EAAGI,UAAYiB,EAASC,KAAKC,WA3BjC1B,EAA0B2B,SAAW,WAAY,SAAjD,IAAIC,IACFC,SAAU,IACVC,YAAa,wEACbC,OACIhB,MAAO,IACPT,MAAO,KAEX0B,WAAYhC,EACZiC,aAAc,KACdC,kBAAkB,EAGpB,OAAON,GAlBT/B,QACGC,OAAO,WACP8B,UAAU,+BAAgC7B,MAsC/C,WACE,YAOA,SAASoC,KAgBP,QAASC,KACP,GAAIjC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAIsB,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIhB,MAAO,IACPT,MAAO,KAEX0B,WAAYI,EACZH,aAAc,KACdC,kBAAkB,EAGpB,OAAON,GAlBT/B,QACGC,OAAO,WACP8B,UAAU,4BAA6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rFD,EAAeC,IAAI,kEAAkE,iyBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,61BACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,wDAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-33ee2c5596.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline', 'duScroll', 'oitozero.ngSweetAlert']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n var limit = vm.block.settings.limit || 5;\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle', per_page: limit}).then(function(response) {\n vm.documents = response.data.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(response) {\n vm.members = response.data.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController(noosfero) {\n var vm = this;\n vm.posts = [];\n vm.perPage = 3;\n vm.currentPage = 1;\n\n vm.loadPage = function() {\n noosfero.articles.one(vm.article.id).customGET('children', {\n content_type: 'TinyMceArticle',\n per_page: vm.perPage,\n page: vm.currentPage\n }).then(function(response) {\n vm.totalPosts = response.headers('total');\n vm.posts = response.data.articles;\n });\n }\n vm.loadPage();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n var currentProfile;\n\n return {\n currentProfile: currentProfile,\n profiles: Restangular.service('profiles'),\n articles: Restangular.service('articles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(response) {\n vm.activities = response.data.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(response) {\n vm.profile = response.data[0];\n noosfero.currentProfile = vm.profile;\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.data.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(response) {\n if(response.data.article) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(response) {\n vm.article = response.data.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerActionsController', ContentViewerActionsController);\n\n\n /** @ngInject */\n function ContentViewerActionsController(noosfero) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('CmsController', CmsController);\n\n\n /** @ngInject */\n function CmsController(noosfero, $stateParams, $httpParamSerializer, $state, SweetAlert) {\n var vm = this;\n vm.article = {};\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n }\n\n vm.save = function() {\n noosfero.profiles.one(vm.profile.id).customPOST(\n {article: vm.article},\n 'articles',\n {},\n {'Content-Type':'application/json'}\n ).then(function(response) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier});\n SweetAlert.swal({\n title: \"Good job!\",\n text: \"Article saved!\",\n type: \"success\",\n timer: 1000\n });\n });\n }\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile.cms', {\n url: '^/myprofile/:profile/cms',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/cms/cms.html',\n controller: 'CmsController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n })\n .state('main.profile', {\n url: '^/:profile',\n abstract: true,\n views: {\n 'content': {\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.home', {\n url: '',\n views: {\n 'mainBlockContent': {\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n },\n 'actions@main': {\n templateUrl: 'app/content-viewer/navbar-actions.html',\n controller: 'ContentViewerActionsController',\n controllerAs: 'vm'\n }\n }\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider, $provide) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n RestangularProvider.setFullResponse(true);\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n\n $provide.decorator('$uiViewScroll', function ($delegate, $document) {\n return function (uiViewElement) {\n $document.scrollToElementAnimated(uiViewElement);\n };\n });\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/cms/cms.html\",\"<form><div class=\\\"form-group\\\"><label for=\\\"titleInput\\\">Title</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"titleInput\\\" placeholder=\\\"title\\\" ng-model=\\\"vm.article.name\\\"></div><div class=\\\"form-group\\\"><label for=\\\"bodyInput\\\">Text</label> <textarea class=\\\"form-control\\\" id=\\\"bodyInput\\\" rows=\\\"10\\\" ng-model=\\\"vm.article.body\\\"></textarea></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.save()\\\">Save</button></form>\");\n$templateCache.put(\"app/content-viewer/navbar-actions.html\",\"<ul class=\\\"nav navbar-nav navbar-right\\\"><li><a href=\\\"#\\\" role=\\\"button\\\" ui-sref=\\\"main.profile.cms({profile: vm.profile.identifier})\\\"><span class=\\\"fa-stack\\\"><i class=\\\"fa fa-file-o fa-stack-2x\\\"></i> <i class=\\\"fa fa-plus fa-stack-1x\\\"></i></span> New Post</a></li></ul>\");\n$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"content\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul><div ui-view=\\\"actions\\\"></div></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<timeline><timeline-event ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></timeline-event></timeline>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block {{block.type | lowercase}}\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<timeline-badge class=\\\"success\\\"><i class=\\\"fa fa-file-text\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile.info({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\': true\\\"></div></div></div></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.posts | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\': true\\\"></div></div></div></div><pagination ng-model=\\\"vm.currentPage\\\" total-items=\\\"vm.totalPosts\\\" class=\\\"pagination-sm center-block\\\" boundary-links=\\\"true\\\" items-per-page=\\\"vm.perPage\\\" ng-change=\\\"vm.loadPage()\\\" first-text=\\\"«\\\" last-text=\\\"»\\\" previous-text=\\\"‹\\\" next-text=\\\"›\\\"></pagination></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"mainBlockContent\\\" autoscroll=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/recent-documents/recent-documents.html\",\"<div deckgrid=\\\"\\\" source=\\\"vm.documents\\\" class=\\\"deckgrid\\\"><div class=\\\"a-card panel media\\\" ng-click=\\\"mother.vm.openDocument(card);\\\"><div class=\\\"author media-left\\\" ng-show=\\\"card.author.image\\\"><img ng-src=\\\"{{card.author.image.url}}\\\" class=\\\"img-circle\\\"></div><div class=\\\"header media-body\\\"><h5 class=\\\"title media-heading\\\" ng-bind=\\\"card.title\\\"></h5><div class=\\\"subheader\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"card.created_at\\\"></span></span></div></div><img ng-show=\\\"card.image\\\" ng-src=\\\"{{card.image.url}}\\\" class=\\\"img-responsive article-image\\\"><div class=\\\"post-lead\\\" ng-bind-html=\\\"card.body | stripTags | truncate: 100: \\'...\\': true\\\"></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-4315228579.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-4315228579.js"],"names":["angular","module","noosferoProfileImageBlock","ProfileImageBlockController","vm","this","profile","owner","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoMembersBlock","MembersBlockController","noosfero","members","profiles","one","id","get","then","result","people","$inject","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","article","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","$state","AUTH_EVENTS","relativeDate","creationDate","fromNow","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","go","current","reload","$on","loginSuccess","close","logoutSuccess","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","activate","ProfileController","identifier","MainController","ContentViewerController","path","page","articles","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","when","state","resolve","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","setBaseUrl","defaults","Content-Type","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,sBAIzC,WACE,YAOA,SAASC,KAgBP,QAASC,KACP,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAIC,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYV,EACZW,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,4BAA6BN,MA2B5C,WACE,YAOA,SAASc,KAgBP,QAASC,GAAuBC,GAC9B,GAAId,GAAKC,IACTD,GAAGe,WAEHD,EAASC,QAAQD,EAASE,SAASC,IAAIjB,EAAGG,MAAMe,KAAKD,MAAME,MAAMC,KAAK,SAASC,GAC7ErB,EAAGe,QAAUM,EAAOC,SApBxBT,EAAuBU,SAAW,WAAlC,IAAInB,IAC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,wDAAwD,kjBAC3ED,EAAeC,IAAI,kDAAkD,+iBACrED,EAAeC,IAAI,0DAA0D,6MAC7ED,EAAeC,IAAI,4DAA4D,0BAC/ED,EAAeC,IAAI,kEAAkE,oMACrFD,EAAeC,IAAI,kEAAkE","file":"scripts/app-4315228579.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get().then(function(result) {\n vm.members = result.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {\n creationDate: '='\n },\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n // \"vm.creation\" is avaible by directive option \"bindToController: true\"\n vm.relativeDate = moment(vm.creationDate).fromNow();\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n if(!vm.currentUser) vm.openLogin();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.profile = profiles[0];\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $urlRouterProvider.when('/:profile', '/profile/:profile');\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: ':profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<ul class=\\\"timeline\\\"><li ng-class-even=\\\"\\'timeline-inverted\\'\\\" ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></li></ul>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x\\\"></i>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<div class=\\\"timeline-badge success\\\"><i class=\\\"fa fa-file-text\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"asdasd\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center\\\"><div class=\\\"profile-image\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a></div><div class=\\\"admin-link\\\"><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-4ea7bc019a.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-4ea7bc019a.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","limit","block","settings","profiles","one","id","get","content_type","per_page","then","response","data","articles","$inject","directive","restrict","templateUrl","scope","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","noosferoBlog","BlogController","posts","perPage","currentPage","loadPage","customGET","totalPosts","headers","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","$q","currentProfile","defer","promise","setCurrentProfile","resolve","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","debug","create","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","ProfileController","ProfileHomeController","fields","transitionTo","location","MainController","ContentViewerController","ContentViewerActionsController","CmsController","$httpParamSerializer","SweetAlert","save","customPOST","Content-Type","swal","title","timer","runBlock","addFullRequestInterceptor","operation","route","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","views","mainBlockContent","abstract","content","actions@main","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","$provide","debugEnabled","html5Mode","enabled","setBaseUrl","setFullResponse","defaults","decorator","$delegate","$document","uiViewElement","scrollToElementAnimated","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,iBAAkB,mBACnC,mBAAoB,WAAY,6BAIxD,WACE,YAOA,SAASC,KAgBP,QAASC,GAA0BC,EAAUC,GAC3C,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAChBH,EAAGI,aAEHJ,EAAGK,aAAe,SAASC,GACzBP,EAAOQ,GAAG,qBAAsBC,KAAMF,EAAQG,KAAMP,QAASI,EAAQJ,QAAQQ,aAG/E,IAAIC,GAAQX,EAAGY,MAAMC,SAASF,OAAS,CAEvCb,GAASgB,SAASC,IAAIf,EAAGE,QAAQc,IAAID,IAAI,YAAYE,KAAKC,aAAc,iBAAkBC,SAAUR,IAAQS,KAAK,SAASC,GACxHrB,EAAGI,UAAYiB,EAASC,KAAKC,WA3BjC1B,EAA0B2B,SAAW,WAAY,SAAjD,IAAIC,IACFC,SAAU,IACVC,YAAa,wEACbC,OACIhB,MAAO,IACPT,MAAO,KAEX0B,WAAYhC,EACZiC,aAAc,KACdC,kBAAkB,EAGpB,OAAON,GAlBT/B,QACGC,OAAO,WACP8B,UAAU,+BAAgC7B,MAsC/C,WACE,YAOA,SAASoC,KAgBP,QAASC,KACP,GAAIjC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAIsB,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIhB,MAAO,IACPT,MAAO,KAEX0B,WAAYI,EACZH,aAAc,KACdC,kBAAkB,EAGpB,OAAON,GAlBT/B,QACGC,OAAO,WACP8B,UAAU,4BAA6BO,MA2B5C,WACE,YAQA,SAASE,KAeP,QAASC,GAAuBrC,GAC9B,GAAIE,GAAKC,IACTD,GAAGoC,WAEHtC,EAASsC,QAAQtC,EAASgB,SAASC,IAAIf,EAAGG,MAAMa,KAAKD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AI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,mfAC9FD,EAAeC,IAAI,kEAAkE,s/BACrFD,EAAeC,IAAI,kEAAkE,iyBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,61BACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,wDAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-4ea7bc019a.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline', 'duScroll', 'oitozero.ngSweetAlert']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n var limit = vm.block.settings.limit || 5;\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle', per_page: limit}).then(function(response) {\n vm.documents = response.data.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(response) {\n vm.members = response.data.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController(noosfero) {\n var vm = this;\n vm.posts = [];\n vm.perPage = 3;\n vm.currentPage = 1;\n\n vm.loadPage = function() {\n noosfero.articles.one(vm.article.id).customGET('children', {\n content_type: 'TinyMceArticle',\n per_page: vm.perPage,\n page: vm.currentPage\n }).then(function(response) {\n vm.totalPosts = response.headers('total');\n vm.posts = response.data.articles;\n });\n }\n vm.loadPage();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular, $q) {\n var currentProfile = $q.defer();\n\n return {\n currentProfile: currentProfile.promise,\n setCurrentProfile: function(profile) { currentProfile.resolve(profile) },\n profiles: Restangular.service('profiles'),\n articles: Restangular.service('articles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profiles.one(vm.profile.id).one('activities').get();\n }).then(function(response) {\n vm.activities = response.data.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(response) {\n vm.profile = response.data[0];\n noosfero.setCurrentProfile(vm.profile);\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.data.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'});\n }).then(function(response) {\n if(response.data.article) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page});\n }).then(function(response) {\n vm.article = response.data.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerActionsController', ContentViewerActionsController);\n\n\n /** @ngInject */\n function ContentViewerActionsController(noosfero, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('CmsController', CmsController);\n\n\n /** @ngInject */\n function CmsController(noosfero, $stateParams, $httpParamSerializer, $state, SweetAlert) {\n var vm = this;\n vm.article = {};\n vm.profile = null;\n\n vm.save = function() {\n noosfero.currentProfile.then(function(profile) {\n return noosfero.profiles.one(profile.id).customPOST(\n {article: vm.article},\n 'articles',\n {},\n {'Content-Type':'application/json'}\n )\n }).then(function(response) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: response.data.article.profile.identifier});\n SweetAlert.swal({\n title: \"Good job!\",\n text: \"Article saved!\",\n type: \"success\",\n timer: 1000\n });\n });\n }\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile.cms', {\n url: '^/myprofile/:profile/cms',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/cms/cms.html',\n controller: 'CmsController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n })\n .state('main.profile', {\n url: '^/:profile',\n abstract: true,\n views: {\n 'content': {\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.home', {\n url: '',\n views: {\n 'mainBlockContent': {\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n },\n 'actions@main': {\n templateUrl: 'app/content-viewer/navbar-actions.html',\n controller: 'ContentViewerActionsController',\n controllerAs: 'vm'\n }\n }\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider, $provide) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n RestangularProvider.setFullResponse(true);\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n\n $provide.decorator('$uiViewScroll', function ($delegate, $document) {\n return function (uiViewElement) {\n $document.scrollToElementAnimated(uiViewElement);\n };\n });\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/cms/cms.html\",\"<form><div class=\\\"form-group\\\"><label for=\\\"titleInput\\\">Title</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"titleInput\\\" placeholder=\\\"title\\\" ng-model=\\\"vm.article.name\\\"></div><div class=\\\"form-group\\\"><label for=\\\"bodyInput\\\">Text</label> <textarea class=\\\"form-control\\\" id=\\\"bodyInput\\\" rows=\\\"10\\\" ng-model=\\\"vm.article.body\\\"></textarea></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.save()\\\">Save</button></form>\");\n$templateCache.put(\"app/content-viewer/navbar-actions.html\",\"<ul class=\\\"nav navbar-nav\\\"><li ng-show=\\\"vm.profile\\\"><a href=\\\"#\\\" role=\\\"button\\\" ui-sref=\\\"main.profile.cms({profile: vm.profile.identifier})\\\"><i class=\\\"fa fa-file fa-fw fa-lg\\\"></i> New Post</a></li></ul>\");\n$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"content\\\"></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul><div ui-view=\\\"actions\\\"></div></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<timeline><timeline-event ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></timeline-event></timeline>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block {{block.type | lowercase}}\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<timeline-badge class=\\\"success\\\"><i class=\\\"fa fa-file-text\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile.info({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\': true\\\"></div></div></div></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.posts | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\': true\\\"></div></div></div></div><pagination ng-model=\\\"vm.currentPage\\\" total-items=\\\"vm.totalPosts\\\" class=\\\"pagination-sm center-block\\\" boundary-links=\\\"true\\\" items-per-page=\\\"vm.perPage\\\" ng-change=\\\"vm.loadPage()\\\" first-text=\\\"«\\\" last-text=\\\"»\\\" previous-text=\\\"‹\\\" next-text=\\\"›\\\"></pagination></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"mainBlockContent\\\" autoscroll=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/recent-documents/recent-documents.html\",\"<div deckgrid=\\\"\\\" source=\\\"vm.documents\\\" class=\\\"deckgrid\\\"><div class=\\\"a-card panel media\\\" ng-click=\\\"mother.vm.openDocument(card);\\\"><div class=\\\"author media-left\\\" ng-show=\\\"card.author.image\\\"><img ng-src=\\\"{{card.author.image.url}}\\\" class=\\\"img-circle\\\"></div><div class=\\\"header media-body\\\"><h5 class=\\\"title media-heading\\\" ng-bind=\\\"card.title\\\"></h5><div class=\\\"subheader\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"card.created_at\\\"></span></span></div></div><img ng-show=\\\"card.image\\\" ng-src=\\\"{{card.image.url}}\\\" class=\\\"img-responsive article-image\\\"><div class=\\\"post-lead\\\" ng-bind-html=\\\"card.body | stripTags | truncate: 100: \\'...\\': true\\\"></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-4f91218fdf.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-4f91218fdf.js"],"names":["angular","module","noosferoProfileImageBlock","ProfileImageBlockController","vm","this","profile","owner","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoMembersBlock","MembersBlockController","noosfero","members","profiles","one","id","get","then","result","people","$inject","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","article","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","$state","AUTH_EVENTS","relativeDate","creationDate","fromNow","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","go","current","reload","$on","loginSuccess","close","logoutSuccess","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","activate","ProfileController","identifier","MainController","ContentViewerController","path","page","articles","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","when","state","resolve","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","setBaseUrl","defaults","Content-Type","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,sBAIzC,WACE,YAOA,SAASC,KAgBP,QAASC,KACP,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAIC,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYV,EACZW,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,4BAA6BN,MA2B5C,WACE,YAOA,SAASc,KAgBP,QAASC,GAAuBC,GAC9B,GAAId,GAAKC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AC9DD,EAAeC,IAAI,2DAA2D,iKAC9ED,EAAeC,IAAI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,4eAC9FD,EAAeC,IAAI,kEAAkE,+9BACrFD,EAAeC,IAAI,wDAAwD,kjBAC3ED,EAAeC,IAAI,kDAAkD,+iBACrED,EAAeC,IAAI,0DAA0D,6MAC7ED,EAAeC,IAAI,4DAA4D,0BAC/ED,EAAeC,IAAI,kEAAkE,oMACrFD,EAAeC,IAAI,kEAAkE","file":"scripts/app-4f91218fdf.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get().then(function(result) {\n vm.members = result.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {\n creationDate: '='\n },\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n // \"vm.creation\" is avaible by directive option \"bindToController: true\"\n vm.relativeDate = moment(vm.creationDate).fromNow();\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n if(!vm.currentUser) vm.openLogin();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.profile = profiles[0];\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $urlRouterProvider.when('/:profile', '/profile/:profile');\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: ':profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<ul class=\\\"timeline\\\"><li ng-class-even=\\\"\\'timeline-inverted\\'\\\" ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></li></ul>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x\\\"></i>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<div class=\\\"timeline-badge success\\\"><i class=\\\"fa fa-file-text\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center\\\"><div class=\\\"profile-image\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a></div><div class=\\\"admin-link\\\"><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-51820e297f.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-51820e297f.js"],"names":["angular","module","noosferoProfileImageBlock","ProfileImageBlockController","vm","this","profile","owner","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoMembersBlock","MembersBlockController","noosfero","members","profiles","one","id","get","per_page","then","result","people","$inject","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","article","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","$state","AUTH_EVENTS","relativeDate","creationDate","fromNow","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","go","current","reload","$on","loginSuccess","close","logoutSuccess","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","activate","ProfileController","identifier","MainController","ContentViewerController","path","page","articles","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","when","state","resolve","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","setBaseUrl","defaults","Content-Type","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,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QC,OAAO,WAAWsJ,KAAK,iBAAkB,SAASoB,GAAiBA,EAAeC,IAAI,+BAA+B,sGAC7HD,EAAeC,IAAI,qBAAqB,qDACxCD,EAAeC,IAAI,2BAA2B,qIAC9CD,EAAeC,IAAI,qCAAqC,2JACxDD,EAAeC,IAAI,iCAAiC,inBACpDD,EAAeC,IAAI,kCAAkC,mKACrDD,EAAeC,IAAI,oCAAoC,2hDACvDD,EAAeC,IAAI,qDAAqD,0MACxED,EAAeC,IAAI,yCAAyC,iYAC5DD,EAAeC,IAAI,2CAA2C,mIAC9DD,EAAeC,IAAI,2DAA2D,sOAC9ED,EAAeC,IAAI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,4eAC9FD,EAAeC,IAAI,kEAAkE,+9BACrFD,EAAeC,IAAI,kEAAkE,0xBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,umBACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,0BAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE","file":"scripts/app-51820e297f.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(result) {\n vm.members = result.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {\n creationDate: '='\n },\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n // \"vm.creation\" is avaible by directive option \"bindToController: true\"\n vm.relativeDate = moment(vm.creationDate).fromNow();\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n if(!vm.currentUser) vm.openLogin();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.profile = profiles[0];\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $urlRouterProvider.when('/:profile', '/profile/:profile');\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: ':profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<ul class=\\\"timeline\\\"><li ng-class-even=\\\"\\'timeline-inverted\\'\\\" ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></li></ul>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<div class=\\\"timeline-badge success\\\"><i class=\\\"fa fa-file-text\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-569ec75b3c.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-569ec75b3c.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","limit","block","settings","profiles","one","id","get","content_type","per_page","then","response","data","articles","$inject","directive","restrict","templateUrl","scope","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","noosferoBlog","BlogController","posts","perPage","currentPage","loadPage","customGET","totalPosts","headers","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","$q","currentProfile","defer","promise","setCurrentProfile","resolve","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","debug","create","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","ProfileController","ProfileHomeController","fields","transitionTo","location","MainController","ContentViewerController","ContentViewerActionsController","CmsController","$httpParamSerializer","SweetAlert","save","customPOST","Content-Type","swal","title","timer","runBlock","addFullRequestInterceptor","operation","route","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","views","mainBlockContent","abstract","content","actions@main","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","$provide","debugEnabled","html5Mode","enabled","setBaseUrl","setFullResponse","defaults","decorator","$delegate","$document","uiViewElement","scrollToElementAnimated","$templateC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AAeC,IAAI,2EAA2E,mfAC9FD,EAAeC,IAAI,kEAAkE,s/BACrFD,EAAeC,IAAI,kEAAkE,iyBACrFD,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,wDAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-569ec75b3c.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline', 'duScroll', 'oitozero.ngSweetAlert']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n var limit = vm.block.settings.limit || 5;\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle', per_page: limit}).then(function(response) {\n vm.documents = response.data.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(response) {\n vm.members = response.data.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController(noosfero) {\n var vm = this;\n vm.posts = [];\n vm.perPage = 3;\n vm.currentPage = 1;\n\n vm.loadPage = function() {\n noosfero.articles.one(vm.article.id).customGET('children', {\n content_type: 'TinyMceArticle',\n per_page: vm.perPage,\n page: vm.currentPage\n }).then(function(response) {\n vm.totalPosts = response.headers('total');\n vm.posts = response.data.articles;\n });\n }\n vm.loadPage();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular, $q) {\n var currentProfile = $q.defer();\n\n return {\n currentProfile: currentProfile.promise,\n setCurrentProfile: function(profile) { currentProfile.resolve(profile) },\n profiles: Restangular.service('profiles'),\n articles: Restangular.service('articles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profiles.one(vm.profile.id).one('activities').get();\n }).then(function(response) {\n vm.activities = response.data.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(response) {\n vm.profile = response.data[0];\n noosfero.setCurrentProfile(vm.profile);\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.data.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'});\n }).then(function(response) {\n if(response.data.article) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page});\n }).then(function(response) {\n vm.article = response.data.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerActionsController', ContentViewerActionsController);\n\n\n /** @ngInject */\n function ContentViewerActionsController(noosfero) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('CmsController', CmsController);\n\n\n /** @ngInject */\n function CmsController(noosfero, $stateParams, $httpParamSerializer, $state, SweetAlert) {\n var vm = this;\n vm.article = {};\n vm.profile = null;\n\n vm.save = function() {\n noosfero.currentProfile.then(function(profile) {\n return noosfero.profiles.one(profile.id).customPOST(\n {article: vm.article},\n 'articles',\n {},\n {'Content-Type':'application/json'}\n )\n }).then(function(response) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: response.data.article.profile.identifier});\n SweetAlert.swal({\n title: \"Good job!\",\n text: \"Article saved!\",\n type: \"success\",\n timer: 1000\n });\n });\n }\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile.cms', {\n url: '^/myprofile/:profile/cms',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/cms/cms.html',\n controller: 'CmsController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n })\n .state('main.profile', {\n url: '^/:profile',\n abstract: true,\n views: {\n 'content': {\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.home', {\n url: '',\n views: {\n 'mainBlockContent': {\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n },\n 'actions@main': {\n templateUrl: 'app/content-viewer/navbar-actions.html',\n controller: 'ContentViewerActionsController',\n controllerAs: 'vm'\n }\n }\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider, $provide) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n RestangularProvider.setFullResponse(true);\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n\n $provide.decorator('$uiViewScroll', function ($delegate, $document) {\n return function (uiViewElement) {\n $document.scrollToElementAnimated(uiViewElement);\n };\n });\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/cms/cms.html\",\"<form><div class=\\\"form-group\\\"><label for=\\\"titleInput\\\">Title</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"titleInput\\\" placeholder=\\\"title\\\" ng-model=\\\"vm.article.name\\\"></div><div class=\\\"form-group\\\"><label for=\\\"bodyInput\\\">Text</label> <textarea class=\\\"form-control\\\" id=\\\"bodyInput\\\" rows=\\\"10\\\" ng-model=\\\"vm.article.body\\\"></textarea></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.save()\\\">Save</button></form>\");\n$templateCache.put(\"app/content-viewer/navbar-actions.html\",\"<ul class=\\\"nav navbar-nav\\\"><li ng-show=\\\"vm.profile\\\"><a href=\\\"#\\\" role=\\\"button\\\" ui-sref=\\\"main.profile.cms({profile: vm.profile.identifier})\\\"><i class=\\\"fa fa-file fa-fw fa-lg\\\"></i> New Post</a></li></ul>\");\n$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"content\\\"></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul><div ui-view=\\\"actions\\\"></div></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<timeline><timeline-event ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></timeline-event></timeline>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block {{block.type | lowercase}}\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.posts | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\': true\\\"></div></div></div></div><pagination ng-model=\\\"vm.currentPage\\\" total-items=\\\"vm.totalPosts\\\" class=\\\"pagination-sm center-block\\\" boundary-links=\\\"true\\\" items-per-page=\\\"vm.perPage\\\" ng-change=\\\"vm.loadPage()\\\" first-text=\\\"«\\\" last-text=\\\"»\\\" previous-text=\\\"‹\\\" next-text=\\\"›\\\"></pagination></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<timeline-badge class=\\\"success\\\"><i class=\\\"fa fa-file-text\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile.info({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\': true\\\"></div></div></div></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"mainBlockContent\\\" autoscroll=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/recent-documents/recent-documents.html\",\"<div deckgrid=\\\"\\\" source=\\\"vm.documents\\\" class=\\\"deckgrid\\\"><div class=\\\"a-card panel media\\\" ng-click=\\\"mother.vm.openDocument(card);\\\"><div class=\\\"author media-left\\\" ng-show=\\\"card.author.image\\\"><img ng-src=\\\"{{card.author.image.url}}\\\" class=\\\"img-circle\\\"></div><div class=\\\"header media-body\\\"><h5 class=\\\"title media-heading\\\" ng-bind=\\\"card.title\\\"></h5><div class=\\\"subheader\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"card.created_at\\\"></span></span></div></div><img ng-show=\\\"card.image\\\" ng-src=\\\"{{card.image.url}}\\\" class=\\\"img-responsive article-image\\\"><div class=\\\"post-lead\\\" ng-bind-html=\\\"card.body | stripTags | truncate: 100: \\'...\\': true\\\"></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-62e868d8fa.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-62e868d8fa.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","limit","block","settings","profiles","one","id","get","content_type","per_page","then","response","data","articles","$inject","directive","restrict","templateUrl","scope","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","noosferoBlog","BlogController","posts","perPage","currentPage","loadPage","customGET","totalPosts","headers","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","currentProfile","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","debug","create","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","ProfileController","ProfileHomeController","fields","transitionTo","location","MainController","ContentViewerController","ContentViewerActionsController","CmsController","$httpParamSerializer","SweetAlert","save","customPOST","Content-Type","swal","title","timer","runBlock","addFullRequestInterceptor","operation","route","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","resolve","views","mainBlockContent","abstract","content","actions@main","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","$provide","debugEnabled","html5Mode","enabled","setBaseUrl","setFullResponse","defaults","decorator","$delegate","$document","uiViewElement","scrollToElementAnimated","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,iBAAkB,mBACnC,mBAAoB,WAAY,6BAIxD,WACE,YAOA,SAASC,KAgBP,QAASC,GAA0BC,EAAUC,GAC3C,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAChBH,EAAGI,aAEHJ,EAAGK,aAAe,SAASC,GACzBP,EAAOQ,GAAG,qBAAsBC,KAAMF,EAAQG,KAAMP,QAASI,EAAQJ,QAAQQ,aAG/E,IAAIC,GAAQX,EAAGY,MAAMC,SAASF,OAAS,CAEvCb,GAASgB,SAASC,IAAIf,EAAGE,QAAQc,IAA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ACvD,MAAO,UAAUC,GACfD,EAAUE,wBAAwBD,OAGxChB,EAAO5J,SAAW,eAAgB,oBAAqB,sBAAuB,gBAAiB,YAjB/F9B,QACGC,OAAO,WACPyL,OAAOA,MAmBZ1L,QAAQC,OAAO,WAAW6K,KAAK,iBAAkB,SAAS8B,GAAiBA,EAAeC,IAAI,mBAAmB,4aACjHD,EAAeC,IAAI,yCAAyC,2QAC5DD,EAAeC,IAAI,+BAA+B,sGAClDD,EAAeC,IAAI,2BAA2B,qIAC9CD,EAAeC,IAAI,qBAAqB,4DACxCD,EAAeC,IAAI,qCAAqC,2JACxDD,EAAeC,IAAI,iCAAiC,inBACpDD,EAAeC,IAAI,kCAAkC,mKACrDD,EAAeC,IAAI,oCAAoC,wjDACvDD,EAAeC,IAAI,qDAAqD,uLACxED,EAAeC,IAAI,yCAAyC,4ZAC5DD,EAAeC,IAAI,2CAA2C,mIAC9DD,EAAeC,IAAI,2DAA2D,sOAC9ED,EAAeC,IAAI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,mfAC9FD,EAAeC,IAAI,kEAAkE,s/BACrFD,EAAeC,IAAI,kEAAkE,iyBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,61BACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,wDAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-62e868d8fa.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline', 'duScroll', 'oitozero.ngSweetAlert']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n var limit = vm.block.settings.limit || 5;\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle', per_page: limit}).then(function(response) {\n vm.documents = response.data.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(response) {\n vm.members = response.data.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController(noosfero) {\n var vm = this;\n vm.posts = [];\n vm.perPage = 3;\n vm.currentPage = 1;\n\n vm.loadPage = function() {\n noosfero.articles.one(vm.article.id).customGET('children', {\n content_type: 'TinyMceArticle',\n per_page: vm.perPage,\n page: vm.currentPage\n }).then(function(response) {\n vm.totalPosts = response.headers('total');\n vm.posts = response.data.articles;\n });\n }\n vm.loadPage();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n var currentProfile;\n\n return {\n currentProfile: currentProfile,\n profiles: Restangular.service('profiles'),\n articles: Restangular.service('articles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(response) {\n vm.activities = response.data.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(response) {\n vm.profile = response.data[0];\n noosfero.currentProfile = vm.profile;\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.data.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(response) {\n if(response.data.article) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(response) {\n vm.article = response.data.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerActionsController', ContentViewerActionsController);\n\n\n /** @ngInject */\n function ContentViewerActionsController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('CmsController', CmsController);\n\n\n /** @ngInject */\n function CmsController(noosfero, $stateParams, $httpParamSerializer, $state, SweetAlert) {\n var vm = this;\n vm.article = {};\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n }\n\n vm.save = function() {\n noosfero.profiles.one(vm.profile.id).customPOST(\n {article: vm.article},\n 'articles',\n {},\n {'Content-Type':'application/json'}\n ).then(function(response) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier});\n SweetAlert.swal({\n title: \"Good job!\",\n text: \"Article saved!\",\n type: \"success\",\n timer: 1000\n });\n });\n }\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile.cms', {\n url: '^/myprofile/:profile/cms',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/cms/cms.html',\n controller: 'CmsController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n })\n .state('main.profile', {\n url: '^/:profile',\n abstract: true,\n views: {\n 'content': {\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.home', {\n url: '',\n views: {\n 'mainBlockContent': {\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n },\n 'actions@main': {\n templateUrl: 'app/content-viewer/navbar-actions.html',\n controller: 'ContentViewerActionsController',\n controllerAs: 'vm'\n }\n }\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider, $provide) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n RestangularProvider.setFullResponse(true);\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n\n $provide.decorator('$uiViewScroll', function ($delegate, $document) {\n return function (uiViewElement) {\n $document.scrollToElementAnimated(uiViewElement);\n };\n });\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/cms/cms.html\",\"<form><div class=\\\"form-group\\\"><label for=\\\"titleInput\\\">Title</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"titleInput\\\" placeholder=\\\"title\\\" ng-model=\\\"vm.article.name\\\"></div><div class=\\\"form-group\\\"><label for=\\\"bodyInput\\\">Text</label> <textarea class=\\\"form-control\\\" id=\\\"bodyInput\\\" rows=\\\"10\\\" ng-model=\\\"vm.article.body\\\"></textarea></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.save()\\\">Save</button></form>\");\n$templateCache.put(\"app/content-viewer/navbar-actions.html\",\"<ul class=\\\"nav navbar-nav navbar-right\\\"><li><a href=\\\"#\\\" role=\\\"button\\\" ui-sref=\\\"main.profile.cms({profile: vm.profile.identifier})\\\"><span class=\\\"fa-stack\\\"><i class=\\\"fa fa-file-o fa-stack-2x\\\"></i> <i class=\\\"fa fa-plus fa-stack-1x\\\"></i></span> New Post</a></li></ul>\");\n$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"content\\\"></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul><div ui-view=\\\"actions\\\"></div></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<timeline><timeline-event ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></timeline-event></timeline>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block {{block.type | lowercase}}\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<timeline-badge class=\\\"success\\\"><i class=\\\"fa fa-file-text\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile.info({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\': true\\\"></div></div></div></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.posts | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\': true\\\"></div></div></div></div><pagination ng-model=\\\"vm.currentPage\\\" total-items=\\\"vm.totalPosts\\\" class=\\\"pagination-sm center-block\\\" boundary-links=\\\"true\\\" items-per-page=\\\"vm.perPage\\\" ng-change=\\\"vm.loadPage()\\\" first-text=\\\"«\\\" last-text=\\\"»\\\" previous-text=\\\"‹\\\" next-text=\\\"›\\\"></pagination></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"mainBlockContent\\\" autoscroll=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/recent-documents/recent-documents.html\",\"<div deckgrid=\\\"\\\" source=\\\"vm.documents\\\" class=\\\"deckgrid\\\"><div class=\\\"a-card panel media\\\" ng-click=\\\"mother.vm.openDocument(card);\\\"><div class=\\\"author media-left\\\" ng-show=\\\"card.author.image\\\"><img ng-src=\\\"{{card.author.image.url}}\\\" class=\\\"img-circle\\\"></div><div class=\\\"header media-body\\\"><h5 class=\\\"title media-heading\\\" ng-bind=\\\"card.title\\\"></h5><div class=\\\"subheader\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"card.created_at\\\"></span></span></div></div><img ng-show=\\\"card.image\\\" ng-src=\\\"{{card.image.url}}\\\" class=\\\"img-responsive article-image\\\"><div class=\\\"post-lead\\\" ng-bind-html=\\\"card.body | stripTags | truncate: 100: \\'...\\': true\\\"></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-6b2da25dcb.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-6b2da25dcb.js"],"names":["angular","module","noosferoProfileImageBlock","ProfileImageBlockController","vm","this","profile","owner","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoMembersBlock","MembersBlockController","noosfero","members","profiles","one","id","get","per_page","then","result","people","$inject","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","article","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","$state","AUTH_EVENTS","relativeDate","creationDate","fromNow","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","go","current","reload","$on","loginSuccess","close","logoutSuccess","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","activate","ProfileController","identifier","MainController","ContentViewerController","path","page","articles","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","when","state","resolve","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","setBaseUrl","defaults","Content-Type","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,sBAIzC,WACE,YAOA,SAASC,KAgBP,QAASC,KACP,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAIC,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYV,EACZW,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,4BAA6BN,MA2B5C,WACE,YAOA,SAASc,KAgBP,QAASC,GAAuBC,GAC9B,GAAId,GAAKC,IACTD,GAAGe,WAEHD,EAASC,QAAQD,EAASE,SAASC,IAAIjB,EAAGG,MAAMe,KAAKD,MAAME,KAAKC,SAAU,IAAIC,KAAK,SAASC,GAC1FtB,EAAGe,QAAUO,EAAOC,SApBxBV,EAAuBW,SAAW,WAAlC,IAAIpB,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYI,EACZH,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,uBAAwBQ,MA+BvC,WACE,YAOA,SAASa,KAgBP,QAASC,MAfT,GAAItB,IACFC,SAAU,IACVC,YAAa,4DACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYiB,EACZhB,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,oBAAqBqB,MAyBpC,WACE,YAOA,SAASE,KAgBP,QAASC,KACP,GAAI5B,GAAKC,IACTD,GAAG6B,MAAQ7B,EAAGQ,MAAMsB,SAASD,MAjB/B,GAAI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AAqBC,GACpEH,EAAaI,cAAa,GAC1BH,EAAkBI,WAAWC,SAAS,IACtCJ,EAAoBK,WAAW,WAC/BJ,EAAcK,SAASpB,QAAQrC,MAAQ0D,eAAgB,oDAGzDX,EAAOnI,SAAW,eAAgB,oBAAqB,sBAAuB,iBAZ9E5B,QACGC,OAAO,WACP8J,OAAOA,MAYZ/J,QAAQC,OAAO,WAAWsJ,KAAK,iBAAkB,SAASoB,GAAiBA,EAAeC,IAAI,+BAA+B,sGAC7HD,EAAeC,IAAI,qBAAqB,qDACxCD,EAAeC,IAAI,qCAAqC,2JACxDD,EAAeC,IAAI,2BAA2B,qIAC9CD,EAAeC,IAAI,iCAAiC,inBACpDD,EAAeC,IAAI,kCAAkC,mKACrDD,EAAeC,IAAI,oCAAoC,2hDACvDD,EAAeC,IAAI,qDAAqD,0MACxED,EAAeC,IAAI,yCAAyC,iYAC5DD,EAAeC,IAAI,2CAA2C,mIAC9DD,EAAeC,IAAI,2DAA2D,sOAC9ED,EAAeC,IAAI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,4eAC9FD,EAAeC,IAAI,kEAAkE,+9BACrFD,EAAeC,IAAI,kEAAkE,0xBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,umBACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,0BAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE","file":"scripts/app-6b2da25dcb.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(result) {\n vm.members = result.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {\n creationDate: '='\n },\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n // \"vm.creation\" is avaible by directive option \"bindToController: true\"\n vm.relativeDate = moment(vm.creationDate).fromNow();\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n if(!vm.currentUser) vm.openLogin();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.profile = profiles[0];\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $urlRouterProvider.when('/:profile', '/profile/:profile');\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: ':profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<ul class=\\\"timeline\\\"><li ng-class-even=\\\"\\'timeline-inverted\\'\\\" ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></li></ul>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<div class=\\\"timeline-badge success\\\"><i class=\\\"fa fa-file-text\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-6b78aa9e20.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-6b78aa9e20.js"],"names":["angular","module","noosferoProfileImageBlock","ProfileImageBlockController","vm","this","profile","owner","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoMembersBlock","MembersBlockController","noosfero","members","profiles","one","id","get","per_page","then","result","people","$inject","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","article","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","$state","AUTH_EVENTS","relativeDate","creationDate","fromNow","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","go","current","reload","$on","loginSuccess","close","logoutSuccess","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","activate","ProfileController","identifier","ProfileHomeController","customGET","fields","transitionTo","page","path","location","MainController","ContentViewerController","articles","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","resolve","abstract","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","setBaseUrl","defaults","Content-Type","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,sBAIzC,WACE,YAOA,SAASC,KAgBP,QAASC,KACP,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAIC,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYV,EACZW,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,4BAA6BN,MA2B5C,WACE,YAOA,SAASc,KAgBP,QAASC,GAAuBC,GAC9B,GAAId,GAAKC,IACTD,GAAGe,WAEHD,EAASC,QAAQD,EAASE,SAASC,IAAIjB,EAAGG,MAAMe,KAAKD,MAAME,KAAKC,SAAU,IAAIC,KAAK,SAASC,GAC1FtB,EAAGe,QAAUO,EAAOC,SApBxBV,EAAuBW,SAAW,WAAlC,IAAIpB,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYI,EACZH,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,uBAAwBQ,MA+BvC,WACE,YAOA,SAASa,KAgBP,QAASC,MAfT,GAAItB,IACFC,SAAU,IACVC,YAAa,4DACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYiB,EACZhB,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,oBAAqBqB,MAyBpC,WACE,YAOA,SAASE,KAgBP,QAASC,KACP,GAAI5B,GAAKC,IACTD,GAAG6B,MAAQ7B,EAAGQ,MAAMsB,SAASD,MAjB/B,GAAIzB,IACFC,SAAU,IACVC,YAAa,0DACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYmB,EACZlB,aAAc,KACd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,EAAeC,IAAI,kEAAkE,0xBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,umBACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,0BAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE","file":"scripts/app-6b78aa9e20.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(result) {\n vm.members = result.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {\n creationDate: '='\n },\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n // \"vm.creation\" is avaible by directive option \"bindToController: true\"\n vm.relativeDate = moment(vm.creationDate).fromNow();\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n if(!vm.currentUser) vm.openLogin();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.profile = profiles[0];\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(result) {\n if(result.article) {\n $state.transitionTo('main.profile.page', {page: result.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: '/:profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm',\n abstract: true\n })\n .state('main.profile.home', {\n url: '',\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<ul class=\\\"timeline\\\"><li ng-class-even=\\\"\\'timeline-inverted\\'\\\" ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></li></ul>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<div class=\\\"timeline-badge success\\\"><i class=\\\"fa fa-file-text\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-73978d0a25.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-73978d0a25.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","limit","block","settings","profiles","one","id","get","content_type","per_page","then","response","data","articles","$inject","directive","restrict","templateUrl","scope","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","noosferoBlog","BlogController","posts","perPage","currentPage","loadPage","customGET","totalPosts","headers","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","factory","Restangular","currentProfile","service","profileId","filter","text","options","option","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","debug","create","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileController","ProfileHomeController","fields","transitionTo","location","ProfileInfoController","MainController","ContentViewerController","ContentViewerActionsController","CmsController","$httpParamSerializer","SweetAlert","save","customPOST","Content-Type","swal","title","timer","runBlock","addFullRequestInterceptor","operation","route","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","resolve","views","mainBlockContent","abstract","content","actions@main","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","$provide","debugEnabled","html5Mode","enabled","setBaseUrl","setFullResponse","defaults","decorator","$delegate","$document","uiViewElement","scrollToElementAnimated","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa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C,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-73978d0a25.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline', 'duScroll', 'oitozero.ngSweetAlert']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n var limit = vm.block.settings.limit || 5;\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle', per_page: limit}).then(function(response) {\n vm.documents = response.data.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(response) {\n vm.members = response.data.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController(noosfero) {\n var vm = this;\n vm.posts = [];\n vm.perPage = 3;\n vm.currentPage = 1;\n\n vm.loadPage = function() {\n noosfero.articles.one(vm.article.id).customGET('children', {\n content_type: 'TinyMceArticle',\n per_page: vm.perPage,\n page: vm.currentPage\n }).then(function(response) {\n vm.totalPosts = response.headers('total');\n vm.posts = response.data.articles;\n });\n }\n vm.loadPage();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n var currentProfile;\n\n return {\n currentProfile: currentProfile,\n profiles: Restangular.service('profiles'),\n articles: Restangular.service('articles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(response) {\n vm.profile = response.data[0];\n noosfero.currentProfile = vm.profile;\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.data.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(response) {\n if(response.data.article) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(response) {\n vm.activities = response.data.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(response) {\n vm.article = response.data.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerActionsController', ContentViewerActionsController);\n\n\n /** @ngInject */\n function ContentViewerActionsController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('CmsController', CmsController);\n\n\n /** @ngInject */\n function CmsController(noosfero, $stateParams, $httpParamSerializer, $state, SweetAlert) {\n var vm = this;\n vm.article = {};\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n }\n\n vm.save = function() {\n noosfero.profiles.one(vm.profile.id).customPOST(\n {article: vm.article},\n 'articles',\n {},\n {'Content-Type':'application/json'}\n ).then(function(response) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier});\n SweetAlert.swal({\n title: \"Good job!\",\n text: \"Article saved!\",\n type: \"success\",\n timer: 1000\n });\n });\n }\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile.cms', {\n url: '^/myprofile/:profile/cms',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/cms/cms.html',\n controller: 'CmsController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n })\n .state('main.profile', {\n url: '^/:profile',\n abstract: true,\n views: {\n 'content': {\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.home', {\n url: '',\n views: {\n 'mainBlockContent': {\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n },\n 'actions@main': {\n templateUrl: 'app/content-viewer/navbar-actions.html',\n controller: 'ContentViewerActionsController',\n controllerAs: 'vm'\n }\n }\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider, $provide) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n RestangularProvider.setFullResponse(true);\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n\n $provide.decorator('$uiViewScroll', function ($delegate, $document) {\n return function (uiViewElement) {\n $document.scrollToElementAnimated(uiViewElement);\n };\n });\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/cms/cms.html\",\"<form><div class=\\\"form-group\\\"><label for=\\\"titleInput\\\">Title</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"titleInput\\\" placeholder=\\\"title\\\" ng-model=\\\"vm.article.name\\\"></div><div class=\\\"form-group\\\"><label for=\\\"bodyInput\\\">Text</label> <textarea class=\\\"form-control\\\" id=\\\"bodyInput\\\" rows=\\\"10\\\" ng-model=\\\"vm.article.body\\\"></textarea></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.save()\\\">Save</button></form>\");\n$templateCache.put(\"app/content-viewer/navbar-actions.html\",\"<ul class=\\\"nav navbar-nav navbar-right\\\"><li><a href=\\\"#\\\" role=\\\"button\\\" ui-sref=\\\"main.profile.cms({profile: vm.profile.identifier})\\\"><span class=\\\"fa-stack\\\"><i class=\\\"fa fa-file-o fa-stack-2x\\\"></i> <i class=\\\"fa fa-plus fa-stack-1x\\\"></i></span> New Post</a></li></ul>\");\n$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"content\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul><div ui-view=\\\"actions\\\"></div></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<timeline><timeline-event ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></timeline-event></timeline>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block {{block.type | lowercase}}\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<timeline-badge class=\\\"success\\\"><i class=\\\"fa fa-file-text\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile.info({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\': true\\\"></div></div></div></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.posts | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\': true\\\"></div></div></div></div><pagination ng-model=\\\"vm.currentPage\\\" total-items=\\\"vm.totalPosts\\\" class=\\\"pagination-sm center-block\\\" boundary-links=\\\"true\\\" items-per-page=\\\"vm.perPage\\\" ng-change=\\\"vm.loadPage()\\\" first-text=\\\"«\\\" last-text=\\\"»\\\" previous-text=\\\"‹\\\" next-text=\\\"›\\\"></pagination></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"mainBlockContent\\\" autoscroll=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/recent-documents/recent-documents.html\",\"<div deckgrid=\\\"\\\" source=\\\"vm.documents\\\" class=\\\"deckgrid\\\"><div class=\\\"a-card panel media\\\" ng-click=\\\"mother.vm.openDocument(card);\\\"><div class=\\\"author media-left\\\" ng-show=\\\"card.author.image\\\"><img ng-src=\\\"{{card.author.image.url}}\\\" class=\\\"img-circle\\\"></div><div class=\\\"header media-body\\\"><h5 class=\\\"title media-heading\\\" ng-bind=\\\"card.title\\\"></h5><div class=\\\"subheader\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"card.created_at\\\"></span></span></div></div><img ng-show=\\\"card.image\\\" ng-src=\\\"{{card.image.url}}\\\" class=\\\"img-responsive article-image\\\"><div class=\\\"post-lead\\\" ng-bind-html=\\\"card.body | stripTags | truncate: 100: \\'...\\': true\\\"></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-7d63201449.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-7d63201449.js"],"names":["angular","module","noosferoProfileImageBlock","ProfileImageBlockController","vm","this","profile","owner","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","article","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","$inject","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","profiles","service","boxes","profileId","one","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","$state","AUTH_EVENTS","relativeDate","creationDate","fromNow","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","go","current","reload","$on","loginSuccess","close","logoutSuccess","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","then","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","noosfero","$stateParams","ProfileInfoController","activate","id","get","result","ProfileController","identifier","boxesOrder","box","position","MainController","ContentViewerController","path","page","articles","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","when","state","resolve","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","setBaseUrl","defaults","Content-Type","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,sBAIzC,WACE,YAOA,SAASC,KAgBP,QAASC,KACP,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAIC,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYV,EACZW,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,4BAA6BN,MA2B5C,WACE,YAOA,SAASc,KAgBP,QAASC,MAfT,GAAIT,IACFC,SAAU,IACVC,YAAa,4DACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYI,EACZH,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,oBAAqBQ,MAyBpC,WACE,YAOA,SAASE,KAgBP,QAASC,KACP,GAAIf,GAAKC,IACTD,GAAGgB,MAAQhB,EAAGQ,MAAMS,SAASD,MAjB/B,GAAIZ,IACFC,SAAU,IACVC,YAAa,0DACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYM,EACZL,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,W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BAC/ED,EAAeC,IAAI,kEAAkE","file":"scripts/app-7d63201449.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {\n creationDate: '='\n },\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n // \"vm.creation\" is avaible by directive option \"bindToController: true\"\n vm.relativeDate = moment(vm.creationDate).fromNow();\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n if(!vm.currentUser) vm.openLogin();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.owner = profiles[0];\n return noosfero.boxes(vm.owner.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $urlRouterProvider.when('/:profile', '/profile/:profile');\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: ':profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:.*}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/views/profile/box.html\\'\\\"></ng-include></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ng-href=\\\"/\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/home/00838716598/participa/noosfero/public/designs/themes/angular-theme/gulp/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><i ng-if=\\\"!vm.currentUser.person.image\\\" class=\\\"fa fa-user\\\"></i> <img ng-if=\\\"vm.currentUser.person.image\\\" ng-src=\\\"{{vm.currentUser.person.image.url}}\\\" class=\\\"profile-image\\\"> <span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ng-href=\\\"/{{vm.currentUser.person.identifier}}\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ng-href=\\\"/myprofile/{{vm.currentUser.person.identifier}}\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<ul class=\\\"timeline\\\"><li ng-class-even=\\\"\\'timeline-inverted\\'\\\" ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></li></ul>\");\n$templateCache.put(\"app/views/profile/block.html\",\"<div class=\\\"panel panel-default block\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div>\");\n$templateCache.put(\"app/views/profile/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><ng-include ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" src=\\\"\\'app/views/profile/block.html\\'\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong> has joined the community</h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<div class=\\\"timeline-badge success\\\"><i class=\\\"fa fa-file-text\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong> has published on community <strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ng-href=\\\"/{{vm.activity.target.article.profile.identifier}}/{{vm.activity.target.article.path}}\\\">{{vm.activity.target.article.title}}</a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-bind-html=\\\"vm.article.body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a ng-href=\\\"/{{vm.profile.identifier}}/{{child.path}}\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center\\\"><div class=\\\"profile-image\\\"><a ng-href=\\\"/{{vm.owner.identifier}}\\\"><img ng-show=\\\"{{vm.owner.image}}\\\" src=\\\"{{vm.owner.image.url}}\\\" class=\\\"img-responsive\\\"> <i ng-show=\\\"{{!vm.owner.image}}\\\" class=\\\"fa fa-users fa-5x\\\"></i></a></div><div class=\\\"admin-link\\\"><a target=\\\"_self\\\" ng-href=\\\"/myprofile/{{vm.owner.identifier}}\\\">Control panel</a></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-80d9ee1cbe.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-80d9ee1cbe.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","limit","block","settings","profiles","one","id","get","content_type","per_page","then","response","data","articles","$inject","directive","restrict","templateUrl","scope","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","noosferoBlog","BlogController","posts","perPage","currentPage","loadPage","customGET","totalPosts","headers","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","$q","currentProfile","defer","promise","setCurrentProfile","resolve","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","debug","create","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","ProfileController","ProfileHomeController","fields","transitionTo","location","MainController","ContentViewerController","ContentViewerActionsController","CmsController","$httpParamSerializer","SweetAlert","save","customPOST","Content-Type","swal","title","timer","runBlock","addFullRequestInterceptor","operation","route","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","views","mainBlockContent","abstract","content","actions@main","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","$provide","debugEnabled","html5Mode","enabled","setBaseUrl","setFullResponse","defaults","decorator","$delegate","$document","uiViewElement","scrollToElementAnimated","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,iBAAkB,mBACnC,mBAAoB,WAAY,6BAIxD,WACE,YAOA,SAASC,KAgBP,QAASC,GAA0BC,EAAUC,GAC3C,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAChBH,EAAGI,aAEHJ,EAAGK,aAAe,SAASC,GACzBP,EAAOQ,GAAG,qBAAsBC,KAAMF,EAAQG,KAAMP,QAASI,EAAQJ,QAAQQ,aAG/E,IAAIC,GAAQX,EAAGY,MAAMC,SAASF,OAAS,CAEvCb,GAASgB,SAASC,IAAIf,EAAGE,QAAQc,IAAID,IAAI,YAAYE,KAAKC,aAAc,iBAAkBC,SAAUR,IAAQS,KAAK,SAASC,GACxHrB,EAAGI,UAAYiB,EAASC,KAAKC,WA3BjC1B,EAA0B2B,SAAW,WAAY,SAAjD,IAAIC,IACFC,SAAU,IACVC,YAAa,wEACbC,OACIhB,MAAO,IACPT,MAAO,KAEX0B,WAAYhC,EACZiC,aAAc,KACdC,kBAAkB,EAGpB,OAAON,GAlBT/B,QACGC,OAAO,WACP8B,UAAU,+BAAgC7B,MAsC/C,WACE,YAOA,SAASoC,KAgBP,QAASC,KACP,GAAIjC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAI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AAI,qBAAqB,4DACxCD,EAAeC,IAAI,2BAA2B,qIAC9CD,EAAeC,IAAI,qCAAqC,2JACxDD,EAAeC,IAAI,iCAAiC,inBACpDD,EAAeC,IAAI,oCAAoC,wjDACvDD,EAAeC,IAAI,qDAAqD,uLACxED,EAAeC,IAAI,yCAAyC,4ZAC5DD,EAAeC,IAAI,2CAA2C,mIAC9DD,EAAeC,IAAI,2DAA2D,sOAC9ED,EAAeC,IAAI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,mfAC9FD,EAAeC,IAAI,kEAAkE,s/BACrFD,EAAeC,IAAI,kEAAkE,iyBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,61BACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,wDAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-80d9ee1cbe.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline', 'duScroll', 'oitozero.ngSweetAlert']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n var limit = vm.block.settings.limit || 5;\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle', per_page: limit}).then(function(response) {\n vm.documents = response.data.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(response) {\n vm.members = response.data.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController(noosfero) {\n var vm = this;\n vm.posts = [];\n vm.perPage = 3;\n vm.currentPage = 1;\n\n vm.loadPage = function() {\n noosfero.articles.one(vm.article.id).customGET('children', {\n content_type: 'TinyMceArticle',\n per_page: vm.perPage,\n page: vm.currentPage\n }).then(function(response) {\n vm.totalPosts = response.headers('total');\n vm.posts = response.data.articles;\n });\n }\n vm.loadPage();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular, $q) {\n var currentProfile = $q.defer();\n\n return {\n currentProfile: currentProfile.promise,\n setCurrentProfile: function(profile) { currentProfile.resolve(profile) },\n profiles: Restangular.service('profiles'),\n articles: Restangular.service('articles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profiles.one(vm.profile.id).one('activities').get();\n }).then(function(response) {\n vm.activities = response.data.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(response) {\n vm.profile = response.data[0];\n noosfero.setCurrentProfile(vm.profile);\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.data.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'});\n }).then(function(response) {\n if(response.data.article) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page});\n }).then(function(response) {\n vm.article = response.data.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerActionsController', ContentViewerActionsController);\n\n\n /** @ngInject */\n function ContentViewerActionsController(noosfero, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('CmsController', CmsController);\n\n\n /** @ngInject */\n function CmsController(noosfero, $stateParams, $httpParamSerializer, $state, SweetAlert) {\n var vm = this;\n vm.article = {};\n vm.profile = null;\n\n vm.save = function() {\n noosfero.currentProfile.then(function(profile) {\n return noosfero.profiles.one(profile.id).customPOST(\n {article: vm.article},\n 'articles',\n {},\n {'Content-Type':'application/json'}\n )\n }).then(function(response) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: response.data.article.profile.identifier});\n SweetAlert.swal({\n title: \"Good job!\",\n text: \"Article saved!\",\n type: \"success\",\n timer: 1000\n });\n });\n }\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile.cms', {\n url: '^/myprofile/:profile/cms',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/cms/cms.html',\n controller: 'CmsController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n })\n .state('main.profile', {\n url: '^/:profile',\n abstract: true,\n views: {\n 'content': {\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.home', {\n url: '',\n views: {\n 'mainBlockContent': {\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n },\n 'actions@main': {\n templateUrl: 'app/content-viewer/navbar-actions.html',\n controller: 'ContentViewerActionsController',\n controllerAs: 'vm'\n }\n }\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider, $provide) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n RestangularProvider.setFullResponse(true);\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n\n $provide.decorator('$uiViewScroll', function ($delegate, $document) {\n return function (uiViewElement) {\n $document.scrollToElementAnimated(uiViewElement);\n };\n });\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/cms/cms.html\",\"<form><div class=\\\"form-group\\\"><label for=\\\"titleInput\\\">Title</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"titleInput\\\" placeholder=\\\"title\\\" ng-model=\\\"vm.article.name\\\"></div><div class=\\\"form-group\\\"><label for=\\\"bodyInput\\\">Text</label> <textarea class=\\\"form-control\\\" id=\\\"bodyInput\\\" rows=\\\"10\\\" ng-model=\\\"vm.article.body\\\"></textarea></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.save()\\\">Save</button></form>\");\n$templateCache.put(\"app/content-viewer/navbar-actions.html\",\"<ul class=\\\"nav navbar-nav\\\"><li ng-show=\\\"vm.profile\\\"><a href=\\\"#\\\" role=\\\"button\\\" ui-sref=\\\"main.profile.cms({profile: vm.profile.identifier})\\\"><i class=\\\"fa fa-file fa-fw fa-lg\\\"></i> New Post</a></li></ul>\");\n$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"content\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul><div ui-view=\\\"actions\\\"></div></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<timeline><timeline-event ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></timeline-event></timeline>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block {{block.type | lowercase}}\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<timeline-badge class=\\\"success\\\"><i class=\\\"fa fa-file-text\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile.info({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\': true\\\"></div></div></div></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.posts | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\': true\\\"></div></div></div></div><pagination ng-model=\\\"vm.currentPage\\\" total-items=\\\"vm.totalPosts\\\" class=\\\"pagination-sm center-block\\\" boundary-links=\\\"true\\\" items-per-page=\\\"vm.perPage\\\" ng-change=\\\"vm.loadPage()\\\" first-text=\\\"«\\\" last-text=\\\"»\\\" previous-text=\\\"‹\\\" next-text=\\\"›\\\"></pagination></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"mainBlockContent\\\" autoscroll=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/recent-documents/recent-documents.html\",\"<div deckgrid=\\\"\\\" source=\\\"vm.documents\\\" class=\\\"deckgrid\\\"><div class=\\\"a-card panel media\\\" ng-click=\\\"mother.vm.openDocument(card);\\\"><div class=\\\"author media-left\\\" ng-show=\\\"card.author.image\\\"><img ng-src=\\\"{{card.author.image.url}}\\\" class=\\\"img-circle\\\"></div><div class=\\\"header media-body\\\"><h5 class=\\\"title media-heading\\\" ng-bind=\\\"card.title\\\"></h5><div class=\\\"subheader\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"card.created_at\\\"></span></span></div></div><img ng-show=\\\"card.image\\\" ng-src=\\\"{{card.image.url}}\\\" class=\\\"img-responsive article-image\\\"><div class=\\\"post-lead\\\" ng-bind-html=\\\"card.body | stripTags | truncate: 100: \\'...\\': true\\\"></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-8e457c72a6.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-8e457c72a6.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","limit","block","settings","profiles","one","id","get","content_type","per_page","then","response","data","articles","$inject","directive","restrict","templateUrl","scope","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","noosferoBlog","BlogController","posts","perPage","currentPage","loadPage","customGET","totalPosts","headers","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","$q","currentProfile","defer","promise","setCurrentProfile","resolve","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","debug","create","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","ProfileController","ProfileHomeController","fields","transitionTo","location","MainController","ContentViewerController","ContentViewerActionsController","CmsController","$httpParamSerializer","SweetAlert","save","customPOST","Content-Type","swal","title","timer","runBlock","addFullRequestInterceptor","operation","route","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","views","mainBlockContent","abstract","content","actions@main","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","$provide","debugEnabled","html5Mode","enabled","setBaseUrl","setFullResponse","defaults","decorator","$delegate","$document","uiViewElement","scrollToElementAnimated","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,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61BACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,wDAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-8e457c72a6.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline', 'duScroll', 'oitozero.ngSweetAlert']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n var limit = vm.block.settings.limit || 5;\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle', per_page: limit}).then(function(response) {\n vm.documents = response.data.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(response) {\n vm.members = response.data.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController(noosfero) {\n var vm = this;\n vm.posts = [];\n vm.perPage = 3;\n vm.currentPage = 1;\n\n vm.loadPage = function() {\n noosfero.articles.one(vm.article.id).customGET('children', {\n content_type: 'TinyMceArticle',\n per_page: vm.perPage,\n page: vm.currentPage\n }).then(function(response) {\n vm.totalPosts = response.headers('total');\n vm.posts = response.data.articles;\n });\n }\n vm.loadPage();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular, $q) {\n var currentProfile = $q.defer();\n\n return {\n currentProfile: currentProfile.promise,\n setCurrentProfile: function(profile) { currentProfile.resolve(profile) },\n profiles: Restangular.service('profiles'),\n articles: Restangular.service('articles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profiles.one(vm.profile.id).one('activities').get();\n }).then(function(response) {\n vm.activities = response.data.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(response) {\n vm.profile = response.data[0];\n noosfero.setCurrentProfile(vm.profile);\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.data.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'});\n }).then(function(response) {\n if(response.data.article) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n return noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page});\n }).then(function(response) {\n vm.article = response.data.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerActionsController', ContentViewerActionsController);\n\n\n /** @ngInject */\n function ContentViewerActionsController(noosfero) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n noosfero.currentProfile.then(function(profile) {\n vm.profile = profile;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('CmsController', CmsController);\n\n\n /** @ngInject */\n function CmsController(noosfero, $stateParams, $httpParamSerializer, $state, SweetAlert) {\n var vm = this;\n vm.article = {};\n vm.profile = null;\n\n vm.save = function() {\n noosfero.currentProfile.then(function(profile) {\n return noosfero.profiles.one(profile.id).customPOST(\n {article: vm.article},\n 'articles',\n {},\n {'Content-Type':'application/json'}\n )\n }).then(function(response) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: response.data.article.profile.identifier});\n SweetAlert.swal({\n title: \"Good job!\",\n text: \"Article saved!\",\n type: \"success\",\n timer: 1000\n });\n });\n }\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile.cms', {\n url: '^/myprofile/:profile/cms',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/cms/cms.html',\n controller: 'CmsController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n })\n .state('main.profile', {\n url: '^/:profile',\n abstract: true,\n views: {\n 'content': {\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.home', {\n url: '',\n views: {\n 'mainBlockContent': {\n controller: 'ProfileHomeController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n }\n }\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n views: {\n 'mainBlockContent': {\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n },\n 'actions@main': {\n templateUrl: 'app/content-viewer/navbar-actions.html',\n controller: 'ContentViewerActionsController',\n controllerAs: 'vm'\n }\n }\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider, $provide) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n RestangularProvider.setFullResponse(true);\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n\n $provide.decorator('$uiViewScroll', function ($delegate, $document) {\n return function (uiViewElement) {\n $document.scrollToElementAnimated(uiViewElement);\n };\n });\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/cms/cms.html\",\"<form><div class=\\\"form-group\\\"><label for=\\\"titleInput\\\">Title</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"titleInput\\\" placeholder=\\\"title\\\" ng-model=\\\"vm.article.name\\\"></div><div class=\\\"form-group\\\"><label for=\\\"bodyInput\\\">Text</label> <textarea class=\\\"form-control\\\" id=\\\"bodyInput\\\" rows=\\\"10\\\" ng-model=\\\"vm.article.body\\\"></textarea></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.save()\\\">Save</button></form>\");\n$templateCache.put(\"app/content-viewer/navbar-actions.html\",\"<ul class=\\\"nav navbar-nav\\\"><li ng-show=\\\"vm.profile\\\"><a href=\\\"#\\\" role=\\\"button\\\" ui-sref=\\\"main.profile.cms({profile: vm.profile.identifier})\\\"><i class=\\\"fa fa-file fa-fw fa-lg\\\"></i> New Post</a></li></ul>\");\n$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"content\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul><div ui-view=\\\"actions\\\"></div></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<timeline><timeline-event ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></timeline-event></timeline>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block {{block.type | lowercase}}\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<span title=\\\"{{vm.profile.name}}\\\"><img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive profile-image\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x profile-image\\\"></i></span>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<timeline-badge class=\\\"success\\\"><i class=\\\"fa fa-file-text\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile.info({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\': true\\\"></div></div></div></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/new_friendship.html\",\"<timeline-badge class=\\\"info\\\"><i class=\\\"fa fa-user-plus\\\"></i></timeline-badge><timeline-panel><timeline-heading><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has made <span ng-bind=\\\"vm.activity.params.friend_name.length\\\"></span> new friend(s):</span> <span class=\\\"comma-separated\\\"><a class=\\\"separated-item\\\" ui-sref=\\\"main.profile.info({profile: vm.activity.params.friend_url[$index].profile})\\\" ng-repeat=\\\"friend in vm.activity.params.friend_name\\\"><strong ng-bind=\\\"friend\\\"></strong></a></span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></timeline-heading><div class=\\\"timeline-body\\\"></div></timeline-panel>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"article\\\"><div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog\\\"><div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.posts | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a class=\\\"title\\\" ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div class=\\\"post-lead\\\" ng-bind-html=\\\"child.body | truncate: 500: \\'...\\': true\\\"></div></div></div></div><pagination ng-model=\\\"vm.currentPage\\\" total-items=\\\"vm.totalPosts\\\" class=\\\"pagination-sm center-block\\\" boundary-links=\\\"true\\\" items-per-page=\\\"vm.perPage\\\" ng-change=\\\"vm.loadPage()\\\" first-text=\\\"«\\\" last-text=\\\"»\\\" previous-text=\\\"‹\\\" next-text=\\\"›\\\"></pagination></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div class=\\\"link-list-block\\\"><div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"mainBlockContent\\\" autoscroll=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\" class=\\\"member\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center profile-image-block\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a> <a class=\\\"settings-link\\\" target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/recent-documents/recent-documents.html\",\"<div deckgrid=\\\"\\\" source=\\\"vm.documents\\\" class=\\\"deckgrid\\\"><div class=\\\"a-card panel media\\\" ng-click=\\\"mother.vm.openDocument(card);\\\"><div class=\\\"author media-left\\\" ng-show=\\\"card.author.image\\\"><img ng-src=\\\"{{card.author.image.url}}\\\" class=\\\"img-circle\\\"></div><div class=\\\"header media-body\\\"><h5 class=\\\"title media-heading\\\" ng-bind=\\\"card.title\\\"></h5><div class=\\\"subheader\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"card.created_at\\\"></span></span></div></div><img ng-show=\\\"card.image\\\" ng-src=\\\"{{card.image.url}}\\\" class=\\\"img-responsive article-image\\\"><div class=\\\"post-lead\\\" ng-bind-html=\\\"card.body | stripTags | truncate: 100: \\'...\\': true\\\"></div></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-a478402b26.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-a478402b26.js"],"names":["angular","module","noosferoProfileImageBlock","ProfileImageBlockController","vm","this","profile","owner","directive","restrict","templateUrl","scope","block","controller","controllerAs","bindToController","noosferoMembersBlock","MembersBlockController","noosfero","Restangular","members","profiles","one","id","get","then","result","people","$inject","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","settings","noosferoBlog","BlogController","article","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","$state","AUTH_EVENTS","relativeDate","creationDate","fromNow","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","go","current","reload","$on","loginSuccess","close","logoutSuccess","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","response","debug","create","data","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","activate","ProfileController","identifier","MainController","ContentViewerController","path","page","articles","runBlock","addFullRequestInterceptor","operation","route","headers","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","when","state","resolve","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","debugEnabled","html5Mode","enabled","setBaseUrl","defaults","Content-Type","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,sBAIzC,WACE,YAOA,SAASC,KAgBP,QAASC,KACP,GAAIC,GAAKC,IACTD,GAAGE,QAAUF,EAAGG,MAjBlB,GAAIC,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYV,EACZW,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,4BAA6BN,MA2B5C,WACE,YAOA,SAASc,KAgBP,QAASC,GAAuBC,EAAUC,GACxC,GAAIf,GAAKC,IACTD,GAAGgB,WAEHF,EAASE,QAAQF,EAASG,SAASC,IAAIlB,EAAGG,MAAMgB,KAAKD,MAAME,MAAMC,KAAK,SAASC,GAC7EtB,EAAGgB,QAAUM,EAAOC,SApBxBV,EAAuBW,SAAW,WAAY,cAA9C,IAAIpB,IACFC,SAAU,IACVC,YAAa,kEACbC,OACIC,MAAO,IACPL,MAAO,KAEXM,WAAYI,EACZH,aAAc,KACdC,kBAAkB,EAGpB,OAAOP,GAlBTR,QACGC,OAAO,WACPO,UAAU,uBAAwBQ,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a478402b26.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero, Restangular) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get().then(function(result) {\n vm.members = result.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n return {\n profiles: Restangular.service('profiles'),\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {\n creationDate: '='\n },\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n // \"vm.creation\" is avaible by directive option \"bindToController: true\"\n vm.relativeDate = moment(vm.creationDate).fromNow();\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n if(!vm.currentUser) vm.openLogin();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(result) {\n vm.activities = result.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) {\n vm.profile = profiles[0];\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, $stateParams, $scope) {\n var vm = this;\n vm.article = null;\n vm.profile = null;\n activate();\n\n function activate() {\n vm.profile = $scope.vm.owner;\n noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) {\n vm.article = articles.article;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .run(runBlock);\n\n /** @ngInject */\n function runBlock($log, Restangular, Session) {\n Restangular.addFullRequestInterceptor(function(element, operation, route, url, headers) {\n if(Session.getCurrentUser()) {\n headers['Private-Token'] = Session.getCurrentUser().private_token;\n }\n return { headers: headers };\n });\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(routeConfig);\n\n function routeConfig($stateProvider, $urlRouterProvider) {\n $urlRouterProvider.when('/:profile', '/profile/:profile');\n $stateProvider\n .state('main', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainController',\n controllerAs: 'vm',\n resolve: {\n currentUser: function(AuthService) {\n return AuthService.loginFromCookie();\n }\n }\n })\n .state('main.profile', {\n url: ':profile',\n templateUrl: 'app/profile/profile.html',\n controller: 'ProfileController',\n controllerAs: 'vm'\n })\n .state('main.profile.info', {\n url: '^/profile/:profile',\n templateUrl: 'app/profile-info/profile-info.html',\n controller: 'ProfileInfoController',\n controllerAs: 'vm'\n })\n .state('main.profile.page', {\n url: '/{page:any}',\n templateUrl: 'app/content-viewer/page.html',\n controller: 'ContentViewerController',\n controllerAs: 'vm'\n })\n .state('main.profile.settings', {\n url: '^/myprofile/:profile'\n });\n\n $urlRouterProvider.otherwise('/');\n }\n\n})();\n\n/* global moment:false */\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .constant('moment', moment)\n .constant('AUTH_EVENTS', {\n loginSuccess: 'auth-login-success',\n loginFailed: 'auth-login-failed',\n logoutSuccess: 'auth-logout-success'\n });\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .config(config);\n\n /** @ngInject */\n function config($logProvider, $locationProvider, RestangularProvider, $httpProvider) {\n $logProvider.debugEnabled(true);\n $locationProvider.html5Mode({enabled: true});\n RestangularProvider.setBaseUrl('/api/v1');\n $httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'};\n }\n\n})();\n\nangular.module(\"angular\").run([\"$templateCache\", function($templateCache) {$templateCache.put(\"app/content-viewer/page.html\",\"<noosfero-article ng-if=\\\"vm.article\\\" article=\\\"vm.article\\\" profile=\\\"vm.profile\\\"></noosfero-article>\");\n$templateCache.put(\"app/main/main.html\",\"<acme-navbar></acme-navbar><div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/profile/profile.html\",\"<div class=\\\"profile-container\\\"><div class=\\\"row\\\"><noosfero-boxes boxes=\\\"vm.boxes\\\" owner=\\\"vm.profile\\\"></noosfero-boxes></div></div>\");\n$templateCache.put(\"app/profile-info/profile-info.html\",\"<h3>{{vm.profile.name}}</h3><div class=\\\"profile-wall\\\"><h4>Profile Wall</h4><noosfero-activities activities=\\\"vm.activities\\\"></noosfero-activities></div>\");\n$templateCache.put(\"app/components/auth/login.html\",\"<div class=\\\"modal-header\\\"><h3 class=\\\"modal-title\\\">Login</h3></div><div class=\\\"modal-body\\\"><form><div class=\\\"form-group\\\"><label for=\\\"exampleInputEmail1\\\">Login / Email address</label> <input type=\\\"text\\\" class=\\\"form-control\\\" id=\\\"exampleInputEmail1\\\" placeholder=\\\"Login / Email\\\" ng-model=\\\"vm.credentials.username\\\"></div><div class=\\\"form-group\\\"><label for=\\\"exampleInputPassword1\\\">Password</label> <input type=\\\"password\\\" class=\\\"form-control\\\" id=\\\"exampleInputPassword1\\\" placeholder=\\\"Password\\\" ng-model=\\\"vm.credentials.password\\\"></div><button type=\\\"submit\\\" class=\\\"btn btn-default\\\" ng-click=\\\"vm.login()\\\">Login</button></form></div>\");\n$templateCache.put(\"app/components/boxes/boxes.html\",\"{{vm.boxesOrder}} {{boxesOrder}}<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/navbar/navbar.html\",\"<nav class=\\\"navbar navbar-static-top navbar-inverse\\\"><div class=\\\"container-fluid\\\"><div class=\\\"navbar-header\\\"><button type=\\\"button\\\" class=\\\"navbar-toggle collapsed\\\" ng-click=\\\"isCollapsed = !isCollapsed\\\"><span class=\\\"sr-only\\\">Toggle navigation</span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span> <span class=\\\"icon-bar\\\"></span></button> <a class=\\\"navbar-brand\\\" ui-sref=\\\"main\\\"><span class=\\\"noosfero-logo\\\"><img src=\\\"/designs/themes/angular-theme/dist/assets/images/logo-noosfero.png\\\"></span> Noosfero</a></div><div class=\\\"collapse navbar-collapse\\\" id=\\\"navbar-collapse\\\" collapse=\\\"isCollapsed\\\"><ul class=\\\"nav navbar-nav\\\"></ul><ul class=\\\"nav navbar-nav navbar-right\\\"><li ng-show=\\\"!vm.currentUser\\\"><a ng-href=\\\"#\\\" ng-click=\\\"vm.openLogin()\\\">Login</a></li><li class=\\\"dropdown profile-menu\\\" ng-show=\\\"vm.currentUser\\\" dropdown=\\\"\\\"><a href=\\\"#\\\" class=\\\"dropdown-toggle\\\" aria-expanded=\\\"false\\\" dropdown-toggle=\\\"\\\"><noosfero-profile-image profile=\\\"vm.currentUser.person\\\" class=\\\"profile-image\\\"></noosfero-profile-image><span ng-bind=\\\"vm.currentUser.person.name\\\"></span> <b class=\\\"caret\\\"></b></a><ul class=\\\"dropdown-menu\\\" dropdown-menu=\\\"\\\"><li><a ui-sref=\\\"main.profile.info({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-user\\\"></i> Profile</a></li><li><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.currentUser.person.identifier})\\\"><i class=\\\"fa fa-fw fa-gear\\\"></i> Settings</a></li><li class=\\\"divider\\\"></li><li><a href=\\\"#\\\" ng-click=\\\"vm.logout()\\\"><i class=\\\"fa fa-fw fa-power-off\\\"></i> Log Out</a></li></ul></li></ul></div></div></nav>\");\n$templateCache.put(\"app/components/noosfero-activities/activities.html\",\"<ul class=\\\"timeline\\\"><li ng-class-even=\\\"\\'timeline-inverted\\'\\\" ng-repeat=\\\"activity in activities | orderBy: \\'created_at\\':true\\\"><noosfero-activity activity=\\\"activity\\\"></noosfero-activity></li></ul>\");\n$templateCache.put(\"app/components/noosfero-boxes/box.html\",\"<div ng-class=\\\"{\\'col-md-2-5\\': box.position!=1, \\'col-md-7\\': box.position==1}\\\"><div ng-repeat=\\\"block in box.blocks | orderBy: \\'position\\'\\\" class=\\\"panel panel-default block\\\"><div class=\\\"panel-heading\\\" ng-show=\\\"block.title\\\"><h3 class=\\\"panel-title\\\">{{block.title}}</h3></div><div class=\\\"panel-body\\\"><noosfero-block block=\\\"block\\\" owner=\\\"vm.owner\\\"></noosfero-block></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-boxes/boxes.html\",\"<ng-include ng-repeat=\\\"box in vm.boxes | orderBy: vm.boxesOrder\\\" src=\\\"\\'app/components/noosfero-boxes/box.html\\'\\\"></ng-include>\");\n$templateCache.put(\"app/components/noosfero/profile-image/profile-image.html\",\"<img ng-if=\\\"vm.profile.image\\\" ng-src=\\\"{{vm.profile.image.url}}\\\" class=\\\"img-responsive\\\"> <i ng-if=\\\"!vm.profile.image\\\" class=\\\"fa {{vm.defaultIcon}} fa-5x\\\"></i>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/activity.html\",\"<div class=\\\"activity\\\"><ng-include src=\\\"vm.getActivityTemplate(vm.activity)\\\"></ng-include></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/add_member_in_community.html\",\"<div class=\\\"timeline-badge info\\\"><i class=\\\"fa fa-user-plus\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile.info({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has joined the community</span></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-activities/activity/create_article.html\",\"<div class=\\\"timeline-badge success\\\"><i class=\\\"fa fa-file-text\\\"></i></div><div class=\\\"timeline-panel\\\"><div class=\\\"timeline-heading\\\"><h4 class=\\\"timeline-title\\\"><a ui-sref=\\\"main.profile({profile: vm.activity.user.identifier})\\\"><strong ng-bind=\\\"vm.activity.user.name\\\"></strong></a> <span>has published on</span> <a ui-sref=\\\"main.profile({profile: vm.activity.target.article.profile.identifier})\\\"><strong ng-bind=\\\"vm.activity.target.article.profile.name\\\"></strong></a></h4><p><small class=\\\"text-muted\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.activity.created_at\\\"></span></small></p></div><div class=\\\"timeline-body\\\"><div class=\\\"article\\\"><div class=\\\"title\\\"><a ui-sref=\\\"main.profile.page({profile: vm.activity.target.article.profile.identifier, page: vm.activity.target.article.path})\\\" ng-bind=\\\"vm.activity.target.article.title\\\"></a></div><div class=\\\"lead small\\\"><div ng-bind-html=\\\"vm.activity.target.article.body | stripTags | truncate: 100 : \\'...\\'\\\"></div></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/article/article.html\",\"<div class=\\\"page-header\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"sub-header clearfix\\\"><div class=\\\"page-info pull-right small text-muted\\\"><span class=\\\"time\\\"><i class=\\\"fa fa-clock-o\\\"></i> <span am-time-ago=\\\"vm.article.created_at\\\"></span></span> <span class=\\\"author\\\" ng-if=\\\"vm.article.author\\\"><i class=\\\"fa fa-user\\\"></i> <a ui-sref=\\\"main.profile({profile: vm.article.author.identifier})\\\"><span class=\\\"author-name\\\" ng-bind=\\\"vm.article.author.name\\\"></span></a></span></div></div><div class=\\\"page-body\\\"><div ng-bind-html=\\\"vm.article.body\\\"></div></div>\");\n$templateCache.put(\"app/components/noosfero-articles/blog/blog.html\",\"<div class=\\\"blog-cover\\\" ng-show=\\\"vm.article.image\\\"><img ng-src=\\\"{{vm.article.image.url}}\\\" class=\\\"img-responsive\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div class=\\\"page-header\\\" ng-show=\\\"!vm.article.image\\\"><h3 ng-bind=\\\"vm.article.title\\\"></h3></div><div><div ng-repeat=\\\"child in vm.article.children | orderBy: \\'created_at\\':true\\\"><div class=\\\"page-header\\\"><a ui-sref=\\\"main.profile.page({profile: vm.profile.identifier, page: child.path})\\\"><h4 ng-bind=\\\"child.title\\\"></h4></a><div ng-bind-html=\\\"child.body | truncate: 500: \\'...\\'\\\"></div></div></div></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/link-list/link-list.html\",\"<div ng-repeat=\\\"link in vm.links\\\"><a ng-href=\\\"{{link.address | noosferoTemplateFilter:{profile: vm.owner.identifier} }}\\\"><i class=\\\"fa fa-fw icon-{{link.icon}}\\\"></i> <span>{{link.name}}</span></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/main-block/main-block.html\",\"<div ui-view=\\\"\\\"></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/members-block/members-block.html\",\"<div class=\\\"members-block\\\"><a ng-repeat=\\\"member in vm.members\\\" ui-sref=\\\"main.profile({profile: member.identifier})\\\"><noosfero-profile-image profile=\\\"member\\\"></noosfero-profile-image></a></div>\");\n$templateCache.put(\"app/components/noosfero-blocks/profile-image/profile-image.html\",\"<div class=\\\"center-block text-center\\\"><div class=\\\"profile-image\\\"><a ui-sref=\\\"main.profile.info({profile: vm.owner.identifier})\\\"><noosfero-profile-image profile=\\\"vm.owner\\\"></noosfero-profile-image></a></div><div class=\\\"admin-link\\\"><a target=\\\"_self\\\" ui-sref=\\\"main.profile.settings({profile: vm.owner.identifier})\\\">Control panel</a></div></div>\");}]);"],"sourceRoot":"/source/"} | |
2 | 0 | \ No newline at end of file |
dist/maps/scripts/app-ac0671bbde.js.map
... | ... | @@ -1 +0,0 @@ |
1 | -{"version":3,"sources":["scripts/app-ac0671bbde.js"],"names":["angular","module","noosferoRecentDocumentsBlock","RecentDocumentsController","noosfero","$state","vm","this","profile","owner","documents","openDocument","article","go","page","path","identifier","limit","block","settings","profiles","one","id","get","content_type","per_page","then","response","data","articles","$inject","directive","restrict","templateUrl","scope","controller","controllerAs","bindToController","noosferoProfileImageBlock","ProfileImageBlockController","noosferoMembersBlock","MembersBlockController","members","people","noosferoMainBlock","MainBlockController","noosferoLinkListBlock","LinkListBlockController","links","noosferoBlog","BlogController","posts","perPage","currentPage","loadPage","customGET","totalPosts","headers","noosferoArticle","$injector","$compile","ArticleController","link","element","specificDirective","type","has","directiveName","replace","toLowerCase","replaceWith","noosferoActivity","ActivityController","getActivityTemplate","activity","verb","noosferoProfileImage","ProfileImageController","defaultIcon","noosferoBoxes","BoxesController","boxesOrder","box","position","boxes","noosferoBlock","blockName","noosferoActivities","activities","factory","Restangular","currentProfile","service","profileId","filter","text","options","option","acmeNavbar","NavbarController","moment","$modal","AuthService","Session","$scope","AUTH_EVENTS","currentUser","getCurrentUser","modalInstance","openLogin","open","logout","current","reload","$on","loginSuccess","close","logoutSuccess","activate","$q","$http","$rootScope","$log","login","credentials","url","encodedData","username","password","post","loginSuccessCallback","loginFailedCallback","loginFromCookie","debug","create","$broadcast","loginFailed","destroy","undefined","jsonp","isAuthenticated","userId","isAuthorized","authorizedRoles","isArray","indexOf","userRole","$localStorage","user","AuthController","$stateParams","ProfileInfoController","ProfileController","ProfileHomeController","fields","transitionTo","location","MainController","ContentViewerController","ContentViewerActionsController","CmsController","$httpParamSerializer","SweetAlert","save","customPOST","Content-Type","swal","title","timer","runBlock","addFullRequestInterceptor","operation","route","private_token","run","routeConfig","$stateProvider","$urlRouterProvider","state","resolve","views","mainBlockContent","abstract","content","actions@main","otherwise","config","constant","$logProvider","$locationProvider","RestangularProvider","$httpProvider","$provide","debugEnabled","html5Mode","enabled","setBaseUrl","setFullResponse","defaults","decorator","$delegate","$document","uiViewElement","scrollToElementAnimated","$templateCache","put"],"mappings":"CAAA,WACE,YAEAA,SACGC,OAAO,WAAY,YAAa,YAAa,YAAa,UACvC,aAAc,aAAc,SAAU,cACtC,YAAa,eAAgB,SAC7B,gBAAiB,iBAAkB,mBACnC,mBAAoB,WAAY,6BAIxD,WACE,YAOA,SAASC,KAgBP,QAASC,GAA0B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,IACtCL,EAAoBM,WAAW,WAC/BN,EAAoBO,iBAAgB,GACpCN,EAAcO,SAAS7I,QAAQwE,MAAQoC,eAAgB,oDAEvD2B,EAASO,UAAU,iBAAA,YAAA,YAAiB,SAAUC,EAAWC,GACvD,MAAO,UAAUC,GACfD,EAAUE,wBAAwBD,OAGxChB,EAAO5J,SAAW,eAAgB,oBAAqB,sBAAuB,gBAAiB,YAjB/F9B,QACGC,OAAO,WACPyL,OAAOA,MAmBZ1L,QAAQC,OAAO,WAAW6K,KAAK,iBAAkB,SAAS8B,GAAiBA,EAAeC,IAAI,mBAAmB,4aACjHD,EAAeC,IAAI,yCAAyC,2QAC5DD,EAAeC,IAAI,+BAA+B,sGAClDD,EAAeC,IAAI,qBAAqB,4DACxCD,EAAeC,IAAI,2BAA2B,qIAC9CD,EAAeC,IAAI,qCAAqC,2JACxDD,EAAeC,IAAI,kCAAkC,mKACrDD,EAAeC,IAAI,iCAAiC,inBACpDD,EAAeC,IAAI,oCAAoC,wjDACvDD,EAAeC,IAAI,qDAAqD,uLACxED,EAAeC,IAAI,yCAAyC,4ZAC5DD,EAAeC,IAAI,2CAA2C,mIAC9DD,EAAeC,IAAI,2DAA2D,sOAC9ED,EAAeC,IAAI,4DAA4D,mGAC/ED,EAAeC,IAAI,2EAA2E,mfAC9FD,EAAeC,IAAI,kEAAkE,s/BACrFD,EAAeC,IAAI,kEAAkE,iyBACrFD,EAAeC,IAAI,wDAAwD,6kBAC3ED,EAAeC,IAAI,kDAAkD,61BACrED,EAAeC,IAAI,0DAA0D,gPAC7ED,EAAeC,IAAI,4DAA4D,wDAC/ED,EAAeC,IAAI,kEAAkE,mNACrFD,EAAeC,IAAI,kEAAkE,qUACrFD,EAAeC,IAAI,wEAAwE","file":"scripts/app-ac0671bbde.js","sourcesContent":["(function() {\n 'use strict';\n\n angular\n .module('angular', ['ngAnimate', 'ngCookies', 'ngStorage', 'ngTouch',\n 'ngSanitize', 'ngMessages', 'ngAria', 'restangular',\n 'ui.router', 'ui.bootstrap', 'toastr',\n 'angularMoment', 'angular.filter', 'akoenig.deckgrid',\n 'angular-timeline', 'duScroll', 'oitozero.ngSweetAlert']);\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoRecentDocumentsBlock', noosferoRecentDocumentsBlock);\n\n /** @ngInject */\n function noosferoRecentDocumentsBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/recent-documents/recent-documents.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: RecentDocumentsController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function RecentDocumentsController(noosfero, $state) {\n var vm = this;\n vm.profile = vm.owner;\n vm.documents = [];\n\n vm.openDocument = function(article) {\n $state.go(\"main.profile.page\", {page: article.path, profile: article.profile.identifier}); \n }\n\n var limit = vm.block.settings.limit || 5;\n //FIXME get all text articles\n noosfero.profiles.one(vm.profile.id).one('articles').get({content_type: 'TinyMceArticle', per_page: limit}).then(function(response) {\n vm.documents = response.data.articles;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImageBlock', noosferoProfileImageBlock);\n\n /** @ngInject */\n function noosferoProfileImageBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/profile-image/profile-image.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: ProfileImageBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageBlockController() {\n var vm = this;\n vm.profile = vm.owner;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMembersBlock', noosferoMembersBlock);\n\n /** @ngInject */\n function noosferoMembersBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/members-block/members-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MembersBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MembersBlockController(noosfero) {\n var vm = this;\n vm.members = [];\n\n noosfero.members(noosfero.profiles.one(vm.owner.id)).one().get({per_page: 6}).then(function(response) {\n vm.members = response.data.people;\n });\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoMainBlock', noosferoMainBlock);\n\n /** @ngInject */\n function noosferoMainBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: MainBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function MainBlockController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoLinkListBlock', noosferoLinkListBlock);\n\n /** @ngInject */\n function noosferoLinkListBlock() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-blocks/link-list/link-list.html',\n scope: {\n block: '=',\n owner: '='\n },\n controller: LinkListBlockController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function LinkListBlockController() {\n var vm = this;\n vm.links = vm.block.settings.links;\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlog', noosferoBlog);\n\n /** @ngInject */\n function noosferoBlog() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/blog/blog.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: BlogController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BlogController(noosfero) {\n var vm = this;\n vm.posts = [];\n vm.perPage = 3;\n vm.currentPage = 1;\n\n vm.loadPage = function() {\n noosfero.articles.one(vm.article.id).customGET('children', {\n content_type: 'TinyMceArticle',\n per_page: vm.perPage,\n page: vm.currentPage\n }).then(function(response) {\n vm.totalPosts = response.headers('total');\n vm.posts = response.data.articles;\n });\n }\n vm.loadPage();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoArticle', noosferoArticle);\n\n /** @ngInject */\n function noosferoArticle($injector, $compile) {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero-articles/article/article.html',\n scope: {\n article: '=',\n profile: '='\n },\n controller: ArticleController,\n controllerAs: 'vm',\n bindToController: true,\n link: function(scope, element) {\n var specificDirective = 'noosfero'+scope.vm.article.type;\n if($injector.has(specificDirective+'Directive')) {\n var directiveName = specificDirective.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<'+directiveName+' article=\"vm.article\" profile=\"vm.profile\"></'+directiveName+'>')(scope)); \n }\n }\n };\n\n return directive;\n\n /** @ngInject */\n function ArticleController() {\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivity', noosferoActivity);\n\n /** @ngInject */\n function noosferoActivity() {\n var directive = {\n restrict: 'E',\n scope: {\n activity: '='\n },\n templateUrl: 'app/components/noosfero-activities/activity/activity.html',\n replace: true,\n controller: ActivityController,\n controllerAs: 'vm',\n bindToController: true\n };\n return directive;\n\n /** @ngInject */\n function ActivityController() {\n var vm = this;\n vm.getActivityTemplate = function(activity) {\n return 'app/components/noosfero-activities/activity/' + activity.verb + '.html';\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoProfileImage', noosferoProfileImage);\n\n /** @ngInject */\n function noosferoProfileImage() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/noosfero/profile-image/profile-image.html',\n scope: {\n profile: '='\n },\n controller: ProfileImageController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function ProfileImageController() {\n var vm = this;\n vm.defaultIcon = 'fa-users';\n if(vm.profile && vm.profile.type==='Person') vm.defaultIcon = 'fa-user';\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBoxes', noosferoBoxes);\n\n /** @ngInject */\n function noosferoBoxes() {\n var directive = {\n restrict: 'E',\n scope: {\n boxes: '=',\n owner: '='\n },\n templateUrl: 'app/components/noosfero-boxes/boxes.html',\n controller: BoxesController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function BoxesController() {\n var vm = this;\n\n vm.boxesOrder = function(box) {\n if(box.position==2) return 0;\n return box.position;\n }\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoBlock', noosferoBlock);\n\n /** @ngInject */\n function noosferoBlock($compile) {\n var directive = {\n restrict: 'E',\n scope: {\n block: '=',\n owner: '='\n },\n link: function(scope, element) {\n var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n element.replaceWith($compile('<noosfero-'+blockName+' block=\"block\" owner=\"owner\"></noosfero-'+blockName+'>')(scope));\n }\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('noosferoActivities', noosferoActivities);\n\n /** @ngInject */\n function noosferoActivities() {\n var directive = {\n restrict: 'E',\n scope: {\n activities: '='\n },\n templateUrl: 'app/components/noosfero-activities/activities.html'\n };\n return directive;\n }\n\n})();\n\n(function() {\n 'use strict';\n \n angular.module('angular').factory('noosfero', function(Restangular) {\n var currentProfile;\n\n return {\n currentProfile: currentProfile,\n profiles: Restangular.service('profiles'),\n articles: Restangular.service('articles'),\n profile: function(profileId) {\n return Restangular.one('profiles', profileId);\n },\n members: function(profile) {\n return Restangular.service('members', profile);\n },\n boxes: function(profileId) {\n return Restangular.service('boxes', Restangular.one('profiles', profileId))\n }\n }\n });\n})();\n\n(function() {\n 'use strict';\n angular\n .module(\"angular\")\n .filter(\"noosferoTemplateFilter\", function() {\n return function(text, options) {\n for(var option in options) {\n text = text.replace('{'+option+'}', options[option]);\n }\n return text;\n }\n })\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .directive('acmeNavbar', acmeNavbar);\n\n /** @ngInject */\n function acmeNavbar() {\n var directive = {\n restrict: 'E',\n templateUrl: 'app/components/navbar/navbar.html',\n scope: {},\n controller: NavbarController,\n controllerAs: 'vm',\n bindToController: true\n };\n\n return directive;\n\n /** @ngInject */\n function NavbarController(moment, $modal, AuthService, Session, $scope, $state, AUTH_EVENTS) {\n var vm = this;\n\n vm.currentUser = Session.getCurrentUser();\n vm.modalInstance = null;\n\n vm.openLogin = function() {\n vm.modalInstance = $modal.open({\n templateUrl: 'app/components/auth/login.html',\n controller: 'AuthController',\n controllerAs: 'vm',\n bindToController: true\n });\n };\n vm.logout = function() {\n AuthService.logout();\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n };\n $scope.$on(AUTH_EVENTS.loginSuccess, function() {\n if(vm.modalInstance) {\n vm.modalInstance.close();\n vm.modalInstance = null;\n }\n $state.go($state.current, {}, {reload: true}); //TODO move to auth\n });\n $scope.$on(AUTH_EVENTS.logoutSuccess, function() {\n vm.currentUser = Session.getCurrentUser();\n });\n\n vm.activate = function() {\n if(!vm.currentUser) vm.openLogin();\n }\n vm.activate();\n }\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .factory('Session', Session)\n .factory('AuthService', AuthService);\n\n /** @ngInject */\n function AuthService($q, $http, $rootScope, Session, $log, AUTH_EVENTS) {\n\n function login (credentials) {\n var url = '/api/v1/login';\n var encodedData = 'login=' + credentials.username + '&password=' + credentials.password;\n return $http.post(url, encodedData).then(loginSuccessCallback, loginFailedCallback);\n }\n\n function loginFromCookie() {\n var url = '/api/v1/login_from_cookie';\n return $http.post(url).then(loginSuccessCallback, loginFailedCallback);\n }\n \n function loginSuccessCallback(response) {\n $log.debug('AuthService.login [SUCCESS] response', response);\n var currentUser = Session.create(response.data);\n $rootScope.currentUser = currentUser;\n $rootScope.$broadcast(AUTH_EVENTS.loginSuccess, currentUser);\n return currentUser;\n }\n \n function loginFailedCallback(response) {\n $log.debug('AuthService.login [FAIL] response', response);\n $rootScope.$broadcast(AUTH_EVENTS.loginFailed);\n // return $q.reject(response);\n return null;\n }\n\n function logout () {\n Session.destroy();\n $rootScope.currentUser = undefined;\n $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);\n $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state\n }\n\n function isAuthenticated () {\n return !!Session.userId;\n }\n\n function isAuthorized (authorizedRoles) {\n if (!angular.isArray(authorizedRoles)) {\n authorizedRoles = [authorizedRoles];\n }\n return (service.isAuthenticated() && authorizedRoles.indexOf(Session.userRole) !== -1);\n }\n\n var service = {\n login: login,\n loginFromCookie: loginFromCookie,\n logout: logout,\n isAuthenticated: isAuthenticated,\n isAuthorized: isAuthorized\n };\n return service;\n }\n\n /** @ngInject */\n function Session($localStorage, $log) {\n var service = {};\n\n service.create = function(data) {\n $localStorage.currentUser = data.user;\n $log.debug('User session created.', $localStorage.currentUser);\n return $localStorage.currentUser;\n };\n\n service.destroy = function() {\n delete $localStorage.currentUser;\n $log.debug('User session destroyed.');\n };\n\n service.getCurrentUser = function () {\n return $localStorage.currentUser;\n };\n\n return service;\n }\n\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('AuthController', AuthController);\n\n\n /** @ngInject */\n function AuthController(noosfero, $log, $stateParams, AuthService) {\n var vm = this;\n vm.credentials = {};\n vm.login = function() {\n AuthService.login(vm.credentials);\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileInfoController', ProfileInfoController);\n\n\n /** @ngInject */\n function ProfileInfoController(noosfero) {\n var vm = this;\n vm.profile = null;\n vm.activities = [];\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profiles.one(vm.profile.id).one('activities').get().then(function(response) {\n vm.activities = response.data.activities;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileController', ProfileController);\n\n\n /** @ngInject */\n function ProfileController(noosfero, $log, $stateParams) {\n var vm = this;\n vm.boxes = [];\n activate();\n\n function activate() {\n noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(response) {\n vm.profile = response.data[0];\n noosfero.currentProfile = vm.profile;\n return noosfero.boxes(vm.profile.id).one().get();\n }).then(function(response) {\n vm.boxes = response.data.boxes;\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ProfileHomeController', ProfileHomeController);\n\n\n /** @ngInject */\n function ProfileHomeController(noosfero, $log, $stateParams, $scope, $state) {\n var vm = this;\n activate();\n\n function activate() {\n vm.profile = noosfero.currentProfile;\n noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(response) {\n if(response.data.article) {\n $state.transitionTo('main.profile.page', {page: response.data.article.path, profile: vm.profile.identifier}, {location: false});\n } else {\n $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false});\n }\n });\n }\n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('MainController', MainController);\n\n\n /** @ngInject */\n function MainController() {\n \n }\n})();\n\n(function() {\n 'use strict';\n\n angular\n .module('angular')\n .controller('ContentViewerController', ContentViewerController);\n\n\n /** @ngInject */\n function ContentViewerController(noosfero, $log, |