Projekt

Obecné

Profil

Stáhnout (3.54 KB) Statistiky
| Větev: | Tag: | Revize:
1
import { BrowserModule } from '@angular/platform-browser';
2
import { NgModule } from '@angular/core';
3
import { HttpClient, HttpClientModule } from '@angular/common/http';
4

    
5
import { AppRoutingModule } from './app-routing.module';
6
import { AppComponent } from './app.component';
7
import { FormsModule } from '@angular/forms';
8
import { HomeComponent } from './components/pages/home/home.component';
9
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
10
import { MatToolbarModule } from '@angular/material/toolbar';
11
import { MatButtonModule } from '@angular/material/button';
12
import { MatIconModule } from '@angular/material/icon';
13
import { SearchComponent } from './components/pages/search/search.component';
14
import { BrowseComponent } from './components/pages/browse/browse.component';
15
import { UploadComponent } from './components/pages/upload/upload.component';
16
import { HelpComponent } from './components/pages/help/help.component';
17
import { MatSelectModule } from '@angular/material/select';
18
import { SearchBoxComponent } from './components/shared-components/search-box/search-box.component';
19
import { MatProgressBarModule } from '@angular/material/progress-bar';
20
import { TableComponent } from './components/pages/browse/table/table.component';
21
import { MatTableModule } from '@angular/material/table';
22
import { MatPaginatorModule } from '@angular/material/paginator';
23
import { MatSortModule } from '@angular/material/sort';
24
import { MatDialogModule } from '@angular/material/dialog';
25
import { AboutDialogComponent } from './components/shared-components/about-dialog/about-dialog.component';
26
import { SearchPaginatorComponent } from './components/pages/search/search-paginator/search-paginator.component';
27
import { DataHolderService } from './services/data-holder/data-holder.service';
28
import { MainNavComponent } from './components/layout/main-nav/main-nav.component';
29
import { LayoutModule } from '@angular/cdk/layout';
30
import { MatSidenavModule } from '@angular/material/sidenav';
31
import { MatListModule } from '@angular/material/list';
32
import { DatePipe } from '@angular/common';
33
import { BrowseDetailsComponent } from './components/pages/browse/browse-details/browse-details.component';
34
import { ImageViewerModule } from 'ngx-image-viewer';
35
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
36
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
37
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
38

    
39
export function HttpLoaderFactory(httpClient: HttpClient) {
40
  return new TranslateHttpLoader(httpClient, '../assets/i18n/', '-lang.json');
41
}
42

    
43
@NgModule({
44
  declarations: [
45
    AppComponent,
46
    HomeComponent,
47
    SearchComponent,
48
    BrowseComponent,
49
    UploadComponent,
50
    HelpComponent,
51
    SearchBoxComponent,
52
    TableComponent,
53
    AboutDialogComponent,
54
    SearchPaginatorComponent,
55
    MainNavComponent,
56
    BrowseDetailsComponent
57
  ],
58
  imports: [
59
    BrowserModule,
60
    AppRoutingModule,
61
    FormsModule,
62
    HttpClientModule,
63
    BrowserAnimationsModule,
64
    MatToolbarModule,
65
    MatButtonModule,
66
    MatIconModule,
67
    MatSelectModule,
68
    MatProgressBarModule,
69
    MatTableModule,
70
    MatPaginatorModule,
71
    MatSortModule,
72
    MatDialogModule,
73
    LayoutModule,
74
    MatSidenavModule,
75
    MatListModule,
76
    ImageViewerModule.forRoot(),
77
    FontAwesomeModule,
78
    TranslateModule.forRoot({
79
      loader: {
80
        provide: TranslateLoader,
81
        useFactory: HttpLoaderFactory,
82
        deps: [HttpClient]
83
      }
84
    })
85
  ],
86
  providers: [DataHolderService, DatePipe],
87
  bootstrap: [AppComponent]
88
})
89
export class AppModule { }
(6-6/6)