From 802fb625d75a26a203b9c55709b12dad3d879193 Mon Sep 17 00:00:00 2001 From: Alicia Sykes <=> Date: Sun, 26 Dec 2021 22:56:11 +0000 Subject: [PATCH 1/5] :sparkles: Adds widget for monitoring CVE vulnerabilities --- docs/widgets.md | 39 +++ src/components/Widgets/CveVulnerabilities.vue | 236 ++++++++++++++++ src/components/Widgets/WidgetBase.vue | 8 + src/styles/color-palette.scss | 255 +++++++++--------- src/utils/MiscHelpers.js | 5 + src/utils/defaults.js | 1 + 6 files changed, 417 insertions(+), 127 deletions(-) create mode 100644 src/components/Widgets/CveVulnerabilities.vue diff --git a/docs/widgets.md b/docs/widgets.md index 4dc3ccef..14d0db67 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -12,6 +12,7 @@ Dashy has support for displaying dynamic content in the form of widgets. There a - [RSS Feed](#rss-feed) - [XKCD Comics](#xkcd-comics) - [Code Stats](#code-stats) + - [Vulnerability Feed](#vulnerability-feed) - [Public Holidays](#public-holidays) - [TFL Status](#tfl-status) - [Exchange Rates](#exchange-rates) @@ -277,6 +278,44 @@ Display your coding summary. [Code::Stats](https://codestats.net/) is a free and --- +### Vulnerability Feed + +Display a feed of recent vulnerabilities, with optional filtering by score, exploits, vendor and product. All fields are optional. + +

{{ cve.score }}
+{{ cve.id }}
+ {{ cve.publishDate | formatDate }} + Last Updated: {{ cve.updateDate | formatDate }} + + {{ cve.numExploits | formatExploitCount }} + ++ {{ cve.description | formatDescription }} + + Keep Reading + +
+{{ copyright }}
{{ truncatedDescription }}
diff --git a/src/components/Widgets/CryptoWatchList.vue b/src/components/Widgets/CryptoWatchList.vue index 115f42bf..0f11f232 100644 --- a/src/components/Widgets/CryptoWatchList.vue +++ b/src/components/Widgets/CryptoWatchList.vue @@ -7,7 +7,7 @@ class="asset-wrapper" v-tooltip="tooltip(asset.info)" > -{{ asset.name }}
{{ asset.price | formatPrice }}
diff --git a/src/components/Widgets/GitHubProfile.vue b/src/components/Widgets/GitHubProfile.vue
index 4f7de097..8f24aa34 100644
--- a/src/components/Widgets/GitHubProfile.vue
+++ b/src/components/Widgets/GitHubProfile.vue
@@ -1,9 +1,9 @@
{{ repo.name }} {{ article.description }}
-
+
+
-
+
+
+
{{ ipAddr }}
{{ ispName }}
{{ location }} diff --git a/src/components/Widgets/RssFeed.vue b/src/components/Widgets/RssFeed.vue index 06fc3e75..12359eb7 100644 --- a/src/components/Widgets/RssFeed.vue +++ b/src/components/Widgets/RssFeed.vue @@ -2,7 +2,7 @@