Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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();
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;
}
};
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([
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;
}
};
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([
export function configure(config, callback) {
config.globalResources(PLATFORM.moduleName('./bs-notification'));
if (typeof callback === 'function') {
callback(globalSettings);
}
}
export function configure(config, callback) {
config.globalResources(
PLATFORM.moduleName('./bs-notification')
);
if (typeof callback === 'function') {
callback(globalSettings);
}
}
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'));
}
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'));
}
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
});
}