-
diff --git a/src/app/pages/pages.component.ts b/src/app/pages/pages.component.ts
index 95c2f20..dba2608 100644
--- a/src/app/pages/pages.component.ts
+++ b/src/app/pages/pages.component.ts
@@ -1,7 +1,7 @@
import { Component, AfterViewInit, ElementRef, Renderer, ViewChild, OnDestroy, OnInit, NgZone } from '@angular/core';
import { ScrollPanel } from 'primeng/primeng';
import { Router } from '@angular/router';
-
+import { fadeAnimation } from './pages-animation';
enum MenuOrientation {
STATIC,
OVERLAY,
@@ -12,7 +12,8 @@ enum MenuOrientation {
@Component({
selector: 'of-pages',
templateUrl: './pages.component.html',
- styleUrls: ['./pages.component.scss']
+ styleUrls: ['./pages.component.scss'],
+ animations: [ fadeAnimation ]
})
export class PagesComponent implements AfterViewInit, OnDestroy, OnInit {
layoutCompact = true;
@@ -59,7 +60,8 @@ export class PagesComponent implements AfterViewInit, OnDestroy, OnInit {
rippleMouseDownListener: any;
- constructor(public renderer: Renderer, public zone: NgZone, private router: Router) { }
+ constructor(public renderer: Renderer, public zone: NgZone, private router: Router) {
+ }
ngOnInit() {
if (this.isAuthRouteActivated()) {
@@ -323,6 +325,11 @@ export class PagesComponent implements AfterViewInit, OnDestroy, OnInit {
themeLink.href = 'assets/theme/theme-' + theme + '.css';
layoutLink.href = 'assets/layout/css/layout-' + theme + '.css';
-}
+ }
+
+ prepareRouteTransition(outlet) {
+ const animation = outlet.activatedRouteData['animation'] || {};
+ return animation['value'] || null;
+ }
}
diff --git a/src/app/pages/probe/probe-page-routing.module.ts b/src/app/pages/probe/probe-page-routing.module.ts
deleted file mode 100644
index 69a82fd..0000000
--- a/src/app/pages/probe/probe-page-routing.module.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { NgModule } from '@angular/core';
-import { Routes, RouterModule } from '@angular/router';
-import { ProbePageComponent } from './probe-page.component';
-import { DetailComponent as ProbeDetailComponent } from 'packages/probe/component/detail/detail.component';
-// import { ListComponent as TargetListComponent } from 'packages/target/component/list/list.component';
-
-const routes: Routes = [
- {
- path: '',
- component: ProbePageComponent,
- children: [
- { path: ':id/info', component: ProbeDetailComponent },
- { path: ':id/targets', loadChildren: 'app/pages/targets/targets-page.module#TargetsPageModule'},
- { path: ':id/history', component: null },
- ]
- }
-];
-
-@NgModule({
- imports: [RouterModule.forChild(routes)],
- exports: [RouterModule]
-})
-export class ProbePageRoutingModule { }
diff --git a/src/app/pages/probe/probe-page.component.html b/src/app/pages/probe/probe-page.component.html
deleted file mode 100644
index 0328d41..0000000
--- a/src/app/pages/probe/probe-page.component.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
\ No newline at end of file
diff --git a/src/app/pages/probe/probe-page.component.spec.ts b/src/app/pages/probe/probe-page.component.spec.ts
deleted file mode 100644
index 7e72ea9..0000000
--- a/src/app/pages/probe/probe-page.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-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
deleted file mode 100644
index 6cbcc32..0000000
--- a/src/app/pages/probe/probe-page.component.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-import { Router, ActivatedRoute } from '@angular/router';
-
-@Component({
- selector: 'of-pages-probe',
- templateUrl: './probe-page.component.html',
-})
-export class ProbePageComponent implements OnInit {
-
- tabs = undefined;
-
- constructor(private route: ActivatedRoute, private router: Router) {
- }
-
- ngOnInit() {
- const id = this.router.url.split('probe/')[1].split('/')[0];
-
- this.tabs = [
- { label: 'INFO', routerLink: ['/probe/', id, 'info'] },
- { label: 'TARGETS', routerLink: ['/probe/', id, 'targets']},
- { label: 'HISTORY', path: ['/probe/', id, 'history'], disabled: true },
- ];
- }
-
-}
diff --git a/src/app/pages/probes/download/download-page-routing.module.ts b/src/app/pages/probes/download/download-page-routing.module.ts
new file mode 100644
index 0000000..4571de5
--- /dev/null
+++ b/src/app/pages/probes/download/download-page-routing.module.ts
@@ -0,0 +1,20 @@
+import { NgModule } from '@angular/core';
+import { Routes, RouterModule } from '@angular/router';
+import { ProbeDownloadPageComponent } from './download-page.component';
+
+const routes: Routes = [
+ {
+ path: '',
+ component: ProbeDownloadPageComponent,
+ },
+ {
+ path: ':idx',
+ component: ProbeDownloadPageComponent,
+ },
+];
+
+@NgModule({
+ imports: [RouterModule.forChild(routes)],
+ exports: [RouterModule]
+})
+export class ProbeDownloadPageRoutingModule { }
diff --git a/src/app/pages/probes/download/download-page.component.html b/src/app/pages/probes/download/download-page.component.html
new file mode 100644
index 0000000..1947a35
--- /dev/null
+++ b/src/app/pages/probes/download/download-page.component.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/app/pages/probes/download/download-page.component.ts b/src/app/pages/probes/download/download-page.component.ts
new file mode 100644
index 0000000..8a3c71f
--- /dev/null
+++ b/src/app/pages/probes/download/download-page.component.ts
@@ -0,0 +1,26 @@
+import { Component, OnInit } from '@angular/core';
+import { Router, ActivatedRoute } from '@angular/router';
+
+@Component({
+ selector: 'of-pages-download',
+ templateUrl: './download-page.component.html',
+})
+export class ProbeDownloadPageComponent implements OnInit {
+
+ private index;
+
+ constructor(
+ private router: Router,
+ private route: ActivatedRoute
+ ) { }
+
+ ngOnInit() {
+ this.route.params.subscribe((params: any) => {
+ this.index = params['idx'];
+ });
+ }
+
+ onSelect(index) {
+ this.router.navigate(['/probe/download', index]);
+ }
+}
diff --git a/src/app/pages/probes/download/download-page.module.ts b/src/app/pages/probes/download/download-page.module.ts
new file mode 100644
index 0000000..ddcf90f
--- /dev/null
+++ b/src/app/pages/probes/download/download-page.module.ts
@@ -0,0 +1,19 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+
+import { PrimeNGModules } from 'packages/commons/prime-ng/prime-ng.module';
+import { ProbeDownloadPageComponent } from './download-page.component';
+import { ProbeDownloadPageRoutingModule } from './download-page-routing.module';
+import { ProbeModule } from 'packages/probe/probe.module';
+
+@NgModule({
+ imports: [
+ CommonModule,
+ ProbeDownloadPageRoutingModule,
+ ProbeModule
+ ],
+ entryComponents: [
+ ],
+ declarations: [ProbeDownloadPageComponent]
+})
+export class ProbeDownloadPageModule { }
diff --git a/src/app/pages/probes/noauth-probe/noauth-probe-page-routing.module.ts b/src/app/pages/probes/noauth-probe/noauth-probe-page-routing.module.ts
new file mode 100644
index 0000000..fa6bc36
--- /dev/null
+++ b/src/app/pages/probes/noauth-probe/noauth-probe-page-routing.module.ts
@@ -0,0 +1,19 @@
+import { NgModule } from '@angular/core';
+import { Routes, RouterModule } from '@angular/router';
+import { NoAuthProbePageComponent } from './noauth-probe-page.component';
+import { ProbeListComponent } from 'packages/probe/component/list/list.component';
+import { ListComponent } from 'packages/noauth/component/list/list.component';
+import { ProbeDownloadComponent } from 'packages/probe/component/download/download.component';
+
+const routes: Routes = [
+ {
+ path: '',
+ component: NoAuthProbePageComponent,
+ }
+];
+
+@NgModule({
+ imports: [RouterModule.forChild(routes)],
+ exports: [RouterModule]
+})
+export class NoAuthProbePageRoutingModule { }
diff --git a/src/app/pages/probes/noauth-probe/noauth-probe-page.component.html b/src/app/pages/probes/noauth-probe/noauth-probe-page.component.html
new file mode 100644
index 0000000..d5187b7
--- /dev/null
+++ b/src/app/pages/probes/noauth-probe/noauth-probe-page.component.html
@@ -0,0 +1,2 @@
+container로 교체
+
\ No newline at end of file
diff --git a/src/app/pages/probes/noauth-probe/noauth-probe-page.component.ts b/src/app/pages/probes/noauth-probe/noauth-probe-page.component.ts
new file mode 100644
index 0000000..aa8cbd5
--- /dev/null
+++ b/src/app/pages/probes/noauth-probe/noauth-probe-page.component.ts
@@ -0,0 +1,13 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+ selector: 'of-pages-noauth-probe',
+ templateUrl: './noauth-probe-page.component.html',
+})
+export class NoAuthProbePageComponent {
+
+ constructor(
+ ) {
+ }
+
+}
diff --git a/src/app/pages/probes/probes-page.module.ts b/src/app/pages/probes/noauth-probe/noauth-probe-page.module.ts
similarity index 53%
rename from src/app/pages/probes/probes-page.module.ts
rename to src/app/pages/probes/noauth-probe/noauth-probe-page.module.ts
index 44a7424..5023f44 100644
--- a/src/app/pages/probes/probes-page.module.ts
+++ b/src/app/pages/probes/noauth-probe/noauth-probe-page.module.ts
@@ -1,21 +1,19 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { ProbeModule } from 'packages/probe/probe.module';
import { NoauthModule } from 'packages/noauth/noauth.module';
-import { ProbesPageComponent } from './probes-page.component';
-import { ProbesPageRoutingModule } from './probes-page-routing.module';
+import { NoAuthProbePageComponent } from './noauth-probe-page.component';
+import { NoAuthProbePageRoutingModule } from './noauth-probe-page-routing.module';
import { TabbarModule } from 'app/commons/component/layout/tabbar/app.tabbar.module';
@NgModule({
imports: [
CommonModule,
- ProbesPageRoutingModule,
+ NoAuthProbePageRoutingModule,
TabbarModule,
- ProbeModule,
NoauthModule,
],
declarations: [
- ProbesPageComponent,
+ NoAuthProbePageComponent,
]
})
-export class ProbesPageModule { }
+export class NoAuthProbePageModule { }
diff --git a/src/app/pages/probes/probe-tab-page-routing.module.ts b/src/app/pages/probes/probe-tab-page-routing.module.ts
new file mode 100644
index 0000000..6a5a9b1
--- /dev/null
+++ b/src/app/pages/probes/probe-tab-page-routing.module.ts
@@ -0,0 +1,24 @@
+import { NgModule } from '@angular/core';
+import { Routes, RouterModule } from '@angular/router';
+import { ProbeTabPageComponent } from './probe-tab-page.component';
+
+const routes: Routes = [
+ {
+ path: '',
+ component: ProbeTabPageComponent,
+ children: [
+ { path: 'list', loadChildren: './probe/probe-page.module#ProbePageModule' },
+ { path: 'noauth', loadChildren: './noauth-probe/noauth-probe-page.module#NoAuthProbePageModule' },
+ { path: 'download', loadChildren: './download/download-page.module#ProbeDownloadPageModule' },
+ { path: ':id/info', loadChildren: './probe/probe-page.module#ProbePageModule' },
+ // { path: ':id/targets', loadChildren: 'app/pages/targets/targets-page.module#TargetsPageModule'},
+ { path: ':id/history', component: null },
+ ]
+ },
+];
+
+@NgModule({
+ imports: [RouterModule.forChild(routes)],
+ exports: [RouterModule]
+})
+export class ProbeTabPageRoutingModule { }
diff --git a/src/app/pages/probes/probes-page.component.html b/src/app/pages/probes/probe-tab-page.component.html
similarity index 97%
rename from src/app/pages/probes/probes-page.component.html
rename to src/app/pages/probes/probe-tab-page.component.html
index 0328d41..9e8130b 100644
--- a/src/app/pages/probes/probes-page.component.html
+++ b/src/app/pages/probes/probe-tab-page.component.html
@@ -9,4 +9,4 @@
-
\ No newline at end of file
+
diff --git a/src/app/pages/probes/probes-page.component.spec.ts b/src/app/pages/probes/probe-tab-page.component.spec.ts
similarity index 53%
rename from src/app/pages/probes/probes-page.component.spec.ts
rename to src/app/pages/probes/probe-tab-page.component.spec.ts
index f58adf9..cd8a544 100644
--- a/src/app/pages/probes/probes-page.component.spec.ts
+++ b/src/app/pages/probes/probe-tab-page.component.spec.ts
@@ -1,20 +1,20 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-import { ProbesPageComponent } from './probes-page.component';
+import { ProbeTabPageComponent } from './probe-tab-page.component';
-describe('ProbesComponent', () => {
- let component: ProbesPageComponent;
- let fixture: ComponentFixture