2018-05-31 07:03:59 +00:00
|
|
|
import {
|
|
|
|
Component, Input, OnChanges, SimpleChanges,
|
|
|
|
} from '@angular/core';
|
|
|
|
import { DiscoverZone } from '@overflow/commons-typescript/model/discovery';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'of-discovery-request-summary',
|
|
|
|
templateUrl: './request-summary.component.html',
|
|
|
|
})
|
|
|
|
export class RequestSummaryComponent implements OnChanges {
|
|
|
|
|
|
|
|
@Input() discoverZone: DiscoverZone;
|
|
|
|
hostRange: string;
|
|
|
|
hostExclude: string;
|
|
|
|
portRange: string;
|
|
|
|
portExclude: string;
|
|
|
|
services: string[];
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
ngOnChanges(changes: SimpleChanges): void {
|
2018-06-14 03:11:56 +00:00
|
|
|
// this.hostRange = this.discoverZone.discoverHost.firstScanRangev4
|
|
|
|
// + ' ~ '
|
|
|
|
// + this.discoverZone.discoverHost.lastScanRangev4;
|
|
|
|
// this.portRange = this.discoverZone.discoverHost.discoverPort.firstScanRange
|
|
|
|
// + ' ~ '
|
|
|
|
// + this.discoverZone.discoverHost.discoverPort.lastScanRange;
|
|
|
|
// this.services = this.discoverZone.discoverHost.discoverPort.discoverService.includeServices;
|
2018-05-31 07:03:59 +00:00
|
|
|
}
|
2018-06-01 03:22:42 +00:00
|
|
|
|
2018-05-31 07:03:59 +00:00
|
|
|
}
|