-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'add-eslint' of https://github.com/ORCID/orcid-member-se…
…rvices into add-eslint
- Loading branch information
Showing
18 changed files
with
290 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { ComponentFixture, TestBed } from '@angular/core/testing' | ||
|
||
import { HomeComponent } from './home.component'; | ||
import { HomeComponent } from './home.component' | ||
|
||
describe('HomeComponent', () => { | ||
let component: HomeComponent; | ||
let fixture: ComponentFixture<HomeComponent>; | ||
let component: HomeComponent | ||
let fixture: ComponentFixture<HomeComponent> | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [HomeComponent] | ||
}); | ||
fixture = TestBed.createComponent(HomeComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
declarations: [HomeComponent], | ||
}) | ||
fixture = TestBed.createComponent(HomeComponent) | ||
component = fixture.componentInstance | ||
fixture.detectChanges() | ||
}) | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'app-home', | ||
templateUrl: './home.component.html', | ||
styleUrls: ['./home.component.scss'] | ||
styleUrls: ['./home.component.scss'], | ||
}) | ||
export class HomeComponent { | ||
|
||
} | ||
export class HomeComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { RouterModule } from '@angular/router'; | ||
import { routes } from './home.route'; | ||
import { HomeComponent } from './home.component'; | ||
import { NgModule } from '@angular/core' | ||
import { CommonModule } from '@angular/common' | ||
import { RouterModule } from '@angular/router' | ||
import { routes } from './home.route' | ||
import { HomeComponent } from './home.component' | ||
|
||
@NgModule({ | ||
declarations: [HomeComponent], | ||
imports: [ | ||
CommonModule, | ||
RouterModule.forChild(routes) | ||
] | ||
imports: [CommonModule, RouterModule.forChild(routes)], | ||
}) | ||
export class HomeModule { } | ||
export class HomeModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
import { Routes } from "@angular/router"; | ||
import { HomeComponent } from "../home/home.component"; | ||
import { AuthGuard } from "../account/auth.guard"; | ||
import { Routes } from '@angular/router' | ||
import { HomeComponent } from '../home/home.component' | ||
import { AuthGuard } from '../account/auth.guard' | ||
|
||
export const routes: Routes = [ | ||
{ | ||
|
||
path: '', | ||
component: HomeComponent, | ||
data: { | ||
authorities: ['ROLE_USER'], | ||
pageTitle: 'home.title.string' | ||
}, | ||
canActivate: [AuthGuard] | ||
|
||
} | ||
]; | ||
|
||
{ | ||
path: '', | ||
component: HomeComponent, | ||
data: { | ||
authorities: ['ROLE_USER'], | ||
pageTitle: 'home.title.string', | ||
}, | ||
canActivate: [AuthGuard], | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
export interface ISFState { | ||
code: string; | ||
name: string; | ||
code: string | ||
name: string | ||
} | ||
|
||
export class SFState implements ISFState { | ||
constructor(public code: string, public name: string) {} | ||
constructor( | ||
public code: string, | ||
public name: string | ||
) {} | ||
} |
Oops, something went wrong.