How to use the aurelia-pal.PLATFORM.moduleName function in aurelia-pal

To help you get started, we’ve selected a few aurelia-pal 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 aurelia / templating-router / test / setup.ts View on Github external
import 'aurelia-polyfills';
import 'aurelia-loader-webpack';
import {initialize} from 'aurelia-pal-browser';
import { PLATFORM } from 'aurelia-pal';

PLATFORM.moduleName('test/routes/route-1');
PLATFORM.moduleName('test/routes/route-2');
PLATFORM.moduleName('test/routes/layout-1');
PLATFORM.moduleName('test/routes/layout-2');
PLATFORM.moduleName('test/routes/multiple-slots-route-1');
PLATFORM.moduleName('test/routes/multiple-slots-layout-1');

initialize();
github aurelia / ux / packages / core / dist / es2015 / index.js View on Github external
cssNormalize() {
        PLATFORM.moduleName('./styles/normalize.css');
        this.loader.loadText('@aurelia-ux/core/styles/normalize.css')
            .catch(err => {
            this.logger.warn('Aurelia-UX Core failed to load normalize.css, some visual errors may appear.', err);
        })
            .then(text => {
            if (text) {
                this.globalStyleEngine.addOrUpdateGlobalStyle('@aurelia-ux/core/styles/normalize.css', text);
            }
        });
        return this;
    }
};
github aurelia / ux / packages / core / dist / native-modules / ux-configuration.js View on Github external
UXConfiguration.prototype.cssReset = function () {
        var _this = this;
        PLATFORM.moduleName('./styles/reset.css');
        this.loader.loadText('@aurelia-ux/core/styles/reset.css')
            .catch(function (err) {
            _this.logger.warn('Aurelia-UX Core failed to load reset.css, some visual errors may appear.', err);
        })
            .then(function (text) {
            if (text) {
                _this.globalStyleEngine.addOrUpdateGlobalStyle('@aurelia-ux/core/styles/reset.css', text);
            }
        });
        return this;
    };
    UXConfiguration = __decorate([
github aurelia / ux / packages / core / dist / es2015 / ux-configuration.js View on Github external
cssReset() {
        PLATFORM.moduleName('./styles/reset.css');
        this.loader.loadText('@aurelia-ux/core/styles/reset.css')
            .catch(err => {
            this.logger.warn('Aurelia-UX Core failed to load reset.css, some visual errors may appear.', err);
        })
            .then(text => {
            if (text) {
                this.globalStyleEngine.addOrUpdateGlobalStyle('@aurelia-ux/core/styles/reset.css', text);
            }
        });
        return this;
    }
};
github aurelia / ux / packages / core / dist / native-modules / index.js View on Github external
UXConfiguration.prototype.cssNormalize = function () {
        var _this = this;
        PLATFORM.moduleName('./styles/normalize.css');
        this.loader.loadText('@aurelia-ux/core/styles/normalize.css')
            .catch(function (err) {
            _this.logger.warn('Aurelia-UX Core failed to load normalize.css, some visual errors may appear.', err);
        })
            .then(function (text) {
            if (text) {
                _this.globalStyleEngine.addOrUpdateGlobalStyle('@aurelia-ux/core/styles/normalize.css', text);
            }
        });
        return this;
    };
    UXConfiguration = __decorate([
github MarcScheib / aurelia-notify / dist / es2015 / aurelia-notify.js View on Github external
export function configure(config, callback) {
  config.globalResources(PLATFORM.moduleName('./bs-notification'));

  if (typeof callback === 'function') {
    callback(globalSettings);
  }
}
github MarcScheib / aurelia-notify / src / aurelia-notify.js View on Github external
export function configure(config, callback) {
  config.globalResources(
    PLATFORM.moduleName('./bs-notification')
  );

  if (typeof callback === 'function') {
    callback(globalSettings);
  }
}
github tochoromero / aurelia-table / src / index.js View on Github external
export function configure(config) {
  config.globalResources(PLATFORM.moduleName('./au-table'));
  config.globalResources(PLATFORM.moduleName('./au-table-pagination'));
  config.globalResources(PLATFORM.moduleName('./au-table-select'));
  config.globalResources(PLATFORM.moduleName('./au-table-sort'));
}
github tochoromero / aurelia-table / dist / es2015 / index.js View on Github external
export function configure(config) {
  config.globalResources(PLATFORM.moduleName('./au-table'));
  config.globalResources(PLATFORM.moduleName('./au-table-pagination'));
  config.globalResources(PLATFORM.moduleName('./au-table-select'));
  config.globalResources(PLATFORM.moduleName('./au-table-sort'));
}
github arabsight / aurelia-mdc-plugin / dist / es2015 / index.js View on Github external
export function configure(config, callback) {
    pluginConfig = config.container.get(MdcConfig);

    if (callback !== undefined && typeof callback === 'function') {
        callback(pluginConfig);
    }

    config.globalResources(PLATFORM.moduleName('./mdc-target'));

    config.aurelia.resources.registerViewEngineHooks({
        beforeCompile: beforeViewCompiled
    });
}

aurelia-pal

Aurelia's platform abstraction layer (PAL).

MIT
Latest version published 6 years ago

Package Health Score

53 / 100
Full package analysis