2017-07-11 18:51:01 +02:00
|
|
|
// vim: set tw=80 ts=2 sw=2 sts=2:
|
|
|
|
import 'zone.js';
|
|
|
|
import 'reflect-metadata';
|
|
|
|
|
2017-07-25 22:11:16 +02:00
|
|
|
require('./main.less');
|
|
|
|
|
2017-07-24 19:51:30 +02:00
|
|
|
import { AppModule as Ng1AppModule } from './app';
|
2017-07-11 18:51:01 +02:00
|
|
|
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
2017-07-20 22:54:57 +02:00
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
2017-07-11 18:51:01 +02:00
|
|
|
import { UpgradeModule } from '@angular/upgrade/static';
|
|
|
|
|
2017-07-16 10:51:54 +02:00
|
|
|
import { NgLoggerModule } from '@nsalaun/ng-logger';
|
2017-07-21 00:29:03 +02:00
|
|
|
import { ToastrModule } from 'ngx-toastr';
|
2017-07-20 22:54:57 +02:00
|
|
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
2017-07-16 10:37:52 +02:00
|
|
|
|
2017-07-14 10:19:39 +02:00
|
|
|
import { AccountModule } from './accounts/account.module';
|
2017-07-22 11:12:30 +02:00
|
|
|
import { ScheduleModule } from './scheduler/schedule.module';
|
2017-07-27 13:57:40 +02:00
|
|
|
import { OperationModule } from './operations/operation.module';
|
|
|
|
|
2017-07-16 10:51:54 +02:00
|
|
|
import { ApiBaseURL, LogLevel } from './app.config';
|
2017-07-14 10:19:39 +02:00
|
|
|
|
2017-07-11 18:51:01 +02:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
2017-07-16 10:30:53 +02:00
|
|
|
BrowserModule,
|
2017-07-20 22:54:57 +02:00
|
|
|
BrowserAnimationsModule,
|
2017-07-16 10:30:53 +02:00
|
|
|
UpgradeModule,
|
2017-07-16 10:37:52 +02:00
|
|
|
AccountModule,
|
2017-07-22 11:12:30 +02:00
|
|
|
ScheduleModule,
|
2017-07-27 13:57:40 +02:00
|
|
|
OperationModule,
|
2017-07-16 10:51:54 +02:00
|
|
|
NgLoggerModule.forRoot(LogLevel),
|
2017-07-21 00:29:03 +02:00
|
|
|
ToastrModule.forRoot(),
|
2017-07-20 22:54:57 +02:00
|
|
|
NgbModule.forRoot()
|
2017-07-16 10:30:53 +02:00
|
|
|
]
|
2017-07-11 18:51:01 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
export class AppModule {
|
|
|
|
constructor(private upgrade: UpgradeModule) { }
|
|
|
|
|
|
|
|
ngDoBootstrap() {
|
2017-07-24 19:51:30 +02:00
|
|
|
this.upgrade.bootstrap(document.body, [Ng1AppModule.name], { strictDi: false });
|
2017-07-11 18:51:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|