2017-06-11 04:32:56 +08:00
|
|
|
import {Injectable, NgModule} from "@angular/core";
|
2016-12-27 06:36:38 +08:00
|
|
|
import {BrowserModule} from "@angular/platform-browser";
|
|
|
|
import {FormsModule} from "@angular/forms";
|
|
|
|
import {HttpModule} from "@angular/http";
|
2017-05-27 16:15:57 +08:00
|
|
|
import {AgmCoreModule} from "@agm/core";
|
2016-12-27 06:36:38 +08:00
|
|
|
import {AppComponent} from "./app.component";
|
|
|
|
import {appRoutes} from "./app.routing";
|
|
|
|
import {UserService} from "./model/network/user.service";
|
|
|
|
import {GalleryService} from "./gallery/gallery.service";
|
|
|
|
import {NetworkService} from "./model/network/network.service";
|
2017-03-21 04:37:23 +08:00
|
|
|
import {ThumbnailLoaderService} from "./gallery/thumnailLoader.service";
|
2016-12-27 06:36:38 +08:00
|
|
|
import {GalleryCacheService} from "./gallery/cache.gallery.service";
|
|
|
|
import {FullScreenService} from "./gallery/fullscreen.service";
|
|
|
|
import {AuthenticationService} from "./model/network/authentication.service";
|
|
|
|
import {UserMangerSettingsComponent} from "./settings/usermanager/usermanager.settings.component";
|
|
|
|
import {FrameComponent} from "./frame/frame.component";
|
|
|
|
import {GalleryLightboxPhotoComponent} from "./gallery/lightbox/photo/photo.lightbox.gallery.component";
|
|
|
|
import {GalleryPhotoLoadingComponent} from "./gallery/grid/photo/loading/loading.photo.grid.gallery.component";
|
|
|
|
import {GalleryNavigatorComponent} from "./gallery/navigator/navigator.gallery.component";
|
|
|
|
import {GallerySearchComponent} from "./gallery/search/search.gallery.component";
|
|
|
|
import {GalleryLightboxComponent} from "./gallery/lightbox/lightbox.gallery.component";
|
|
|
|
import {GalleryDirectoryComponent} from "./gallery/directory/directory.gallery.component";
|
|
|
|
import {GalleryGridComponent} from "./gallery/grid/grid.gallery.component";
|
|
|
|
import {GalleryPhotoComponent} from "./gallery/grid/photo/photo.grid.gallery.component";
|
|
|
|
import {LoginComponent} from "./login/login.component";
|
|
|
|
import {AdminComponent} from "./admin/admin.component";
|
|
|
|
import {GalleryComponent} from "./gallery/gallery.component";
|
|
|
|
import {StringifyRole} from "./pipes/StringifyRolePipe";
|
2017-01-23 05:31:29 +08:00
|
|
|
import {GalleryMapComponent} from "./gallery/map/map.gallery.component";
|
2017-02-06 00:27:58 +08:00
|
|
|
import {GalleryMapLightboxComponent} from "./gallery/map/lightbox/lightbox.map.gallery.component";
|
2017-03-21 04:37:23 +08:00
|
|
|
import {ThumbnailManagerService} from "./gallery/thumnailManager.service";
|
2017-03-26 04:59:30 +08:00
|
|
|
import {OverlayService} from "./gallery/overlay.service";
|
2017-06-04 21:25:08 +08:00
|
|
|
import {Config} from "../../common/config/public/Config";
|
2017-06-11 04:32:56 +08:00
|
|
|
import {LAZY_MAPS_API_CONFIG} from "@agm/core/services";
|
2017-06-22 03:16:04 +08:00
|
|
|
import {SlimLoadingBarModule} from "ng2-slim-loading-bar";
|
2017-06-11 04:32:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class GoogleMapsConfig {
|
|
|
|
apiKey: string;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.apiKey = Config.Client.googleApiKey;
|
|
|
|
}
|
|
|
|
}
|
2016-12-27 06:36:38 +08:00
|
|
|
|
|
|
|
@NgModule({
|
2017-06-11 04:32:56 +08:00
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
FormsModule,
|
|
|
|
HttpModule,
|
|
|
|
appRoutes,
|
2017-06-22 03:16:04 +08:00
|
|
|
AgmCoreModule.forRoot(),
|
|
|
|
SlimLoadingBarModule.forRoot()
|
2017-06-11 04:32:56 +08:00
|
|
|
],
|
|
|
|
declarations: [AppComponent,
|
|
|
|
LoginComponent,
|
|
|
|
AdminComponent,
|
|
|
|
GalleryComponent,
|
|
|
|
FrameComponent,
|
|
|
|
UserMangerSettingsComponent,
|
|
|
|
GalleryLightboxPhotoComponent,
|
|
|
|
GalleryPhotoLoadingComponent,
|
|
|
|
GalleryGridComponent,
|
|
|
|
GalleryDirectoryComponent,
|
|
|
|
GalleryLightboxComponent,
|
|
|
|
GalleryMapComponent,
|
|
|
|
GalleryMapLightboxComponent,
|
|
|
|
FrameComponent,
|
|
|
|
GallerySearchComponent,
|
|
|
|
GalleryNavigatorComponent,
|
|
|
|
GalleryPhotoComponent,
|
|
|
|
FrameComponent,
|
|
|
|
StringifyRole],
|
|
|
|
providers: [
|
|
|
|
{provide: LAZY_MAPS_API_CONFIG, useClass: GoogleMapsConfig},
|
|
|
|
NetworkService,
|
|
|
|
UserService,
|
|
|
|
GalleryCacheService,
|
|
|
|
GalleryService,
|
|
|
|
AuthenticationService,
|
|
|
|
ThumbnailLoaderService,
|
|
|
|
ThumbnailManagerService,
|
|
|
|
FullScreenService,
|
|
|
|
OverlayService],
|
2016-12-27 06:36:38 +08:00
|
|
|
|
2017-06-11 04:32:56 +08:00
|
|
|
bootstrap: [AppComponent]
|
2016-12-27 06:36:38 +08:00
|
|
|
})
|
|
|
|
export class AppModule {
|
2017-06-11 04:32:56 +08:00
|
|
|
}
|