decide.nolog.cz/config/environment.js

49 lines
1 KiB
JavaScript
Raw Normal View History

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',
2014-10-30 21:44:22 +01:00
APP: {
// Here you can pass flags/options to your application instance
// when it is created
},
2015-11-20 02:18:19 +01:00
contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self'",
'font-src': "'self'",
'connect-src': "'self'",
'img-src': "'self'",
'style-src': "'self' 'unsafe-inline'",
'media-src': "'self'"
2015-08-01 11:41:41 +02:00
},
moment: {
includeLocales: ['de', 'es'],
includeTimezone: '2010-2020'
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...
ENV.baseURL = '/';
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;
};