Skip to content

Commit

Permalink
Merge 8570e52 into 8f42e5c
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Aug 17, 2018
2 parents 8f42e5c + 8570e52 commit a293739
Show file tree
Hide file tree
Showing 107 changed files with 3,527 additions and 925 deletions.
Empty file modified app/.htaccess
100755 → 100644
Empty file.
Empty file modified app/app.js
100755 → 100644
Empty file.
79 changes: 66 additions & 13 deletions app/config/apiMapping.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -55,59 +55,112 @@ var apiMapping = {
'method': 'update'
}
},
VersionManagementSoftware: {
RemoteProjectManager: {
validations: true,
lazy: true,
channel: '/channel/version-management-software',
channel: '/channel/remote-project-manager',
all: {
'endpoint': '/private/queue',
'controller': 'version-management-software',
'controller': 'remote-project-manager',
'method': '',
'httpMethod': 'GET'
},
create: {
'endpoint': '/private/queue',
'controller': 'version-management-software',
'controller': 'remote-project-manager',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
'controller': 'version-management-software',
'controller': 'remote-project-manager',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
'controller': 'version-management-software',
'controller': 'remote-project-manager',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
'controller': 'version-management-software'
'controller': 'remote-project-manager'
},
types: {
'endpoint': '/channel',
'controller': 'version-management-software',
'controller': 'remote-project-manager',
'method': 'types/',
'httpMethod': 'GET'
},
scaffolding: {
'endpoint': '/channel',
'controller': 'version-management-software',
'controller': 'remote-project-manager',
'method': 'scaffolding/:type/',
'httpMethod': 'GET'
}
},
VersionProject: {
Status: {
validations: true,
lazy: true,
channel: '/channel/status',
all: {
'endpoint': '/private/queue',
'controller': 'projects'
'controller': 'status',
'method': '',
'httpMethod': 'GET'
},
getByScopeId: {
create: {
'endpoint': '/private/queue',
'controller': 'projects'
'controller': 'status',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
'controller': 'status',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
'controller': 'status',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
'controller': 'status'
}
},
RemoteProjects: {
all: {
'endpoint': '/private/queue',
'controller': 'projects/remote'
},
listen: {
'endpoint': '/channel',
'controller': 'projects/remote'
}
},
ProjectsStats: {
all: {
'endpoint': '/private/queue',
'controller': 'projects/stats'
},
listen: {
'endpoint': '/channel',
'controller': 'projects/stats'
}
},
ActiveSprints: {
all: {
'endpoint': '/private/queue',
'controller': 'sprints/active'
},
listen: {
'endpoint': '/channel',
'controller': 'sprints/active'
}
}
};
53 changes: 27 additions & 26 deletions app/config/appConfig.js
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

};
7 changes: 1 addition & 6 deletions app/config/routes.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
app.config(function ($routeProvider) {
$routeProvider.
when('/management', {
redirectTo: '/management/projects',
access: ["ROLE_ADMIN", "ROLE_MANGER"]
redirectTo: '/management/projects'
}).
when('/management/:tab', {
templateUrl: 'views/management.html',
access: ["ROLE_ADMIN", "ROLE_MANGER"]
}).
when('/projects', {
templateUrl: '/views/management/projects.html',
access: ["ROLE_ADMIN", "ROLE_MANGER"]
}).
when('/home', {
redirectTo: '/'
}).
Expand Down
Empty file modified app/config/runTime.js
100755 → 100644
Empty file.
69 changes: 69 additions & 0 deletions app/controllers/activeSprintsController.js
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);
}
});

});
7 changes: 0 additions & 7 deletions app/controllers/managementController.js

This file was deleted.

Loading

0 comments on commit a293739

Please sign in to comment.