-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.js
106 lines (97 loc) · 4.11 KB
/
environment.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/* jshint node: true */
// If you modify this file you need to rebuild the DAACS-Web.
// /daacs/install/install-daacs-web.sh
module.exports = function(environment) {
var ENV = {
modulePrefix: 'daacs',
podModulePrefix: 'daacs/pods',
environment: environment,
baseURL: '/',
RESTAPI: 'https://DAACS_DOMAIN/api',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
}
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
},
'ember-simple-auth': {
authenticationRoute: 'login',
routeIfAlreadyAuthenticated: 'dashboard',
routeAfterAuthentication: 'dashboard',
isSaml: false,
samlLoginEndpoint: '',
samlLogoutEndpoint: '',
logoutType: 'local',
logoutShown: true,
allowCreateAccount: true,
requiresConsent: false
},
'ember-cli-mirage': {
},
i18n: {
defaultLocale: 'en'
},
fastboot: {
htmlFile: 'index-configured.html',
hostWhitelist: [/^165.227.195.157:\d+$/,/^165.227.195.157$/,/^umgc\.daacs\.net:\d+$/,/^umgc\.daacs\.net$/,/^localhost:\d+$/]
},
scoreDisplay: {
UNSCORED: '<div class="score-display-dot-path" aria-label="Not Scored"><div class="dot"></div><div classdot"></div><div class="dot"></div></div>',
LOW: '<div class="score-display-dot-path" aria-label="Developing"><div class="dot filled"></div><div class="dot highlighted"></div><div class="dot"></div></div>',
MEDIUM: '<div class="score-display-dot-path" aria-label="Emerging"><div class="dot filled"></div><div class="dot filled"></div><div class="dot highlighted"></div></div>',
HIGH: '<div class="score-display-dot-path" aria-label="Mastering"><div class="dot filled"></div><div class="dot filled"></div><div class="dot filled"></div></div>'
},
dashboardCategoryOrder: ['COLLEGE_SKILLS', 'WRITING', 'READING', 'MATHEMATICS'],
helpDialogContent: {
beforeForm: 'If you have any questions about this assessment, or have encountered any technical problems, please fill out and submit the form below.',
afterForm: ''
},
errorPageContent: "<p>Ooops, looks like there has been an error....</p><p>To report this error please send a detailed description of the issue to <a href=\"mailto:admin@daacs.net?subject=DAACS Application Error\">admin@daacs.net</a>.</p><p>When sending an email please include:<br /><ul><li>Your full name</li><li>Email address used to login to DAACS</li><li>A detailed description of the problem you are encountering</li><li>Any error messages (if any) you are receiving</li></ul/p>",
'ember-error-logger': {
}
};
if (environment === 'development') {
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
ENV['ember-cli-mirage'].enabled = false;
ENV.RESTAPI = 'https://DAACS_DOMAIN/api';
ENV['ember-simple-auth'].samlLoginEndpoint = ENV.RESTAPI + '/saml/login';
ENV['ember-simple-auth'].isSaml = false;
ENV['ember-simple-auth'].allowCreateAccount = true;
ENV['simple-auth-oauth2'] = {
serverTokenEndpoint: ENV.RESTAPI + '/oauth/token'
};
ENV['ember-error-logger'].consumers = {
'console-consumer': true
};
}
if (environment === 'test') {
ENV['ember-cli-mirage'].enabled = false;
ENV.RESTAPI = 'https://DAACS_DOMAIN/api';
ENV['ember-simple-auth'].samlLoginEndpoint = ENV.RESTAPI + '/saml/login';
ENV['ember-simple-auth'].isSaml = false;
ENV['simple-auth-oauth2'] = {
serverTokenEndpoint: ENV.RESTAPI + '/oauth/token'
};
}
if (environment === 'production') {
ENV['ember-cli-mirage'].enabled = false;
ENV['simple-auth-oauth2'] = {
serverTokenEndpoint: ENV.RESTAPI + '/oauth/token'
};
ENV['ember-error-logger'].consumers = {
'api-consumer': {
'endpoint': 'error-events'
}
};
}
return ENV;
};