From 579cbdf4646fbdf8db2419ee046d812189894afc Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Tue, 14 Jul 2020 21:20:29 -0500 Subject: Resolve Content-Security-Policy error In Firefox there was an no unsafe eval error which was caused when users had the vue dev tools extenstion installed and enabled. The other issue was the loading of a resrouce at inline (style-src) which was caused by the SVG icons coming from the Carbon icons vue library. - Updated the Carbon icons to the latest version to resolve the CSP issue. - Remove chainwebpack option only used for prefecth as this is not needed. Originally this was an issue when using code splitting. Changing how we import views for routes and creating a single bundle removes the need for this option. - Update how fill color is applied to StatusIcon component. The Carbon icons update results in adding the fill property to the svg container does not cascade resulting in all icons rendering as their default fill color. GitHub Issue: https://github.com/openbmc/webui-vue/issues/32 Signed-off-by: Derick Montague Change-Id: I4846f80c993c129d5e88fceda13d53fab51d7c8a --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 1bc62f5b..bd8f11b5 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'" }, "dependencies": { - "@carbon/icons-vue": "10.6.1", + "@carbon/icons-vue": "10.19.0", "@novnc/novnc": "1.2.0", "axios": "0.19.0", "bootstrap": "4.4.1", -- cgit v1.2.3