-
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.
Correct routing for other modules, renamed settings to groups
- Loading branch information
Showing
15 changed files
with
214 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!doctype html> | ||
<html lang="en" ng-controller="analysisController"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Cmput391</title> | ||
<!-- Latest compiled and minified CSS --> | ||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | ||
|
||
<!-- jQuery library --> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> | ||
|
||
<!-- Latest compiled JavaScript --> | ||
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> | ||
<script src="bower_components/angular/angular.js"></script> | ||
</head> | ||
<body> | ||
<h1 style="text-align: center;">Analysis</h1> | ||
|
||
|
||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
angular.module("myApp.analysis", ["ngRoute", "LocalStorageModule"]) | ||
|
||
.config(["$routeProvider", function($routeProvider) { | ||
$routeProvider.when("/analysis", { | ||
templateUrl: "analysis/analysis.html", | ||
controller: "analysisController" | ||
}); | ||
}]) | ||
|
||
.controller("analysisController", function($scope, $location, localStorageService) { | ||
var usernameFromStorage, | ||
storageKey = "user"; | ||
|
||
function getItem(key) { | ||
return localStorageService.get(key); | ||
}; | ||
|
||
if(!getItem(storageKey)){ | ||
//User has not logged in yet so redirect to login | ||
$location.url("/login"); | ||
} | ||
|
||
|
||
|
||
}); |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!doctype html> | ||
<html lang="en" ng-controller="displayController"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Cmput391</title> | ||
<!-- Latest compiled and minified CSS --> | ||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | ||
|
||
<!-- jQuery library --> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> | ||
|
||
<!-- Latest compiled JavaScript --> | ||
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> | ||
<script src="bower_components/angular/angular.js"></script> | ||
</head> | ||
<body> | ||
<h1 style="text-align: center;">Display</h1> | ||
|
||
|
||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
angular.module("myApp.display", ["ngRoute", "LocalStorageModule"]) | ||
|
||
.config(["$routeProvider", function($routeProvider) { | ||
$routeProvider.when("/display", { | ||
templateUrl: "display/display.html", | ||
controller: "displayController" | ||
}); | ||
}]) | ||
|
||
.controller("displayController", function($scope, $location, localStorageService) { | ||
var usernameFromStorage, | ||
storageKey = "user"; | ||
|
||
function getItem(key) { | ||
return localStorageService.get(key); | ||
}; | ||
|
||
if(!getItem(storageKey)){ | ||
//User has not logged in yet so redirect to login | ||
$location.url("/login"); | ||
} | ||
|
||
|
||
|
||
}); |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!doctype html> | ||
<html lang="en" ng-controller="groupsController"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Cmput391</title> | ||
<!-- Latest compiled and minified CSS --> | ||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | ||
|
||
<!-- jQuery library --> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> | ||
|
||
<!-- Latest compiled JavaScript --> | ||
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> | ||
<script src="bower_components/angular/angular.js"></script> | ||
</head> | ||
<body> | ||
<h1 style="text-align: center;">Groups</h1> | ||
|
||
|
||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
angular.module("myApp.groups", ["ngRoute", "LocalStorageModule"]) | ||
|
||
.config(["$routeProvider", function($routeProvider) { | ||
$routeProvider.when("/groups", { | ||
templateUrl: "groups/groups.html", | ||
controller: "groupsController" | ||
}); | ||
}]) | ||
|
||
.controller("groupsController", function($scope, $location, localStorageService) { | ||
var usernameFromStorage, | ||
storageKey = "user"; | ||
|
||
function getItem(key) { | ||
return localStorageService.get(key); | ||
}; | ||
|
||
if(!getItem(storageKey)){ | ||
//User has not logged in yet so redirect to login | ||
$location.url("/login"); | ||
} | ||
|
||
|
||
|
||
}); |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!doctype html> | ||
<html lang="en" ng-controller="searchController"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Cmput391</title> | ||
<!-- Latest compiled and minified CSS --> | ||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | ||
|
||
<!-- jQuery library --> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> | ||
|
||
<!-- Latest compiled JavaScript --> | ||
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> | ||
<script src="bower_components/angular/angular.js"></script> | ||
</head> | ||
<body> | ||
<h1 style="text-align: center;">Search</h1> | ||
|
||
|
||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
angular.module("myApp.search", ["ngRoute", "LocalStorageModule"]) | ||
|
||
.config(["$routeProvider", function($routeProvider) { | ||
$routeProvider.when("/search", { | ||
templateUrl: "search/search.html", | ||
controller: "searchController" | ||
}); | ||
}]) | ||
|
||
.controller("searchController", function($scope, $location, localStorageService) { | ||
var usernameFromStorage, | ||
storageKey = "user"; | ||
|
||
function getItem(key) { | ||
return localStorageService.get(key); | ||
}; | ||
|
||
if(!getItem(storageKey)){ | ||
//User has not logged in yet so redirect to login | ||
$location.url("/login"); | ||
} | ||
|
||
}); |
Empty file.
Empty file.