[feat] update description and title map page
Browse files- static/src/App.vue +9 -3
static/src/App.vue
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<template>
|
2 |
-
<PageLayout page-title="
|
3 |
<div>
|
4 |
<div id="map-container-md">
|
5 |
<PredictionMap
|
@@ -11,7 +11,7 @@
|
|
11 |
"lat": 46.1351347810282,
|
12 |
"lng": 9.32121276855469
|
13 |
}]'
|
14 |
-
description=
|
15 |
/>
|
16 |
</div>
|
17 |
</div>
|
@@ -19,10 +19,16 @@
|
|
19 |
</template>
|
20 |
|
21 |
<script setup lang="ts">
|
22 |
-
import { ref } from 'vue'
|
23 |
|
24 |
import PredictionMap from '@/components/PagePredictionMap.vue'
|
25 |
import PageLayout from '@/components/PageLayout.vue'
|
26 |
|
27 |
const mapName = ref('prediction-map')
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
</script>
|
|
|
1 |
<template>
|
2 |
+
<PageLayout page-title="Inference map page">
|
3 |
<div>
|
4 |
<div id="map-container-md">
|
5 |
<PredictionMap
|
|
|
11 |
"lat": 46.1351347810282,
|
12 |
"lng": 9.32121276855469
|
13 |
}]'
|
14 |
+
:description=description
|
15 |
/>
|
16 |
</div>
|
17 |
</div>
|
|
|
19 |
</template>
|
20 |
|
21 |
<script setup lang="ts">
|
22 |
+
import { onMounted, ref } from 'vue'
|
23 |
|
24 |
import PredictionMap from '@/components/PagePredictionMap.vue'
|
25 |
import PageLayout from '@/components/PageLayout.vue'
|
26 |
|
27 |
const mapName = ref('prediction-map')
|
28 |
+
const description = ref("This page displays predictions made with a machine learning model")
|
29 |
+
|
30 |
+
onMounted(() => {
|
31 |
+
console.log("descr:", description.value, import.meta.env.VITE_MAP_DESCRIPTION)
|
32 |
+
description.value = import.meta.env.VITE_MAP_DESCRIPTION ? import.meta.env.VITE_MAP_DESCRIPTION : description.value
|
33 |
+
})
|
34 |
</script>
|