Skip to content

Commit 70a0e93

Browse files
authored
Merge pull request #114 from delphi-hub/feature/newUI
Feature/new ui
2 parents 92ef050 + 5599b67 commit 70a0e93

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1119
-477
lines changed

client/package-lock.json

Lines changed: 507 additions & 271 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,38 @@
1010
},
1111
"private": true,
1212
"dependencies": {
13-
"@angular/animations": "^7.2.1",
14-
"@angular/cdk": "^7.2.1",
15-
"@angular/common": "^7.2.1",
16-
"@angular/compiler": "^7.2.1",
17-
"@angular/core": "^7.2.1",
18-
"@angular/forms": "^7.2.1",
19-
"@angular/http": "^7.2.1",
20-
"@angular/material": "^7.2.1",
21-
"@angular/platform-browser": "^7.2.1",
22-
"@angular/platform-browser-dynamic": "^7.2.1",
23-
"@angular/router": "^7.2.1",
24-
"@ng-bootstrap/ng-bootstrap": "^4.0.1",
25-
"bootstrap": "^4.1.3",
26-
"core-js": "^2.6.2",
27-
"cytoscape": "^3.3.2",
13+
"@angular/animations": "^7.2.4",
14+
"@angular/cdk": "^7.3.2",
15+
"@angular/common": "^7.2.4",
16+
"@angular/compiler": "^7.2.4",
17+
"@angular/core": "^7.2.4",
18+
"@angular/forms": "^7.2.4",
19+
"@angular/http": "^7.2.4",
20+
"@angular/material": "^7.3.2",
21+
"@angular/platform-browser": "^7.2.4",
22+
"@angular/platform-browser-dynamic": "^7.2.4",
23+
"@angular/router": "^7.2.4",
24+
"@ng-bootstrap/ng-bootstrap": "^4.0.3",
25+
"bootstrap": "^4.3.1",
26+
"core-js": "^2.6.4",
27+
"cytoscape": "^3.4.1",
2828
"font-awesome": "^4.7.0",
2929
"hammerjs": "^2.0.8",
3030
"jquery": "^3.3.1",
3131
"material-design-icons": "^3.0.1",
32-
"popper.js": "^1.14.6",
33-
"rxjs": "^6.3.3",
34-
"zone.js": "^0.8.28"
32+
"popper.js": "^1.14.7",
33+
"rxjs": "^6.4.0",
34+
"zone.js": "^0.8.29"
3535
},
3636
"devDependencies": {
37-
"@angular-devkit/build-angular": "^0.12.2",
38-
"@angular/cli": "^7.2.2",
39-
"@angular/compiler-cli": "^7.2.1",
40-
"@angular/language-service": "^7.2.1",
37+
"@angular-devkit/build-angular": "^0.12.4",
38+
"@angular/cli": "^7.3.1",
39+
"@angular/compiler-cli": "^7.2.4",
40+
"@angular/language-service": "^7.2.4",
4141
"@types/cytoscape": "^3.2.9",
42-
"@types/jasmine": "^3.3.5",
42+
"@types/jasmine": "^3.3.9",
4343
"@types/jasminewd2": "^2.0.6",
44-
"@types/node": "^10.12.18",
44+
"@types/node": "^10.12.26",
4545
"codelyzer": "^4.5.0",
4646
"jasmine-core": "^3.3.0",
4747
"jasmine-spec-reporter": "^4.2.1",
@@ -55,6 +55,6 @@
5555
"protractor": "^5.4.1",
5656
"ts-node": "^7.0.1",
5757
"tslint": "^5.12.1",
58-
"typescript": "^3.2.2"
58+
"typescript": "^3.2.4"
5959
}
6060
}

client/src/app/app.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ import { HttpClientModule } from '@angular/common/http';
2626
import { HelpComponent } from './help/help.component';
2727

2828

29+
2930
@NgModule({
3031
declarations: [
3132
AppComponent,
3233
LandingPageComponent,
33-
HelpComponent,
34+
HelpComponent
3435
],
3536
imports: [
3637
DashboardModule,

client/src/app/dashboard/add-dialog/add-dialog.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ <h2 mat-dialog-title>Add Instance</h2>
1212
</div>
1313
<mat-dialog-actions>
1414
<button mat-raised-button color="primary" [disabled]="!formControl.valid" [mat-dialog-close]="1" id="confirmButton" (click)="onConfirmAddInstance()">Add</button>
15-
<button mat-raised-button (click)="onCloseCancle()">Cancle</button>
15+
<button mat-raised-button (click)="onCloseCancel()">Cancel</button>
1616
</mat-dialog-actions>

client/src/app/dashboard/add-dialog/add-dialog.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('AddDialogComponent', () => {
4646
});
4747

4848
it('should check for button inside the Add dialog', () => {
49-
component.onCloseCancle();
49+
component.onCloseCancel();
5050
expect(mockDialogRef.close).toHaveBeenCalled();
5151
});
5252
});

client/src/app/dashboard/add-dialog/add-dialog.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export class AddDialogComponent implements OnInit {
3333
});
3434
}
3535

36-
onCloseCancle() {
37-
this.thisDialogRef.close('CancleAdd');
36+
onCloseCancel() {
37+
this.thisDialogRef.close('CancelAdd');
3838

3939
}
4040

client/src/app/dashboard/crawler/crawler.component.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
~ limitations under the License.
1717
-->
1818

19-
<h2> Crawler Details</h2>
19+
<h4> Crawler Details</h4>
2020
<div class="container">
21-
<div class="row">
22-
<app-table-all type="Crawler" [dataArray] = "tableData"> </app-table-all>
23-
</div>
2421
</div>
22+

client/src/app/dashboard/crawler/crawler.component.spec.ts

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,28 @@
1717
*/
1818

1919
import { async, ComponentFixture, TestBed, inject } from '@angular/core/testing';
20-
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
21-
import { HttpClientModule } from '@angular/common/http';
2220
import { BrowserAnimationsModule} from '@angular/platform-browser/animations';
23-
import { MatTableModule, MatInputModule, MatPaginatorModule} from '@angular/material';
24-
import { MatFormFieldModule} from '@angular/material/form-field';
25-
import { MatCheckboxModule} from '@angular/material/checkbox';
26-
import { MatIconModule} from '@angular/material/icon';
27-
import { MatDialogModule} from '@angular/material/dialog';
28-
import { TableAllComponent } from '../table-all/table-all.component';
2921
import { CrawlerComponent } from './crawler.component';
30-
import { ModelService } from 'src/app/model/model.service';
31-
3222

3323
describe('CrawlerComponent', () => {
3424
let fixture: ComponentFixture<CrawlerComponent>;
25+
let component: CrawlerComponent;
3526

3627
beforeEach(async(() => {
3728
TestBed.configureTestingModule({
38-
declarations: [ CrawlerComponent, TableAllComponent],
39-
imports: [HttpClientTestingModule, HttpClientModule, BrowserAnimationsModule,
40-
MatTableModule, MatInputModule, MatFormFieldModule, MatCheckboxModule, MatPaginatorModule, MatIconModule, MatDialogModule]
29+
declarations: [ CrawlerComponent],
30+
imports: [BrowserAnimationsModule]
4131
})
4232
.compileComponents();
4333
}));
4434

4535
beforeEach(() => {
4636
fixture = TestBed.createComponent(CrawlerComponent);
37+
component = fixture.componentInstance;
4738
fixture.detectChanges();
4839
});
4940

50-
it(`should create`, async(inject([HttpTestingController, ModelService],
51-
(modelService: ModelService) => {
52-
expect(modelService).toBeTruthy();
53-
})));
41+
it('should create', () => {
42+
expect(component).toBeTruthy();
43+
});
5444
});

client/src/app/dashboard/crawler/crawler.component.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
*/
1818

1919
import {Component, OnInit} from '@angular/core';
20-
import { Instance, ComponentType, ComponentTypeEnum} from '../../model/models/instance';
21-
import { ModelService } from 'src/app/model/model.service';
2220

2321

2422
@Component({
@@ -28,18 +26,12 @@ import { ModelService } from 'src/app/model/model.service';
2826
})
2927
export class CrawlerComponent implements OnInit {
3028

31-
// this array is inserted into the table all component in the html code
32-
tableData: Instance[];
33-
compType: ComponentType;
29+
constructor() {
3430

35-
constructor(private modelService: ModelService) {
36-
this.tableData = [];
3731
}
3832

3933
ngOnInit() {
40-
this.modelService.getObservableForInstances().subscribe(() => {
41-
this.tableData = this.modelService.getComponentsByType(ComponentTypeEnum.Crawler);
42-
});
34+
4335
}
4436

4537
}

client/src/app/dashboard/dashboard-overview/dashboard-overview.component.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,18 @@
1616
* limitations under the License.
1717
*/
1818

19+
.alignHeading{
20+
text-align: center;
21+
}
22+
23+
.mat-36 {
24+
font-size: 36px ;
25+
height: 36px ;
26+
width: 36px ;
27+
}
28+
29+
.topSpace{
30+
margin-top:20px;
31+
}
32+
33+

0 commit comments

Comments
 (0)