2017-06-10 22:32:56 +02:00
|
|
|
import {Injectable, NgModule} from "@angular/core";
|
2016-12-27 00:36:38 +02:00
|
|
|
import {BrowserModule} from "@angular/platform-browser";
|
|
|
|
import {FormsModule} from "@angular/forms";
|
|
|
|
import {HttpModule} from "@angular/http";
|
2017-05-27 10:15:57 +02:00
|
|
|
import {AgmCoreModule} from "@agm/core";
|
2016-12-27 00:36:38 +02: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-20 22:37:23 +02:00
|
|
|
import {ThumbnailLoaderService} from "./gallery/thumnailLoader.service";
|
2016-12-27 00:36:38 +02: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-22 23:31:29 +02:00
|
|
|
import {GalleryMapComponent} from "./gallery/map/map.gallery.component";
|
2017-02-05 18:27:58 +02:00
|
|
|
import {GalleryMapLightboxComponent} from "./gallery/map/lightbox/lightbox.map.gallery.component";
|
2017-03-20 22:37:23 +02:00
|
|
|
import {ThumbnailManagerService} from "./gallery/thumnailManager.service";
|
2017-03-25 22:59:30 +02:00
|
|
|
import {OverlayService} from "./gallery/overlay.service";
|
2017-06-04 15:25:08 +02:00
|
|
|
import {Config} from "../../common/config/public/Config";
|
2017-06-10 22:32:56 +02:00
|
|
|
import {LAZY_MAPS_API_CONFIG} from "@agm/core/services";
|
2017-06-21 21:16:04 +02:00
|
|
|
import {SlimLoadingBarModule} from "ng2-slim-loading-bar";
|
2017-07-03 19:17:49 +02:00
|
|
|
import {GalleryShareComponent} from "./gallery/share/share.gallery.component";
|
|
|
|
import {ShareLoginComponent} from "./sharelogin/share-login.component";
|
|
|
|
import {ShareService} from "./gallery/share.service";
|
2017-07-08 12:43:42 +02:00
|
|
|
import {ModalModule} from "ngx-bootstrap/modal";
|
|
|
|
import {DatabaseSettingsComponent} from "./settings/database/database.settings.component";
|
|
|
|
import {ToastModule} from "ng2-toastr/ng2-toastr";
|
|
|
|
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
|
|
|
|
import {NotificationService} from "./model/notification.service";
|
2017-07-13 23:39:09 +02:00
|
|
|
import {JWBootstrapSwitchModule} from "jw-bootstrap-switch-ng2";
|
2017-07-09 12:03:17 +02:00
|
|
|
import {ClipboardModule} from "ngx-clipboard";
|
|
|
|
import {NavigationService} from "./model/navigation.service";
|
2017-07-09 22:00:42 +02:00
|
|
|
import {InfoPanelLightboxComponent} from "./gallery/lightbox/infopanel/info-panel.lightbox.gallery.component";
|
2017-07-13 23:39:09 +02:00
|
|
|
import {MapSettingsComponent} from "./settings/map/map.settings.component";
|
2017-07-15 12:47:11 +02:00
|
|
|
import {TooltipModule} from "ngx-bootstrap/tooltip";
|
|
|
|
import {ThumbnailSettingsComponent} from "./settings/thumbnail/thumbanil.settings.component";
|
2017-07-15 14:27:12 +02:00
|
|
|
import {SearchSettingsComponent} from "./settings/search/search.settings.component";
|
|
|
|
import {SettingsService} from "./settings/settings.service";
|
2017-07-15 15:29:04 +02:00
|
|
|
import {ShareSettingsComponent} from "./settings/share/share.settings.component";
|
2017-07-15 16:09:48 +02:00
|
|
|
import {BasicSettingsComponent} from "./settings/basic/basic.settings.component";
|
2017-06-10 22:32:56 +02:00
|
|
|
@Injectable()
|
|
|
|
export class GoogleMapsConfig {
|
|
|
|
apiKey: string;
|
|
|
|
|
|
|
|
constructor() {
|
2017-07-13 23:39:09 +02:00
|
|
|
this.apiKey = Config.Client.Map.googleApiKey;
|
2017-06-10 22:32:56 +02:00
|
|
|
}
|
|
|
|
}
|
2016-12-27 00:36:38 +02:00
|
|
|
|
|
|
|
@NgModule({
|
2017-06-10 22:32:56 +02:00
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
FormsModule,
|
|
|
|
HttpModule,
|
2017-07-08 12:43:42 +02:00
|
|
|
BrowserAnimationsModule,
|
2017-06-10 22:32:56 +02:00
|
|
|
appRoutes,
|
2017-07-09 12:03:17 +02:00
|
|
|
ClipboardModule,
|
2017-07-13 23:39:09 +02:00
|
|
|
JWBootstrapSwitchModule,
|
2017-07-15 12:47:11 +02:00
|
|
|
TooltipModule.forRoot(),
|
2017-07-08 12:43:42 +02:00
|
|
|
ToastModule.forRoot(),
|
|
|
|
ModalModule.forRoot(),
|
2017-06-21 21:16:04 +02:00
|
|
|
AgmCoreModule.forRoot(),
|
|
|
|
SlimLoadingBarModule.forRoot()
|
2017-06-10 22:32:56 +02:00
|
|
|
],
|
|
|
|
declarations: [AppComponent,
|
|
|
|
LoginComponent,
|
2017-07-03 19:17:49 +02:00
|
|
|
ShareLoginComponent,
|
2017-06-10 22:32:56 +02:00
|
|
|
GalleryComponent,
|
|
|
|
FrameComponent,
|
2017-07-08 12:43:42 +02:00
|
|
|
//Gallery
|
2017-06-10 22:32:56 +02:00
|
|
|
GalleryLightboxPhotoComponent,
|
|
|
|
GalleryPhotoLoadingComponent,
|
|
|
|
GalleryGridComponent,
|
|
|
|
GalleryDirectoryComponent,
|
|
|
|
GalleryLightboxComponent,
|
|
|
|
GalleryMapComponent,
|
|
|
|
GalleryMapLightboxComponent,
|
|
|
|
FrameComponent,
|
|
|
|
GallerySearchComponent,
|
2017-07-03 19:17:49 +02:00
|
|
|
GalleryShareComponent,
|
2017-06-10 22:32:56 +02:00
|
|
|
GalleryNavigatorComponent,
|
|
|
|
GalleryPhotoComponent,
|
2017-07-08 12:43:42 +02:00
|
|
|
AdminComponent,
|
2017-07-09 22:00:42 +02:00
|
|
|
InfoPanelLightboxComponent,
|
2017-07-08 12:43:42 +02:00
|
|
|
//Settings
|
|
|
|
UserMangerSettingsComponent,
|
|
|
|
DatabaseSettingsComponent,
|
2017-07-13 23:39:09 +02:00
|
|
|
MapSettingsComponent,
|
2017-07-15 12:47:11 +02:00
|
|
|
ThumbnailSettingsComponent,
|
2017-07-15 14:27:12 +02:00
|
|
|
SearchSettingsComponent,
|
2017-07-15 15:29:04 +02:00
|
|
|
ShareSettingsComponent,
|
2017-07-15 16:09:48 +02:00
|
|
|
BasicSettingsComponent,
|
2017-06-10 22:32:56 +02:00
|
|
|
StringifyRole],
|
|
|
|
providers: [
|
|
|
|
{provide: LAZY_MAPS_API_CONFIG, useClass: GoogleMapsConfig},
|
|
|
|
NetworkService,
|
2017-07-03 19:17:49 +02:00
|
|
|
ShareService,
|
2017-06-10 22:32:56 +02:00
|
|
|
UserService,
|
|
|
|
GalleryCacheService,
|
|
|
|
GalleryService,
|
|
|
|
AuthenticationService,
|
|
|
|
ThumbnailLoaderService,
|
|
|
|
ThumbnailManagerService,
|
2017-07-08 12:43:42 +02:00
|
|
|
NotificationService,
|
2017-06-10 22:32:56 +02:00
|
|
|
FullScreenService,
|
2017-07-09 12:03:17 +02:00
|
|
|
NavigationService,
|
2017-07-15 14:27:12 +02:00
|
|
|
SettingsService,
|
2017-06-10 22:32:56 +02:00
|
|
|
OverlayService],
|
2016-12-27 00:36:38 +02:00
|
|
|
|
2017-06-10 22:32:56 +02:00
|
|
|
bootstrap: [AppComponent]
|
2016-12-27 00:36:38 +02:00
|
|
|
})
|
|
|
|
export class AppModule {
|
2017-06-10 22:32:56 +02:00
|
|
|
}
|