Skip to content

Commit 15acf52

Browse files
committed
Merge branch 'replacing-prerender-2754' of https://github.com/FAIRsharing/fairsharing.github.io into replacing-prerender-2754
2 parents ca503c6 + 4d90dea commit 15acf52

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

documentation/html/components_Ontologies_OntologySunburst.vue.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ <h1 class="page-title">Source: components/Ontologies/OntologySunburst.vue</h1>
9292
<article>
9393
<pre
9494
class="sunlight-highlight-javascript linenums">&lt;template>
95-
&lt;highcharts v-if="!loadingData" :options="sunburstOptions" />
95+
&lt;div class="highcharts-wrapper">
96+
&lt;highcharts v-if="!loadingData" :options="sunburstOptions" />
97+
&lt;/div>
9698
&lt;/template>
9799

98100
&lt;script>
@@ -101,6 +103,7 @@ <h1 class="page-title">Source: components/Ontologies/OntologySunburst.vue</h1>
101103
import Highcharts from "highcharts";
102104
import Sunburst from "highcharts/modules/sunburst";
103105
import Exporting from "highcharts/modules/exporting";
106+
import { defineAsyncComponent } from "vue"; //Implement Sunburst module for Highcharts
104107

105108
//Implement Sunburst module for Highcharts
106109
// check if Sunburst is a function, if not try .default
@@ -118,6 +121,14 @@ <h1 class="page-title">Source: components/Ontologies/OntologySunburst.vue</h1>
118121

119122
export default {
120123
name: "OntologySunburst",
124+
components: {
125+
// Register highcharts asynchronously so it bypasses Server-Side Compilation checks safely
126+
highcharts: defineAsyncComponent(() =>
127+
import("highcharts-vue").then(
128+
(module) => module.Chart || module.default.Chart || module,
129+
),
130+
),
131+
},
121132
props: {
122133
itemClicked: { default: null, type: Object },
123134
},

documentation/html/quicksearch.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)