Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .vitepress/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from "vitepress";
import baseConfig from "@eox/pages-theme-esa/config";
import feedbackSchema from "../public/configs/feedback_schema.json";

// https://vitepress.dev/reference/site-config
export default defineConfig({
Expand All @@ -23,6 +24,12 @@ export default defineConfig({
},
},
themeConfig: {
feedback: {
endpoint:
"https://git-issue-creator.eodashboard.hub-otc.eox.at/create-issue?repo=github.com/ESA-eodashboards/issues",
schema: feedbackSchema,
position: "bottom-right",
},
logo: "/assets/RACE_Logo.png",
nav: [
{ text: "Dashboard", link: "/explore" },
Expand Down
8 changes: 7 additions & 1 deletion .vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ onMounted(() => {
:enable-login="theme.login"
style="--header-transform: translateY(0); --header-background: #001923; display: block; height: var(--vp-nav-height);"
></esa-navbar>
<eox-feedback-button
v-if="theme.feedback && frontmatter?.feedback !== false"
:endpoint="theme.feedback?.endpoint"
.schema="theme.feedback?.schema"
:position="theme.feedback?.position"
/>
</ClientOnly>
<Content></Content>
</div>
<Layout v-else></Layout>
</template>
</template>
4 changes: 4 additions & 0 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ esa-cover {
padding: 80px 100px;
}
}
/* Ensure the feedback button is above the storytelling content */
:root {
--vp-z-index-footer: 50;
}
15 changes: 14 additions & 1 deletion explore/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: eodash
feedback: false
---

<script setup>
Expand Down Expand Up @@ -35,4 +36,16 @@ layout: eodash
const cacheBuster = `?t=${new Date().getTime()}`; // Add a timestamp for cache busting
</script>

<eo-dash style="display: block; height: calc(100dvh - 80px)" :config="withBase(`/configs/race-config.js${cacheBuster}`)"/>
<eo-dash :config="withBase(`/configs/race-config.js${cacheBuster}`)"/>

<style>
eo-dash {
display: block;
height: calc(100dvh - var(--vp-nav-height));
width: 100%;
}
.VPPage:has(eo-dash) {
padding: 0;
max-width: unset;
}
</style>
Loading
Loading