Skip to content

Commit 8caf6b8

Browse files
committed
add redirect for static 404
1 parent 92d63ad commit 8caf6b8

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

src/app/app.component.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
.sidenav-container {
2-
min-height: 800px;
1+
.sidenav-container {
2+
min-height: 700px;
33
}
44

55
.sidenav {
66
display: flex;
77
align-items: top;
88
justify-content: center;
9-
width: 140px;
9+
width: 144px;
1010
}
1111

1212
mat-icon {
@@ -28,7 +28,3 @@ mat-icon {
2828
border: 0px;
2929
height: 36px;
3030
}
31-
32-
.content {
33-
height: 800px;
34-
}

src/app/app.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
</button>
107107
</div>
108108
<router-outlet></router-outlet>
109-
110109
</mat-sidenav-content>
111110
</mat-sidenav-container>
112111
<app-footer></app-footer>

src/app/dashboard/dashboard.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export class DashboardComponent implements OnInit {
1717
// today chart
1818
today_stat_vuln_name: string[];
1919
today_stat_count: number[];
20+
today_stat_counts: number;
2021
today_stat_bgcolor: string[];
2122
// week chart
2223
week_stat_date: string[];
@@ -201,6 +202,7 @@ export class DashboardComponent implements OnInit {
201202
let end_time = end_date.getTime()/1000 + 1;
202203
this.today_stat_vuln_name = [];
203204
this.today_stat_count = [];
205+
this.today_stat_counts = 0;
204206
this.today_stat_bgcolor = [];
205207
let body={action:"get_vuln_stat", app_id: app_id, start_time: start_time, end_time: end_time}
206208
let self = this;
@@ -212,8 +214,13 @@ export class DashboardComponent implements OnInit {
212214
let vuln_name = self.getVulnNameByID(vuln_stat.vuln_id);
213215
self.today_stat_vuln_name.push(vuln_name);
214216
self.today_stat_count.push(vuln_stat.count);
217+
self.today_stat_counts += vuln_stat.count;
215218
self.today_stat_bgcolor.push(self.getColorString(vuln_stat.vuln_id));
216219
}
220+
if(self.today_stat_counts==0) {
221+
self.today_stat_vuln_name.push("None");
222+
self.today_stat_count.push(1e-9);
223+
}
217224
self.initTodayChart();
218225
});
219226
}

src/app/navbar/navbar.component.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,12 @@
1515
.logo-span {
1616
height: 38px;
1717
}
18-
.logo {
19-
height: 36px;
20-
width: 139px;
21-
}
2218

2319
.text-logo {
2420
font-family: Arial, Helvetica, sans-serif;
2521
font-size: 24px;
2622
color: #f5f5f5;
27-
width: 133px;
23+
width: 137px;
2824
text-decoration: none;
2925
text-shadow: 2px 2px 4px #000000;
3026
box-shadow: 1px 1px 1px #d5d5d5;

0 commit comments

Comments
 (0)