Skip to content

Commit 05ee1dc

Browse files
authored
chore: Revise the text description to make it clearer (#334)
* chore: Revise the text description to make it clearer * chore: Improve semantic structure and CSS alignment in Vue component
1 parent 59af80b commit 05ee1dc

File tree

2 files changed

+25
-31
lines changed

2 files changed

+25
-31
lines changed

docs/.vuepress/components/HomeAds.vue

+18-17
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script setup lang="ts">
2-
import { usePageData } from "@vuepress/client";
3-
import { computed } from "vue";
2+
import { usePageData } from "@vuepress/client"
3+
import { computed } from "vue"
44
5-
const pageData = usePageData();
5+
const pageData = usePageData()
66
77
const isZh = computed(() => {
8-
return pageData.value.path.startsWith("/zh/");
9-
});
8+
return pageData.value.path.startsWith("/zh/")
9+
})
1010
1111
const vidHubEn = {
1212
title: "VidHub - An elegant cloud video player within the Apple ecosystem.",
@@ -16,7 +16,7 @@ const vidHubEn = {
1616
],
1717
url: "https://apps.apple.com/app/apple-store/id1659622164?pt=118612019&ct=alist&mt=8",
1818
tag: "Free",
19-
};
19+
}
2020
2121
const vidHubCN = {
2222
title: "VidHub - 苹果生态下优雅的网盘视频播放器",
@@ -26,18 +26,17 @@ const vidHubCN = {
2626
],
2727
url: "https://zh.okaapps.com/product/1659622164?ref=alist",
2828
tag: "免费",
29-
};
29+
}
3030
3131
const vidHub = computed(() => {
32-
if (isZh.value) return vidHubCN;
33-
return vidHubEn;
34-
});
32+
if (isZh.value) return vidHubCN
33+
return vidHubEn
34+
})
3535
3636
const isApple = computed(() => {
37-
if (navigator.platform)
38-
return /Mac|iPod|iPhone|iPad/.test(navigator.platform);
39-
return /Mac|iPod|iPhone|iPad/.test(navigator.userAgent);
40-
});
37+
if (navigator.platform) return /Mac|iPod|iPhone|iPad/.test(navigator.platform)
38+
return /Mac|iPod|iPhone|iPad/.test(navigator.userAgent)
39+
})
4140
</script>
4241

4342
<template>
@@ -57,7 +56,9 @@ const isApple = computed(() => {
5756
<span>{{ vidHub.title }}</span>
5857
<span class="tag">{{ vidHub.tag }}</span>
5958
</div>
60-
<div class="hero" v-for="hero in vidHub.hero">{{ hero }}</div>
59+
<div class="hero" v-for="hero in vidHub.hero" :key="hero">
60+
{{ hero }}
61+
</div>
6162
</div>
6263
</div>
6364
</a>
@@ -95,15 +96,15 @@ const isApple = computed(() => {
9596
display: flex;
9697
flex-direction: column;
9798
justify-content: center;
98-
align-items: start;
99+
align-items: flex-start;
99100
width: 100%;
100101
.title {
101102
color: white;
102103
font-weight: bold;
103104
font-size: 24px;
104105
display: flex;
105106
flex-direction: row;
106-
justify-content: start;
107+
justify-content: flex-start;
107108
align-items: center;
108109
height: auto;
109110
@media screen and (max-width: 700px) {

docs/guide/drivers/aliyundrive.md

+7-14
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const getQr = async ()=>{
5656
const resp = await fetch(`${api()}/alist/ali/qr`);
5757
const res = await resp.json();
5858
console.log(res)
59-
btnText.value='Use AliyunDrive APP To Scan Then Click'
59+
btnText.value='Use AliyunDrive APP To Scan Then Click this Button again'
6060
state.value = 2;
6161
ckData.value = JSON.stringify({
6262
ck: res.content.data.ck,
@@ -97,9 +97,10 @@ const onClick = async ()=>{
9797
}
9898
}
9999
</script>
100-
<button :disabled="state === 3 || state === 1"
101-
style="outline:none;padding:12px;background:#70c6be;border:none;border-radius:8px;cursor:pointer;font-size:20px;"
102-
@click="onClick">
100+
101+
<button :disabled="state === 3 || state === 1"
102+
style="outline:none;padding:12px;background:#70c6be;border:none;border-radius:8px;cursor:pointer;font-size:20px;"
103+
@click="onClick">
103104
{{ btnText }}
104105
</button>
105106

@@ -111,9 +112,10 @@ const onClick = async ()=>{
111112

112113
:::info Token: {{ token }}
113114
:::
115+
114116
</div>
115117

116-
*API is hosted on replit.com*
118+
_API is hosted on replit.com_
117119

118120
### **Root folder file_id**
119121

@@ -125,27 +127,18 @@ Open the official website of Aliyundrive and click the string behind the url whe
125127

126128
Check the hash when uploading. If there is one in the cloud, directly generate the file without consuming traffic
127129

128-
129130
### **Internal upload**
130131

131132
If the server you deploy Alist on is Aliyun ECS for Beijing area, turn on this switch to improve the upload speed. Do not turn on this switch for servers that do not meet the requirements, otherwise you will have problems with inability to upload.
132133

133-
134-
135134
<br/>
136135

137-
138-
139136
## **Aliyundrive Share Url**
140137

141138
It is no longer available, and the shared storage method will no longer be developed and maintained in the future. At the same time, the token obtained by [**AliyundriveOpen**](./aliyundrive_open.md) cannot be used in the Alibaba Cloud Disk shared mount storage.
142139

143-
144-
145140
<br/>
146141

147-
148-
149142
### **The default download method used**
150143

151144
```mermaid

0 commit comments

Comments
 (0)