From a6d9415077d0d1b2a64a9b81c099176517774c47 Mon Sep 17 00:00:00 2001 From: Steffen Waldmann Date: Mon, 16 Dec 2024 16:12:18 +0100 Subject: [PATCH] Feedback button for Matomo (#1524) Co-authored-by: Christian Georgi Co-authored-by: Christian Georgi --- .vitepress/theme/Layout.vue | 7 + .vitepress/theme/components/ShortcutsList.vue | 4 +- .../theme/components/WasThisHelpful.vue | 216 ++++++++++++++++++ 3 files changed, 226 insertions(+), 1 deletion(-) create mode 100644 .vitepress/theme/components/WasThisHelpful.vue diff --git a/.vitepress/theme/Layout.vue b/.vitepress/theme/Layout.vue index 6b502bd16..3c4f1bcf7 100644 --- a/.vitepress/theme/Layout.vue +++ b/.vitepress/theme/Layout.vue @@ -6,12 +6,16 @@ import ImplVariants from './components/implvariants/ImplVariants.vue' import NavScreenMenuItem from './components/implvariants/NavScreenMenuItem.vue' import Ribbon from './components/Ribbon.vue' import ScrollToTop from './components/ScrollToTopSimple.vue' +import WasThisHelpful from './components/WasThisHelpful.vue' +import { useRoute } from 'vitepress' const isPreview = !!import.meta.env.VITE_CAPIRE_PREVIEW const { Layout } = DefaultTheme const { frontmatter } = useData() +const route = useRoute() +