Rename What's New to Changelog

Consistency
This commit is contained in:
Soitora 2023-09-05 22:42:53 +02:00
parent d87ab7fc72
commit a3e74b4559
No known key found for this signature in database
GPG Key ID: A6D711EB4F2CCD97
5 changed files with 12 additions and 12 deletions

View File

@ -9,7 +9,7 @@ const { type } = toRefs(props);
const md = new MarkdownIt(); const md = new MarkdownIt();
const whatsNew = computed(() => { const changelog = computed(() => {
const flavoredString = (release[type.value].body ?? "") const flavoredString = (release[type.value].body ?? "")
.replace(/(?<=\(|(, ))@(.*?)(?=\)|(, ))/g, "[@$2](https://github.com/$2)") .replace(/(?<=\(|(, ))@(.*?)(?=\)|(, ))/g, "[@$2](https://github.com/$2)")
.replace('https://github.com/tachiyomiorg/tachiyomi/releases', '/changelogs/'); .replace('https://github.com/tachiyomiorg/tachiyomi/releases', '/changelogs/');
@ -19,12 +19,12 @@ const whatsNew = computed(() => {
</script> </script>
<template> <template>
<div class="whatsNew"> <div class="changelog">
<header> <header>
<IconNewReleases /> <IconNewspaperVariant />
<h2>What's new</h2> <h2>Changelog</h2>
</header> </header>
<div v-html="whatsNew" /> <div v-html="changelog" />
<Contributors <Contributors
:body="release[type].body!" :body="release[type].body!"
:author="release[type].author.login" :author="release[type].author.login"
@ -42,7 +42,7 @@ const whatsNew = computed(() => {
</template> </template>
<style lang="stylus"> <style lang="stylus">
.whatsNew { .changelog {
display: block display: block
border: 1px solid var(--vp-c-bg-soft) border: 1px solid var(--vp-c-bg-soft)
border-radius: 12px border-radius: 12px

View File

@ -14,7 +14,7 @@ import { VueQueryPlugin } from "@tanstack/vue-query";
import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client"; import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
// Import Icon components // Import Icon components
import { IconDownload, IconNewReleases, IconBugReport } from "@iconify-prerendered/vue-mdi"; import { IconDownload, IconNewspaperVariant, IconBugReport } from "@iconify-prerendered/vue-mdi";
export default { export default {
extends: DefaultTheme, extends: DefaultTheme,
@ -23,7 +23,7 @@ export default {
app.use(VueQueryPlugin); app.use(VueQueryPlugin);
enhanceAppWithTabs(app); enhanceAppWithTabs(app);
app.component("IconDownload", IconDownload); app.component("IconDownload", IconDownload);
app.component("IconNewReleases", IconNewReleases); app.component("IconNewspaperVariant", IconNewspaperVariant);
app.component("IconBugReport", IconBugReport); app.component("IconBugReport", IconBugReport);
}, },
}; };

View File

@ -8,11 +8,11 @@ next: false
--- ---
<script setup> <script setup>
import Changelogs from "@theme/components/Changelogs.vue"; import ChangelogsList from "@theme/components/ChangelogsList.vue";
</script> </script>
# Changelogs # Changelogs
Changelogs of all Tachiyomi stable releases, obtained from the GitHub repository. Changelogs of all Tachiyomi stable releases, obtained from the GitHub repository.
<Changelogs /> <ChangelogsList />

View File

@ -10,7 +10,7 @@ next: false
<script setup> <script setup>
import DownloadButtons from "@theme/components/DownloadButtons.vue"; import DownloadButtons from "@theme/components/DownloadButtons.vue";
import ReleaseDate from "@theme/components/ReleaseDate.vue"; import ReleaseDate from "@theme/components/ReleaseDate.vue";
import WhatsNew from "@theme/components/WhatsNew.vue"; import Changelog from "@theme/components/Changelog.vue";
</script> </script>
# Download # Download
@ -19,4 +19,4 @@ Download the latest stable version of **Tachiyomi** that released **<ReleaseDate
<DownloadButtons /> <DownloadButtons />
<WhatsNew type="stable" /> <Changelog type="stable" />