probe detail layout

This commit is contained in:
insanity 2018-01-31 17:19:00 +09:00
parent 7237decc09
commit 516a0bffa6
7 changed files with 17 additions and 11 deletions

View File

@ -2,14 +2,19 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { SubMenubarComponent } from 'app/commons/layouts/sub-menubar/sub-menubar.component'; import { SubMenubarComponent } from 'app/commons/layouts/sub-menubar/sub-menubar.component';
import { MaterialModule } from 'app/commons/ui/material/material.module'; import { MaterialModule } from 'app/commons/ui/material/material.module';
import { RouterModule } from '@angular/router';
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule, CommonModule,
MaterialModule MaterialModule,
RouterModule,
], ],
declarations: [ declarations: [
SubMenubarComponent SubMenubarComponent,
],
exports: [
SubMenubarComponent,
] ]
}) })
export class SubMenubarModule { } export class SubMenubarModule { }

View File

@ -15,7 +15,6 @@ import {
PerfectScrollbarConfigInterface PerfectScrollbarConfigInterface
} from 'ngx-perfect-scrollbar'; } from 'ngx-perfect-scrollbar';
import { NotificationComponent } from 'app/packages/notification/notification.component'; import { NotificationComponent } from 'app/packages/notification/notification.component';
import { SubMenubarModule } from 'app/commons/layouts/sub-menubar/sub-menubar.module';
const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
suppressScrollX: true suppressScrollX: true
@ -30,7 +29,6 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
MaterialModule, MaterialModule,
PerfectScrollbarModule, PerfectScrollbarModule,
FlexLayoutModule, FlexLayoutModule,
SubMenubarModule
], ],
declarations: [ declarations: [
PagesComponent, PagesComponent,

View File

@ -1,9 +1,6 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router'; import { Routes, RouterModule } from '@angular/router';
import { ProbePageComponent } from './probe-page.component'; import { ProbePageComponent } from './probe-page.component';
import { ListComponent as ProbeListComponent } from 'app/packages/probe/component/list/list.component';
import { ListComponent as NoauthListComponent } from 'app/packages/noauth/component/list/list.component';
import { DownloadComponent } from 'app/packages/probe/component/download/download.component';
import { DetailComponent as ProbeDetailComponent } from 'app/packages/probe/component/detail/detail.component'; import { DetailComponent as ProbeDetailComponent } from 'app/packages/probe/component/detail/detail.component';
const routes: Routes = [ const routes: Routes = [
@ -11,7 +8,9 @@ const routes: Routes = [
path: '', path: '',
component: ProbePageComponent, component: ProbePageComponent,
children: [ children: [
{ path: '', component: ProbeListComponent }, { path: ':id', component: ProbeDetailComponent },
{ path: ':id/target', component: ProbeDetailComponent },
{ path: ':id/history', component: ProbeDetailComponent },
] ]
} }
]; ];

View File

@ -1,6 +1,6 @@
<div> <div>
<of-sub-menubar [tabs]="tabs"></of-sub-menubar> <of-sub-menubar [tabs]="tabs"></of-sub-menubar>
<div style="padding: 15px"> <div style="padding: 15px">
<router-outlet>이거슨 detail</router-outlet> <router-outlet></router-outlet>
</div> </div>
</div> </div>

View File

@ -7,8 +7,8 @@ import { Component, OnInit } from '@angular/core';
}) })
export class ProbePageComponent { export class ProbePageComponent {
tabs2 = [ tabs = [
{ label: 'Info', path: '/probe/' }, { label: 'Info', path: '/probe' },
{ label: 'Targets', path: '/target' }, { label: 'Targets', path: '/target' },
{ label: 'History', path: '/probe/history' }, { label: 'History', path: '/probe/history' },
]; ];

View File

@ -4,6 +4,7 @@ import { ProbePageComponent } from './probe-page.component';
import { ProbesPageRoutingModule } from './probe-page-routing.module'; import { ProbesPageRoutingModule } from './probe-page-routing.module';
import { MaterialModule } from 'app/commons/ui/material/material.module'; import { MaterialModule } from 'app/commons/ui/material/material.module';
import { ProbeModule } from 'app/packages/probe/probe.module'; import { ProbeModule } from 'app/packages/probe/probe.module';
import { SubMenubarModule } from 'app/commons/layouts/sub-menubar/sub-menubar.module';
@NgModule({ @NgModule({
imports: [ imports: [
@ -11,6 +12,7 @@ import { ProbeModule } from 'app/packages/probe/probe.module';
ProbesPageRoutingModule, ProbesPageRoutingModule,
MaterialModule, MaterialModule,
ProbeModule, ProbeModule,
SubMenubarModule
], ],
declarations: [ declarations: [
ProbePageComponent, ProbePageComponent,

View File

@ -5,6 +5,7 @@ import { ProbesPageRoutingModule } from './probes-page-routing.module';
import { MaterialModule } from 'app/commons/ui/material/material.module'; import { MaterialModule } from 'app/commons/ui/material/material.module';
import { ProbeModule } from 'app/packages/probe/probe.module'; import { ProbeModule } from 'app/packages/probe/probe.module';
import { NoauthModule } from 'app/packages/noauth/noauth.module'; import { NoauthModule } from 'app/packages/noauth/noauth.module';
import { SubMenubarModule } from 'app/commons/layouts/sub-menubar/sub-menubar.module';
@NgModule({ @NgModule({
imports: [ imports: [
@ -13,6 +14,7 @@ import { NoauthModule } from 'app/packages/noauth/noauth.module';
MaterialModule, MaterialModule,
ProbeModule, ProbeModule,
NoauthModule, NoauthModule,
SubMenubarModule
], ],
declarations: [ declarations: [
ProbesPageComponent, ProbesPageComponent,