-
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
90 changed files
with
1,849 additions
and
855 deletions.
There are no files selected for viewing
Empty file.
Empty file.
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,38 +1,39 @@ | ||
var appConfig = { | ||
|
||
'version': '1.0.0', | ||
'version': '1.0.0', | ||
|
||
'allowAnonymous': true, | ||
'allowAnonymous': true, | ||
|
||
'anonymousRole': 'ROLE_ANONYMOUS', | ||
'anonymousRole': 'ROLE_ANONYMOUS', | ||
|
||
// Set this to the webService if mocking AuthService | ||
// Set this to the webService if mocking AuthService | ||
|
||
'authService': 'https://labs.library.tamu.edu/auth3', | ||
'webService': 'http://localhost:9000', | ||
'authService': 'https://labs.library.tamu.edu/auth3', | ||
'webService': 'http://localhost:9001', | ||
|
||
'storageType': 'session', | ||
'storageType': 'session', | ||
|
||
'logging': { | ||
'log': true, | ||
'info': true, | ||
'warn': true, | ||
'error': true, | ||
'debug': true | ||
}, | ||
'logging': { | ||
'log': true, | ||
'info': true, | ||
'warn': true, | ||
'error': true, | ||
'debug': true | ||
}, | ||
|
||
'stompDebug': false, | ||
'stompDebug': false, | ||
|
||
/* | ||
Determines the type of connection stomp will attempt to make with the service. | ||
TYPES: websocket, xhr-streaming, xdr-streaming, eventsource, iframe-eventsource, | ||
htmlfile, iframe-htmlfile, xhr-polling, xdr-polling, iframe-xhr-polling, | ||
jsonp-polling | ||
*/ | ||
'sockJsConnectionType': ['websocket', 'xhr-streaming', 'xhr-polling', 'xdr-streaming', 'xdr-polling', 'iframe-eventsource', 'iframe-htmlfile', 'jsonp-polling'], | ||
/* | ||
Determines the type of connection stomp will attempt to make with the service. | ||
TYPES: websocket, xhr-streaming, xdr-streaming, eventsource, iframe-eventsource, | ||
htmlfile, iframe-htmlfile, xhr-polling, xdr-polling, iframe-xhr-polling, | ||
jsonp-polling | ||
*/ | ||
'sockJsConnectionType': ['websocket', 'xhr-streaming', 'xhr-polling', 'xdr-streaming', 'xdr-polling', 'iframe-eventsource', 'iframe-htmlfile', 'jsonp-polling'], | ||
|
||
// Set this to 'admin' or 'user' if using mock AuthService | ||
// otherwise set to null or false | ||
// Set this to 'admin' or 'user' if using mock AuthService | ||
// otherwise set to null or false | ||
|
||
'mockRole': null | ||
}; | ||
'mockRole': null | ||
|
||
}; |
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
Empty file.
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,69 @@ | ||
app.controller('ActiveSprintsController', function ($controller, $sce, $scope, ActiveSprintsService, StatusRepo) { | ||
|
||
angular.extend(this, $controller('AbstractController', { | ||
$scope: $scope | ||
})); | ||
|
||
if (sessionStorage.selected === undefined) { | ||
sessionStorage.selected = 0; | ||
} | ||
|
||
var trusted = {}; | ||
|
||
$scope.statuses = StatusRepo.getAll(); | ||
|
||
$scope.activeSprints = ActiveSprintsService.getActiveSprints(); | ||
|
||
$scope.select = function (index) { | ||
sessionStorage.selected = index; | ||
}; | ||
|
||
$scope.kanbanHeader = function () { | ||
return $scope.getSelectedSprint() ? $scope.getSelectedSprint().project + ": " + $scope.getSelectedSprint().name : "Select Sprint Above"; | ||
}; | ||
|
||
$scope.getSprintEstimateTotal = function (sprint) { | ||
var total = 0; | ||
for (var i in sprint.cards) { | ||
var card = sprint.cards[i]; | ||
if (card.estimate) { | ||
total += card.estimate; | ||
} | ||
} | ||
return total; | ||
}; | ||
|
||
$scope.getStatusEstimateTotal = function (status) { | ||
var total = 0; | ||
var sprint = $scope.getSelectedSprint(); | ||
for (var i in sprint.cards) { | ||
var card = sprint.cards[i]; | ||
if (card.status === status.identifier && card.estimate) { | ||
total += card.estimate; | ||
} | ||
} | ||
return total; | ||
}; | ||
|
||
$scope.getAvatarUrl = function (assignee) { | ||
return appConfig.webService + "/images/" + assignee.avatar; | ||
}; | ||
|
||
$scope.getHtmlContent = function (content) { | ||
return trusted[content] || (trusted[content] = $sce.trustAsHtml(content)); | ||
}; | ||
|
||
$scope.getSelectedSprint = function () { | ||
return $scope.activeSprints.length > 0 ? $scope.activeSprints[sessionStorage.selected] : undefined; | ||
}; | ||
|
||
ActiveSprintsService.updated.then(null, null, function () { | ||
if ($scope.activeSprints.length > 0) { | ||
while (sessionStorage.selected >= $scope.activeSprints.length) { | ||
sessionStorage.selected--; | ||
} | ||
$scope.select(sessionStorage.selected); | ||
} | ||
}); | ||
|
||
}); |
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.