import Aurelia, { LoggerConfiguration, ConsoleSink, LogLevel, CustomAttribute } from 'aurelia';
import { RouterConfiguration } from '@aurelia/router';

import { AppRoot } from './app-root';
import * as GlobalResources from './_shared/index';
import './style.css';

const au = new Aurelia();

au.register(
  LoggerConfiguration.create({
    level: LogLevel.debug,
    sinks: [ConsoleSink],
  }),
  RouterConfiguration.customize({
    useUrlFragmentHash: false,
  }),
  GlobalResources,
);

au.app({
  component: AppRoot,
  host: document.querySelector('app-root'),
});

await au.start();
