From 5a3fc5a5b4b04d02add7aa92df4fc669760e5433 Mon Sep 17 00:00:00 2001 From: Kevin Olotu Date: Wed, 30 Sep 2020 15:05:26 +0200 Subject: [PATCH] Fixed dashboard npm build Signed-off-by: Kevin Olotu --- vorto-dashboard/src/util/cardUtils.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vorto-dashboard/src/util/cardUtils.js b/vorto-dashboard/src/util/cardUtils.js index c5e7375..6ff9619 100644 --- a/vorto-dashboard/src/util/cardUtils.js +++ b/vorto-dashboard/src/util/cardUtils.js @@ -1,4 +1,4 @@ -const CATEGORIES = { +export const CATEGORIES = { LOCATION: [ 'org.eclipse.vorto:Location:1.0.0', 'org.eclipse.vorto:Geolocation:1.0.0', @@ -56,7 +56,7 @@ const CATEGORIES = { ] } -function mapDeftoCardCategorie (featureDefs) { +export function mapDeftoCardCategorie (featureDefs) { if (!featureDefs) { return CATEGORIES.JSON } @@ -123,7 +123,4 @@ function mapDeftoCardCategorie (featureDefs) { return CATEGORIES.JSON } -module.exports = { - CATEGORIES, - mapDeftoCardCategorie -} +