Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .vitepress/theme/components/AfdianCard.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<template>
<iframe
ref="afdianIframe"
src="https://afdian.com/leaflet?slug=sanmusen214"
:width="iframeWidth"
height="200"
scrolling="no"
frameborder="0"
></iframe>
</template>

<script setup>
import { ref, onMounted, onUnmounted } from 'vue'

const afdianIframe = ref(null)
const iframeWidth = ref('100%')

const updateWidth = () => {
iframeWidth.value = document.body.clientWidth < 700 ? '100%' : '640'
}

onMounted(() => {
updateWidth()
window.addEventListener('resize', updateWidth)
})

onUnmounted(() => {
window.removeEventListener('resize', updateWidth)
})
</script>

<style scoped>
iframe {
display: block;
margin: 0 auto;
}
</style>
2 changes: 1 addition & 1 deletion .vitepress/theme/components/DownloadLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div v-if="platform === 'windows'">
<a href="https://github.com/BlueArchiveArisHelper/BAAH/releases" class="VPButton medium brand">{{
texts.githubRelease }}</a>
<a href="https://pan.quark.cn/s/49fab9d220ec" class="VPButton medium alt" :title="texts.quarkExtractionCode">{{
<a href="https://pan.quark.cn/s/49fab9d220ec?pwd=W3dc" class="VPButton medium alt" :title="texts.quarkExtractionCode">{{
texts.quarkDownload }}</a>
<a href="https://mirrorchyan.com/zh/projects?rid=BAAH" class="VPButton medium alt">{{ texts.mirrorChyanDownload
}}</a>
Expand Down
1 change: 1 addition & 0 deletions .vitepress/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default {
enhanceApp({ app }) {
app.component('DownloadLink', defineAsyncComponent(() => import('./components/DownloadLink.vue')));
app.component('LanguageWarn', defineAsyncComponent(() => import('./components/LanguageWarn.vue')));
app.component('AfdianCard',defineAsyncComponent(() => import('./components/AfdianCard.vue')));
enhanceAppWithTabs(app)
app.component('LiteTree', LiteTree)
},
Expand Down
2 changes: 1 addition & 1 deletion src/zh_CN/donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
:::

::: details sanmusen214

<AfdianCard />
:::
3 changes: 2 additions & 1 deletion src/zh_CN/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ description: 免费获取 BlueArchive Aris Helper 自动化脚本!Windows 推

== Windows

<a href="https://pan.quark.cn/s/49fab9d220ec" class="VPButton medium brand" title="提取码:W3dc">夸克网盘下载</a>
<a href="https://pan.quark.cn/s/49fab9d220ec?pwd=W3dc" class="VPButton medium brand">夸克网盘下载</a>
<a href="https://mirrorchyan.com/zh/projects?rid=BAAH" class="VPButton medium alt">Mirror酱下载(需要CDK)</a>
<a href="https://github.com/BlueArchiveArisHelper/BAAH/releases" class="VPButton medium alt">GitHub Release</a>
<a href="https://api.blockhaity.qzz.io/docs/#/api-doc/getbaah" class="VPButton medium alt">BlockHaity's API</a>
<a href="https://cnb.cool/BlockHaity/BAAH-releases/-/releases" class="VPButton medium alt">Cloud Native Build</a>

== macOS

Expand Down