-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f2bee6
commit 2f202e1
Showing
21 changed files
with
1,954 additions
and
376 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"standard", | ||
"eslint-config-prettier" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 13, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": {} | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": [ | ||
"stylelint-config-standard-scss", | ||
"stylelint-config-prettier" | ||
], | ||
"rules": { | ||
"scss/at-import-partial-extension": "always" | ||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
printWidth: 120, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: false, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
} |
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 { NgModule } from '@angular/core'; | ||
import { ExtraOptions, RouterModule, Routes } from '@angular/router'; | ||
import { AboutComponent } from './components/about/about.component'; | ||
import { MapComponent } from './components/map/map.component'; | ||
import { NgModule } from '@angular/core' | ||
import { ExtraOptions, RouterModule, Routes } from '@angular/router' | ||
import { AboutComponent } from './components/about/about.component' | ||
import { MapComponent } from './components/map/map.component' | ||
|
||
const routes: Routes = [ | ||
{ path: 'about', component: AboutComponent }, | ||
{ path: '', component: MapComponent }, | ||
{ path: '*', redirectTo: '', pathMatch: 'prefix' } | ||
]; | ||
{ path: '*', redirectTo: '', pathMatch: 'prefix' }, | ||
] | ||
|
||
const routerOptions: ExtraOptions = { | ||
useHash: false, | ||
anchorScrolling: 'enabled' | ||
}; | ||
anchorScrolling: 'enabled', | ||
} | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forRoot(routes, routerOptions)], | ||
exports: [RouterModule] | ||
exports: [RouterModule], | ||
}) | ||
export class AppRoutingModule { } | ||
export class AppRoutingModule {} |
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,35 +1,31 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
import { AppComponent } from './app.component'; | ||
import { TestBed } from '@angular/core/testing' | ||
import { RouterTestingModule } from '@angular/router/testing' | ||
import { AppComponent } from './app.component' | ||
|
||
describe('AppComponent', () => { | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ | ||
RouterTestingModule | ||
], | ||
declarations: [ | ||
AppComponent | ||
], | ||
}).compileComponents(); | ||
}); | ||
imports: [RouterTestingModule], | ||
declarations: [AppComponent], | ||
}).compileComponents() | ||
}) | ||
|
||
it('should create the app', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app).toBeTruthy(); | ||
}); | ||
const fixture = TestBed.createComponent(AppComponent) | ||
const app = fixture.componentInstance | ||
expect(app).toBeTruthy() | ||
}) | ||
|
||
it(`should have as title 'been-there'`, () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app.title).toEqual('been-there'); | ||
}); | ||
const fixture = TestBed.createComponent(AppComponent) | ||
const app = fixture.componentInstance | ||
expect(app.title).toEqual('been-there') | ||
}) | ||
|
||
it('should render title', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
fixture.detectChanges(); | ||
const compiled = fixture.nativeElement as HTMLElement; | ||
expect(compiled.querySelector('.content span')?.textContent).toContain('been-there app is running!'); | ||
}); | ||
}); | ||
const fixture = TestBed.createComponent(AppComponent) | ||
fixture.detectChanges() | ||
const compiled = fixture.nativeElement as HTMLElement | ||
expect(compiled.querySelector('.content span')?.textContent).toContain('been-there app is running!') | ||
}) | ||
}) |
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,10 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.scss'] | ||
styleUrls: ['./app.component.scss'], | ||
}) | ||
export class AppComponent { | ||
title = 'been-there'; | ||
title = 'been-there' | ||
} |
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,25 +1,24 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { ComponentFixture, TestBed } from '@angular/core/testing' | ||
|
||
import { AboutComponent } from './about.component'; | ||
import { AboutComponent } from './about.component' | ||
|
||
describe('AboutComponent', () => { | ||
let component: AboutComponent; | ||
let fixture: ComponentFixture<AboutComponent>; | ||
let component: AboutComponent | ||
let fixture: ComponentFixture<AboutComponent> | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ AboutComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
declarations: [AboutComponent], | ||
}).compileComponents() | ||
}) | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(AboutComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
fixture = TestBed.createComponent(AboutComponent) | ||
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,15 +1,12 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Component, OnInit } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'app-about', | ||
templateUrl: './about.component.html', | ||
styleUrls: ['./about.component.scss'] | ||
styleUrls: ['./about.component.scss'], | ||
}) | ||
export class AboutComponent implements OnInit { | ||
constructor() {} | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
ngOnInit(): void {} | ||
} |
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,25 +1,24 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { ComponentFixture, TestBed } from '@angular/core/testing' | ||
|
||
import { HeaderComponent } from './header.component'; | ||
import { HeaderComponent } from './header.component' | ||
|
||
describe('HeaderComponent', () => { | ||
let component: HeaderComponent; | ||
let fixture: ComponentFixture<HeaderComponent>; | ||
let component: HeaderComponent | ||
let fixture: ComponentFixture<HeaderComponent> | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ HeaderComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
declarations: [HeaderComponent], | ||
}).compileComponents() | ||
}) | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(HeaderComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
fixture = TestBed.createComponent(HeaderComponent) | ||
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,11 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
import { faGithub } from '@fortawesome/free-brands-svg-icons'; | ||
import { Component } from '@angular/core' | ||
import { faGithub } from '@fortawesome/free-brands-svg-icons' | ||
|
||
@Component({ | ||
selector: 'app-header', | ||
templateUrl: './header.component.html', | ||
styleUrls: ['./header.component.scss'] | ||
styleUrls: ['./header.component.scss'], | ||
}) | ||
export class HeaderComponent { | ||
faGithub = faGithub; | ||
faGithub = faGithub | ||
} |
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,8 @@ | ||
import { AnchorDirective } from './anchor.directive'; | ||
import { AnchorDirective } from './anchor.directive' | ||
|
||
describe('AnchorDirective', () => { | ||
it('should create an instance', () => { | ||
const directive = new AnchorDirective(); | ||
expect(directive).toBeTruthy(); | ||
}); | ||
}); | ||
const directive = new AnchorDirective() | ||
expect(directive).toBeTruthy() | ||
}) | ||
}) |
Oops, something went wrong.