Reformat code + Correction merging app.module.ts

This commit is contained in:
Mathieu Sanchez 2019-05-22 14:16:04 +09:00
parent f024602072
commit 38fa69e2c9
11 changed files with 74 additions and 75 deletions

View File

@ -3,6 +3,7 @@ import { ErrorHandler, NgModule } from '@angular/core';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component'; import { HomeComponent } from './home/home.component';
import { HeaderComponent } from './header/header.component'; import { HeaderComponent } from './header/header.component';
import { RegisterComponent } from './register/register.component';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@ -10,9 +11,6 @@ import { AppRoutingModule } from '@app/app-routing.module';
import { AngularFireModule } from '@angular/fire'; import { AngularFireModule } from '@angular/fire';
import { AngularFireDatabaseModule } from '@angular/fire/database'; import { AngularFireDatabaseModule } from '@angular/fire/database';
import { AppMaterialModule } from '@app/app-material.module'; import { AppMaterialModule } from '@app/app-material.module';
import { AppRoutingModule } from '@app/app-routing.module';
import { HeaderComponent } from './header/header.component';
import { RegisterComponent } from './register/register.component';
import { LogService, SEOService } from '@app/core/services'; import { LogService, SEOService } from '@app/core/services';
import { GlobalErrorHandler } from '@app/core/global-error-handler/global-error-handler.service'; import { GlobalErrorHandler } from '@app/core/global-error-handler/global-error-handler.service';

View File

@ -2,14 +2,12 @@ import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
import { BehaviorSubject, Observable } from 'rxjs'; import { BehaviorSubject, Observable } from 'rxjs';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import * as sha512 from 'js-sha512';
// import * as config from '@assets/config.json';
import { User } from '@app/core/model'; import { User } from '@app/core/model';
import { StorageService } from '@app/core/services/storage/storage.service'; import { StorageService } from '@app/core/services/storage/storage.service';
import { LogService } from '@app/core/services/log/log.service'; import { LogService } from '@app/core/services/log/log.service';
// import * as config from '@assets/config.json';
@Injectable( { providedIn: 'root' } ) @Injectable( { providedIn: 'root' } )
export class AuthService { export class AuthService {

View File

@ -12,7 +12,8 @@ export class SEOService {
private defaultNoIndex = false; private defaultNoIndex = false;
private defaultNoFollow = false; private defaultNoFollow = false;
constructor( private title: Title, private meta: Meta, private router: Router, private activatedRoute: ActivatedRoute ) {} constructor( private title: Title, private meta: Meta, private router: Router, private activatedRoute: ActivatedRoute ) {
}
public start() { public start() {
this.meta.updateTag( { name: 'og:locale', contest: 'fr_FR' } ); this.meta.updateTag( { name: 'og:locale', contest: 'fr_FR' } );

View File

@ -7,7 +7,8 @@ import { Component, OnInit } from '@angular/core';
} ) } )
export class HomeComponent implements OnInit { export class HomeComponent implements OnInit {
constructor() { } constructor() {
}
ngOnInit() { ngOnInit() {
} }

View File

@ -7,7 +7,8 @@ import { Component, OnInit } from '@angular/core';
} ) } )
export class RegisterComponent implements OnInit { export class RegisterComponent implements OnInit {
constructor() { } constructor() {
}
ngOnInit() { ngOnInit() {
} }