Skip to content

Commit 2f3fa15

Browse files
committed
update 下载源
1 parent 81a7c9e commit 2f3fa15

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

docs/.vitepress/theme/components/Download.vue

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ const downloadSources: DownloadSource[] = [
5757
{ id: 'github', name: 'GitHub 源', description: '官方发布渠道', speed: '海外较快' },
5858
{ id: 'ghfast', name: 'GitHub 第三方镜像源', description: 'ghfast.top 加速', speed: '国内较快' },
5959
{ id: 'ghproxy', name: 'GitHub 第三方镜像源', description: 'gh-proxy.com 加速', speed: '国内较快' },
60-
{ id: 'cloud123', name: '123云盘源', description: '云盘下载页面', speed: '不限速' }
60+
{ id: 'cloud123', name: '123云盘源', description: '云盘下载页面', speed: '不限速', contributor: { name: 'lzy98276', url: 'https://github.com/lzy98276' } },
61+
{ id: 'cloudreve', name: 'Cloudreve分流', description: 'Lotus大佬提供的分流', speed: '稳定快速', contributor: { name: 'Lotus', url: 'https://github.com/SummerLotus520/' } }
6162
]
6263
6364
// 动态设备类型
@@ -128,6 +129,8 @@ function getDownloadUrl(asset: any): string {
128129
return `https://gh-proxy.com/${asset.browser_download_url.replace('https://github.com/', '')}`
129130
case 'cloud123':
130131
return 'https://www.123684.com/s/9529jv-U4Fxh'
132+
case 'cloudreve':
133+
return 'https://cloud.lotusshared.cn/s/A9QCA'
131134
default:
132135
return asset.browser_download_url
133136
}
@@ -306,8 +309,9 @@ onBeforeUnmount(() => {
306309
<div class="item-name">{{ source.name }}</div>
307310
<div class="item-description">{{ source.description }} · {{ source.speed }}</div>
308311
<div v-if="source.contributor" class="contributor">
309-
由 <a :href="source.contributor.url" target="_blank">{{ source.contributor.name }}</a> 提供
310-
</div>
312+
由 <a :href="source.contributor.url" target="_blank">{{ source.contributor.name }}</a> 提供
313+
<span v-if="source.id === 'cloudreve'"> · 欢迎进入 <a href="https://qm.qq.com/q/d4Dd9EOvcI" target="_blank">QQ群</a> 了解更多</span>
314+
</div>
311315
</div>
312316
</div>
313317
</div>
@@ -367,18 +371,26 @@ onBeforeUnmount(() => {
367371
:href="getDownloadUrl(file)"
368372
class="download-button"
369373
target="_blank"
370-
v-if="selectedDownloadSource !== 'cloud123'"
374+
v-if="selectedDownloadSource !== 'cloud123' && selectedDownloadSource !== 'cloudreve'"
371375
>
372376
下载
373377
</a>
374378
<a
375379
:href="getDownloadUrl(file)"
376380
class="download-button"
377381
target="_blank"
378-
v-else
382+
v-else-if="selectedDownloadSource === 'cloud123'"
379383
>
380384
前往下载页面
381385
</a>
386+
<a
387+
:href="getDownloadUrl(file)"
388+
class="download-button"
389+
target="_blank"
390+
v-else-if="selectedDownloadSource === 'cloudreve'"
391+
>
392+
前往分流页面
393+
</a>
382394
</div>
383395
</div>
384396

docs/overview.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@
7979
</a>
8080
</div>
8181

82-
83-
- ☁️ **或使用cloudreve分流** *(感谢Lotus大佬提供的分流,欢迎上大佬的[github主页](https://github.com/SummerLotus520/)看看或者进入[荷花大佬的群](https://qm.qq.com/q/d4Dd9EOvcI)看看)*[分流链接](https://cloud.lotusshared.cn/s/A9QCA)
84-
85-
8682
> **让每一次随机都有温度,每一份公平都熠熠生辉!**
8783
>
8884
> 💡 **零门槛上手** · 🔒 **隐私保护** · 🎯 **公平透明**

0 commit comments

Comments
 (0)