From c4dc3b0b9a1a9cd1c6b7c55ca7b68a5fa816b579 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Fri, 17 Jun 2022 19:52:25 +0200 Subject: [PATCH] add platform logos --- .../src/components/logos/PaperLogo.vue | 9 ++++++ .../src/components/logos/PlatformLogo.vue | 21 ++++++++++++++ .../src/components/logos/VelocityLogo.vue | 14 ++++++++++ .../src/components/logos/WaterfallLogo.vue | 28 +++++++++++++++++++ .../components/projects/DownloadButton.vue | 20 ++++++++----- .../src/components/ui/InputCheckbox.vue | 4 ++- .../versions/[version]/[platform]/index.vue | 9 ++++-- frontend-new/src/pages/index.vue | 14 +++++----- 8 files changed, 101 insertions(+), 18 deletions(-) create mode 100644 frontend-new/src/components/logos/PaperLogo.vue create mode 100644 frontend-new/src/components/logos/PlatformLogo.vue create mode 100644 frontend-new/src/components/logos/VelocityLogo.vue create mode 100644 frontend-new/src/components/logos/WaterfallLogo.vue diff --git a/frontend-new/src/components/logos/PaperLogo.vue b/frontend-new/src/components/logos/PaperLogo.vue new file mode 100644 index 000000000..265504438 --- /dev/null +++ b/frontend-new/src/components/logos/PaperLogo.vue @@ -0,0 +1,9 @@ + diff --git a/frontend-new/src/components/logos/PlatformLogo.vue b/frontend-new/src/components/logos/PlatformLogo.vue new file mode 100644 index 000000000..275b43a03 --- /dev/null +++ b/frontend-new/src/components/logos/PlatformLogo.vue @@ -0,0 +1,21 @@ + + diff --git a/frontend-new/src/components/logos/VelocityLogo.vue b/frontend-new/src/components/logos/VelocityLogo.vue new file mode 100644 index 000000000..87bf6154c --- /dev/null +++ b/frontend-new/src/components/logos/VelocityLogo.vue @@ -0,0 +1,14 @@ + diff --git a/frontend-new/src/components/logos/WaterfallLogo.vue b/frontend-new/src/components/logos/WaterfallLogo.vue new file mode 100644 index 000000000..aedff6619 --- /dev/null +++ b/frontend-new/src/components/logos/WaterfallLogo.vue @@ -0,0 +1,28 @@ + + diff --git a/frontend-new/src/components/projects/DownloadButton.vue b/frontend-new/src/components/projects/DownloadButton.vue index b2603c6d1..c087fb57d 100644 --- a/frontend-new/src/components/projects/DownloadButton.vue +++ b/frontend-new/src/components/projects/DownloadButton.vue @@ -11,6 +11,7 @@ import DropdownItem from "~/components/design/DropdownItem.vue"; import { useInternalApi } from "~/composables/useApi"; import Modal from "~/components/modals/Modal.vue"; import Alert from "~/components/design/Alert.vue"; +import PlatformLogo from "~/components/logos/PlatformLogo.vue"; const i18n = useI18n(); const backendData = useBackendDataStore(); @@ -126,14 +127,16 @@ async function requiresConfirmation() { - + {{ backendData.platforms.get(pl).name }} @@ -159,7 +162,10 @@ async function requiresConfirmation() { - + + diff --git a/frontend-new/src/components/ui/InputCheckbox.vue b/frontend-new/src/components/ui/InputCheckbox.vue index 8b7eeb659..61e45cbc1 100644 --- a/frontend-new/src/components/ui/InputCheckbox.vue +++ b/frontend-new/src/components/ui/InputCheckbox.vue @@ -35,7 +35,9 @@ const { v, errors, hasError } = useValidation(props.label, props.rules, internal @blur="v.$touch()" /> - + + + diff --git a/frontend-new/src/pages/[user]/[project]/versions/[version]/[platform]/index.vue b/frontend-new/src/pages/[user]/[project]/versions/[version]/[platform]/index.vue index 6432e4bf0..05c3342fb 100644 --- a/frontend-new/src/pages/[user]/[project]/versions/[version]/[platform]/index.vue +++ b/frontend-new/src/pages/[user]/[project]/versions/[version]/[platform]/index.vue @@ -28,6 +28,7 @@ import PlatformVersionEditModal from "~/components/modals/PlatformVersionEditMod import { AxiosError } from "axios"; import Tooltip from "~/components/design/Tooltip.vue"; import DownloadButton from "~/components/projects/DownloadButton.vue"; +import PlatformLogo from "~/components/logos/PlatformLogo.vue"; const route = useRoute(); const i18n = useI18n(); @@ -225,9 +226,11 @@ async function restoreVersion() { - - {{ platform?.name }} - {{ platformTag?.data }} +
+ + {{ platform?.name }} + {{ platformTag?.data }} +
diff --git a/frontend-new/src/pages/index.vue b/frontend-new/src/pages/index.vue index b9ad8afe7..649cbcc1b 100644 --- a/frontend-new/src/pages/index.vue +++ b/frontend-new/src/pages/index.vue @@ -18,6 +18,7 @@ import { PaginatedResult, Project } from "hangar-api"; import Alert from "~/components/design/Alert.vue"; import { Platform } from "~/types/enums"; import { toNumber } from "lodash-es"; +import PlatformLogo from "~/components/logos/PlatformLogo.vue"; const i18n = useI18n(); const route = useRoute(); @@ -163,13 +164,12 @@ useHead(meta);

Platforms

- + + +