How to use the ember-get-config.APP function in ember-get-config

To help you get started, we’ve selected a few ember-get-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CenterForOpenScience / ember-osf-web / tests / test-helper.ts View on Github external
import { setApplication } from '@ember/test-helpers';
import preloadAssets from 'ember-asset-loader/test-support/preload-assets';
import config from 'ember-get-config';
import Application from 'ember-osf-web/app';
import manifest from 'ember-osf-web/config/asset-manifest';
import { start } from 'ember-qunit';
import 'qunit-dom';

setApplication(Application.create(config.APP) as any);

(async () => {
    // This ensures all engine resources are loaded before the tests
    await preloadAssets(manifest);

    start();
})();
github CenterForOpenScience / ember-osf-web / tests / test-helper.ts View on Github external
import { setApplication } from '@ember/test-helpers';
import preloadAssets from 'ember-asset-loader/test-support/preload-assets';
import config from 'ember-get-config';
import Application from 'ember-osf-web/app';
import manifest from 'ember-osf-web/config/asset-manifest';
import { start } from 'ember-qunit';

setApplication(Application.create(config.APP) as any);

(async () => {
    // Remove /ember_osf_web prefix from manifest URIs.
    Object.values(manifest.bundles).forEach(bundle => {
        for (const asset of bundle.assets) {
            asset.uri = asset.uri.replace(/^\/ember_osf_web/, '');
        }
    });

    // This ensures all engine resources are loaded before the tests
    await preloadAssets(manifest);

    start();
})();
github imgix / ember-cli-imgix / addon / components / imgix-image.js View on Github external
elementClassNames: computed('config.APP.imgix.classNames', function() {
    return config.APP.imgix.classNames || 'imgix-image';
  }),
github imgix / ember-cli-imgix / addon / components / imgix-bg.js View on Github external
elementClassNames: computed('config.APP.imgix.classNames', function() {
    return config.APP.imgix.classNames || 'imgix-bg';
  }),