diff --git a/package.json b/package.json index 2816ab5..8351ebf 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "charts" ], "license": "MIT", - "version": "0.0.7", + "version": "0.0.8", "type": "module", "main": "./dist/galaxy-charts.umd.cjs", "module": "./dist/galaxy-charts.js", diff --git a/public/galaxy-charts.txt b/public/galaxy-charts.txt deleted file mode 100755 index 07e2412..0000000 --- a/public/galaxy-charts.txt +++ /dev/null @@ -1,21 +0,0 @@ -# Hydrophobicity Membrane Flexibility Volume Buried Helix Beta -Alanine 0.61 1.56 0.357 52.6 91.5 1.42 0.83 -Arginine 0.6 0.45 0.529 109.1 202 0.98 0.93 -Asparagine 0.06 0.27 0.463 75.7 135.2 0.67 0.89 -Aspartic 0.46 0.14 0.511 68.4 124.5 1.01 0.54 -Cysteine 1.07 1.23 0.346 68.3 117.7 0.7 1.19 -Glutamine 0 0.51 0.493 89.7 161.1 1.11 1.1 -Glutamic 0.47 0.23 0.497 84.7 155.1 1.51 0.37 -Glycine 0.07 0.62 0.544 36.3 66.4 0.57 0.75 -Histidine 0.61 0.29 0.323 91.9 167.3 1 0.87 -Isoleucine 2.22 1.67 0.462 102 168.8 1.08 1.6 -Leucine 1.53 2.93 0.365 102 167.9 1.21 1.3 -Lysine 1.15 0.15 0.466 105.1 171.3 1.16 0.74 -Methionine 1.18 2.96 0.295 97.7 170.8 1.45 1.05 -Phenylalanine 2.02 2.03 0.314 113.9 203.4 1.13 1.38 -Proline 1.95 0.76 0.509 73.6 129.3 0.57 0.55 -Serine 0.05 0.81 0.507 54.9 99.1 0.77 0.75 -Threonine 0.05 0.91 0.444 71.2 122.1 0.83 1.19 -Tryptophan 2.65 1.08 0.305 135.4 237.6 1.08 1.37 -Tyrosine 1.88 0.68 0.42 116.2 203.6 0.69 1.47 -Valine 1.32 1.14 0.386 85.1 141.7 1.06 1.7 diff --git a/public/galaxy-charts.xml b/public/galaxy-charts.xml index 40f42a1..2d5dc94 100644 --- a/public/galaxy-charts.xml +++ b/public/galaxy-charts.xml @@ -1,6 +1,6 @@ - + Welcome to Galaxy Charts. spec_type diff --git a/src/components/GalaxyCharts.vue b/src/components/GalaxyCharts.vue index 0f94c84..56fe16a 100644 --- a/src/components/GalaxyCharts.vue +++ b/src/components/GalaxyCharts.vue @@ -73,7 +73,7 @@ if (visualizationConfig.dataset_url) { } // determine logo url -const logoUrl = computed(() => `${root}${logo.value}`); +const logoUrl = computed(() => logo.value && `${root}${logo.value}`); // toggle side panel async function onToggle() { diff --git a/src/components/SidePanel.vue b/src/components/SidePanel.vue index 833a8f3..bd8d4f2 100644 --- a/src/components/SidePanel.vue +++ b/src/components/SidePanel.vue @@ -4,7 +4,6 @@ import { AdjustmentsHorizontalIcon, ChevronDoubleRightIcon, CloudArrowUpIcon, - PresentationChartLineIcon, Square3Stack3DIcon, } from "@heroicons/vue/24/outline"; import { NButton, NIcon, NInput, NTabs, NTabPane } from "naive-ui"; @@ -138,7 +137,15 @@ function onUpdateTracks(newValues) {
- + + + +
diff --git a/src/utilities/parseDefaults.test.js b/src/utilities/parseDefaults.test.js index ac546a4..1fb3a68 100644 --- a/src/utilities/parseDefaults.test.js +++ b/src/utilities/parseDefaults.test.js @@ -9,5 +9,5 @@ test("parse defaults", () => { { name: "f" }, { value: "g" }, ]), - ).toEqual({ a: "b", c: "d", "e": null, "f": null }); + ).toEqual({ a: "b", c: "d", e: null, f: null }); }); diff --git a/src/utilities/parseXML.js b/src/utilities/parseXML.js index 956e842..9de487f 100644 --- a/src/utilities/parseXML.js +++ b/src/utilities/parseXML.js @@ -1,7 +1,6 @@ import axios from "axios"; import { getFileName } from "@/utilities/getFileName"; -const DEFAULT_LOGO = "charts.svg"; const parser = new DOMParser(); // populates base xml with nodes from linked macro files @@ -74,7 +73,7 @@ export async function parseXML(xmlFileName) { result.html = xmlDoc.documentElement.getAttribute("name"); // parse logo - result.logo = xmlDoc.documentElement.getAttribute("logo") || DEFAULT_LOGO; + result.logo = xmlDoc.documentElement.getAttribute("logo"); // parse description const descriptionNode = xmlDoc.documentElement.getElementsByTagName("description");