From 34b12c5269af1b7e9efec2736fbfd8101c7abc5e Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Fri, 17 Jun 2022 15:25:37 +0200 Subject: [PATCH] download button, set recommended button --- .../src/components/design/DropdownButton.vue | 1 - .../src/components/design/Tooltip.vue | 13 +- frontend-new/src/components/modals/Modal.vue | 5 + .../components/projects/DownloadButton.vue | 157 ++++++++++++++++++ .../src/components/projects/ProjectHeader.vue | 9 +- .../versions/[version]/[platform]/index.vue | 27 ++- 6 files changed, 203 insertions(+), 9 deletions(-) create mode 100644 frontend-new/src/components/projects/DownloadButton.vue diff --git a/frontend-new/src/components/design/DropdownButton.vue b/frontend-new/src/components/design/DropdownButton.vue index 24c82bd0c..306cd31cf 100644 --- a/frontend-new/src/components/design/DropdownButton.vue +++ b/frontend-new/src/components/design/DropdownButton.vue @@ -3,7 +3,6 @@ import { Menu, MenuButton, MenuItems } from "@headlessui/vue"; import IconMdiMenuDown from "~icons/mdi/menu-down"; import IconMdiMenuUp from "~icons/mdi/menu-up"; import Button from "~/components/design/Button.vue"; -import ServerOnly from "~/components/design/Tooltip.vue"; const props = withDefaults( defineProps<{ diff --git a/frontend-new/src/components/design/Tooltip.vue b/frontend-new/src/components/design/Tooltip.vue index 926600134..2991730b9 100644 --- a/frontend-new/src/components/design/Tooltip.vue +++ b/frontend-new/src/components/design/Tooltip.vue @@ -2,6 +2,17 @@ import Popper from "vue3-popper"; import { defineComponent, onMounted, ref } from "vue"; +const props = withDefaults( + defineProps<{ + hover?: boolean; + show?: boolean | null; + }>(), + { + hover: true, + show: null, + } +); + const ServerOnly = defineComponent({ name: "ServerOnly", setup(_, { slots }) { @@ -16,7 +27,7 @@ const ServerOnly = defineComponent({