Skip to content

Commit 5e8f174

Browse files
committed
nav
1 parent 2f2845e commit 5e8f174

File tree

4 files changed

+22
-13
lines changed

4 files changed

+22
-13
lines changed

proxy.config.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"/janusec-admin/": {
3-
"target": "http://192.168.100.110:9080",
4-
"secure": false
5-
},
6-
"/janusec-admin/#/ssh": {
2+
"/janusec-admin/#/webssh": {
73
"target": "ws://192.168.100.110:9080",
84
"secure": false,
95
"ws": true,
106
"changeOrigin": true
117
},
8+
"/janusec-admin/": {
9+
"target": "http://192.168.100.110:9080",
10+
"secure": false
11+
},
1212
"/favicon.ico": {
1313
"target": "http://192.168.100.110:9080/janusec-admin/",
1414
"secure": false

src/app/app-routing/app-routing.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const routes: Routes = [
5252
{ path: 'log/:id', component: LogDetailComponent },
5353
{ path: 'cclog/:id', component: CCLogDetailComponent },
5454
{ path: 'login', component: LoginFormComponent },
55-
{ path: 'ssh', component: WebsshComponent },
55+
{ path: 'webssh', component: WebsshComponent },
5656
{ path: 'health', component: HealthCheckComponent },
5757
{ path: 'referring/:app_id/:host', component: RefererComponent },
5858
{ path: 'authcode-register', component: AuthcodeRegisterComponent }

src/app/app.component.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
mat-icon {
1313
font-size: 14px;
14+
vertical-align: middle;
1415
}
1516

1617
.mat-sidenav {
@@ -62,4 +63,8 @@ mat-icon {
6263

6364
::ng-deep .mat-expansion-panel-body {
6465
padding: 0px 12px !important;
66+
}
67+
68+
mat-expansion-panel {
69+
box-shadow: none !important;
6570
}

src/app/app.component.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@
4242
</a>
4343
</mat-list-item>
4444

45+
<mat-list-item>
46+
<a routerLink="/usermgmt">
47+
<mat-icon>supervisor_account</mat-icon>
48+
<span i18n="@@user_mgmt">User Management</span>
49+
</a>
50+
</mat-list-item>
51+
4552
</mat-expansion-panel>
4653
</mat-accordion>
4754

@@ -88,7 +95,7 @@
8895
</mat-expansion-panel-header>
8996

9097
<mat-list-item>
91-
<a routerLink="/ssh">
98+
<a routerLink="/webssh">
9299
<mat-icon>computer</mat-icon>
93100
<span>Web SSH</span>
94101
</a>
@@ -137,12 +144,7 @@
137144
</mat-expansion-panel>
138145
</mat-accordion>
139146

140-
<mat-list-item>
141-
<a routerLink="/usermgmt">
142-
<mat-icon>supervisor_account</mat-icon>
143-
<span i18n="@@user_mgmt">User Management</span>
144-
</a>
145-
</mat-list-item>
147+
<mat-divider></mat-divider>
146148

147149
<mat-list-item *ngIf="applicationService.auth_user.is_super_admin==true">
148150
<a routerLink="/settings">
@@ -151,6 +153,8 @@
151153
</a>
152154
</mat-list-item>
153155

156+
<mat-divider></mat-divider>
157+
154158
<mat-list-item>
155159
<a (click)="toggleSidenav()">
156160
<mat-icon>navigate_before</mat-icon>

0 commit comments

Comments
 (0)