From c7003d46e050f6b2e5cbb49a0eae5366f3c61827 Mon Sep 17 00:00:00 2001 From: Soitora Date: Sun, 13 Aug 2023 17:35:40 +0200 Subject: [PATCH] Some visual tweaks to Extensions Also some fixes Also groups the Extensions components into a folder of their own Linking to anchor still does not work good --- .../theme/components/ExtensionFilters.vue | 69 ------------------ .../theme/components/ExtensionGroup.vue | 2 +- .../Extensions/ExtensionFilters.vue | 70 +++++++++++++++++++ .../components/Extensions/ExtensionGroup.vue | 52 ++++++++++++++ .../{ => Extensions}/ExtensionItem.vue | 56 +++++++-------- .../{ => Extensions}/ExtensionList.vue | 0 .../{ => Extensions}/ExtensionsWrapper.vue | 12 ++-- website/src/extensions/index.md | 2 +- 8 files changed, 155 insertions(+), 108 deletions(-) delete mode 100644 website/src/.vitepress/theme/components/ExtensionFilters.vue create mode 100644 website/src/.vitepress/theme/components/Extensions/ExtensionFilters.vue create mode 100644 website/src/.vitepress/theme/components/Extensions/ExtensionGroup.vue rename website/src/.vitepress/theme/components/{ => Extensions}/ExtensionItem.vue (72%) rename website/src/.vitepress/theme/components/{ => Extensions}/ExtensionList.vue (100%) rename website/src/.vitepress/theme/components/{ => Extensions}/ExtensionsWrapper.vue (85%) diff --git a/website/src/.vitepress/theme/components/ExtensionFilters.vue b/website/src/.vitepress/theme/components/ExtensionFilters.vue deleted file mode 100644 index 59d310ce..00000000 --- a/website/src/.vitepress/theme/components/ExtensionFilters.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - diff --git a/website/src/.vitepress/theme/components/ExtensionGroup.vue b/website/src/.vitepress/theme/components/ExtensionGroup.vue index dfc7f16f..d30b1c06 100644 --- a/website/src/.vitepress/theme/components/ExtensionGroup.vue +++ b/website/src/.vitepress/theme/components/ExtensionGroup.vue @@ -1,5 +1,5 @@ + + + diff --git a/website/src/.vitepress/theme/components/Extensions/ExtensionGroup.vue b/website/src/.vitepress/theme/components/Extensions/ExtensionGroup.vue new file mode 100644 index 00000000..d30b1c06 --- /dev/null +++ b/website/src/.vitepress/theme/components/Extensions/ExtensionGroup.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/website/src/.vitepress/theme/components/ExtensionItem.vue b/website/src/.vitepress/theme/components/Extensions/ExtensionItem.vue similarity index 72% rename from website/src/.vitepress/theme/components/ExtensionItem.vue rename to website/src/.vitepress/theme/components/Extensions/ExtensionItem.vue index 7cf73118..e8c22910 100644 --- a/website/src/.vitepress/theme/components/ExtensionItem.vue +++ b/website/src/.vitepress/theme/components/Extensions/ExtensionItem.vue @@ -9,7 +9,16 @@ export default { return this.item.name.split(": ")[1]; }, pkgVersion: function () { - return "v" + this.item.version; + return this.item.version; + }, + pkgIsNsfw: function () { + return !!parseInt(this.item.nsfw); + }, + pkgHasReadme: function () { + return !!parseInt(this.item.hasReadme); + }, + pkgHasChangelog: function () { + return !!parseInt(this.item.hasChangelog); }, iconUrl: function () { return `https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/icon/${this.item.pkg}.png`; @@ -27,15 +36,14 @@ export default {
{{ pkgName }} -
{{ pkgId }}
- - ↓ Download - + + +