+
diff --git a/src/app/pages/pages.module.ts b/src/app/pages/pages.module.ts
index 158b0ef..5d49bc1 100644
--- a/src/app/pages/pages.module.ts
+++ b/src/app/pages/pages.module.ts
@@ -28,7 +28,7 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
CovalentModule,
MaterialModule,
PerfectScrollbarModule,
- FlexLayoutModule
+ FlexLayoutModule,
],
declarations: [
PagesComponent,
diff --git a/src/app/pages/probe/probe-page-routing.module.ts b/src/app/pages/probe/probe-page-routing.module.ts
new file mode 100644
index 0000000..872216e
--- /dev/null
+++ b/src/app/pages/probe/probe-page-routing.module.ts
@@ -0,0 +1,22 @@
+import { NgModule } from '@angular/core';
+import { Routes, RouterModule } from '@angular/router';
+import { ProbePageComponent } from './probe-page.component';
+import { DetailComponent as ProbeDetailComponent } from 'app/packages/probe/component/detail/detail.component';
+
+const routes: Routes = [
+ {
+ path: '',
+ component: ProbePageComponent,
+ children: [
+ { path: ':id', component: ProbeDetailComponent },
+ { path: ':id/target', component: ProbeDetailComponent },
+ { path: ':id/history', component: ProbeDetailComponent },
+ ]
+ }
+];
+
+@NgModule({
+ imports: [RouterModule.forChild(routes)],
+ exports: [RouterModule]
+})
+export class ProbesPageRoutingModule { }
diff --git a/src/app/pages/probe/probe-page.component.html b/src/app/pages/probe/probe-page.component.html
new file mode 100644
index 0000000..975a544
--- /dev/null
+++ b/src/app/pages/probe/probe-page.component.html
@@ -0,0 +1,6 @@
+
\ No newline at end of file
diff --git a/src/app/pages/probe/probe-page.component.scss b/src/app/pages/probe/probe-page.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/pages/probe/probe-page.component.spec.ts b/src/app/pages/probe/probe-page.component.spec.ts
new file mode 100644
index 0000000..7e72ea9
--- /dev/null
+++ b/src/app/pages/probe/probe-page.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { ProbePageComponent } from './probe-page.component';
+
+describe('ProbeComponent', () => {
+ let component: ProbePageComponent;
+ let fixture: ComponentFixture
;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ ProbePageComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(ProbePageComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/pages/probe/probe-page.component.ts b/src/app/pages/probe/probe-page.component.ts
new file mode 100644
index 0000000..131a15a
--- /dev/null
+++ b/src/app/pages/probe/probe-page.component.ts
@@ -0,0 +1,24 @@
+import { Component, OnInit } from '@angular/core';
+import { Router } from '@angular/router';
+
+@Component({
+ selector: 'of-pages-probe',
+ templateUrl: './probe-page.component.html',
+ styleUrls: ['./probe-page.component.scss']
+})
+export class ProbePageComponent implements OnInit {
+
+ tabs = undefined;
+
+ constructor(private router: Router) {
+ }
+
+ ngOnInit() {
+ this.tabs = [
+ { label: 'Info', path: this.router.url },
+ { label: 'Targets', path: '/target' },
+ { label: 'History', path: '/probe/history' },
+ ];
+ }
+
+}
diff --git a/src/app/pages/probe/probe-page.module.ts b/src/app/pages/probe/probe-page.module.ts
new file mode 100644
index 0000000..090453f
--- /dev/null
+++ b/src/app/pages/probe/probe-page.module.ts
@@ -0,0 +1,21 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { ProbePageComponent } from './probe-page.component';
+import { ProbesPageRoutingModule } from './probe-page-routing.module';
+import { MaterialModule } from 'app/commons/ui/material/material.module';
+import { ProbeModule } from 'app/packages/probe/probe.module';
+import { SubMenubarModule } from 'app/commons/layouts/sub-menubar/sub-menubar.module';
+
+@NgModule({
+ imports: [
+ CommonModule,
+ ProbesPageRoutingModule,
+ MaterialModule,
+ ProbeModule,
+ SubMenubarModule
+ ],
+ declarations: [
+ ProbePageComponent,
+ ]
+})
+export class ProbePageModule { }
diff --git a/src/app/pages/probes/probes-page-routing.module.ts b/src/app/pages/probes/probes-page-routing.module.ts
index f2583f7..3205cba 100644
--- a/src/app/pages/probes/probes-page-routing.module.ts
+++ b/src/app/pages/probes/probes-page-routing.module.ts
@@ -12,7 +12,6 @@ const routes: Routes = [
component: ProbesPageComponent,
children: [
{ path: '', component: ProbeListComponent },
- { path: 'detail/:id', component: ProbeDetailComponent },
{ path: 'noauth', component: NoauthListComponent },
{ path: 'download', component: DownloadComponent },
]
diff --git a/src/app/pages/probes/probes-page.component.ts b/src/app/pages/probes/probes-page.component.ts
index ce5c45c..12ea362 100644
--- a/src/app/pages/probes/probes-page.component.ts
+++ b/src/app/pages/probes/probes-page.component.ts
@@ -13,12 +13,6 @@ export class ProbesPageComponent {
{ label: 'Download', path: '/probes/download' },
];
- // tabs2 = [
- // { label: 'Info', path: '/probe/' },
- // { label: 'Targets', path: '/target' },
- // { label: 'History', path: '/probe/history' },
- // ];
-
constructor() { }
}
diff --git a/src/app/pages/probes/probes-page.module.ts b/src/app/pages/probes/probes-page.module.ts
index bf0f845..db7879b 100644
--- a/src/app/pages/probes/probes-page.module.ts
+++ b/src/app/pages/probes/probes-page.module.ts
@@ -2,10 +2,10 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ProbesPageComponent } from './probes-page.component';
import { ProbesPageRoutingModule } from './probes-page-routing.module';
-import { SubMenubarComponent } from 'app/commons/layouts/sub-menubar/sub-menubar.component';
import { MaterialModule } from 'app/commons/ui/material/material.module';
import { ProbeModule } from 'app/packages/probe/probe.module';
import { NoauthModule } from 'app/packages/noauth/noauth.module';
+import { SubMenubarModule } from 'app/commons/layouts/sub-menubar/sub-menubar.module';
@NgModule({
imports: [
@@ -14,10 +14,10 @@ import { NoauthModule } from 'app/packages/noauth/noauth.module';
MaterialModule,
ProbeModule,
NoauthModule,
+ SubMenubarModule
],
declarations: [
ProbesPageComponent,
- SubMenubarComponent
]
})
export class ProbesPageModule { }