Skip to content

Commit fc941b8

Browse files
authored
Merge pull request #1 from JerryHan3/purified-doc
净化文档
2 parents 27679c8 + 469c4f8 commit fc941b8

34 files changed

+7277
-9611
lines changed

docs/.vuepress/components/Desktop.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ const raw = [
1212
{
1313
key: "mac_arm64",
1414
label: "MacOS (Apple Silicon)",
15-
url: `https://bugo-1301111475.cos.ap-guangzhou.myqcloud.com/Alist/alist-desktop_aarch64.dmg`,
15+
url: `https://github.com/alist-org/desktop-release/releases/latest/download/alist-desktop_${version}_aarch64.dmg`,
1616
},
1717
{
1818
key: "mac_x64",
1919
label: "MacOS (Intel)",
20-
url: `https://bugo-1301111475.cos.ap-guangzhou.myqcloud.com/Alist/alist-desktop_x64.dmg`,
20+
url: `https://github.com/alist-org/desktop-release/releases/latest/download/alist-desktop_${version}_x64.dmg`,
2121
},
2222
{
2323
key: "win_x64",
2424
label: "Windows (X64)",
25-
url: `https://bugo-1301111475.cos.ap-guangzhou.myqcloud.com/Alist/alist-desktop_x64-setup.exe`,
25+
url: `https://github.com/alist-org/desktop-release/releases/latest/download/alist-desktop_${version}_x64_en-US.msi`,
2626
},
2727
{
2828
key: "win_arm64",
2929
label: "Windows (ARM64)",
30-
url: `https://bugo-1301111475.cos.ap-guangzhou.myqcloud.com/Alist/alist-desktop_arm64-setup.exe`,
30+
url: `https://github.com/alist-org/desktop-release/releases/latest/download/alist-desktop_${version}_arm64-setup.exe`,
3131
},
3232
{
3333
key: "linux",
3434
label: "Linux",
35-
url: `https://bugo-1301111475.cos.ap-guangzhou.myqcloud.com/Alist/alist-desktop_amd64.deb`,
35+
url: `https://github.com/alist-org/desktop-release/releases/latest/download/alist-desktop_${version}_amd64.deb`,
3636
},
3737
] as const
3838
@@ -77,15 +77,15 @@ if (location.pathname.startsWith("/zh/")) {
7777
7878
function down() {
7979
const href = raw.find((item) => item.key === plat.value)?.url
80-
window.open(`${href}`, "_blank")
80+
window.open(`${proxy}${href}`, "_blank")
8181
}
8282
8383
function handleSelect(key) {
8484
plat.value = key
8585
}
8686
8787
function openWebsite() {
88-
window.open("https://desktop.alistgo.com/zh", "_blank")
88+
window.open("https://ad.nn.ci/", "_blank")
8989
}
9090
</script>
9191

docs/.vuepress/components/HomeAds.vue

Lines changed: 55 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,70 @@
11
<script setup lang="ts">
22
import { usePageData } from "@vuepress/client"
3-
import { computed } from 'vue'
3+
import { computed } from "vue"
44
55
const pageData = usePageData()
6-
const isChinese = computed(() => {
6+
7+
const isZh = computed(() => {
78
return pageData.value.path.startsWith("/zh/")
89
})
9-
const backgroundImage = computed(() => isChinese.value ? '/img/ss/new_bgc_zh.png' : '/img/ss/new_bgc_en.png')
10-
const jumpUrl = computed(() =>
11-
isChinese.value
12-
? 'https://zh.okaapps.com/vidhub-alist'
13-
: 'https://okaapps.com/vidhub-alist'
14-
)
1510
16-
console.log('当前图片:', backgroundImage.value)
11+
const vidHubEn = {
12+
title: "VidHub - An elegant cloud video player within the Apple ecosystem.",
13+
hero: [
14+
"Support for iPhone, iPad, Mac, and Apple TV.",
15+
"Supports various cloud storage providers such as Aliyun, Baidu Cloud, OneDrive, Google Drive, Dropbox, Alist, mounted with different cloud drives like Quark Cloud, pikpak, 115, and more.",
16+
],
17+
url: "https://apps.apple.com/app/apple-store/id1659622164?pt=118612019&ct=alist&mt=8",
18+
tag: "Free",
19+
new_site: "Open the new site",
20+
}
21+
22+
const vidHubCN = {
23+
title: "VidHub - 苹果生态下优雅的网盘视频播放器",
24+
hero: [
25+
"iPhone,iPad,Mac,Apple TV全平台支持,",
26+
"直接挂载阿里云盘、百度网盘、OneDrive、GoogleDrive、Dropbox、Alist挂载各种夸克云盘,pikpak, 115等等。",
27+
],
28+
url: "https://zh.okaapps.com/product/1659622164?ref=alist",
29+
tag: "免费",
30+
new_site: "打开新站点",
31+
}
32+
33+
const vidHub = computed(() => {
34+
if (isZh.value) return vidHubCN
35+
return vidHubEn
36+
})
37+
38+
const isApple = computed(() => {
39+
if (navigator.platform) return /Mac|iPod|iPhone|iPad/.test(navigator.platform)
40+
return /Mac|iPod|iPhone|iPad/.test(navigator.userAgent)
41+
})
1742
</script>
1843

1944
<template>
2045
<div class="ads-container">
21-
<div class="vidhub-new-bgc">
22-
<a :href="jumpUrl" target="_blank" rel="noopener">
23-
<img :src="backgroundImage" :alt="isChinese ? 'VidHub 背景' : 'VidHub Background'" />
46+
<div class="wwads-container">
47+
<div
48+
class="wwads wwads-cn wwads-horizontal"
49+
data-id="213"
50+
style="width: 100% !important"
51+
v-if="!isApple"
52+
></div>
53+
<a v-else class="vidhub" :href="vidHub.url" target="_blank">
54+
<div>
55+
<img src="/img/ss/vidhub-logo.png" alt="" />
56+
<div>
57+
<div class="title">
58+
<span>{{ vidHub.title }}</span>
59+
<span class="tag">{{ vidHub.tag }}</span>
60+
</div>
61+
<div class="hero" v-for="hero in vidHub.hero" :key="hero">
62+
{{ hero }}
63+
</div>
64+
</div>
65+
</div>
2466
</a>
67+
<a class="new_site" href="https://alistgo.com" target="_blank">{{ vidHub.new_site }}</a>
2568
</div>
2669
</div>
2770
</template>
@@ -146,34 +189,4 @@ console.log('当前图片:', backgroundImage.value)
146189
}
147190
max-width: var(--home-page-width);
148191
}
149-
150-
.vidhub-new-bgc {
151-
// width: 100%;
152-
// max-width: 100%;
153-
// 以上为展示图片圆角,暂时先注释
154-
margin: 10px auto;
155-
overflow: hidden;
156-
display: flex;
157-
justify-content: center;
158-
align-items: center;
159-
background: none;
160-
height: auto;
161-
border-radius: 10px;
162-
}
163-
.vidhub-new-bgc img {
164-
width: 100%;
165-
max-height: 200px;
166-
height: auto;
167-
display: block;
168-
object-fit: contain;//cover 为正常宽展示,但是图片宽高过大会被拉伸,先用contain
169-
}
170-
.vidhub-new-bgc a {
171-
display: flex;
172-
align-items: center;
173-
justify-content: center;
174-
width: 100%;
175-
height: 100%;
176-
text-decoration: none;
177-
color: inherit;
178-
}
179192
</style>

docs/.vuepress/components/NormalPage.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
<span>{{ spStr }}</span>
1010
</a>
1111
</div>
12-
<!-- <div class="wwads wwads-cn wwads-horizontal" data-id="213" style="width:100% !important;display: none;" v-else>
13-
</div> -->
12+
<div class="wwads wwads-cn wwads-horizontal" data-id="213" style="width:100% !important" v-else>
13+
</div>
1414
<ApiSelect v-if="isTool" />
1515
</div>
1616
</template>
1717
<template #contentAfter>
1818
<div class="bottom-wwads">
19-
<!-- <div class="wwads wwads-cn wwads-horizontal" data-id="213" style="width:90% !important;display: none;" v-if="showMingdao">
20-
</div> -->
19+
<div class="wwads wwads-cn wwads-horizontal" data-id="213" style="width:90% !important" v-if="showMingdao">
20+
</div>
2121
</div>
2222
</template>
2323
</NormalPage>

docs/.vuepress/components/Pricing.vue

Lines changed: 26 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<script lang="ts" setup>
2-
import { NButton, NCard, NGrid, NGridItem, NH1, NIcon, NSpace, NText, NModal } from "naive-ui";
2+
import { NButton, NCard, NGrid, NGridItem, NH1, NIcon, NSpace, NText } from "naive-ui";
33
import Check from './icon/Check.vue'
4-
import { ref } from 'vue'
5-
6-
const showContactModal = ref(false)
7-
8-
const qrCode = ref('https://oss.hutool.cn/000000-hutool/upload/alist/qi%20ye.jpg')
9-
104
let data = {
115
pricing: [
126
{
@@ -23,13 +17,13 @@ let data = {
2317
btns: [{
2418
text: 'Download',
2519
link: 'https://github.com/alist-org/alist/releases'
20+
},
21+
{
22+
text: "Sponsor",
23+
link: "/guide/sponsor.html",
24+
secondary: false,
25+
type: "error"
2626
}
27-
// ,{
28-
// text: "Sponsor",
29-
// link: "/guide/sponsor.html",
30-
// secondary: false,
31-
// type: "error"
32-
// }
3327
]
3428
},
3529
{
@@ -49,12 +43,12 @@ let data = {
4943
{
5044
text: 'Download',
5145
link: 'https://github.com/alist-org/desktop-release/releases',
46+
},
47+
{
48+
text: 'Buy',
49+
link: 'https://store.nn.ci/checkout/buy/51dca247-20df-4991-8104-54ca534bcc82',
50+
type: 'success'
5251
}
53-
// ,{
54-
// text: 'Buy',
55-
// link: 'https://store.nn.ci/checkout/buy/51dca247-20df-4991-8104-54ca534bcc82',
56-
// type: 'success'
57-
// }
5852
]
5953
},
6054
{
@@ -94,18 +88,16 @@ if (location.pathname.startsWith("/zh/")) {
9488
btns: [{
9589
text: '下载',
9690
link: 'https://github.com/alist-org/alist/releases',
97-
}
98-
// , {
99-
// text: "赞助",
100-
// link: "/zh/guide/sponsor.html",
101-
// secondary: false,
102-
// type: "error"
103-
// }
104-
]
91+
}, {
92+
text: "赞助",
93+
link: "/zh/guide/sponsor.html",
94+
secondary: false,
95+
type: "error"
96+
}]
10597
},
10698
{
10799
title: 'AList桌面版',
108-
price: '39.99',
100+
price: '50',
109101
features: [
110102
'所有开源功能',
111103
'使用好看的UI管理AList程序而不是命令行,方便的查看日志',
@@ -120,12 +112,12 @@ if (location.pathname.startsWith("/zh/")) {
120112
{
121113
text: '下载',
122114
link: 'https://github.com/alist-org/desktop-release/releases',
115+
},
116+
{
117+
text: '购买',
118+
link: 'https://r.nn.ci/ad',
119+
type: 'success'
123120
}
124-
// ,{
125-
// text: '购买',
126-
// link: 'https://r.nn.ci/ad',
127-
// type: 'success'
128-
// }
129121
]
130122
},
131123
{
@@ -140,19 +132,15 @@ if (location.pathname.startsWith("/zh/")) {
140132
],
141133
btns: [{
142134
text: '联系',
143-
link: 'mailto:[email protected]',
135+
link: 'mailto:[email protected]'
144136
}]
145137
}
146138
],
147139
};
148140
}
149141
150142
function openLink(link: string) {
151-
if (link === 'mailto:[email protected]') {
152-
showContactModal.value = true
153-
} else {
154-
window.open(link, "_blank");
155-
}
143+
window.open(link, "_blank");
156144
}
157145
158146
</script>
@@ -177,30 +165,9 @@ function openLink(link: string) {
177165
</NCard>
178166
</NGridItem>
179167
</NGrid>
180-
181-
<NModal v-model:show="showContactModal" preset="dialog" title="联系我们">
182-
<template #default>
183-
<p>请通过以下二维码联系我们:</p>
184-
<div class="qr-code">
185-
<img
186-
:src="qrCode"
187-
alt="联系我们" style="width: 300px; height: 350px;">
188-
</div>
189-
<!-- <p>邮箱:[email protected]</p> -->
190-
</template>
191-
<template #action>
192-
<NButton @click="showContactModal = false">关闭</NButton>
193-
</template>
194-
</NModal>
195168
</template>
196169

197170
<style scoped>
198-
.qr-code {
199-
display: flex;
200-
justify-content: center;
201-
align-items: center;
202-
}
203-
204171
.list {
205172
min-height: 334px;
206173
}

docs/.vuepress/components/Sidebar.vue

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,12 @@
22
<Sidebar>
33
<template #top>
44
<div class="ss">
5-
<div class="sidebar-ad-placeholder">
6-
<a href="https://doc.hutool.cn/" target="_blank" @click="handleAdClick">
7-
<img src="/img/ss/hutool.pic.jpg" alt="Hutool" style="max-width: 80%; height: auto; margin-left: 20px;" />
8-
</a>
9-
</div>
10-
<!-- <div class="sidebar-ad-placeholder">
11-
广告 2
12-
</div>
13-
<div class="sidebar-ad-placeholder">
14-
广告 3
15-
</div> -->
165
<div class="mingdao" v-if="showMingdao">
17-
<a href="https://www.mingdao.com?s=utm_51=utm_source=alist&utm_medium=banner&utm_campaign=%E5%93%81%E7%89%8C%E6%8E%A8%E5%B9%BF&utm_content=IT%E8%B5%8B%E8%83%BD%E4%B8%9A%E5%8A%A1"
18-
target="_blank"><img src="/img/ss/mingdao.png" alt="" /></a>
6+
<a
7+
href="https://www.mingdao.com?s=utm_51=utm_source=alist&utm_medium=banner&utm_campaign=%E5%93%81%E7%89%8C%E6%8E%A8%E5%B9%BF&utm_content=IT%E8%B5%8B%E8%83%BD%E4%B8%9A%E5%8A%A1"
8+
target="_blank"
9+
><img src="/img/ss/mingdao.png" alt=""
10+
/></a>
1911
<span>{{ spStr }}</span>
2012
</div>
2113
<div style="padding: 8px; padding-bottom: 0; margin-bottom: -16px;" v-if="isDrivers">
@@ -43,33 +35,9 @@ const isDrivers = computed(() => {
4335
});
4436
4537
const showMingdao = false;
46-
47-
const handleAdClick = async () => {
48-
try {
49-
await fetch('https://api.hutool.cn/blade-adv/stats', {
50-
method: 'POST',
51-
headers: {
52-
'Content-Type': 'application/json',
53-
},
54-
body: JSON.stringify({
55-
name: "alist-hutool"
56-
})
57-
});
58-
} catch (error) {
59-
console.error('广告统计请求失败:', error);
60-
}
61-
};
6238
</script>
6339

6440
<style scoped lang="scss">
65-
.sidebar-ad-placeholder {
66-
width: 100%;
67-
display: flex;
68-
justify-content: flex-end;
69-
margin: 35px 0 16px 0;
70-
border-radius: 5px;
71-
}
72-
7341
.mingdao {
7442
margin-top: 8px;
7543
display: flex;

0 commit comments

Comments
 (0)