From 5b235531b220739ac0062a9f5355bc14bb42437d Mon Sep 17 00:00:00 2001 From: Ferdi Sonmezay Date: Sat, 22 Oct 2016 15:45:31 +0300 Subject: [PATCH] add AngularJs --- src/main/resources/static/index.html | 7 +- src/main/resources/static/js/restapp.js | 32 +++++++++ src/main/resources/static/partials/main.html | 69 ++++++++++++++++++++ 3 files changed, 105 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/static/js/restapp.js create mode 100644 src/main/resources/static/partials/main.html diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index 9c87056..0d0e370 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -1,5 +1,5 @@ - + @@ -8,6 +8,7 @@ + @@ -78,8 +79,8 @@

-
- Content will be displayed here +
+
diff --git a/src/main/resources/static/js/restapp.js b/src/main/resources/static/js/restapp.js new file mode 100644 index 0000000..9a06909 --- /dev/null +++ b/src/main/resources/static/js/restapp.js @@ -0,0 +1,32 @@ +//js/restapp.js + +(function() { + var app = angular.module('restapp', ['ngRoute']); + + app.config(['$routeProvider', function($routeProvider) { + $routeProvider. + when('/home', { + templateUrl: 'partials/main.html', + controller: 'MainController' + }) + .otherwise({ + redirectTo: '/home' + }); + }]); + + + app.controller('MainController', ['$scope', function($scope) { + + }]); + + + /** DEVELOPERS **/ + + /** BUGS **/ + + /** STORIES **/ + + /** ASSIGNMENTS **/ + + +})(); diff --git a/src/main/resources/static/partials/main.html b/src/main/resources/static/partials/main.html new file mode 100644 index 0000000..5c5e986 --- /dev/null +++ b/src/main/resources/static/partials/main.html @@ -0,0 +1,69 @@ +
+
+
+
+ +
+
+
+ Developers +
+

+ You can add, remove or update developers in this section. + Go

+

+
+
+
+ +
+
+
+ +
+
+
+ Bugs +
+

+ You can manage bugs in this section + Go

+

+
+
+
+ +
+
+
+ +
+
+
+ Stories +
+

+ You can manage stories in this section + Go

+

+
+
+
+ +
+
+
+ +
+
+
+ Assign +
+

+ Assign bugs and stories to developers + Go

+

+
+
+
+