Skip to content

Commit 2f2845e

Browse files
committed
sub menu
1 parent 8caf6b8 commit 2f2845e

21 files changed

+1252
-807
lines changed
Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { NgModule } from '@angular/core';
1+
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3-
import { ApplicationsComponent } from '../applications/applications.component';
3+
import { ApplicationsComponent } from '../applications/applications.component';
44
import { CertificatesComponent } from '../certificates/certificates.component';
5-
import { ApplicationDetailComponent } from '../application-detail/application-detail.component';
5+
import { ApplicationDetailComponent } from '../application-detail/application-detail.component';
66
import { LoginFormComponent } from '../login-form/login-form.component';
77
import { CertificateDetailComponent } from '../certificate-detail/certificate-detail.component';
88
import { UsermgmtComponent } from '../usermgmt/usermgmt.component';
99
import { UserDetailComponent } from '../user-detail/user-detail.component';
10-
import { FirewallComponent } from '../firewall/firewall.component';
10+
import { WAFComponent } from '../waf/waf.component';
1111
import { PolicyComponent } from '../policy/policy.component';
1212
import { NodesComponent } from '../nodes/nodes.component';
1313
import { NodeDetailComponent } from '../node-detail/node-detail.component';
@@ -24,38 +24,42 @@ import { VipAppsComponent } from '../vip-apps/vip-apps.component';
2424
import { VipAppComponent } from '../vip-app/vip-app.component';
2525
import { RefererComponent } from '../referer/referer.component';
2626
import { AuthcodeRegisterComponent } from '../authcode-register/authcode-register.component';
27+
import { CcComponent } from '../cc/cc.component';
28+
import { IpPolicyComponent } from '../ip-policy/ip-policy.component';
2729

2830

2931
const routes: Routes = [
30-
{ path: '', redirectTo: '/index.html', pathMatch: 'full' },
31-
{ path: 'index.html', component: FrontpageComponent},
32-
{ path: 'dashboard', component: DashboardComponent},
33-
{ path: 'application/:id', component: ApplicationDetailComponent },
34-
{ path: 'applications', component: ApplicationsComponent },
35-
{ path: 'forwarding', component: VipAppsComponent },
36-
{ path: 'vip/:id', component: VipAppComponent },
37-
{ path: 'certificates', component: CertificatesComponent },
38-
{ path: 'certificate/:id', component: CertificateDetailComponent },
39-
{ path: 'usermgmt', component: UsermgmtComponent},
40-
{ path: 'appuser/:id', component: UserDetailComponent},
41-
{ path: 'waf', component: FirewallComponent},
42-
{ path: 'policy/:id', component: PolicyComponent},
43-
{ path: 'nodes', component: NodesComponent},
44-
{ path: 'node/:id', component: NodeDetailComponent},
45-
{ path: 'logs', component: LogsComponent},
46-
{ path: 'cclogs', component: CCLogsComponent},
47-
{ path: 'settings', component: SettingsComponent},
48-
{ path: 'log/:id', component: LogDetailComponent},
49-
{ path: 'cclog/:id', component: CCLogDetailComponent},
50-
{ path: 'login', component: LoginFormComponent},
51-
{ path: 'ssh', component: WebsshComponent },
52-
{ path: 'health', component: HealthCheckComponent },
53-
{ path: 'referring/:app_id/:host', component: RefererComponent },
54-
{ path: 'authcode-register', component: AuthcodeRegisterComponent}
32+
{ path: '', redirectTo: '/index.html', pathMatch: 'full' },
33+
{ path: 'index.html', component: FrontpageComponent },
34+
{ path: 'dashboard', component: DashboardComponent },
35+
{ path: 'application/:id', component: ApplicationDetailComponent },
36+
{ path: 'applications', component: ApplicationsComponent },
37+
{ path: 'forwarding', component: VipAppsComponent },
38+
{ path: 'vip/:id', component: VipAppComponent },
39+
{ path: 'certificates', component: CertificatesComponent },
40+
{ path: 'certificate/:id', component: CertificateDetailComponent },
41+
{ path: 'usermgmt', component: UsermgmtComponent },
42+
{ path: 'appuser/:id', component: UserDetailComponent },
43+
{ path: 'waf', component: WAFComponent },
44+
{ path: 'cc', component: CcComponent },
45+
{ path: 'ip-policy', component: IpPolicyComponent },
46+
{ path: 'policy/:id', component: PolicyComponent },
47+
{ path: 'nodes', component: NodesComponent },
48+
{ path: 'node/:id', component: NodeDetailComponent },
49+
{ path: 'logs', component: LogsComponent },
50+
{ path: 'cclogs', component: CCLogsComponent },
51+
{ path: 'settings', component: SettingsComponent },
52+
{ path: 'log/:id', component: LogDetailComponent },
53+
{ path: 'cclog/:id', component: CCLogDetailComponent },
54+
{ path: 'login', component: LoginFormComponent },
55+
{ path: 'ssh', component: WebsshComponent },
56+
{ path: 'health', component: HealthCheckComponent },
57+
{ path: 'referring/:app_id/:host', component: RefererComponent },
58+
{ path: 'authcode-register', component: AuthcodeRegisterComponent }
5559
];
5660

5761
@NgModule({
58-
imports: [ RouterModule.forRoot(routes) ],
59-
exports: [ RouterModule ]
62+
imports: [RouterModule.forRoot(routes)],
63+
exports: [RouterModule]
6064
})
61-
export class AppRoutingModule {}
65+
export class AppRoutingModule { }

src/app/app.component.css

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
display: flex;
77
align-items: top;
88
justify-content: center;
9-
width: 144px;
9+
width: 210px;
1010
}
1111

1212
mat-icon {
@@ -28,3 +28,38 @@ mat-icon {
2828
border: 0px;
2929
height: 36px;
3030
}
31+
32+
.mat-sidenav {
33+
background-color: #f5f5f5;
34+
}
35+
36+
.nav-panel {
37+
background-color: #f5f5f5;
38+
padding: 0px;
39+
}
40+
41+
.sub_list {
42+
margin: 0px;
43+
}
44+
45+
.mat-expansion-panel-header {
46+
padding: 0px 16px;
47+
font-size: 12px;
48+
}
49+
50+
.mat-accordion .mat-expansion-panel:last-of-type {
51+
/*
52+
border-bottom-right-radius: 0px;
53+
border-bottom-left-radius: 0px;
54+
*/
55+
border-radius: 0px;
56+
}
57+
58+
.mat-list-base .mat-list-item, .mat-list-base .mat-list-option {
59+
height: 32px;
60+
}
61+
62+
63+
::ng-deep .mat-expansion-panel-body {
64+
padding: 0px 12px !important;
65+
}

0 commit comments

Comments
 (0)