mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-21 07:31:58 +01:00
Rename What's New to Changelog
Consistency
This commit is contained in:
parent
d87ab7fc72
commit
a3e74b4559
@ -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
|
@ -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);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -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 />
|
||||||
|
@ -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" />
|
||||||
|
Loading…
Reference in New Issue
Block a user