Finished clean up

This commit is contained in:
2018-09-11 20:47:34 -04:00
parent 5ec89ac1af
commit c2fab66009
8 changed files with 77 additions and 3 deletions

View File

@@ -3,7 +3,6 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
import 'rxjs/add/operator/map'
/*
Works much on the same principle as the login service the only difference is we are searching for anything that starts with
the provided string.
*/

View File

@@ -35,10 +35,8 @@ export class StockService {
}
/*
As we are accessing resources from a 3rd party it is best to use padding with the request
...that and it's required by the API
*/
const url = this.baseUrl + "market/batch?symbols=" + symbolsComma + "&types=logo&callback=JSONP_CALLBACK";
return this.jsonp.request(url)

View File

View File

@@ -0,0 +1,32 @@
<div class="lrContainer">
<mat-card class="lrCard">
<mat-card-header>
<mat-card-title>
<h2>About</h2>
</mat-card-title>
</mat-card-header>
<div id="aboutContent">
<b>Example of skill for Waters Corporation</b>
<p>Eric Hodge & Team</p>
<mat-divider></mat-divider>
<br />
<p>
I am a fun loving, open minded, husband, father, Maker, autocrossing Web Developer that doesn't believe in the limitations of one's hand.
<br />
<br />
My realistic dream is to write applications that can help people in their day-to-day lives. If I can remove stress from one person in my lifetime
by writing a few<sub>hundred</sub> lines of code it'll all be worth it. ...as for unrealistic... I want to dance on the moon to Frank Sinatra's Fly Me To The Moon!
<br />
<br />
It's hard to say who I am in a little about me page or what I'm like but over time and a few beers I'm sure you'll figure me out.
<br />
<br />
Also... I love the web because it's the only platform that is truly accepted by everyone, regardless of operating system, country, or government, the web is what ties us all together.
</p>
</div>
</mat-card>
</div>

View File

@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AboutComponent } from './about.component';
describe('AboutComponent', () => {
let component: AboutComponent;
let fixture: ComponentFixture<AboutComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ AboutComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(AboutComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-about',
templateUrl: './about.component.html',
styleUrls: ['./about.component.css']
})
export class AboutComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@@ -3,6 +3,7 @@ import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './login/login.component';
import { HomeComponent } from './home/home.component';
import { AboutComponent } from './about/about.component';
import { UserAdminComponent } from './user-admin/user-admin.component';
import { AuthGuard } from './_guards/auth.guard';
@@ -12,7 +13,9 @@ const routes: Routes = [
/* component paths */
{ path: 'login', component: LoginComponent },
{ path: 'home', component: HomeComponent, canActivate: [AuthGuard] },
{ path: 'about', component: AboutComponent, canActivate: [AuthGuard] },
{ path: 'user-admin', component: UserAdminComponent, canActivate: [AuthGuard] }
];

View File

@@ -31,6 +31,7 @@ import { MatListModule } from '@angular/material/list';
import { WatcherViewComponent } from './watcher-view/watcher-view.component';
import { MatMenuModule } from '@angular/material/menu';
import { MatSnackBarModule } from '@angular/material/snack-bar';
import { AboutComponent } from './about/about.component';
@NgModule({
@@ -42,6 +43,7 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
SearchViewComponent,
StockViewComponent,
WatcherViewComponent,
AboutComponent,
],
imports: [
BrowserModule,