2017-07-29 15:00:11 +02:00
|
|
|
'use strict';
|
2014-10-30 21:44:22 +01:00
|
|
|
|
|
|
|
module.exports = function(environment) {
|
2018-12-29 01:27:37 +01:00
|
|
|
let ENV = {
|
2014-10-30 21:44:22 +01:00
|
|
|
modulePrefix: 'croodle',
|
2018-12-29 01:27:37 +01:00
|
|
|
environment,
|
2019-05-28 22:40:14 +02:00
|
|
|
rootURL: '',
|
2014-11-01 18:00:46 +01:00
|
|
|
locationType: 'hash',
|
2018-12-29 01:27:37 +01:00
|
|
|
EmberENV: {
|
|
|
|
FEATURES: {
|
|
|
|
// Here you can enable experimental features on an ember canary build
|
2019-07-13 10:26:30 +02:00
|
|
|
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
|
2018-12-29 01:27:37 +01:00
|
|
|
},
|
|
|
|
EXTEND_PROTOTYPES: {
|
|
|
|
Array: true,
|
|
|
|
Date: false,
|
|
|
|
String: false,
|
|
|
|
Function: true
|
|
|
|
}
|
|
|
|
},
|
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'",
|
2019-06-07 11:22:13 +02:00
|
|
|
'img-src': "'self' data:",
|
2016-08-23 11:43:58 +02:00
|
|
|
'style-src': "'self'",
|
2016-09-03 18:51:38 +02:00
|
|
|
'media-src': "'none'",
|
2015-08-01 11:41:41 +02:00
|
|
|
},
|
2019-01-18 18:44:25 +01:00
|
|
|
contentSecurityPolicyMeta: true,
|
2015-08-01 11:41:41 +02:00
|
|
|
|
|
|
|
moment: {
|
2019-01-20 15:20:54 +01:00
|
|
|
includeLocales: ['ca', 'de', 'en-gb', 'es', 'it'],
|
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
|
|
|
};
|
|
|
|
|
2018-12-29 01:27:37 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2014-10-30 21:44:22 +01:00
|
|
|
if (environment === 'test') {
|
2017-08-31 16:12:45 +02:00
|
|
|
ENV.rootURL = '/';
|
|
|
|
|
2014-10-30 21:44:22 +01:00
|
|
|
// Testem prefers this...
|
2018-12-29 01:27:37 +01:00
|
|
|
ENV.locationType = 'none';
|
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';
|
2018-12-29 01:27:37 +01:00
|
|
|
ENV.APP.autoboot = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (environment === 'production') {
|
|
|
|
// here you can enable a production-specific feature
|
2014-10-30 21:44:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return ENV;
|
|
|
|
};
|