forked from idtoufik/learn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
456 changed files
with
16,234 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-10 Bytes
(100%)
build/classes/main/fr/learn/exercise/ExerciseController.class
Binary file not shown.
Binary file modified
BIN
+185 Bytes
(110%)
build/classes/main/fr/learn/exercise/ExerciseService.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+754 Bytes
(150%)
build/classes/main/fr/learn/member/MemberDetailsService.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
174 changes: 89 additions & 85 deletions
174
build/reports/tests/classes/fr.learn.LearnApplicationTests.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,67 @@ | ||
|
||
var app = angular.module('app', []); | ||
app.controller('AppCtrl', function($scope,$http) { | ||
var app = this; | ||
$scope.member = 0; | ||
$http.get("/resources/members/loggedIn") | ||
.then( function(data) { | ||
$scope.member = data.data; | ||
}); | ||
}).directive('navBar', function() { | ||
|
||
app.directive('navBar', function($http) { | ||
return { | ||
templateUrl:"navbar.html", | ||
templateUrl:"/navbar.html", | ||
scope : { | ||
member: "=member", | ||
page : "@page" | ||
page : "@page" | ||
}, | ||
link : function(scope, elt, attr){ | ||
$http.get("/resources/members/loggedIn") | ||
.then( function(data) { | ||
scope.member = data.data; | ||
//console.log(data.data); | ||
}) | ||
scope.member = "" | ||
scope.isUndefined = function(){ | ||
return (typeof scope.member.id === "undefined") | ||
} | ||
} | ||
|
||
}; | ||
}); | ||
}); | ||
|
||
app.controller("controller", function($scope){ | ||
|
||
}); | ||
|
||
app.controller('user', function($scope, $http){ | ||
$http.get("/resources/members/loggedIn") | ||
.then( function(data) { | ||
$http.get("/resources/members/"+data.data.id) | ||
.then(function(data){ | ||
$scope.member = data.data; | ||
console.log(data.data); | ||
}); | ||
}); | ||
$scope.saveModMember = function() { | ||
var m = { | ||
pseudo: $scope.member.pseudo, | ||
name: $scope.member.name, | ||
firstName: $scope.member.firstName, | ||
date_of_birth: $scope.member.date_of_birth, | ||
e_mail: $scope.member.e_mail, | ||
} | ||
console.log($scope.member) | ||
$http.put("/resources/members/"+$scope.member.id, m) | ||
.then( function(){ | ||
console.log("avec success"); | ||
$window.location.href = '/services/profil.html'; | ||
//$scope.$apply(function() { $location.path("/services/profil.html"); }); | ||
}) | ||
} | ||
|
||
}); | ||
|
||
app.controller('AppCtrl2', function($scope, $http) { | ||
var app = this; | ||
$http.get("/resources/courses") | ||
.then( function(data) { | ||
$scope.sujet = data.data; | ||
console.log(data.data); | ||
}); | ||
}); | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.