2014-10-30 21:44:22 +01:00
|
|
|
/* jshint node: true */
|
2016-01-28 23:48:14 +01:00
|
|
|
/* jscs:disable requireEnhancedObjectLiterals */
|
2014-10-30 21:44:22 +01:00
|
|
|
|
|
|
|
module.exports = function(environment) {
|
2016-01-28 23:48:14 +01:00
|
|
|
const ENV = {
|
2014-10-30 21:44:22 +01:00
|
|
|
modulePrefix: 'croodle',
|
|
|
|
environment: environment,
|
2014-11-01 18:00:46 +01:00
|
|
|
locationType: 'hash',
|
2016-09-20 01:39:20 +02:00
|
|
|
rootURL: '/',
|
2014-10-30 21:44:22 +01:00
|
|
|
|
|
|
|
APP: {
|
|
|
|
// Here you can pass flags/options to your application instance
|
|
|
|
// when it is created
|
2015-01-16 16:38:47 +01:00
|
|
|
},
|
2015-11-20 02:18:19 +01:00
|
|
|
|
2015-01-16 16:38:47 +01:00
|
|
|
contentSecurityPolicy: {
|
|
|
|
'default-src': "'none'",
|
2016-08-12 22:04:09 +02:00
|
|
|
'script-src': "'self'",
|
2015-01-16 16:38:47 +01:00
|
|
|
'font-src': "'self'",
|
|
|
|
'connect-src': "'self'",
|
2016-09-03 18:51:38 +02:00
|
|
|
'img-src': "'none'",
|
2016-08-23 11:43:58 +02:00
|
|
|
'style-src': "'self'",
|
2016-09-03 18:51:38 +02:00
|
|
|
'media-src': "'none'",
|
2016-09-03 16:26:57 +02:00
|
|
|
'referrer': "no-referrer"
|
2015-08-01 11:41:41 +02:00
|
|
|
},
|
|
|
|
|
2016-08-18 00:20:30 +02:00
|
|
|
EmberENV: {
|
|
|
|
EXTEND_PROTOTYPES: {
|
|
|
|
Array: true,
|
|
|
|
Date: false,
|
|
|
|
String: false,
|
|
|
|
Function: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2015-08-01 11:41:41 +02:00
|
|
|
moment: {
|
|
|
|
includeLocales: ['de', 'es'],
|
2017-07-25 16:10:55 +02:00
|
|
|
includeTimezone: 'subset'
|
2015-11-20 02:18:19 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
i18n: {
|
|
|
|
defaultLocale: 'en'
|
2014-07-06 17:37:54 +02:00
|
|
|
}
|
2014-10-30 21:44:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
if (environment === 'test') {
|
|
|
|
// Testem prefers this...
|
2015-01-24 15:35:50 +01:00
|
|
|
ENV.locationType = 'hash';
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2014-10-30 21:44:22 +01:00
|
|
|
// keep test console output quieter
|
|
|
|
ENV.APP.LOG_ACTIVE_GENERATION = false;
|
|
|
|
ENV.APP.LOG_VIEW_LOOKUPS = false;
|
|
|
|
|
|
|
|
ENV.APP.rootElement = '#ember-testing';
|
|
|
|
}
|
|
|
|
|
|
|
|
return ENV;
|
|
|
|
};
|