mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-15 15:09:55 +00:00
Removes sidebar component
Updates homepage Updates navigation Updates text font family
This commit is contained in:
@@ -24,17 +24,27 @@
|
||||
<h3>Settings</h3>
|
||||
</mat-list-item>
|
||||
<mat-list-item routerLink="settings" routerLinkActive="settings-highlight">
|
||||
<mat-icon>bug_report</mat-icon>
|
||||
<h3>Report a bug</h3>
|
||||
</mat-list-item>
|
||||
<mat-icon>thumb_up</mat-icon>
|
||||
<h3>Donate</h3>
|
||||
</mat-list-item>
|
||||
<mat-list-item routerLink="settings" routerLinkActive="settings-highlight">
|
||||
<mat-icon>grade</mat-icon>
|
||||
<h3>GitHub</h3>
|
||||
<a href="https://github.com/thrasher-/gocryptotrader" target="_blank">
|
||||
<h3>GitHub</h3>
|
||||
</a>
|
||||
</mat-list-item>
|
||||
<mat-list-item >
|
||||
<mat-icon>view_agenda</mat-icon>
|
||||
<a href="https://trello.com/b/ZAhMhpOy/gocryptotrader" target="_blank">
|
||||
<h3>Trello</h3>
|
||||
</a>
|
||||
</mat-list-item>
|
||||
<mat-list-item routerLink="settings" routerLinkActive="settings-highlight">
|
||||
<mat-icon>thumb_up</mat-icon>
|
||||
<h3>Donate</h3>
|
||||
</mat-list-item>
|
||||
<mat-icon>bug_report</mat-icon>
|
||||
<a href="https://github.com/thrasher-/gocryptotrader/issues/new" target="_blank">
|
||||
<h3>Report a bug</h3>
|
||||
</a>
|
||||
</mat-list-item>
|
||||
|
||||
</mat-nav-list>
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ import { DashboardComponent } from './pages/dashboard/dashboard.component';
|
||||
import { WalletComponent } from './pages/wallet/wallet.component';
|
||||
//Shared
|
||||
import { NavbarComponent } from './shared/navbar/navbar.component';
|
||||
import { SidebarComponent } from './shared/sidebar/sidebar.component';
|
||||
import { ExchangeCurrencyTickerComponent } from './shared/exchange-currency-ticker/exchange-currency-ticker.component';
|
||||
import { AllEnabledCurrencyTickersComponent } from './shared/all-enabled-currency-tickers/all-enabled-currency-tickers.component';
|
||||
import { ThemePickerComponent } from './shared/theme-picker/theme-picker';
|
||||
@@ -73,7 +72,6 @@ import { SelectedCurrencyComponent } from './shared/selected-currency/selected-c
|
||||
DashboardComponent,
|
||||
ExchangeCurrencyTickerComponent,
|
||||
AllEnabledCurrencyTickersComponent,
|
||||
SidebarComponent,
|
||||
WalletComponent,
|
||||
ThemePickerComponent,
|
||||
TradeHistoryComponent,
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
<mat-card class="example-card">
|
||||
<mat-card-header>
|
||||
<div class="example-header-image"></div>
|
||||
<mat-card-title>Shiba Inu</mat-card-title>
|
||||
<mat-card-subtitle>Dog Breed</mat-card-subtitle>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<p>
|
||||
The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan. A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally bred for hunting.
|
||||
</p>
|
||||
</mat-card-content>
|
||||
<mat-card-actions>
|
||||
<button mat-button>LIKE</button>
|
||||
<button mat-button>SHARE</button>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
|
||||
<h1 class="mat-h1">Welcome to GoCryptoTrader</h1>
|
||||
<p>GoCryptoTrader is a multi-currency, multi-exchange trader for cryptocurrencies</p>
|
||||
<p>It is under active development and you can see its development progress by clicking the trello button to the left</p>
|
||||
<p>If you like what you see, consider clicking the donation button to the left</p>
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: Roboto,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
|
||||
Reference in New Issue
Block a user