decide.nolog.cz/config/environment.js

65 lines
1.3 KiB
JavaScript
Raw Normal View History

2014-10-30 21:44:22 +01:00
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'croodle',
environment: environment,
2014-11-01 18:00:46 +01:00
locationType: 'hash',
2014-10-30 21:44:22 +01:00
EmberENV: {
FEATURES: {
2014-07-06 17:37:54 +02:00
'query-params-new': 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-11-20 02:18:19 +01:00
contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self' 'unsafe-eval'",
'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 === 'development') {
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
2014-10-30 21:44:22 +01:00
// 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') {
// 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';
}
if (environment === 'production') {
2014-10-30 21:44:22 +01:00
}
return ENV;
};