Skip to content

Commit c4627e7

Browse files
committed
Added new research page
1 parent 7c591d5 commit c4627e7

8 files changed

+71
-6
lines changed

src/app/app.component.html

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,23 @@
1717
</mat-sidenav-container>
1818
<mat-sidenav-container>
1919
<mat-sidenav mode="side" opened>
20-
<button mat-icon-button>
21-
<mat-icon>account_balance</mat-icon>
22-
</button>
20+
<mat-list role="list">
21+
<mat-list-item role="listitem">
22+
<button mat-icon-button>
23+
<a routerLink="/home" matTooltip="trade" [matTooltipPosition]="'after'">
24+
<mat-icon>shop</mat-icon>
25+
</a>
26+
</button>
27+
</mat-list-item>
28+
<mat-list-item role="listitem">
29+
<button mat-icon-button>
30+
<a routerLink="/research" matTooltip="research" [matTooltipPosition]="'after'">
31+
<mat-icon>assessment</mat-icon>
32+
</a>
33+
</button>
34+
</mat-list-item>
35+
</mat-list>
36+
2337
</mat-sidenav>
2438
<mat-sidenav-content>
2539
<router-outlet></router-outlet>

src/app/app.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
MatChipsModule,
3131
MatStepperModule,
3232
MatSelectModule,
33+
MatTooltipModule,
3334
} from '@angular/material';
3435

3536
import { FlexLayoutModule } from '@angular/flex-layout';
@@ -65,6 +66,7 @@ import { RealtimeChartComponent } from './realtime-chart/realtime-chart.componen
6566
import { BbCardComponent } from './bb-card/bb-card.component';
6667
import { ConfirmDialogComponent } from './confirm-dialog/confirm-dialog.component';
6768
import { ReportingComponent, ReportDialogComponent } from './reporting/reporting.component';
69+
import { ResearchViewComponent } from './research-view/research-view.component';
6870

6971
@NgModule({
7072
declarations: [
@@ -89,6 +91,7 @@ import { ReportingComponent, ReportDialogComponent } from './reporting/reporting
8991
ConfirmDialogComponent,
9092
ReportingComponent,
9193
ReportDialogComponent,
94+
ResearchViewComponent,
9295
],
9396
entryComponents: [
9497
ChartDialogComponent,
@@ -130,6 +133,7 @@ import { ReportingComponent, ReportDialogComponent } from './reporting/reporting
130133
MatChipsModule,
131134
MatStepperModule,
132135
MatSelectModule,
136+
MatTooltipModule,
133137
],
134138
providers: [
135139
BacktestService,

src/app/app.routes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import { MainViewComponent } from './main-view/main-view.component';
22

33
import { Routes, Route, ActivatedRouteSnapshot } from '@angular/router';
4+
import { ResearchViewComponent } from './research-view/research-view.component';
45

56
export const routes: Routes = [
7+
{
8+
path: 'research',
9+
component: ResearchViewComponent
10+
},
611
{
712
path: 'home',
813
component: MainViewComponent

src/app/main-view/main-view.component.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@
55
<mat-tab label="Smart Ordering">
66
<app-bollinger-band></app-bollinger-band>
77
</mat-tab>
8-
<mat-tab label="Screener">
9-
<app-bulk-backtest></app-bulk-backtest>
10-
</mat-tab>
118
</mat-tab-group>

src/app/research-view/research-view.component.css

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<mat-tab-group>
2+
<mat-tab label="Screener">
3+
<app-bulk-backtest></app-bulk-backtest>
4+
</mat-tab>
5+
</mat-tab-group>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { ResearchViewComponent } from './research-view.component';
4+
5+
describe('ResearchViewComponent', () => {
6+
let component: ResearchViewComponent;
7+
let fixture: ComponentFixture<ResearchViewComponent>;
8+
9+
beforeEach(async(() => {
10+
TestBed.configureTestingModule({
11+
declarations: [ ResearchViewComponent ]
12+
})
13+
.compileComponents();
14+
}));
15+
16+
beforeEach(() => {
17+
fixture = TestBed.createComponent(ResearchViewComponent);
18+
component = fixture.componentInstance;
19+
fixture.detectChanges();
20+
});
21+
22+
it('should create', () => {
23+
expect(component).toBeTruthy();
24+
});
25+
});
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-research-view',
5+
templateUrl: './research-view.component.html',
6+
styleUrls: ['./research-view.component.css']
7+
})
8+
export class ResearchViewComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}

0 commit comments

Comments
 (0)