-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathapp.module.ts
71 lines (67 loc) · 2.61 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
import {LoadConfigComponent} from './load-config/load-config.component';
import {ExportConfigComponent} from './export-config/export-config.component';
import {FaIconLibrary, FontAwesomeModule} from '@fortawesome/angular-fontawesome';
import {HashLocationStrategy, LocationStrategy} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {LoadConfigCsvComponent} from './load-config-csv/load-config-csv.component';
import {LoadConfigTxtComponent} from './load-config-txt/load-config-txt.component';
import {LoadConfigEmptyComponent} from './load-config-empty/load-config-empty.component';
import {LicenseInfoComponent} from './license-info/license-info.component';
import {GcpsMapComponent} from './gcps-map/gcps-map.component';
import {ImagesTaggerComponent} from './images-tagger/images-tagger.component';
import {LeafletModule} from '@asymmetrik/ngx-leaflet';
import {fas} from '@fortawesome/free-solid-svg-icons';
import {far} from '@fortawesome/free-regular-svg-icons';
import {SmartimageComponent} from './smartimage/smartimage.component';
import {ConfirmDialogComponent} from './confirm-dialog/confirm-dialog.component';
import {NgOpenCVModule, OpenCVOptions} from 'ng-open-cv';
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
const openCVConfig: OpenCVOptions = {
scriptUrl: `assets/opencv/opencv.js`,
wasmBinaryFile: 'wasm/opencv_js.wasm',
usingWasm: true
};
@NgModule({
declarations: [
AppComponent,
LoadConfigComponent,
ExportConfigComponent,
LoadConfigCsvComponent,
LoadConfigTxtComponent,
LoadConfigEmptyComponent,
GcpsMapComponent,
ImagesTaggerComponent,
SmartimageComponent,
LicenseInfoComponent,
ConfirmDialogComponent
],
imports: [
BrowserModule,
AppRoutingModule,
NgbModule,
FontAwesomeModule,
FormsModule,
LeafletModule.forRoot(),
NgOpenCVModule.forRoot(openCVConfig),
MatSlideToggleModule,
BrowserAnimationsModule
],
providers: [
{
provide: LocationStrategy,
useClass: HashLocationStrategy
}
],
bootstrap: [AppComponent]
})
export class AppModule {
constructor(library: FaIconLibrary) {
library.addIconPacks(fas, far);
}
}