Skip to content

Commit 2faf996

Browse files
committed
feat: show fixed version for vulnerabilities
1 parent 146c677 commit 2faf996

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+147
-38
lines changed

app/components/Package/VulnerabilityTree.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ function getDepthStyle(depth: string | undefined) {
150150
{{ vuln.id }}
151151
</a>
152152
<span class="truncate w-0 flex-1">{{ vuln.summary }}</span>
153+
<span
154+
v-if="vuln.fixedIn"
155+
class="shrink-0 font-mono text-emerald-600 dark:text-emerald-400"
156+
:title="$t('package.vulnerabilities.fixed_in_title', { version: vuln.fixedIn })"
157+
>
158+
→ {{ vuln.fixedIn }}
159+
</span>
153160
</li>
154161
<li
155162
v-if="pkg.vulnerabilities.length > 2 && !showAllVulnerabilities"

i18n/locales/ar.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@
328328
"high": "عالية",
329329
"moderate": "متوسطة",
330330
"low": "منخفضة"
331-
}
331+
},
332+
"fixed_in_title": "تم الإصلاح في الإصدار {version}"
332333
},
333334
"deprecated": {
334335
"label": "مهمل",

i18n/locales/az.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@
288288
"high": "yüksək",
289289
"moderate": "orta",
290290
"low": "aşağı"
291-
}
291+
},
292+
"fixed_in_title": "{version} versiyasında düzəldilib"
292293
},
293294
"deprecated": {
294295
"label": "Köhnəlmiş",

i18n/locales/cs-CZ.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@
328328
"high": "vysoká",
329329
"moderate": "střední",
330330
"low": "nízká"
331-
}
331+
},
332+
"fixed_in_title": "Opraveno ve verzi {version}"
332333
},
333334
"deprecated": {
334335
"label": "Zastaralé",

i18n/locales/de-DE.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@
330330
"high": "Hoch",
331331
"moderate": "Mittel",
332332
"low": "Niedrig"
333-
}
333+
},
334+
"fixed_in_title": "Behoben in Version {version}"
334335
},
335336
"deprecated": {
336337
"label": "Veraltet",

i18n/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@
353353
"high": "high",
354354
"moderate": "moderate",
355355
"low": "low"
356-
}
356+
},
357+
"fixed_in_title": "Fixed in version {version}"
357358
},
358359
"deprecated": {
359360
"label": "Deprecated",

i18n/locales/es.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@
334334
"high": "alta",
335335
"moderate": "moderada",
336336
"low": "baja"
337-
}
337+
},
338+
"fixed_in_title": "Corregido en la versión {version}"
338339
},
339340
"deprecated": {
340341
"label": "Obsoleto",

i18n/locales/fr-FR.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@
330330
"high": "élevée",
331331
"moderate": "modérée",
332332
"low": "faible"
333-
}
333+
},
334+
"fixed_in_title": "Corrigé dans la version {version}"
334335
},
335336
"deprecated": {
336337
"label": "Obsolète",

i18n/locales/hi-IN.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@
323323
"high": "उच्च",
324324
"moderate": "मध्यम",
325325
"low": "निम्न"
326-
}
326+
},
327+
"fixed_in_title": "संस्करण {version} में ठीक किया गया"
327328
},
328329
"deprecated": {
329330
"label": "डेप्रीकेटेड",

i18n/locales/hu-HU.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@
287287
"high": "magas",
288288
"moderate": "közepes",
289289
"low": "alacsony"
290-
}
290+
},
291+
"fixed_in_title": "Javítva a(z) {version} verzióban"
291292
},
292293
"deprecated": {
293294
"label": "Elavult",

0 commit comments

Comments
 (0)