Skip to content

Commit f0bf6d0

Browse files
authored
Merge pull request #136 from 0x41head/angular-ui
Added About us and Usage sections
2 parents 7e34f1e + 5c13b31 commit f0bf6d0

20 files changed

Lines changed: 743 additions & 9 deletions

src/app/app-routing.module.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
import { NgModule } from '@angular/core';
1+
import { Component, NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3+
import { AboutUsComponent } from './component/about-us/about-us.component';
34
import { CircularHeatmapComponent } from './component/circular-heatmap/circular-heatmap.component';
45
import { MainContentComponent } from './component/main-content/main-content.component';
56
import { MappingComponent } from './component/mapping/mapping.component';
67
import { MatrixComponent } from './component/matrix/matrix.component';
78
import { TaskDescriptionComponent } from './component/task-description/task-description.component';
9+
import { UsageComponent } from './component/usage/usage.component';
10+
811

912
const routes: Routes = [
1013
{path: '',component: MainContentComponent},
1114
{path: 'matrix', component: MatrixComponent},
1215
{path: 'circular-heatmap', component: CircularHeatmapComponent},
1316
{path: 'task-description', component: TaskDescriptionComponent},
14-
{path: 'mapping', component: MappingComponent}
17+
{path: 'mapping', component: MappingComponent},
18+
{path: 'usage', component:UsageComponent},
19+
{path: 'about', component:AboutUsComponent}
1520
];
1621

1722
@NgModule({

src/app/app.module.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ import { HttpClientModule } from '@angular/common/http';
1717
import { CombinerService } from './service/combiner/combiner.service';
1818
import { CircularHeatmapComponent } from './component/circular-heatmap/circular-heatmap.component';
1919
import { MappingComponent } from './component/mapping/mapping.component';
20+
import { ReadmeToHtmlComponent } from './component/readme-to-html/readme-to-html.component';
21+
import { UsageComponent } from './component/usage/usage.component';
22+
import { AboutUsComponent } from './component/about-us/about-us.component';
2023

2124

2225
@NgModule({
@@ -30,6 +33,9 @@ import { MappingComponent } from './component/mapping/mapping.component';
3033
TaskDescriptionComponent,
3134
CircularHeatmapComponent,
3235
MappingComponent,
36+
ReadmeToHtmlComponent,
37+
UsageComponent,
38+
AboutUsComponent,
3339

3440
],
3541
imports: [

src/app/component/about-us/about-us.component.css

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<app-top-header section="About Us"></app-top-header>
2+
<app-readme-to-html MDFile="./assets/Markdown Files/README.md"></app-readme-to-html>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { AboutUsComponent } from './about-us.component';
4+
5+
describe('AboutUsComponent', () => {
6+
let component: AboutUsComponent;
7+
let fixture: ComponentFixture<AboutUsComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [ AboutUsComponent ]
12+
})
13+
.compileComponents();
14+
});
15+
16+
beforeEach(() => {
17+
fixture = TestBed.createComponent(AboutUsComponent);
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-about-us',
5+
templateUrl: './about-us.component.html',
6+
styleUrls: ['./about-us.component.css']
7+
})
8+
export class AboutUsComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit(): void {
13+
}
14+
15+
}

src/app/component/mapping/mapping.component.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
margin: 20px;
88
width: 50%;
99
background-color: coral;
10-
1110
}
1211

1312
.matrix-table{

src/app/component/mapping/mapping.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<section class="sortSection">
3232
<mat-button-toggle-group [formControl]="SortCtrl" aria-label="Sort By">
33-
<mat-button-toggle value="sortByTask" (click)="changeTableBasedOnCurrentSort()">Tasks</mat-button-toggle>
33+
<mat-button-toggle value="sortByTask" (click)="changeTableBasedOnCurrentSort()">Activity</mat-button-toggle>
3434
<mat-button-toggle value="sortBySAMM" (click)="changeTableBasedOnCurrentSort()">SAMM</mat-button-toggle>
3535
<mat-button-toggle value="sortByISO" (click)="changeTableBasedOnCurrentSort()">ISO</mat-button-toggle>
3636
</mat-button-toggle-group>
@@ -52,7 +52,7 @@
5252
</ng-container>
5353

5454
<ng-container matColumnDef="taskName">
55-
<th mat-header-cell *matHeaderCellDef> Task </th>
55+
<th mat-header-cell *matHeaderCellDef> Activity </th>
5656
<td mat-cell *matCellDef="let element"> {{element.taskName}} </td>
5757
</ng-container>
5858

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.main-section{
2+
background-color: aqua;
3+
padding: 30px;
4+
padding-top: 0px;
5+
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="main-section">
2+
<div [innerHTML]="toRender"></div>
3+
</div>

0 commit comments

Comments
 (0)