# HG changeset patch # User rougeronj # Date 1427992111 -7200 # Node ID 388b29d38b443b0199728910317069f58e8fc867 # Parent e38e9d5114add9b835474974595a6547af2b4bf0 add authentication and controle of authentication before routing diff -r e38e9d5114ad -r 388b29d38b44 client/app/Auth/auth.html --- a/client/app/Auth/auth.html Thu Apr 02 18:26:43 2015 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -Authentication Page \ No newline at end of file diff -r e38e9d5114ad -r 388b29d38b44 client/app/Auth/login_controller_test.js --- a/client/app/Auth/login_controller_test.js Thu Apr 02 18:26:43 2015 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -'use strict'; - -describe("auth_controller_test", function(){ - it("should assert something",function(){ - expect(true).toBe(true); - }) -}) diff -r e38e9d5114ad -r 388b29d38b44 client/app/app.js --- a/client/app/app.js Thu Apr 02 18:26:43 2015 +0200 +++ b/client/app/app.js Thu Apr 02 18:28:31 2015 +0200 @@ -1,110 +1,116 @@ (function(){ - 'use strict'; + 'use strict'; - angular.module('ammico', [ 'ngRoute','ammicoHome', 'ammicoBooks', 'ammicoSlides', 'ammicoSlideshow', 'ammicoSearch', 'ammicoAuth', 'templates' ]) - .config(function($routeProvider) { - $routeProvider. - when('/', { - controller: 'homeCtrl', - templateUrl: 'home/home.html' - }). - when('/books', { - controller: 'booksCtrl', - templateUrl: 'books/books.html' - }). - when('/books/:idBook', { - controller: 'bookCtrl', - templateUrl: 'books/book.html' - }). - when('/books/:idBook/add/:searched', { - controller: 'booksCtrl', - templateUrl: 'books/book.html' - }). - when('/slide/:idSlide', { - controller: 'slidesCtrl', - templateUrl: 'slides/slides.html' - }). - when('/slideshow/', { - controller: 'slideshowCtrl', - templateUrl: 'slideshow/slideshow.html' - }). - when('/slideshow/:iSlide', { - controller: 'slideshowCtrl', - templateUrl: 'slideshow/slideshow.html' - }). - when('/search/:q', { - controller: 'searchCtrl', - templateUrl: 'search/search.html' - }). - when('/login', { - controller: 'authCtrl', - templateUrl: 'auth/auth.html' - }). - otherwise({ - redirectTo: '/' - }); - }) - // .config(function ($routeProvider) { - // $routeProvider - // .otherwise({ - // redirectTo: '/' - // }); - // }); - .config(function($logProvider){ - $logProvider.debugEnabled(true); - }) - .service('searchApi', function($resource, context) { - this.searchResource = function(params){ - return $resource(context.urls.searchUrl, - { - callback: 'JSON_CALLBACK' - }, - { - getJsonp: { - method: 'JSONP', - params: params, - isArray: false, - transformResponse: function(data){ - // Transform meta list into meta dict - var nb = data.hits.length; - for(var i=0;iAmmico Application \ No newline at end of file +

Ammico Application

+ +

+ Le Lorem Ipsum est simplement du faux texte employé dans la composition + et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de + l'imprimerie depuis les années 1500, quand un peintre anonyme assembla ensemble des + morceaux de texte pour réaliser un livre spécimen de polices de texte. Il n'a pas fait + que survivre cinq siècles, mais s'est aussi adapté à la bureautique informatique, sans + que son contenu n'en soit modifié. Il a été popularisé dans les années 1960 grâce à la + vente de feuilles Letraset contenant des passages du Lorem Ipsum, et, plus récemment, + par son inclusion dans des applications de mise en page de texte, comme Aldus PageMaker. +

\ No newline at end of file diff -r e38e9d5114ad -r 388b29d38b44 client/app/index.html --- a/client/app/index.html Thu Apr 02 18:26:43 2015 +0200 +++ b/client/app/index.html Thu Apr 02 18:28:31 2015 +0200 @@ -25,8 +25,8 @@
  • Diaporama