Reformat code + Correction merging app.module.ts
This commit is contained in:
parent
f024602072
commit
38fa69e2c9
@ -1,12 +1,12 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { HomeComponent } from './home/home.component';
|
||||
import { RegisterComponent} from './register/register.component';
|
||||
import { RegisterComponent } from './register/register.component';
|
||||
|
||||
const routes: Routes = [
|
||||
// No logged pages
|
||||
{ path: '', component: HomeComponent, },
|
||||
{ path: 'register', component: RegisterComponent},
|
||||
{ path: 'register', component: RegisterComponent },
|
||||
// {
|
||||
// path: 'login',
|
||||
// component: LoginComponent,
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { SEOService } from '@app/core/services';
|
||||
|
||||
@Component({
|
||||
@Component( {
|
||||
selector: 'app-root',
|
||||
templateUrl: './app.component.html',
|
||||
styleUrls: ['./app.component.css']
|
||||
})
|
||||
styleUrls: [ './app.component.css' ]
|
||||
} )
|
||||
export class AppComponent implements OnInit {
|
||||
|
||||
title = 'DiscoTrip';
|
||||
|
@ -3,6 +3,7 @@ import { ErrorHandler, NgModule } from '@angular/core';
|
||||
import { AppComponent } from './app.component';
|
||||
import { HomeComponent } from './home/home.component';
|
||||
import { HeaderComponent } from './header/header.component';
|
||||
import { RegisterComponent } from './register/register.component';
|
||||
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
@ -10,16 +11,13 @@ import { AppRoutingModule } from '@app/app-routing.module';
|
||||
import { AngularFireModule } from '@angular/fire';
|
||||
import { AngularFireDatabaseModule } from '@angular/fire/database';
|
||||
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 { GlobalErrorHandler } from '@app/core/global-error-handler/global-error-handler.service';
|
||||
|
||||
import { environment } from '@env/environment';
|
||||
|
||||
@NgModule({
|
||||
@NgModule( {
|
||||
declarations: [
|
||||
AppComponent,
|
||||
HomeComponent,
|
||||
@ -30,7 +28,7 @@ import { environment } from '@env/environment';
|
||||
BrowserModule,
|
||||
BrowserAnimationsModule,
|
||||
AppRoutingModule,
|
||||
AngularFireModule.initializeApp(environment.firebaseConfig),
|
||||
AngularFireModule.initializeApp( environment.firebaseConfig ),
|
||||
AngularFireDatabaseModule,
|
||||
AppMaterialModule,
|
||||
],
|
||||
@ -43,6 +41,6 @@ import { environment } from '@env/environment';
|
||||
},
|
||||
],
|
||||
bootstrap: [ AppComponent ]
|
||||
})
|
||||
} )
|
||||
export class AppModule {
|
||||
}
|
||||
|
@ -2,14 +2,12 @@ import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { BehaviorSubject, Observable } from 'rxjs';
|
||||
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 { StorageService } from '@app/core/services/storage/storage.service';
|
||||
import { LogService } from '@app/core/services/log/log.service';
|
||||
|
||||
// import * as config from '@assets/config.json';
|
||||
|
||||
@Injectable( { providedIn: 'root' } )
|
||||
export class AuthService {
|
||||
|
||||
|
@ -12,7 +12,8 @@ export class SEOService {
|
||||
private defaultNoIndex = 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() {
|
||||
this.meta.updateTag( { name: 'og:locale', contest: 'fr_FR' } );
|
||||
|
@ -2,24 +2,24 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HeaderComponent } from './header.component';
|
||||
|
||||
describe('HeaderComponent', () => {
|
||||
describe( 'HeaderComponent', () => {
|
||||
let component: HeaderComponent;
|
||||
let fixture: ComponentFixture<HeaderComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
beforeEach( async( () => {
|
||||
TestBed.configureTestingModule( {
|
||||
declarations: [ HeaderComponent ]
|
||||
})
|
||||
} )
|
||||
.compileComponents();
|
||||
}));
|
||||
} ) );
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(HeaderComponent);
|
||||
beforeEach( () => {
|
||||
fixture = TestBed.createComponent( HeaderComponent );
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
} );
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
it( 'should create', () => {
|
||||
expect( component ).toBeTruthy();
|
||||
} );
|
||||
} );
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
@Component( {
|
||||
selector: 'app-header',
|
||||
templateUrl: './header.component.html',
|
||||
styleUrls: [ './header.component.css' ]
|
||||
})
|
||||
} )
|
||||
export class HeaderComponent implements OnInit {
|
||||
|
||||
constructor() {
|
||||
|
@ -2,24 +2,24 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HomeComponent } from './home.component';
|
||||
|
||||
describe('HomeComponent', () => {
|
||||
describe( 'HomeComponent', () => {
|
||||
let component: HomeComponent;
|
||||
let fixture: ComponentFixture<HomeComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
beforeEach( async( () => {
|
||||
TestBed.configureTestingModule( {
|
||||
declarations: [ HomeComponent ]
|
||||
})
|
||||
} )
|
||||
.compileComponents();
|
||||
}));
|
||||
} ) );
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(HomeComponent);
|
||||
beforeEach( () => {
|
||||
fixture = TestBed.createComponent( HomeComponent );
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
} );
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
it( 'should create', () => {
|
||||
expect( component ).toBeTruthy();
|
||||
} );
|
||||
} );
|
||||
|
@ -1,13 +1,14 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
@Component( {
|
||||
selector: 'app-home',
|
||||
templateUrl: './home.component.html',
|
||||
styleUrls: ['./home.component.css']
|
||||
})
|
||||
styleUrls: [ './home.component.css' ]
|
||||
} )
|
||||
export class HomeComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
@ -2,24 +2,24 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { RegisterComponent } from './register.component';
|
||||
|
||||
describe('RegisterComponent', () => {
|
||||
describe( 'RegisterComponent', () => {
|
||||
let component: RegisterComponent;
|
||||
let fixture: ComponentFixture<RegisterComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
beforeEach( async( () => {
|
||||
TestBed.configureTestingModule( {
|
||||
declarations: [ RegisterComponent ]
|
||||
})
|
||||
} )
|
||||
.compileComponents();
|
||||
}));
|
||||
} ) );
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(RegisterComponent);
|
||||
beforeEach( () => {
|
||||
fixture = TestBed.createComponent( RegisterComponent );
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
} );
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
it( 'should create', () => {
|
||||
expect( component ).toBeTruthy();
|
||||
} );
|
||||
} );
|
||||
|
@ -1,13 +1,14 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
@Component( {
|
||||
selector: 'app-register',
|
||||
templateUrl: './register.component.html',
|
||||
styleUrls: ['./register.component.css']
|
||||
})
|
||||
styleUrls: [ './register.component.css' ]
|
||||
} )
|
||||
export class RegisterComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user