Skip to content

Commit 89c33e5

Browse files
committed
feat: 添加镜像站页面
1 parent 5a5bcd9 commit 89c33e5

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

src/pages/download/mirrors.vue

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<script setup lang="ts">
2+
import { useHead } from '@unhead/vue';
3+
4+
useHead({
5+
title: '下载镜像 | ClassIsland',
6+
meta: [
7+
{
8+
name: 'description',
9+
content: 'ClassIsland 是一款适用于班级大屏的课表信息显示工具。如果您在通过官方下载源或 GitHub 下载 ClassIsland 时遇到问题,可以从此处的镜像下载 ClassIsland。',
10+
},
11+
],
12+
})
13+
</script>
14+
15+
<template>
16+
<div class="margin-x flex-col ga-4 d-flex mt-6">
17+
<h1 class="text-h4">下载镜像</h1>
18+
<p>如果您在通过官方下载源或 GitHub 下载 ClassIsland 时遇到问题,可以从以下镜像下载 ClassIsland。</p>
19+
<ul class="list-disc">
20+
<li><a href="https://mirrors.cqu.edu.cn/github-release/ClassIsland/ClassIsland/">重庆大学开源软件镜像站</a> </li>
21+
</ul>
22+
</div>
23+
</template>
24+
25+
<style scoped lang="scss">
26+
ul li::marker{
27+
margin-left: 16px;
28+
}
29+
</style>

src/pages/download/v2/index.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,11 @@ const comboBoxItems = computed(() => {
336336
<template #prepend><FluentSystemIcon name="settings" /></template>
337337
下载 CI 构建
338338
</FluentButton>
339+
<FluentButton variant="hyperlink"
340+
to="/download/mirrors">
341+
<template #prepend><FluentSystemIcon name="arrowDownload" /></template>
342+
下载镜像
343+
</FluentButton>
339344
<FluentButton variant="hyperlink"
340345
to="/download/v1">
341346
<template #prepend><FluentSystemIcon name="archive" /></template>
@@ -361,6 +366,10 @@ const comboBoxItems = computed(() => {
361366
<template #prepend><FluentSystemIcon name="github" /></template>
362367
前往 GitHub 下载
363368
</FluentButton>
369+
<FluentButton to="/download/mirrors">
370+
<template #prepend><FluentSystemIcon name="arrowDownload" /></template>
371+
前往镜像站下载
372+
</FluentButton>
364373
</div>
365374
</div>
366375

src/typed-router.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ declare module 'vue-router/auto-routes' {
2222
'/[..path]': RouteRecordInfo<'/[..path]', '/:ath(.*)', { ath: ParamValue<true> }, { ath: ParamValue<false> }>,
2323
'/404': RouteRecordInfo<'/404', '/404', Record<never, never>, Record<never, never>>,
2424
'/download/': RouteRecordInfo<'/download/', '/download', Record<never, never>, Record<never, never>>,
25+
'/download/mirrors': RouteRecordInfo<'/download/mirrors', '/download/mirrors', Record<never, never>, Record<never, never>>,
2526
'/download/thank_you/[indexId]/[version]/[appSubChannel]/': RouteRecordInfo<'/download/thank_you/[indexId]/[version]/[appSubChannel]/', '/download/thank_you/:indexId/:version/:appSubChannel', { indexId: ParamValue<true>, version: ParamValue<true>, appSubChannel: ParamValue<true> }, { indexId: ParamValue<false>, version: ParamValue<false>, appSubChannel: ParamValue<false> }>,
2627
'/download/thank_you/v2/[version]/[appSubChannel]/': RouteRecordInfo<'/download/thank_you/v2/[version]/[appSubChannel]/', '/download/thank_you/v2/:version/:appSubChannel', { version: ParamValue<true>, appSubChannel: ParamValue<true> }, { version: ParamValue<false>, appSubChannel: ParamValue<false> }>,
2728
'/download/v1/': RouteRecordInfo<'/download/v1/', '/download/v1', Record<never, never>, Record<never, never>>,

0 commit comments

Comments
 (0)