Skip to content

Commit

Permalink
addLesson.html
Browse files Browse the repository at this point in the history
  • Loading branch information
idtoufik committed Mar 14, 2017
1 parent 434c3e2 commit 02f12d6
Show file tree
Hide file tree
Showing 456 changed files with 16,234 additions and 367 deletions.
6 changes: 3 additions & 3 deletions bin/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# connection. In this example we have "netgloo_blog" as database name and
# "root" as username and password.
spring.datasource.url = jdbc:mysql://localhost:3306/test?verifyServerCertificate=false&useSSL=false&requireSSL=false
spring.datasource.username = root
spring.datasource.password = root
spring.datasource.username = learn
spring.datasource.password = bismiallah

# Keep the connection alive if idle for a long time (needed in production)
#spring.datasource.testWhileIdle = true
Expand All @@ -22,4 +22,4 @@ spring.jpa.hibernate.naming.strategy = org.hibernate.cfg.ImprovedNamingStrategy
# stripped before adding them to the entity manager)

# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
Binary file modified build/classes/main/fr/learn/SecurityConfig.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/course/CourseController.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/course/CourseService.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/dao/Course.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/dao/Exercise.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/dao/Lesson.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/dao/Member.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/dao/Role.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/exercise/ExerciseController.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/exercise/ExerciseService.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/lesson/LessonController.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/lesson/LessonService.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/member/MemberController.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/member/MemberDetailsService.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/member/MemberRepository.class
Binary file not shown.
Binary file modified build/classes/main/fr/learn/member/MemberService.class
Binary file not shown.
Binary file modified build/libs/learn-0.0.1-SNAPSHOT.jar
Binary file not shown.
Binary file modified build/libs/learn-0.0.1-SNAPSHOT.jar.original
Binary file not shown.
174 changes: 89 additions & 85 deletions build/reports/tests/classes/fr.learn.LearnApplicationTests.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions build/reports/tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>Test Summary</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.877s</div>
<div class="counter">0.095s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -85,7 +85,7 @@ <h2>Packages</h2>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.877s</td>
<td>0.095s</td>
<td class="success">100%</td>
</tr>
</tbody>
Expand All @@ -111,7 +111,7 @@ <h2>Classes</h2>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.877s</td>
<td>0.095s</td>
<td class="success">100%</td>
</tr>
</tbody>
Expand All @@ -125,7 +125,7 @@ <h2>Classes</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 2.10</a> at Feb 27, 2017 2:23:17 PM</p>
<a href="http://www.gradle.org">Gradle 2.10</a> at Mar 13, 2017 9:09:46 AM</p>
</div>
</div>
</body>
Expand Down
6 changes: 3 additions & 3 deletions build/reports/tests/packages/fr.learn.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1>Package fr.learn</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.877s</div>
<div class="counter">0.095s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -83,7 +83,7 @@ <h2>Classes</h2>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.877s</td>
<td>0.095s</td>
<td class="success">100%</td>
</tr>
</table>
Expand All @@ -96,7 +96,7 @@ <h2>Classes</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 2.10</a> at Feb 27, 2017 2:23:17 PM</p>
<a href="http://www.gradle.org">Gradle 2.10</a> at Mar 13, 2017 9:09:46 AM</p>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion build/resources/main/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ spring.jpa.hibernate.naming.strategy = org.hibernate.cfg.ImprovedNamingStrategy
# stripped before adding them to the entity manager)

# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
15 changes: 5 additions & 10 deletions build/resources/main/static/Communaute.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,13 @@
<script src="style/jquery-3.1.1.js"></script>
<link rel="stylesheet" href="style/bootstrap/css/bootstrap.min.css">
<script src="style/bootstrap/js/bootstrap.min.js"></script>

<script src="style/angular.min.js"></script>
</head>
<!-------------------------------------->
<body>
<script>
$(function(){
$("#navbar").load("navbar.html", function(){
$("#communaute").addClass("active");
});
});
</script>
<div id="navbar" class="container" ></div>
<body ng-app="app">

<script src="js/global.js"></script>
<div nav-bar page="communaute" member="member"></div>


<div class="container">
Expand Down
44 changes: 14 additions & 30 deletions build/resources/main/static/Tutorials.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@
<link rel="stylesheet" href="style/bootstrap/css/bootstrap.min.css">
<script src="style/bootstrap/js/bootstrap.min.js"></script>
<script src="style/angular.min.js"></script>
<script src="js/tutorial.js"> </script>

<script src="js/global.js"></script>

</head>
<!--- ________________________________ -->
<body ng-app="app">
<script>
$(function(){
$("#navbar").load("navbar.html", function(){
$("#tuto").addClass("active");
});
});
</script>
<div id="navbar"></div>
<body ng-app="app" >

<div>
<div nav-bar page="tutorials" ></div>
</div>
<br>


Expand All @@ -36,39 +34,26 @@

<h2 class="page-header">Services Panels</h2>

<div class="col-md-3 col-sm-6">
<div class="panel panel-default text-center">
<div class="panel-heading">
<span class="fa-stack fa-5x">
<img src="/Users/chelalimohamed-tayeb/Pictures/lenna.png" style="height: 140px;"/>
</span>
</div>
<div class="panel-body">
<h4>Cours 1</h4>
<p>Vien apprendre des choses au lieux de perdre ton temps.</p>
<a href="#" class="btn btn-primary">Learn More</a>
</div>
</div>
</div>
<!-- ________________________-this is as test of AngularJS __________________________ -->
<div class="row" ng-controller="AppCtrl as app">
<div class="col-md-3 col-sm-6" ng-repeat="c in app.sujet">

<div class="row" ng-controller="AppCtrl2">
<div class="col-md-3 col-sm-6" ng-repeat="c in sujet">
<div class="panel panel-default text-center" >
<div class="panel-heading">
<span class="fa-stack fa-5x">
<img src="data:image/png;base64, {{c.image}}" style="height: 140px;"/ >
<img src="{{c.image}}" style="height: 140px;" />
</span>
</div>
<div class="panel-body" >
<h4>{{c.subject}}</h4>
<p>{{c.description}}</p>

<a href="#" class="btn btn-primary">Learn More</a>
<a href="/services/courses/course/{{c.id}}" class="btn btn-primary">Learn More</a>
</div>
</div>
</div>
</div>

<!-- script src="js/tutorial.js"> </script-->
<!-- ________________________end of test __________________________ -->
<div class="row"></div>

Expand All @@ -83,6 +68,5 @@ <h4>{{c.subject}}</h4>
</footer>

</div>

</body>
</html>
14 changes: 5 additions & 9 deletions build/resources/main/static/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@
<script src="style/jquery-3.1.1.js"></script>
<link rel="stylesheet" href="style/bootstrap/css/bootstrap.min.css">
<script src="style/bootstrap/js/bootstrap.min.js"></script>
<script src="style/angular.min.js"></script>

</head>
<!-------------------------------------->
<body>
<script>
$(function(){
$("#navbar").load("navbar.html", function(){
$("#about").addClass("active");
});
});
</script>
<div id="navbar" class="container" ></div>
<body ng-app="app" ng-controller="controller">

<script src="js/global.js"></script>
<div nav-bar page="about"></div>


<div class="container">
Expand Down
16 changes: 6 additions & 10 deletions build/resources/main/static/contactsus.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,15 @@
<script src="style/jquery-3.1.1.js"></script>
<link rel="stylesheet" href="style/bootstrap/css/bootstrap.min.css">
<script src="style/bootstrap/js/bootstrap.min.js"></script>
<script src="style/angular.min.js"></script>

</head>
<!-------------------------------------->
<body>
<script>
$(function(){
$("#navbar").load("navbar.html", function(){
$("#contactsus").addClass("active");
});
});
</script>
<div id="navbar" class="container" ></div>

<body ng-app="app" ng-controller="AppCtrl">

<script src="js/global.js"></script>
<div nav-bar page="contactus" member="member"></div>

<div class="container">
<h1 class="page-header">Contact <small>Subheading</small></h1>

Expand Down
14 changes: 4 additions & 10 deletions build/resources/main/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@

</head>
<!-------------------------------------->
<body ng-app="app" ng-controller="AppCtrl">
<script>
/*$(function(){
$("#navbar").load("navbar.html", function(){
$("#accueil").addClass("active");
});
});*/
</script>
<script src="js/global.js"></script>
<div nav-bar page="accueil" member="member"></div>
<body ng-app="app" ng-controller="controller">

<script src="js/global.js"></script>
<div nav-bar page="accueil"></div>


<header id="myCarousel" class="carousel slide">
Expand Down
75 changes: 62 additions & 13 deletions build/resources/main/static/js/global.js
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);
});
});




18 changes: 8 additions & 10 deletions build/resources/main/static/labs/compile_C.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,16 @@
<script src="../resources/CodeMirror-master/CodeMirror-master/addon/selection/active-line.js"></script>
<script src="../resources/CodeMirror-master/CodeMirror-master/addon/edit/matchbrackets.js"></script>


<script src="../style/angular.min.js"></script>
<script src="../js/global.js"></script>
</head>
<!-------------------------------------->
<body>
<script>
$(function(){
$("#navbar").load("lab_navbar.html", function(){
$("#communaute").addClass("active");
});
});
</script>
<div id="navbar" class="container" ></div>
<body ng-app="app">


<div ng-controller="AppCtrl">
<div nav-bar page="labs" member="member"></div>
</div>


<div class="container">
Expand Down
16 changes: 5 additions & 11 deletions build/resources/main/static/labs/compile_c++.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,13 @@
<script src="../resources/CodeMirror-master/CodeMirror-master/addon/selection/active-line.js"></script>
<script src="../resources/CodeMirror-master/CodeMirror-master/addon/edit/matchbrackets.js"></script>


<script src="../style/angular.min.js"></script>
</head>
<!-------------------------------------->
<body>
<script>
$(function(){
$("#navbar").load("lab_navbar.html", function(){
$("#communaute").addClass("active");
});
});
</script>
<div id="navbar" class="container" ></div>

<body ng-app="app" ng-controller="AppCtrl">

<script src="../js/global.js"></script>
<div nav-bar page="labs" member="member"></div>

<div class="container">
<div class="row">
Expand Down
Loading

0 comments on commit 02f12d6

Please sign in to comment.