Skip to content

Commit cfca93b

Browse files
committed
Add Security Checklist
1 parent 07945a0 commit cfca93b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

frontend/components/advanced-tools/SecurityChecklist.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{{ t('securitychecklist.alert-checked') }} {{ countItems({ action: 'checked', category:
2323
'all' }) }} {{ t('securitychecklist.Items') }},
2424
{{ countItems({ action: 'ignored', category: 'all' }) }} {{ t('securitychecklist.Items')
25-
}}{{ t('securitychecklist.alert-ignored') }}{{ countItems({ action:
25+
}}{{ t('securitychecklist.alert-ignored') }}, {{ countItems({ action:
2626
'total', category: 'all' }) - countItems({ action: 'checked', category: 'all' }) -
2727
countItems({ action: 'ignored', category: 'all' }) }} {{
2828
t('securitychecklist.alert-unchecked') }}
@@ -35,14 +35,12 @@
3535
<span class="fs-6 flex-shrink-1">{{ fullList[item].title }}</span>&nbsp;&nbsp;
3636
<span class="progress-stacked flex-grow-1">
3737
<div class="progress" role="progressbar" aria-label="Segment One"
38-
aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"
3938
:style="'width: '+ countItems({ action: 'checked', category: item }) / countItems({ action: 'total', category: item }) * 100 + '%'">
4039
<div class="progress-bar bg-success"> {{ t('securitychecklist.Checked') }}
4140
</div>
4241
</div>
4342

4443
<div class="progress" role="progressbar" aria-label="Segment two"
45-
aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"
4644
:style="'width: '+ countItems({ action: 'ignored', category: item }) / countItems({ action: 'total', category: item }) * 100 + '%'">
4745
<div class="progress-bar bg-info"> {{ t('securitychecklist.Ignored') }}
4846
</div>
@@ -154,7 +152,7 @@
154152
<table class="table table-hover" :class="{ 'table-dark': isDarkMode }">
155153
<thead>
156154
<tr>
157-
<th scope="col">{{ t('securitychecklist.Items') }}</th>
155+
<th scope="col">{{ t('securitychecklist.Item') }}</th>
158156
<th scope="col">{{ t('securitychecklist.Priority') }}</th>
159157
<th scope="col">{{ t('securitychecklist.Ignore') }}</th>
160158
</tr>

frontend/locales/zh.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
"Note2": "这个清单罗列的内容非常多,你不一定要一次性检查完,进度会在浏览器里保存,你可以随时返回继续检查。",
4444
"Progress": "检查进度",
4545
"Item": "项目",
46-
"Items": "项目",
46+
"Items": "个项目",
4747
"Priority": "级别",
4848
"Ignore": "忽略",
4949
"alert-total":"安全检查一共有",
5050
"alert-checked":"你已经完成了",
5151
"alert-ignored":"被忽略",
52-
"alert-unchecked":"未进行检查",
52+
"alert-unchecked":"个未进行检查",
5353
"Checked": "已检查",
5454
"Ignored": "已忽略",
5555
"Unchecked": "未检查",

0 commit comments

Comments
 (0)