From 773711a2d56cd3d49f8ccd72d19530715919ab00 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 20 Nov 2018 10:14:46 +0100 Subject: [PATCH] Update Hassio with security options (#2067) * new security options * Add more info modal Added more info modal and moved the security components. * fixes * show apparmor only if not default * add colors to apparmor --- .../addon-store/hassio-addon-repository.js | 16 +- hassio/src/addon-view/hassio-addon-info.js | 242 +++++++++++++++++- hassio/src/components/hassio-card-content.js | 7 + hassio/src/dashboard/hassio-addons.js | 1 + 4 files changed, 258 insertions(+), 8 deletions(-) diff --git a/hassio/src/addon-store/hassio-addon-repository.js b/hassio/src/addon-store/hassio-addon-repository.js index 9298a7108f..cc95f068bf 100644 --- a/hassio/src/addon-store/hassio-addon-repository.js +++ b/hassio/src/addon-store/hassio-addon-repository.js @@ -13,6 +13,9 @@ class HassioAddonRepository extends NavigateMixin(PolymerElement) { paper-card { cursor: pointer; } + .not_available { + opacity: 0.6; + } a.repo { display: block; color: var(--primary-text-color); @@ -35,12 +38,13 @@ class HassioAddonRepository extends NavigateMixin(PolymerElement) { as="addon" sort="sortAddons" > - +
+ + +
+

Addon Security Rating

+
+ Hass.io provides a security rating to each of the add-ons, which indicates the risks involved when using this add-on. The more access an addon requires on your system, the lower the score, thus raising the possible security risks. +
+ + + + + + + + + +
@@ -193,7 +383,11 @@ class HassioAddonInfo extends EventsMixin(PolymerElement) {