diff --git a/src/packages/noauth/component/list/list.component.ts b/src/packages/noauth/component/list/list.component.ts
index 1a80200..2d008c3 100644
--- a/src/packages/noauth/component/list/list.component.ts
+++ b/src/packages/noauth/component/list/list.component.ts
@@ -31,33 +31,36 @@ export class ListComponent implements OnInit, AfterContentInit {
}
ngAfterContentInit() {
- // this.store.select(AuthSelector.select('domain')).subscribe(
- // (domain: Domain) => {
- // this.store.dispatch(new ListStore.ReadAllByDomain(domain));
- // }
- // );
+ this.store.select(AuthSelector.select('domain')).subscribe(
+ (domain: Domain) => {
+ this.store.dispatch(new ListStore.ReadAllByDomain(domain));
+ }
+ );
- // this.noAuthProbes$.subscribe(
- // (noAuthProbes: NoAuthProbe[]) => {
- // },
- // (error: RPCClientError) => {
- // console.log(error.response.message);
- // }
- // );
+ this.noAuthProbes$.subscribe(
+ (result: NoAuthProbe[]) => {
+ if (result) {
+ this.noauthProbes = result;
+ }
+ },
+ (error: RPCClientError) => {
+ console.log(error.response.message);
+ }
+ );
}
ngOnInit() {
// Temporary Data
- this.noauthProbes = new Array();
- for (let i = 0; i < 10; i++) {
- const p: NoAuthProbe = {
- id: i,
- tempProbeKey: 'TempKey' + i,
- createDate: new Date(),
- description: 'Description' + i,
- };
- this.noauthProbes.push(p);
- }
+ // this.noauthProbes = new Array();
+ // for (let i = 0; i < 10; i++) {
+ // const p: NoAuthProbe = {
+ // id: i,
+ // tempProbeKey: 'TempKey' + i,
+ // createDate: new Date(),
+ // description: 'Description' + i,
+ // };
+ // this.noauthProbes.push(p);
+ // }
}
handleSelect(selected: NoAuthProbe) {
diff --git a/src/packages/sensor/component/list/list.component.html b/src/packages/sensor/component/list/list.component.html
index 60cf01c..ec52d7d 100644
--- a/src/packages/sensor/component/list/list.component.html
+++ b/src/packages/sensor/component/list/list.component.html
@@ -1 +1,9 @@
+
+
sensor list
\ No newline at end of file
diff --git a/src/packages/sensor/component/list/list.component.ts b/src/packages/sensor/component/list/list.component.ts
index 7153186..09cb8e5 100644
--- a/src/packages/sensor/component/list/list.component.ts
+++ b/src/packages/sensor/component/list/list.component.ts
@@ -22,32 +22,29 @@ import { Page, PageParams } from 'app/commons/model';
export class ListComponent implements OnInit, AfterContentInit {
sensorList$ = this.store.pipe(select(sensorListSelector.select('page')));
-
- displayedColumns = ['target', 'crawler', 'itemCount', 'status'];
PAGE_SIZE = '10';
totalLength = 0;
+ sensorSettingDisplay = false;
constructor(private router: Router,
private store: Store,
) { }
ngOnInit() {
- this.sensorList$.subscribe(
- (page: Page) => {
- if (page != null) {
- this.totalLength = page.totalElements;
- // this.dataSource = new MatTableDataSource(page.content);
- // this.dataSource.sort = this.sort;
- }
- },
- (error: RPCClientError) => {
- console.log(error.response.message);
- }
- );
+ // this.sensorList$.subscribe(
+ // (page: Page) => {
+ // if (page != null) {
+ // this.totalLength = page.totalElements;
+ // }
+ // },
+ // (error: RPCClientError) => {
+ // console.log(error.response.message);
+ // }
+ // );
}
ngAfterContentInit() {
- this.getSensors(0);
+ // this.getSensors(0);
}
getSensors(pageIndex: number) {
@@ -72,14 +69,8 @@ export class ListComponent implements OnInit, AfterContentInit {
this.router.navigate(['target', obj.id]);
}
-// addSensor() {
-// const dialogRef = this.dialog.open(SettingComponent, {
-// width: '80%',
-// });
+ onAddSensor() {
+ this.sensorSettingDisplay = true;
+ }
-// dialogRef.afterClosed().subscribe(result => {
-// console.log('The dialog was closed');
-
-// });
-// }
}
diff --git a/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.html b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.html
index 6dfe07b..e78bfec 100644
--- a/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.html
+++ b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.html
@@ -1,95 +1,41 @@
-