| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| /* jshint node: true */ |
| |
| module.exports = function(environment) { |
| var ENV = { |
| modulePrefix: 'oozie-designer', |
| environment: environment, |
| baseURL: '/', |
| locationType: 'hash', |
| EmberENV: { |
| FEATURES: { |
| // Here you can enable experimental features on an ember canary build |
| // e.g. 'with-controller': true |
| }, |
| API_URL: "http://localhost:11002/oozie", |
| PAGE_SIZE: 10 |
| }, |
| |
| contentSecurityPolicy: { |
| 'default-src': "'none'", |
| 'font-src': "'self'", |
| 'img-src': "'self'", |
| 'media-src': "'self'", |
| 'style-src': "'self' 'unsafe-inline'" |
| }, |
| |
| APP: { |
| // Here you can pass flags/options to your application instance |
| // when it is created |
| } |
| }; |
| |
| 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; |
| } |
| |
| if (environment === 'test') { |
| // Testem prefers this... |
| ENV.baseURL = '/'; |
| ENV.locationType = 'none'; |
| |
| // 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') { |
| |
| } |
| |
| return ENV; |
| }; |