1 /* jshint node: true */ |
1 /* jshint node: true */ |
2 |
2 |
3 module.exports = function(environment) { |
3 module.exports = function(environment) { |
4 var ENV = { |
4 var ENV = { |
5 modulePrefix: 'bo-client', |
5 modulePrefix: 'bo-client', |
|
6 podModulePrefix: 'bo-client/pods', |
6 environment: environment, |
7 environment: environment, |
7 baseURL: '/', |
8 baseURL: '/', |
8 //locationType: 'auto', |
9 //locationType: 'auto', |
9 locationType: 'auto', |
10 locationType: 'auto', |
|
11 i18n : { |
|
12 defaultLocale: 'fr' |
|
13 }, |
10 EmberENV: { |
14 EmberENV: { |
11 FEATURES: { |
15 FEATURES: { |
12 // Here you can enable experimental features on an ember canary build |
16 // Here you can enable experimental features on an ember canary build |
13 // e.g. 'with-controller': true |
17 // e.g. 'with-controller': true |
14 } |
18 } |
15 }, |
19 }, |
16 |
20 |
17 APP: { |
21 APP: { |
18 // Here you can pass flags/options to your application instance |
22 // Here you can pass flags/options to your application instance |
19 // when it is created |
23 // when it is created |
20 } |
24 'bo-doc-viaf-autocomplete' : { |
|
25 viafQueryUrl: "http://viaf.org/viaf/AutoSuggest?query=", |
|
26 viafBaseUrl: "http://viaf.org/viaf/", |
|
27 } |
|
28 }, |
21 }; |
29 }; |
22 |
30 |
23 if (environment === 'development') { |
31 if (environment === 'development') { |
24 ENV.APP.LOG_RESOLVER = true; |
32 ENV.APP.LOG_RESOLVER = true; |
25 ENV.APP.LOG_ACTIVE_GENERATION = true; |
33 ENV.APP.LOG_ACTIVE_GENERATION = true; |
26 ENV.APP.LOG_TRANSITIONS = true; |
34 ENV.APP.LOG_TRANSITIONS = true; |
27 ENV.APP.LOG_TRANSITIONS_INTERNAL = true; |
35 ENV.APP.LOG_TRANSITIONS_INTERNAL = true; |
28 ENV.APP.LOG_VIEW_LOOKUPS = true; |
36 ENV.APP.LOG_VIEW_LOOKUPS = true; |
|
37 ENV.contentSecurityPolicy = { |
|
38 'default-src': "'none'", |
|
39 'script-src': "'self'", |
|
40 'font-src': "'self'", |
|
41 'connect-src': "'self' *", |
|
42 'img-src': "'self'", |
|
43 'style-src': "'self' *", |
|
44 'media-src': "'self'" |
|
45 }; |
29 } |
46 } |
30 |
47 |
31 if (environment === 'test') { |
48 if (environment === 'test') { |
32 // Testem prefers this... |
49 // Testem prefers this... |
33 ENV.baseURL = '/'; |
50 ENV.baseURL = '/'; |