From 51c2b944475960daa950680668dedfe37e0fa06a Mon Sep 17 00:00:00 2001 From: Soitora Date: Thu, 31 Aug 2023 23:13:30 +0200 Subject: [PATCH] Stylize download buttons --- .../theme/components/DownloadButtons.vue | 124 ++++++++++++++---- website/src/download/index.md | 2 +- 2 files changed, 97 insertions(+), 29 deletions(-) diff --git a/website/src/.vitepress/theme/components/DownloadButtons.vue b/website/src/.vitepress/theme/components/DownloadButtons.vue index 4fa2f9a7..3a465148 100644 --- a/website/src/.vitepress/theme/components/DownloadButtons.vue +++ b/website/src/.vitepress/theme/components/DownloadButtons.vue @@ -18,12 +18,12 @@ const { const downloadInformation = computed(() => ({ preview: { - tagName: previewRelease.value?.tag_name, + tagName: previewRelease.value?.tag_name || "0.00.0", asset: (previewRelease.value?.assets ?? []) .find(a => /^tachiyomi-r\d{4,}.apk/.test(a.name)), }, stable: { - tagName: stableRelease.value?.tag_name?.slice(1), + tagName: stableRelease.value?.tag_name?.slice(1) || "r0000", asset: (stableRelease.value?.assets ?? []) .find(a => /^tachiyomi-v\d+\.\d+\.\d+.apk/.test(a.name)), } @@ -40,38 +40,106 @@ const downloadInformation = computed(() => ({
This is the error message: {{ errorPreview }}
-
- -

- Requires Android 6.0 or higher. -

+ + + Requires Android 6.0 or higher. + diff --git a/website/src/download/index.md b/website/src/download/index.md index faf8292b..172d3873 100644 --- a/website/src/download/index.md +++ b/website/src/download/index.md @@ -10,7 +10,7 @@ import ReleaseDate from "../.vitepress/theme/components/ReleaseDate.vue"; import WhatsNew from "../.vitepress/theme/components/WhatsNew.vue" -# Download +# Download Download the latest stable version of **Tachiyomi** that released **** or the preview version that released ****.