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

To help you get started, we’ve selected a few aurelia-framework 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-toolbelt / aurelia-toolbelt / packages / bootstrap-plus / src / bootstrap-plus / password / index.ts View on Github external
export function configure(config: FrameworkConfiguration) {
  config.globalResources([PLATFORM.moduleName('./abt-password')]);
}
github aurelia-toolbelt / aurelia-toolbelt / src / custom-attributes / index.ts View on Github external
export function configure(config: FrameworkConfiguration) {
  config
    .feature(PLATFORM.moduleName('aurelia-toolbelt/custom-attributes/bootstrap/index'))
    .feature(PLATFORM.moduleName('aurelia-toolbelt/custom-attributes/jquery/index'))
    .feature(PLATFORM.moduleName('aurelia-toolbelt/custom-attributes/vanilla/index'))
    ;

}
github sketch7 / ssv-au-ui / src / config.ts View on Github external
export function configure(aurelia: FrameworkConfiguration, config: UiConfig): Promise {
	aurelia.globalResources([
		PLATFORM.moduleName("./badge/badge.element"),
		PLATFORM.moduleName("./button/button.attribute"),
		PLATFORM.moduleName("./checkbox/checkbox.element"),
		PLATFORM.moduleName("./chips/chips.element"),
		PLATFORM.moduleName("./highlight/highlight.value-convetor"),
		PLATFORM.moduleName("./icon/icon.element"),
		PLATFORM.moduleName("./input/input.element"),
		PLATFORM.moduleName("./select/select.element"),
		PLATFORM.moduleName("./snackbar/snackbar-host.element"),
		PLATFORM.moduleName("./snackbar/simple-snackbar.element"),
		PLATFORM.moduleName("./waves/waves.attribute"),
	]);

	Object.assign(badgeConfig, config.badge);
	Object.assign(buttonConfig, config.button);
	Object.assign(checkboxConfig, config.checkbox);
	Object.assign(chipConfig, config.chip);
github ghiscoding / aurelia-slickgrid / doc / github-demo / src / examples / slickgrid / index.ts View on Github external
configureRouter(config: RouterConfiguration, router: Router) {
    const mapping: any = [
      { route: ['', 'example1'], moduleId: PLATFORM.moduleName('./example1'), name: 'example1', nav: true, title: '1- Basic Grid / 2 Grids' },
      { route: 'example2', moduleId: PLATFORM.moduleName('./example2'), name: 'example2', nav: true, title: '2- Formatters' },
      { route: 'example3', moduleId: PLATFORM.moduleName('./example3'), name: 'example3', nav: true, title: '3- Editors / Delete' },
      { route: 'example4', moduleId: PLATFORM.moduleName('./example4'), name: 'example4', nav: true, title: '4- Client Side Sort/Filter' },
      { route: 'example5', moduleId: PLATFORM.moduleName('./example5'), name: 'example5', nav: true, title: '5- Backend OData Service' },
      { route: 'example6', moduleId: PLATFORM.moduleName('./example6'), name: 'example6', nav: true, title: '6- Backend GraphQL Service' },
      { route: 'example7', moduleId: PLATFORM.moduleName('./example7'), name: 'example7', nav: true, title: '7- Header Button Plugin' },
      { route: 'example8', moduleId: PLATFORM.moduleName('./example8'), name: 'example8', nav: true, title: '8- Header Menu Plugin' },
      { route: 'example9', moduleId: PLATFORM.moduleName('./example9'), name: 'example9', nav: true, title: '9- Grid Menu Control' },
      { route: 'example10', moduleId: PLATFORM.moduleName('./example10'), name: 'example10', nav: true, title: '10- Row Selection / 2 Grids' },
      { route: 'example11', moduleId: PLATFORM.moduleName('./example11'), name: 'example11', nav: true, title: '11- Add/Update Grid Item' },
      { route: 'example12', moduleId: PLATFORM.moduleName('./example12'), name: 'example12', nav: true, title: '12- Localization (i18n)' },
      { route: 'example13', moduleId: PLATFORM.moduleName('./example13'), name: 'example13', nav: true, title: '13- Grouping & Aggregators' },
      { route: 'example14', moduleId: PLATFORM.moduleName('./example14'), name: 'example14', nav: true, title: '14- Column Span & Header Grouping' },
      { route: 'example15', moduleId: PLATFORM.moduleName('./example15'), name: 'example15', nav: true, title: '15- Grid State & Local Storage' },
    ];

    config.map(mapping);

    this.router = router;
  }
}
github aurelia-toolbelt / aurelia-toolbelt / src / components / bootstrap / carousel / index.ts View on Github external
export function configure(config: FrameworkConfiguration) {
  config.globalResources([PLATFORM.moduleName('./abt-carousel')]);
  config.globalResources([PLATFORM.moduleName('./abt-carousel-item')]);
}
github aurelia / ux / app / src / main.ts View on Github external
async function configure(aurelia: Aurelia): Promise {
  aurelia
    .use
    .developmentLogging()
    .standardConfiguration()
    .plugin(PLATFORM.moduleName('@aurelia-ux/core'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/button'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/card'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/checkbox'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/chip-input'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/datepicker'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/form'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/grid'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/icons'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/input'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/input-info'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/list'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/radio'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/select'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/slider'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/switch'))
    .plugin(PLATFORM.moduleName('@aurelia-ux/textarea'))

  await aurelia.start();
  await aurelia.setRoot(PLATFORM.moduleName('app'), document.body);
github aurelia-toolbelt / aurelia-toolbelt / src / components / purejs / index.ts View on Github external
export function configure(config: FrameworkConfiguration) {

  config
    .feature(PLATFORM.moduleName('aurelia-toolbelt/components/purejs/clock/index'))
    .feature(PLATFORM.moduleName('aurelia-toolbelt/components/purejs/mark-down/index'))
    .feature(PLATFORM.moduleName('aurelia-toolbelt/components/purejs/nprogress/index'))
    .feature(PLATFORM.moduleName('aurelia-toolbelt/components/purejs/pretty/index'))
    .feature(PLATFORM.moduleName('aurelia-toolbelt/components/purejs/microlink/index'))
    .feature(PLATFORM.moduleName('aurelia-toolbelt/components/purejs/scrollup/index'))
    .feature(PLATFORM.moduleName('aurelia-toolbelt/components/purejs/raw-html/index'));
}
github ghiscoding / aurelia-slickgrid / src / examples / slickgrid / index.ts View on Github external
configureRouter(config: RouterConfiguration, router: Router) {
    const mapping: any = [
      { route: ['', 'example1'], moduleId: PLATFORM.moduleName('./example1'), name: 'example1', nav: true, title: '1- Basic Grid / 2 Grids' },
      { route: 'example2', moduleId: PLATFORM.moduleName('./example2'), name: 'example2', nav: true, title: '2- Formatters' },
      { route: 'example3', moduleId: PLATFORM.moduleName('./example3'), name: 'example3', nav: true, title: '3- Editors / Delete' },
      { route: 'example4', moduleId: PLATFORM.moduleName('./example4'), name: 'example4', nav: true, title: '4- Client Side Sort/Filter' },
      { route: 'example5', moduleId: PLATFORM.moduleName('./example5'), name: 'example5', nav: true, title: '5- Backend OData Service' },
      { route: 'example6', moduleId: PLATFORM.moduleName('./example6'), name: 'example6', nav: true, title: '6- Backend GraphQL Service' },
      { route: 'example7', moduleId: PLATFORM.moduleName('./example7'), name: 'example7', nav: true, title: '7- Header Button Plugin' },
      { route: 'example8', moduleId: PLATFORM.moduleName('./example8'), name: 'example8', nav: true, title: '8- Header Menu Plugin' },
      { route: 'example9', moduleId: PLATFORM.moduleName('./example9'), name: 'example9', nav: true, title: '9- Grid Menu Control' },
      { route: 'example10', moduleId: PLATFORM.moduleName('./example10'), name: 'example10', nav: true, title: '10- Row Selection / 2 Grids' },
      { route: 'example11', moduleId: PLATFORM.moduleName('./example11'), name: 'example11', nav: true, title: '11- Add/Update Grid Item' },
      { route: 'example12', moduleId: PLATFORM.moduleName('./example12'), name: 'example12', nav: true, title: '12- Localization (i18n)' },
      { route: 'example13', moduleId: PLATFORM.moduleName('./example13'), name: 'example13', nav: true, title: '13- Grouping & Aggregators' },
      { route: 'example14', moduleId: PLATFORM.moduleName('./example14'), name: 'example14', nav: true, title: '14- Column Span & Header Grouping' },
      { route: 'example15', moduleId: PLATFORM.moduleName('./example15'), name: 'example15', nav: true, title: '15- Grid State & Local Storage' },
      { route: 'example16', moduleId: PLATFORM.moduleName('./example16'), name: 'example16', nav: true, title: '16- Row Move Plugin' },
      { route: 'example17', moduleId: PLATFORM.moduleName('./example17'), name: 'example17', nav: true, title: '17- Remote Model' },
      { route: 'example18', moduleId: PLATFORM.moduleName('./example18'), name: 'example18', nav: true, title: '18- Draggable Grouping' },
      { route: 'example19', moduleId: PLATFORM.moduleName('./example19'), name: 'example19', nav: true, title: '19- Row Detail View' },
      { route: 'example20', moduleId: PLATFORM.moduleName('./example20'), name: 'example20', nav: true, title: '20- Pinned Columns/Rows' },
      { route: 'example21', moduleId: PLATFORM.moduleName('./example21'), name: 'example21', nav: true, title: '21- Grid AutoHeight (full height)' },
      { route: 'example22', moduleId: PLATFORM.moduleName('./example22'), name: 'example22', nav: true, title: '22- with Bootstrap Tabs' },
      { route: 'example23', moduleId: PLATFORM.moduleName('./example23'), name: 'example23', nav: true, title: '23- Filter by Range of Values' },
      { route: 'example24', moduleId: PLATFORM.moduleName('./example24'), name: 'example24', nav: true, title: '24- Cell & Context Menu' },
    ];

    config.map(mapping);
    config.mapUnknownRoutes(PLATFORM.moduleName('./example1'));
github aurelia-toolbelt / aurelia-toolbelt / packages / bootstrap / src / twitter-bootstrap / index.ts View on Github external
export function configure(config: FrameworkConfiguration) {
  config
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/alert/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/badge/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/breadcrumb/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/button/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/card/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/collapse/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/dropdown/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/inputgroup/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/modal/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/navbar/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/navs/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/pagination/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/progressbar/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/scrollspy/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/jumbotron/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/tooltip/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/popover/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/carousel/index'))
    .feature(PLATFORM.moduleName('@aurelia-toolbelt/bootstrap/listgroup/index'));

}
github ghiscoding / aurelia-slickgrid / src / examples / slickgrid / index.ts View on Github external
configureRouter(config: RouterConfiguration, router: Router) {
    const mapping: any = [
      { route: ['', 'example1'], moduleId: PLATFORM.moduleName('./example1'), name: 'example1', nav: true, title: '1- Basic Grid / 2 Grids' },
      { route: 'example2', moduleId: PLATFORM.moduleName('./example2'), name: 'example2', nav: true, title: '2- Formatters' },
      { route: 'example3', moduleId: PLATFORM.moduleName('./example3'), name: 'example3', nav: true, title: '3- Editors / Delete' },
      { route: 'example4', moduleId: PLATFORM.moduleName('./example4'), name: 'example4', nav: true, title: '4- Client Side Sort/Filter' },
      { route: 'example5', moduleId: PLATFORM.moduleName('./example5'), name: 'example5', nav: true, title: '5- Backend OData Service' },
      { route: 'example6', moduleId: PLATFORM.moduleName('./example6'), name: 'example6', nav: true, title: '6- Backend GraphQL Service' },
      { route: 'example7', moduleId: PLATFORM.moduleName('./example7'), name: 'example7', nav: true, title: '7- Header Button Plugin' },
      { route: 'example8', moduleId: PLATFORM.moduleName('./example8'), name: 'example8', nav: true, title: '8- Header Menu Plugin' },
      { route: 'example9', moduleId: PLATFORM.moduleName('./example9'), name: 'example9', nav: true, title: '9- Grid Menu Control' },
      { route: 'example10', moduleId: PLATFORM.moduleName('./example10'), name: 'example10', nav: true, title: '10- Row Selection / 2 Grids' },
      { route: 'example11', moduleId: PLATFORM.moduleName('./example11'), name: 'example11', nav: true, title: '11- Add/Update Grid Item' },
      { route: 'example12', moduleId: PLATFORM.moduleName('./example12'), name: 'example12', nav: true, title: '12- Localization (i18n)' },
      { route: 'example13', moduleId: PLATFORM.moduleName('./example13'), name: 'example13', nav: true, title: '13- Grouping & Aggregators' },
      { route: 'example14', moduleId: PLATFORM.moduleName('./example14'), name: 'example14', nav: true, title: '14- Column Span & Header Grouping' },
      { route: 'example15', moduleId: PLATFORM.moduleName('./example15'), name: 'example15', nav: true, title: '15- Grid State & Local Storage' },
      { route: 'example16', moduleId: PLATFORM.moduleName('./example16'), name: 'example16', nav: true, title: '16- Row Move Plugin' },
      { route: 'example17', moduleId: PLATFORM.moduleName('./example17'), name: 'example17', nav: true, title: '17- Remote Model' },
      { route: 'example18', moduleId: PLATFORM.moduleName('./example18'), name: 'example18', nav: true, title: '18- Draggable Grouping' },
      { route: 'example19', moduleId: PLATFORM.moduleName('./example19'), name: 'example19', nav: true, title: '19- Row Detail View' },
      { route: 'example20', moduleId: PLATFORM.moduleName('./example20'), name: 'example20', nav: true, title: '20- Pinned Columns/Rows' },
      { route: 'example21', moduleId: PLATFORM.moduleName('./example21'), name: 'example21', nav: true, title: '21- Grid AutoHeight (full height)' },
      { route: 'example22', moduleId: PLATFORM.moduleName('./example22'), name: 'example22', nav: true, title: '22- with Bootstrap Tabs' },
      { route: 'example23', moduleId: PLATFORM.moduleName('./example23'), name: 'example23', nav: true, title: '23- Filter by Range of Values' },
      { route: 'example24', moduleId: PLATFORM.moduleName('./example24'), name: 'example24', nav: true, title: '24- Cell & Context Menu' },
    ];

    config.map(mapping);
    config.mapUnknownRoutes(PLATFORM.moduleName('./example1'));

    this.router = router;