|
|
|
@ -10,59 +10,72 @@ import {FormsModule} from '@angular/forms';
|
|
|
|
|
import {NavigationComponent} from './ui/navigation/navigation.component';
|
|
|
|
|
import {RouterModule} from '@angular/router';
|
|
|
|
|
import {Routes} from './config/Routes';
|
|
|
|
|
import {CommonModule} from '@angular/common';
|
|
|
|
|
import { DatesComponent } from './pages/dates/dates.component';
|
|
|
|
|
import { DebuggerComponent } from './debugger/debugger.component';
|
|
|
|
|
import { VisibilityComponent } from './pages/visibility/visibility.component';
|
|
|
|
|
import { ResumeComponent } from './pages/resume/resume.component';
|
|
|
|
|
import { PicturesComponent } from './pages/pictures/pictures.component';
|
|
|
|
|
import { AnswersComponent } from './pages/answers/answers.component';
|
|
|
|
|
import { EndConfirmationComponent } from './pages/end-confirmation/end-confirmation.component';
|
|
|
|
|
import { CreateOrRetrieveComponent } from './pages/create-or-retrieve/create-or-retrieve.component';
|
|
|
|
|
import { CalendarComponent } from './calendar/calendar.component';
|
|
|
|
|
|
|
|
|
|
import { registerLocaleData } from '@angular/common';
|
|
|
|
|
import {CommonModule, registerLocaleData} from '@angular/common';
|
|
|
|
|
import {DatesComponent} from './pages/dates/dates.component';
|
|
|
|
|
import {DebuggerComponent} from './debugger/debugger.component';
|
|
|
|
|
import {VisibilityComponent} from './pages/visibility/visibility.component';
|
|
|
|
|
import {ResumeComponent} from './pages/resume/resume.component';
|
|
|
|
|
import {PicturesComponent} from './pages/pictures/pictures.component';
|
|
|
|
|
import {AnswersComponent} from './pages/answers/answers.component';
|
|
|
|
|
import {EndConfirmationComponent} from './pages/end-confirmation/end-confirmation.component';
|
|
|
|
|
import {CreateOrRetrieveComponent} from './pages/create-or-retrieve/create-or-retrieve.component';
|
|
|
|
|
import {CalendarComponent} from './calendar/calendar.component';
|
|
|
|
|
import localeFr from '@angular/common/locales/fr';
|
|
|
|
|
import { VotingSummaryComponent } from './pages/voting-summary/voting-summary.component';
|
|
|
|
|
import { VotingGraphComponent } from './pages/voting-graph/voting-graph.component';
|
|
|
|
|
import { VotingChoiceComponent } from './pages/voting-choice/voting-choice.component';
|
|
|
|
|
import { PasswordComponent } from './pages/password/password.component';
|
|
|
|
|
import { HomeComponent } from './pages/home/home.component';
|
|
|
|
|
import {VotingSummaryComponent} from './pages/voting-summary/voting-summary.component';
|
|
|
|
|
import {VotingGraphComponent} from './pages/voting-graph/voting-graph.component';
|
|
|
|
|
import {VotingChoiceComponent} from './pages/voting-choice/voting-choice.component';
|
|
|
|
|
import {PasswordComponent} from './pages/password/password.component';
|
|
|
|
|
import {HomeComponent} from './pages/home/home.component';
|
|
|
|
|
import {HttpClient, HttpClientModule} from '@angular/common/http';
|
|
|
|
|
import {TranslateLoader, TranslateModule, TranslateService} from '@ngx-translate/core';
|
|
|
|
|
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
|
|
|
|
|
|
|
|
|
|
registerLocaleData(localeFr, 'fr');
|
|
|
|
|
|
|
|
|
|
export function HttpLoaderFactory(http: HttpClient) {
|
|
|
|
|
return new TranslateHttpLoader(http);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
declarations: [
|
|
|
|
|
AppComponent,
|
|
|
|
|
BaseComponent,
|
|
|
|
|
KindComponent,
|
|
|
|
|
HeaderComponent,
|
|
|
|
|
NavigationComponent,
|
|
|
|
|
DatesComponent,
|
|
|
|
|
DebuggerComponent,
|
|
|
|
|
VisibilityComponent,
|
|
|
|
|
ResumeComponent,
|
|
|
|
|
PicturesComponent,
|
|
|
|
|
AnswersComponent,
|
|
|
|
|
EndConfirmationComponent,
|
|
|
|
|
CreateOrRetrieveComponent,
|
|
|
|
|
CalendarComponent,
|
|
|
|
|
VotingSummaryComponent,
|
|
|
|
|
VotingGraphComponent,
|
|
|
|
|
VotingChoiceComponent,
|
|
|
|
|
PasswordComponent,
|
|
|
|
|
HomeComponent,
|
|
|
|
|
declarations: [
|
|
|
|
|
AppComponent,
|
|
|
|
|
BaseComponent,
|
|
|
|
|
KindComponent,
|
|
|
|
|
HeaderComponent,
|
|
|
|
|
NavigationComponent,
|
|
|
|
|
DatesComponent,
|
|
|
|
|
DebuggerComponent,
|
|
|
|
|
VisibilityComponent,
|
|
|
|
|
ResumeComponent,
|
|
|
|
|
PicturesComponent,
|
|
|
|
|
AnswersComponent,
|
|
|
|
|
EndConfirmationComponent,
|
|
|
|
|
CreateOrRetrieveComponent,
|
|
|
|
|
CalendarComponent,
|
|
|
|
|
VotingSummaryComponent,
|
|
|
|
|
VotingGraphComponent,
|
|
|
|
|
VotingChoiceComponent,
|
|
|
|
|
PasswordComponent,
|
|
|
|
|
HomeComponent,
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
imports: [
|
|
|
|
|
CommonModule,
|
|
|
|
|
BrowserModule,
|
|
|
|
|
AppRoutingModule,
|
|
|
|
|
FormsModule,
|
|
|
|
|
RouterModule.forRoot(Routes)
|
|
|
|
|
],
|
|
|
|
|
providers: [],
|
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
|
],
|
|
|
|
|
imports: [
|
|
|
|
|
CommonModule,
|
|
|
|
|
BrowserModule,
|
|
|
|
|
AppRoutingModule,
|
|
|
|
|
TranslateModule.forRoot({
|
|
|
|
|
loader: {
|
|
|
|
|
provide: TranslateLoader,
|
|
|
|
|
useFactory: HttpLoaderFactory,
|
|
|
|
|
deps: [HttpClient]
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
HttpClientModule,
|
|
|
|
|
FormsModule,
|
|
|
|
|
RouterModule.forRoot(Routes)
|
|
|
|
|
],
|
|
|
|
|
providers: [TranslateService],
|
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
|
})
|
|
|
|
|
export class AppModule {
|
|
|
|
|
}
|
|
|
|
|