140 lines
4.0 KiB
TypeScript
140 lines
4.0 KiB
TypeScript
/** @file
|
|
* @author Edouard DUPIN
|
|
* @copyright 2018, Edouard DUPIN, all right reserved
|
|
* @license PROPRIETARY (see license file)
|
|
*/
|
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; // this is needed for dynamic selection of the select
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
import { AsyncActionStatusComponent, BurgerPropertyComponent, CheckboxComponent, EntryComponent, EntryNumberComponent, EntryValidatorComponent, ErrorComponent, ErrorMessageStateComponent, PasswordEntryComponent, PopInComponent, RenderFormComponent, RenderSettingsComponent, SpinerComponent, TopMenuComponent, UploadFileComponent } from 'common/component/';
|
|
import { ElementDataImageComponent } from './component/data-image/data-image';
|
|
import { ElementTypeComponent } from './component/element-type/element-type';
|
|
|
|
import { PopInCreateType } from './popin/create-type/create-type';
|
|
import { PopInDeleteConfirm, PopInUploadProgress } from 'common/popin';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import {
|
|
HomeScene, HelpScene, GenderScene, PlaylistScene, ArtistScene, AlbumScene, AlbumsScene, TrackScene, SettingsScene,
|
|
TrackEditScene, AlbumEditScene, ArtistEditScene, ArtistsScene, ArtistAlbumScene
|
|
} from './scene';
|
|
import { GenderService, DataService, PlaylistService, ArtistService, AlbumService, TrackService, ArianeService, PlayerService } from './service';
|
|
import { BddService, CookiesService, HttpWrapperService, OnlyAdminGuard, OnlyUnregisteredGuardHome, OnlyUsersGuard, OnlyUsersGuardHome, PopInService, SessionService, SSOService, StorageService, UserService } from 'common/service';
|
|
import { ErrorViewerScene, ForbiddenScene, HomeOutScene, NotFound404Scene, SsoScene } from 'common/scene';
|
|
import { UploadScene } from './scene/upload/upload';
|
|
import { ElementSeriesComponent, ElementTrackComponent, ElementSeasonComponent, ElementVideoComponent, ElementPlayerAudioComponent } from './component';
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
TopMenuComponent,
|
|
UploadFileComponent,
|
|
ElementDataImageComponent,
|
|
ElementTypeComponent,
|
|
ElementSeriesComponent,
|
|
ElementTrackComponent,
|
|
ElementSeasonComponent,
|
|
ElementVideoComponent,
|
|
ElementPlayerAudioComponent,
|
|
ErrorComponent,
|
|
PasswordEntryComponent,
|
|
EntryComponent,
|
|
EntryValidatorComponent,
|
|
SpinerComponent,
|
|
AsyncActionStatusComponent,
|
|
ErrorMessageStateComponent,
|
|
CheckboxComponent,
|
|
BurgerPropertyComponent,
|
|
RenderSettingsComponent,
|
|
RenderFormComponent,
|
|
EntryNumberComponent,
|
|
|
|
PopInComponent,
|
|
PopInCreateType,
|
|
PopInUploadProgress,
|
|
PopInDeleteConfirm,
|
|
|
|
HomeScene,
|
|
ErrorViewerScene,
|
|
HelpScene,
|
|
SsoScene,
|
|
GenderScene,
|
|
PlaylistScene,
|
|
ArtistAlbumScene,
|
|
ArtistsScene,
|
|
ArtistScene,
|
|
AlbumScene,
|
|
AlbumsScene,
|
|
TrackScene,
|
|
SettingsScene,
|
|
TrackEditScene,
|
|
AlbumEditScene,
|
|
ArtistEditScene,
|
|
UploadScene,
|
|
ForbiddenScene,
|
|
HomeOutScene,
|
|
NotFound404Scene,
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
RouterModule,
|
|
AppRoutingModule,
|
|
HttpClientModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
],
|
|
providers: [
|
|
PopInService,
|
|
HttpWrapperService,
|
|
SessionService,
|
|
CookiesService,
|
|
StorageService,
|
|
|
|
UserService,
|
|
SSOService,
|
|
BddService,
|
|
PlayerService,
|
|
GenderService,
|
|
DataService,
|
|
PlaylistService,
|
|
ArtistService,
|
|
AlbumService,
|
|
TrackService,
|
|
ArianeService,
|
|
OnlyUsersGuard,
|
|
OnlyAdminGuard,
|
|
OnlyUsersGuardHome,
|
|
OnlyUnregisteredGuardHome,
|
|
],
|
|
exports: [
|
|
AppComponent,
|
|
TopMenuComponent,
|
|
UploadFileComponent,
|
|
ErrorComponent,
|
|
ElementTypeComponent,
|
|
ElementSeriesComponent,
|
|
ElementSeasonComponent,
|
|
ElementVideoComponent,
|
|
PopInCreateType,
|
|
|
|
PopInComponent,
|
|
PopInUploadProgress,
|
|
PopInDeleteConfirm,
|
|
],
|
|
bootstrap: [
|
|
AppComponent
|
|
],
|
|
/*
|
|
schemas: [
|
|
CUSTOM_ELEMENTS_SCHEMA,
|
|
NO_ERRORS_SCHEMA
|
|
]
|
|
*/
|
|
})
|
|
export class AppModule { }
|