From 677c1ff1e98ac5e93b7954823c31967b476255c5 Mon Sep 17 00:00:00 2001 From: OrbisK Date: Sun, 13 Apr 2025 22:10:12 +0200 Subject: [PATCH 1/2] feat: add simple mobile menu --- app/layouts/default.vue | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/app/layouts/default.vue b/app/layouts/default.vue index f5236a5..2adad32 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -63,7 +63,7 @@ const prod = useRouteQuery('prod', 'false', { VueUse Playground -
+ +
+ + + + + + + + +
From d1322a7efcb531e617f11b67542c888691c196f6 Mon Sep 17 00:00:00 2001 From: OrbisK Date: Sun, 13 Apr 2025 22:34:55 +0200 Subject: [PATCH 2/2] feat: add link to directly open an issue on github with reproduction link --- app/layouts/default.vue | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 2adad32..3c5618b 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -54,6 +54,17 @@ const ssr = useRouteQuery('ssr', 'false', { const prod = useRouteQuery('prod', 'false', { transform: stringToBooleanTransformer, }) + +const currentHref = shallowRef(location.href) +const route = useRoute() + +watch(() => route.fullPath, () => { + currentHref.value = location.href +}) + +const issueLink = computed(() => { + return `https://github.com/vueuse/vueuse/issues/new?template=bug_report.yml&reproduction=${encodeURIComponent(currentHref.value)}` +})