mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-21 23:16:49 +00:00
Removes sidebar component
Updates homepage Updates navigation Updates text font family
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user