-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.js
90 lines (77 loc) · 2.9 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
(function() {
'use strict';
window.bbpConfig = {
api: {
user: {
v0: "https://services.humanbrainproject.eu/oidc/v0/api",
v1: "https://services.humanbrainproject.eu/idm/v1/api"
},
collab: {
v0: "https://services.humanbrainproject.eu/collab/v0"
}
},
auth: {
url: "https://services.humanbrainproject.eu/oidc",
clientId: "16b18a87-668d-42a3-9d59-497a127c006a"
},
oidc: {
debug: false
}
}
var graphSchemaApp = angular.module('graphSchemaApp',
['ui.router',
'ngFileSaver',
'ngSanitize',
'ui.bootstrap',
'angularModalService',
'jobService',
'jobResults',
'bbpOidcClient',
'clb-identity',
'clb-collab',
'neo-visualizer']);
graphSchemaApp.config(function($stateProvider, $urlRouterProvider, bbpOidcSessionProvider) {
$urlRouterProvider.otherwise('/home');
$stateProvider
// HOME STATES AND NESTED VIEWS ========================================
.state('home', {
url: '/home',
templateUrl: 'partial-home.html',
controller: 'graphController'
})
// // nested list with custom controller
// .state('home.list', {
// url: '/list',
// templateUrl: 'partial-home-list.html',
// controller: function($scope) {
// $scope.dogs = ['Bernese', 'Husky', 'Goldendoodle'];
// }
// })
// // nested list with just some random string data
// .state('home.paragraph', {
// url: '/paragraph',
// template: 'I could sure use a drink right now.'
// })
// ABOUT PAGE AND MULTIPLE NAMED VIEWS =================================
.state('about', {
url: '/about',
views: {
'': { templateUrl: 'partial-about.html' },
'columnOne@about': { template: 'Look I am a column!' },
'columnTwo@about': {
templateUrl: 'table-data.html',
controller: 'scotchController'
}
}
})
.state('neo_viewer', {
url: '/neo_viewer',
templateUrl: 'neo_viewer.html',
controller: 'neoViewerController'
});
// set to true if missing token should automatically redirect to login page.
bbpOidcSessionProvider.alwaysPromptLogin(true);
// set to true if the app should ensure a valid token is present before displaying the page.
bbpOidcSessionProvider.ensureToken(true);
});
})();