Removes sidebar component

Updates homepage
Updates navigation
Updates text font family
This commit is contained in:
GloriousCode
2017-11-21 17:30:08 +11:00
parent a20a88680d
commit ffd6d392fd
8 changed files with 23 additions and 103 deletions

View File

@@ -1,22 +0,0 @@
.sidebar {
padding: 20px;
width:20%;
}
.dashboard-highlight {
color: green !important;
}
.trading-highlight {
color: red !important;
}
.wallet-highlight {
color: blueviolet !important;
}
.settings-highlight {
color: magenta !important;
}

View File

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

View File

@@ -1,31 +0,0 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { MatSidenav } from '@angular/material';
import { SidebarService } from './../../services/sidebar/sidebar.service';
import { Router, NavigationEnd } from '@angular/router';
@Component({
selector: 'app-sidebar',
templateUrl: './sidebar.component.html',
styleUrls: ['./sidebar.component.scss']
})
export class SidebarComponent implements OnInit {
@ViewChild('sidenav') public sidenav: MatSidenav;
sidebarService: SidebarService
public currentUrl:string;
constructor(something: SidebarService, private router:Router) {
this.sidebarService = something;
router.events.subscribe(event => {
if (event instanceof NavigationEnd ) {
console.log("current url",event.url); // event.url has current url
this.currentUrl = event.url;
}
});
}
ngOnInit() {
this.sidebarService.setSidenav(this.sidenav);
}
}