feat: add backend, admin console and live monitoring
Integrate tunasync management, SQLite authentication and content settings, real monitoring and per-repository pull speeds. Add Chinese-only announcements and mirror help, editable related links, admin layout updates, deployment tools and tests.
This commit is contained in:
+44
-59
@@ -9,20 +9,29 @@ import {
|
||||
import RollingText from './components/RollingText.vue'
|
||||
import LanguagePicker from './components/LanguagePicker.vue'
|
||||
import StatusPage from './components/StatusPage.vue'
|
||||
import AdminPage from './components/AdminPage.vue'
|
||||
import MarkdownContent from './components/MarkdownContent.vue'
|
||||
import { content } from './api'
|
||||
import { usePublicData } from './usePublicData'
|
||||
import { useMirrorFormats } from './useMirrorFormats'
|
||||
import { announcements, demoMirrors, distributions, type Mirror } from './data'
|
||||
import { datetimeFormats, readPreference, savePreference, supportedLocales, type Locale } from './locales'
|
||||
import { type Mirror } from './data'
|
||||
import { datetimeFormats, readPreference, savePreference, type Locale } from './locales'
|
||||
|
||||
const { t, d, locale } = useI18n()
|
||||
const isAdminPage = window.location.pathname.startsWith('/admin')
|
||||
const { site, mirrors, announcements: articleRecords, source, loading } = usePublicData()
|
||||
const announcements = computed(() => articleRecords.value.map(row => ({ id: row.id, ...row.data })))
|
||||
const distributions = computed(() => site.value?.downloads || [])
|
||||
const description = (mirror: Mirror) => content(mirror.description, locale.value)
|
||||
const language = computed(() => locale.value as Locale)
|
||||
const localeMessage = (key: string, selectedLocale: Locale = language.value) => t(key, {}, { locale: selectedLocale })
|
||||
type Theme = 'light' | 'dark' | 'system'
|
||||
const storedTheme = readPreference('mirrorouc.theme')
|
||||
const theme = ref<Theme>(storedTheme === 'light' || storedTheme === 'dark' ? storedTheme : 'system')
|
||||
const systemDark = window.matchMedia('(prefers-color-scheme: dark)')
|
||||
const prefersDark = ref(systemDark.matches)
|
||||
const dark = computed(() => theme.value === 'dark' || (theme.value === 'system' && prefersDark.value))
|
||||
const brandLogo = computed(() => dark.value ? '/assets/mirrorOUC.png' : '/assets/mirrorOUC_dark.png')
|
||||
const brandLogo = computed(() => dark.value ? site.value?.logoDark || '/assets/mirrorOUC.png' : site.value?.logoLight || '/assets/mirrorOUC_dark.png')
|
||||
watch(() => site.value?.favicon, value => { if (value) document.querySelector('link[rel="icon"]')?.setAttribute('href', value) })
|
||||
const themeOpen = ref(false)
|
||||
const mobileOpen = ref(false)
|
||||
const themeRoot = ref<HTMLElement>()
|
||||
@@ -30,7 +39,7 @@ const themes: Theme[] = ['light', 'dark', 'system']
|
||||
const themeIcons = { light: Sun, dark: Moon, system: Monitor }
|
||||
const isStatusPage = window.location.pathname.replace(/\/$/, '') === '/status'
|
||||
const navigation = [
|
||||
{ key: 'mirrors', href: '/', active: !isStatusPage },
|
||||
{ key: 'mirrors', href: '/', active: !isStatusPage && !isAdminPage },
|
||||
{ key: 'news', href: 'https://www.itouc.cn/announcements/', active: false },
|
||||
{ key: 'status', href: '/status', active: isStatusPage },
|
||||
{ key: 'feedback', href: 'https://git.itouc.cn/ITStudio_OUC/OUCMirror-WebUI/issues', active: false },
|
||||
@@ -46,16 +55,16 @@ watch(locale, (value) => {
|
||||
document.title = t('common.pageTitle')
|
||||
savePreference('mirrorouc.locale', value)
|
||||
}, { immediate: true })
|
||||
watch([locale, site], () => { document.title = site.value ? `MirrorOUC · ${content(site.value.name, locale.value)}` : t('common.pageTitle') })
|
||||
function selectTheme(value: Theme) { theme.value = value; themeOpen.value = false }
|
||||
|
||||
const search = ref('')
|
||||
const searchInput = ref<HTMLInputElement>()
|
||||
const statusPage = ref<InstanceType<typeof StatusPage>>()
|
||||
const mirrors = ref(demoMirrors.map(mirror => ({ ...mirror })))
|
||||
const filteredMirrors = computed(() => {
|
||||
const query = search.value.trim().toLowerCase()
|
||||
if (!query) return mirrors.value
|
||||
return mirrors.value.filter(mirror => [mirror.name, ...supportedLocales.map(value => localeMessage(mirror.descriptionKey, value))].join(' ').toLowerCase().includes(query))
|
||||
return mirrors.value.filter(mirror => [mirror.name, ...Object.values(mirror.description || {})].join(' ').toLowerCase().includes(query))
|
||||
})
|
||||
const now = ref(Date.now())
|
||||
const { mirrorSize, relativeTime, tableNextTime, fullTime } = useMirrorFormats(now)
|
||||
@@ -76,27 +85,16 @@ function nextLabel(mirror: Mirror) {
|
||||
? t(`mirrors.status.${mirror.status}`) : relativeTime(mirror.nextSync, true)
|
||||
}
|
||||
function resetSearch() { search.value = ''; searchInput.value?.focus() }
|
||||
let demoStep = 0
|
||||
function advanceDemo() {
|
||||
demoStep++
|
||||
const mirror = mirrors.value.find(item => item.name === (demoStep % 2 ? 'anaconda' : 'debian'))!
|
||||
mirror.status = mirror.status === 'syncing' ? 'success' : 'syncing'
|
||||
mirror.lastAttempt = Date.now()
|
||||
if (mirror.status === 'success') { mirror.lastSuccess = mirror.lastAttempt; mirror.nextSync = mirror.lastAttempt + 60 * 60_000; mirror.syncStarted = null }
|
||||
else { mirror.nextSync = null; mirror.syncStarted = mirror.lastAttempt }
|
||||
}
|
||||
|
||||
type Modal = 'help' | 'news' | 'about' | 'downloads' | 'mirror'
|
||||
const dialog = ref<HTMLDialogElement>()
|
||||
const modal = ref<Modal | null>(null)
|
||||
const selectedMirror = ref<Mirror | null>(null)
|
||||
const selectedNews = ref<string | null>(null)
|
||||
const copied = ref(false)
|
||||
const copyError = ref(false)
|
||||
const activeNews = computed(() => announcements.find(item => item.id === selectedNews.value))
|
||||
const activeNews = computed(() => announcements.value.find(item => item.id === selectedNews.value))
|
||||
const modalTitle = computed(() => {
|
||||
if (modal.value === 'mirror') return selectedMirror.value?.name || ''
|
||||
if (modal.value === 'news' && activeNews.value) return t(activeNews.value.titleKey)
|
||||
if (modal.value === 'news' && activeNews.value) return activeNews.value.title
|
||||
const keys = { help: 'mirrors.helpTitle', news: 'announcements.title', about: 'common.aboutTitle', downloads: 'announcements.downloadsTitle' }
|
||||
return modal.value && modal.value in keys ? t(keys[modal.value as keyof typeof keys]) : ''
|
||||
})
|
||||
@@ -104,8 +102,6 @@ async function openModal(value: Modal, mirror?: Mirror, news?: string) {
|
||||
modal.value = value
|
||||
selectedMirror.value = mirror || null
|
||||
selectedNews.value = news || null
|
||||
copied.value = false
|
||||
copyError.value = false
|
||||
mobileOpen.value = false
|
||||
themeOpen.value = false
|
||||
await nextTick()
|
||||
@@ -114,20 +110,6 @@ async function openModal(value: Modal, mirror?: Mirror, news?: string) {
|
||||
function closeModal() { dialog.value?.close() }
|
||||
function onDialogClose() { modal.value = null; selectedMirror.value = null }
|
||||
watch(modal, value => { document.body.classList.toggle('dialog-open', value !== null) })
|
||||
const configExample = computed(() => {
|
||||
switch (selectedMirror.value?.name) {
|
||||
case 'ubuntu': return 'deb https://example.invalid/ubuntu/ noble main universe'
|
||||
case 'debian': return 'deb https://example.invalid/debian/ stable main'
|
||||
case 'pypi': return 'pip config set global.index-url https://example.invalid/pypi/simple'
|
||||
default: return `https://example.invalid/${selectedMirror.value?.name || ''}/`
|
||||
}
|
||||
})
|
||||
async function copyConfig() {
|
||||
copied.value = false
|
||||
copyError.value = false
|
||||
try { await navigator.clipboard.writeText(configExample.value); copied.value = true }
|
||||
catch { copyError.value = true }
|
||||
}
|
||||
|
||||
function onKeydown(event: KeyboardEvent) {
|
||||
if (event.key === 'Escape') { themeOpen.value = false; mobileOpen.value = false }
|
||||
@@ -145,7 +127,6 @@ function outsideClick(event: MouseEvent) {
|
||||
function onSystemTheme(event: MediaQueryListEvent) { prefersDark.value = event.matches }
|
||||
let interval: ReturnType<typeof setInterval>
|
||||
let boardInterval: ReturnType<typeof setInterval>
|
||||
let elapsed = 0
|
||||
onMounted(() => {
|
||||
document.addEventListener('keydown', onKeydown)
|
||||
document.addEventListener('click', outsideClick)
|
||||
@@ -158,7 +139,6 @@ onMounted(() => {
|
||||
interval = setInterval(() => {
|
||||
if (document.visibilityState !== 'visible') return
|
||||
now.value = Date.now()
|
||||
if (++elapsed % 9 === 0) advanceDemo()
|
||||
}, 1000)
|
||||
})
|
||||
onBeforeUnmount(() => {
|
||||
@@ -172,9 +152,9 @@ onBeforeUnmount(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a class="skip-link" :href="isStatusPage ? '#site-status' : '#mirrors'">{{ t(isStatusPage ? 'common.skipStatus' : 'common.skip') }}</a>
|
||||
<a class="skip-link" :href="isAdminPage ? '#administration' : isStatusPage ? '#site-status' : '#mirrors'">{{ t(isAdminPage ? 'common.skipAdmin' : isStatusPage ? 'common.skipStatus' : 'common.skip') }}</a>
|
||||
<header class="site-header">
|
||||
<a href="/" class="brand" :aria-label="t('common.siteName')">
|
||||
<a href="/" class="brand" :aria-label="content(site?.name, locale) || t('common.siteName')">
|
||||
<span class="brand-logo"><img :src="brandLogo" alt="" width="2000" height="433" /></span>
|
||||
</a>
|
||||
<nav class="desktop-nav" :aria-label="t('common.menu')">
|
||||
@@ -197,7 +177,9 @@ onBeforeUnmount(() => {
|
||||
</header>
|
||||
|
||||
<main class="page-width">
|
||||
<StatusPage v-if="isStatusPage" ref="statusPage" :mirrors="mirrors" :now="now" :cycle="boardCycle" :show-next-sync="showNextSync" @mirror="openModal('mirror', $event)" />
|
||||
<p v-if="!isAdminPage && (loading || source.stale)" class="data-notice" role="status">{{ t(loading ? 'common.loading' : source.updatedAt ? 'common.stale' : 'common.unavailable') }}</p>
|
||||
<AdminPage v-if="isAdminPage" />
|
||||
<StatusPage v-else-if="isStatusPage" ref="statusPage" :mirrors="mirrors" :now="now" :cycle="boardCycle" :show-next-sync="showNextSync" @mirror="openModal('mirror', $event)" />
|
||||
<div v-else class="main-grid">
|
||||
<section id="mirrors" class="mirror-section" tabindex="-1">
|
||||
<div class="mirror-controls">
|
||||
@@ -216,7 +198,7 @@ onBeforeUnmount(() => {
|
||||
<tr v-for="mirror in filteredMirrors" :key="mirror.name" :data-status="mirror.status">
|
||||
<td class="name-cell">
|
||||
<div class="mirror-name-group">
|
||||
<button class="mirror-name-button" :aria-label="t('mirrors.browse', { name: mirror.name })" :title="t(mirror.descriptionKey)" @click="openModal('mirror', mirror)">{{ mirror.name }}</button>
|
||||
<a class="mirror-name-button" :aria-label="t('mirrors.browse', { name: mirror.name })" :title="description(mirror)" :href="mirror.browseUrl">{{ mirror.name }}</a>
|
||||
<button class="help-button" :aria-label="t('mirrors.helpFor', { name: mirror.name })" :title="t('mirrors.helpFor', { name: mirror.name })" @click="openModal('mirror', mirror)"><BookOpen :size="14" /></button>
|
||||
</div>
|
||||
</td>
|
||||
@@ -232,27 +214,29 @@ onBeforeUnmount(() => {
|
||||
<aside class="sidebar">
|
||||
<section class="side-section announcements">
|
||||
<div class="side-heading"><h2>{{ t('announcements.title') }}</h2><button class="sidebar-more" :aria-label="t('announcements.more')" @click="openModal('news')">{{ t('announcements.moreLabel') }}</button></div>
|
||||
<button v-for="item in announcements" :key="item.id" class="news-item" :title="t(item.titleKey)" :aria-label="`${announcementDate(item.date)} ${t(item.titleKey)}`" @click="openModal('news', undefined, item.id)">
|
||||
<button v-for="item in announcements" :key="item.id" class="news-item" :title="item.title" :aria-label="`${announcementDate(item.date)} ${item.title}`" @click="openModal('news', undefined, item.id)">
|
||||
<time :datetime="item.date">{{ announcementDate(item.date) }}</time>
|
||||
<span class="news-title">{{ t(item.titleKey) }}</span>
|
||||
<span class="news-title" lang="zh-CN">{{ item.title }}</span>
|
||||
</button>
|
||||
<p v-if="!announcements.length" class="dialog-hint">{{ t('common.noAnnouncements') }}</p>
|
||||
</section>
|
||||
|
||||
<section class="side-section downloads">
|
||||
<div class="side-heading"><h2>{{ t('announcements.downloads') }}</h2><button class="download-menu-button" aria-haspopup="dialog" aria-controls="content-dialog" @click="openModal('downloads')">{{ t('announcements.downloadMenu') }}</button></div>
|
||||
</section>
|
||||
|
||||
<section class="side-section useful-links">
|
||||
<section v-if="site?.relatedLinks?.length" class="side-section useful-links">
|
||||
<div class="side-heading"><h2>{{ t('announcements.links') }}</h2></div>
|
||||
<button @click="openModal('help')">{{ t('announcements.linkHelp') }}</button>
|
||||
<a href="https://www.itouc.cn/" target="_blank" rel="noopener noreferrer">{{ t('announcements.linkStudio') }}</a>
|
||||
<a href="https://www.ouc.edu.cn/" target="_blank" rel="noopener noreferrer">{{ t('announcements.linkUniversity') }}</a>
|
||||
<template v-for="(link, index) in site.relatedLinks" :key="index">
|
||||
<button v-if="link.kind === 'help'" @click="openModal('help')">{{ content(link.title, locale) }}</button>
|
||||
<a v-else :href="link.url" :target="link.url.startsWith('/') ? undefined : '_blank'" rel="noopener noreferrer">{{ content(link.title, locale) }}</a>
|
||||
</template>
|
||||
</section>
|
||||
</aside>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div class="footer-affiliations">
|
||||
<div v-if="!isAdminPage" class="footer-affiliations">
|
||||
<a class="footer-affiliation footer-studio" href="https://www.itouc.cn/" target="_blank" rel="noopener noreferrer" :aria-label="t('common.studio')">
|
||||
<img src="/assets/itstudio.png" alt="" width="3849" height="990" />
|
||||
</a>
|
||||
@@ -260,18 +244,18 @@ onBeforeUnmount(() => {
|
||||
<img src="/assets/it.png" alt="" width="4384" height="1106" />
|
||||
</a>
|
||||
</div>
|
||||
<footer class="site-footer">
|
||||
<footer v-if="!isAdminPage" class="site-footer">
|
||||
<div class="page-width">
|
||||
<div class="footer-main">
|
||||
<div class="footer-identity">
|
||||
<a href="/" class="footer-brand" :aria-label="t('common.siteName')">
|
||||
<img :src="brandLogo" alt="" width="2000" height="433" />
|
||||
</a>
|
||||
<p>{{ t('common.footer') }}</p>
|
||||
<p>{{ content(site?.description, locale) || t('common.footer') }}</p>
|
||||
</div>
|
||||
<nav class="footer-links" :aria-label="t('common.footerLinks')">
|
||||
<h2>{{ t('common.footerLinks') }}</h2>
|
||||
<ul>
|
||||
<ul v-if="!site">
|
||||
<li><a href="https://www.ouc.edu.cn/" target="_blank" rel="noopener noreferrer">{{ t('common.university') }}</a></li>
|
||||
<li><a href="https://www.itouc.cn/" target="_blank" rel="noopener noreferrer">{{ t('common.studio') }}</a></li>
|
||||
<li><a href="https://it.ouc.edu.cn/" target="_blank" rel="noopener noreferrer">{{ t('common.faculty') }}</a></li>
|
||||
@@ -279,24 +263,25 @@ onBeforeUnmount(() => {
|
||||
<li><a href="https://git.itouc.cn/" target="_blank" rel="noopener noreferrer">{{ t('common.gitPlatform') }}</a></li>
|
||||
<li><a href="https://blog.itouc.cn/" target="_blank" rel="noopener noreferrer">{{ t('common.studioBlog') }}</a></li>
|
||||
</ul>
|
||||
<ul v-else><li v-for="link in site.links" :key="link.url"><a :href="link.url" target="_blank" rel="noopener noreferrer">{{ content(link.title, locale) }}</a></li></ul>
|
||||
</nav>
|
||||
<section class="footer-contact">
|
||||
<h2>{{ t('common.footerContact') }}</h2>
|
||||
<a href="mailto:contact@itstudio.club">{{ t('common.contactEmail') }}</a>
|
||||
<address>{{ t('common.studioAddress') }}</address>
|
||||
<a :href="`mailto:${site?.email || 'contact@itstudio.club'}`">{{ site?.email || t('common.contactEmail') }}</a>
|
||||
<address>{{ content(site?.address, locale) || t('common.studioAddress') }}</address>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<dialog id="content-dialog" ref="dialog" class="content-dialog" aria-labelledby="dialog-title" @close="onDialogClose" @click="($event.target === $event.currentTarget) && closeModal()">
|
||||
<div class="dialog-inner"><div class="dialog-heading"><h2 id="dialog-title">{{ modalTitle }}</h2><button class="icon-button" :aria-label="t('common.close')" autofocus @click="closeModal"><X :size="21" /></button></div>
|
||||
<div class="dialog-inner"><div class="dialog-heading"><h2 id="dialog-title" :lang="modal === 'news' && activeNews ? 'zh-CN' : undefined">{{ modalTitle }}</h2><button class="icon-button" :aria-label="t('common.close')" autofocus @click="closeModal"><X :size="21" /></button></div>
|
||||
<div class="dialog-content">
|
||||
<template v-if="modal === 'mirror' && selectedMirror"><p class="dialog-lead">{{ t(selectedMirror.descriptionKey) }}</p><div class="mirror-facts"><span>{{ t('mirrors.columns.status') }}</span><span class="status-chip" :class="selectedMirror.status"><span class="status-dot" />{{ t(`mirrors.status.${selectedMirror.status}`) }}</span><span>{{ t('mirrors.columns.updated') }}</span><span>{{ relativeTime(selectedMirror.lastSuccess) }}</span><span>{{ t('mirrors.columns.next') }}</span><span>{{ nextLabel(selectedMirror) }}</span></div><div class="directory-preview"><BookOpen :size="22" /><div><h3>{{ t('mirrors.directoryPending') }}</h3><p>{{ t('mirrors.directoryHint') }}</p></div></div><h3>{{ t('mirrors.exampleConfig') }}</h3><p class="dialog-hint">{{ t('mirrors.exampleHint') }}</p><pre><code>{{ configExample }}</code></pre><div class="dialog-actions"><button class="secondary-button" @click="copyConfig"><Check v-if="copied" :size="15" /><BookOpen v-else :size="15" />{{ copied ? t('common.copied') : t('common.copy') }}</button><a :href="selectedMirror.website" target="_blank" rel="noopener noreferrer" class="text-button">{{ t('mirrors.official') }}<ExternalLink :size="14" /></a></div><p v-if="copyError" role="status">{{ t('common.copyFailed') }}</p></template>
|
||||
<template v-if="modal === 'mirror' && selectedMirror"><p class="dialog-lead">{{ description(selectedMirror) }}</p><div class="mirror-facts"><span>{{ t('mirrors.columns.status') }}</span><span>{{ t(`mirrors.status.${selectedMirror.status}`) }}</span><span>{{ t('mirrors.columns.updated') }}</span><span>{{ relativeTime(selectedMirror.lastSuccess) }}</span><span>{{ t('mirrors.columns.next') }}</span><span>{{ nextLabel(selectedMirror) }}</span></div><MarkdownContent v-if="selectedMirror.help" :source="selectedMirror.help" lang="zh-CN" /><p v-else class="dialog-hint">{{ t('common.noHelp') }}</p><div class="dialog-actions"><a class="text-button" :href="selectedMirror.browseUrl">{{ t('common.openDirectory') }}<ArrowRight :size="15" /></a><a v-if="selectedMirror.website" :href="selectedMirror.website" target="_blank" rel="noopener noreferrer" class="text-button">{{ t('mirrors.official') }}<ExternalLink :size="14" /></a></div></template>
|
||||
<template v-else-if="modal === 'help'"><p class="dialog-lead">{{ t('mirrors.helpIntro') }}</p><div class="help-grid"><button v-for="mirror in mirrors" :key="mirror.name" @click="openModal('mirror', mirror)"><span class="distro-mark" :style="{ '--distro-color': mirror.color }" aria-hidden="true">{{ mirror.mark }}</span><span>{{ mirror.name }}</span><ArrowRight :size="15" /></button></div></template>
|
||||
<template v-else-if="modal === 'news'"><template v-if="activeNews"><time class="article-date" :datetime="activeNews.date">{{ d(new Date(activeNews.date), 'article') }}</time><p class="article-body">{{ t(activeNews.bodyKey) }}</p></template><template v-else><p class="dialog-lead">{{ t('announcements.newsIntro') }}</p><button v-for="item in announcements" :key="item.id" class="article-link" @click="selectedNews = item.id"><span>{{ t(item.titleKey) }}</span><ArrowRight :size="17" /></button></template></template>
|
||||
<template v-else-if="modal === 'downloads'"><p class="dialog-lead">{{ t('announcements.downloadsIntro') }}</p><div class="modal-downloads"><a v-for="distro in distributions" :key="distro.name" :href="distro.url" target="_blank" rel="noopener noreferrer"><span class="distro-mark" :style="{ '--distro-color': distro.color }" aria-hidden="true">{{ distro.mark }}</span><span>{{ distro.name }}</span><ArrowUpRight :size="18" /></a></div></template>
|
||||
<template v-else-if="modal === 'about'"><img class="about-seal" src="/assets/ouc-seal.png" alt="" width="80" height="80" /><p class="article-body">{{ t('common.aboutBody') }}</p><p class="dialog-hint">{{ t('common.previewBody') }}</p><div class="about-links"><a href="https://www.itouc.cn/" target="_blank" rel="noopener noreferrer">{{ t('common.studio') }}<ArrowUpRight :size="15" /></a><a href="https://github.com/tuna/tunasync" target="_blank" rel="noopener noreferrer">{{ t('common.source') }} · tunasync<ArrowUpRight :size="15" /></a></div></template>
|
||||
<template v-else-if="modal === 'news'"><template v-if="activeNews"><time class="article-date" :datetime="activeNews.date">{{ d(new Date(activeNews.date), 'article') }}</time><MarkdownContent :source="activeNews.body" lang="zh-CN" /></template><template v-else><p class="dialog-lead">{{ t('announcements.newsIntro') }}</p><button v-for="item in announcements" :key="item.id" class="article-link" @click="selectedNews = item.id"><span lang="zh-CN">{{ item.title }}</span><ArrowRight :size="17" /></button></template></template>
|
||||
<template v-else-if="modal === 'downloads'"><p class="dialog-lead">{{ t('announcements.downloadsIntro') }}</p><p v-if="!distributions.length" class="dialog-hint">{{ t('common.noDownloads') }}</p><div class="modal-downloads"><a v-for="distro in distributions" :key="distro.name" :href="distro.url" target="_blank" rel="noopener noreferrer"><span>{{ distro.name }} {{ distro.version }}</span><ArrowUpRight :size="18" /></a></div></template>
|
||||
<template v-else-if="modal === 'about'"><img class="about-seal" :src="site?.avatar || '/assets/ouc-seal.png'" alt="" width="80" height="80" /><p class="article-body">{{ t('common.aboutBody') }}</p><div class="about-links"><a href="https://www.itouc.cn/" target="_blank" rel="noopener noreferrer">{{ t('common.studio') }}<ArrowUpRight :size="15" /></a><a href="https://github.com/tuna/tunasync" target="_blank" rel="noopener noreferrer">{{ t('common.source') }} · tunasync<ArrowUpRight :size="15" /></a></div></template>
|
||||
</div>
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
Reference in New Issue
Block a user