diff --git a/server.js b/server.js index 62099d6..bb88fa4 100755 --- a/server.js +++ b/server.js @@ -38,7 +38,7 @@ router.get('/', function(req, res) { res.send("Hello world!"); }); app.use(router);*/ -app.use(express.static(__dirname + '/web')); +app.use(express.static(__dirname + '/webapp')); //CORS diff --git a/webapp/controllers.js b/webapp/controllers.js index 74c9d32..4950445 100644 --- a/webapp/controllers.js +++ b/webapp/controllers.js @@ -4,7 +4,12 @@ angular.module('workApp', ['chart.js']) $scope, $interval ) { - $scope.username="user"; + $scope.user={ + username: "Arnau", + avatar: "toucan", + github: "https://github.com/idoctnef", + totalWorkedTime: 4520 + }; //localStorage.clear(); $scope.working=false; $scope.projects=[]; diff --git a/webapp/index.html b/webapp/index.html index 73e1327..5feb91b 100644 --- a/webapp/index.html +++ b/webapp/index.html @@ -23,7 +23,7 @@ -
+ Users's github: {{user.github}} +
++ Total worked time: {{user.totalWorkedTime | secondsToDateTime | date:'HH:mm'}}h +
+{{project.totaltime | secondsToDateTime | date:'HH:mm:ss'}}
- -{{project.totaltime | secondsToDateTime | date:'HH:mm:ss'}}
+ ++ Total time: {{currentproject.totaltime | secondsToDateTime | date:'HH:mm:ss'}} +
++ Current strike time: {{currentStrike | secondsToDateTime | date:'HH:mm:ss'}} +
+- Total time: {{currentproject.totaltime | secondsToDateTime | date:'HH:mm:ss'}} -
-- Current strike time: {{currentStrike | secondsToDateTime | date:'HH:mm:ss'}} -
-