diff --git a/src/assets/text/text.js b/src/assets/text/text.js index 3d7d98dc4c5efc93c99d15e2c5ebcd09e310ff07..d9f9698d631476a8b31d6e8d3c8aebf11296fa75 100644 --- a/src/assets/text/text.js +++ b/src/assets/text/text.js @@ -280,7 +280,7 @@ export default { subThreatIcon: "noun-canal-29572-4E6D6E" }, { - subThreat: "Industrial Extraction", + subThreat: "Industrial extraction", subThreatText: "Industrial Extraction text", subThreatIcon: "noun-canal-29572-4E6D6E" } @@ -339,12 +339,12 @@ export default { ] }, { - tabTitle: "Climate and Weather", - tabContentTitle: "Climate and Weather", + tabTitle: "Climate and weather", + tabContentTitle: "Climate and weather", tabContentTitleID: "climate-and-weather", tabIcon: "noun-drain-7131918-7A562B", - tabText: "Climate and Weather text.", - tabMapImageAlt: "Climate and Weather alt.", + tabText: "Climate and weather text.", + tabMapImageAlt: "Climate and weather alt.", tabLegendImageAlt: "Legend", subThreatPrefix: "CW", subThreatData: [ diff --git a/src/components/FindexGlobalThreatsViz.vue b/src/components/FindexGlobalThreatsViz.vue index af38c6c657d153ece9a40448bad3e8cb3830f735..c9221a7593b535feea760900dfb715f8a1735cd9 100644 --- a/src/components/FindexGlobalThreatsViz.vue +++ b/src/components/FindexGlobalThreatsViz.vue @@ -105,7 +105,7 @@ switchToPrimaryCategory(currentCategory.value, currentCategorySubThreatPrefix.value) } function getPrefixImageURL(filename) { - return `src/assets/svgs/${filename}.svg` + return new URL(`../assets/svgs/${filename}.svg`, import.meta.url).href } function getPrefixImageHTML(filename) { const imgURL = getPrefixImageURL(filename) @@ -113,9 +113,9 @@ } function getContentImageUrl(title, category_prefix, content_type) { if (primaryCategorySelected.value) { - return `src/assets/images/${title.replace(/ /g, "_")}_${content_type}.png` + return new URL(`../assets/images/${title.replace(/ /g, "_")}_${content_type}.png`, import.meta.url).href } else { - return `src/assets/images/${category_prefix}_${title.replace(/ /g, "_")}_${content_type}.png` + return new URL(`../assets/images/${category_prefix}_${title.replace(/ /g, "_")}_${content_type}.png`, import.meta.url).href } } function updateTabContent(category, prefix) {