Skip to content

Commit 17f52eb

Browse files
committed
Temporarily remove mingdao
1 parent 788a365 commit 17f52eb

File tree

4 files changed

+33
-20
lines changed

4 files changed

+33
-20
lines changed

docs/.vuepress/components/HomePage.vue

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,41 @@
11
<template>
22
<HopeHomePage>
33
<template #center>
4-
<div class="ss">
4+
<div class="ss" v-if="showMingdao">
55
<span>🌈 {{ spStr }}</span>
66
<div class="mingdao">
7-
<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"
8-
target="_blank"><img src="/img/ss/mingdao-h.png" alt="" /></a>
7+
<a
8+
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"
9+
target="_blank"
10+
><img src="/img/ss/mingdao-h.png" alt=""
11+
/></a>
912
</div>
1013
</div>
1114
<div class="hero-info-wrapper wwads-container">
12-
<div class="wwads wwads-cn wwads-horizontal" data-id="213" style="width:100% !important"></div>
15+
<div
16+
class="wwads wwads-cn wwads-horizontal"
17+
data-id="213"
18+
style="width: 100% !important"
19+
></div>
1320
</div>
1421
</template>
1522
</HopeHomePage>
1623
</template>
1724
<script setup lang="ts">
1825
import HopeHomePage from "vuepress-theme-hope/components/HomePage";
19-
import { usePageData } from '@vuepress/client'
26+
import { usePageData } from "@vuepress/client";
2027
import { computed } from "vue";
2128
22-
const pageData = usePageData()
29+
const pageData = usePageData();
2330
2431
const spStr = computed(() => {
2532
if (pageData.value.path.startsWith("/zh/")) {
2633
return "特别赞助";
2734
}
2835
return "Sponsorship";
29-
})
36+
});
3037
38+
const showMingdao = false;
3139
</script>
3240

3341
<style scoped lang="scss">
@@ -60,5 +68,4 @@ const spStr = computed(() => {
6068
padding-top: 0 !important;
6169
padding-bottom: 0 !important;
6270
}
63-
64-
</style>
71+
</style>

docs/.vuepress/components/NormalPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const isTool = computed(() => {
4141
const sidebar = frontmatter.value.sidebar;
4242
return sidebar === false;
4343
})
44-
const showMingdao = isTool
44+
const showMingdao = false
4545
4646
const spStr = computed(() => {
4747
if (pageData.value.path.startsWith("/zh/")) {

docs/.vuepress/components/Sidebar.vue

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
<Sidebar>
33
<template #top>
44
<div class="ss">
5-
<div class="mingdao">
6-
<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"
7-
target="_blank"><img src="/img/ss/mingdao.png" alt="" /></a>
5+
<div class="mingdao" v-if="showMingdao">
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>
811
<span>{{ spStr }}</span>
912
</div>
10-
<div style="padding-right: 8px;" v-if="isDrivers">
13+
<div style="padding: 8px; padding-bottom: 0; margin-bottom: -16px;" v-if="isDrivers">
1114
<ApiSelect />
1215
</div>
1316
</div>
@@ -16,20 +19,22 @@
1619
</template>
1720
<script setup lang="ts">
1821
import Sidebar from "vuepress-theme-hope/modules/sidebar/components/Sidebar";
19-
import { usePageData } from '@vuepress/client'
22+
import { usePageData } from "@vuepress/client";
2023
import { computed } from "vue";
2124
import ApiSelect from "./api/ApiSelect.vue";
2225
23-
const pageData = usePageData()
26+
const pageData = usePageData();
2427
const spStr = computed(() => {
2528
if (pageData.value.path.startsWith("/zh/")) {
2629
return "赞助商";
2730
}
2831
return "Sponsorship";
29-
})
32+
});
3033
const isDrivers = computed(() => {
3134
return pageData.value.path.includes("/drivers/");
32-
})
35+
});
36+
37+
const showMingdao = false;
3338
</script>
3439

3540
<style scoped lang="scss">
@@ -55,4 +60,4 @@ const isDrivers = computed(() => {
5560
color: #999;
5661
}
5762
}
58-
</style>
63+
</style>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"dev-build": "vuepress build docs",
1010
"docs:build": "pnpm ecosystem && vuepress build docs",
1111
"docs:clean-dev": "vuepress dev docs --clean-cache",
12-
"docs:dev": "vuepress dev docs"
12+
"docs:dev": "vuepress dev docs",
13+
"dev": "pnpm docs:dev"
1314
},
1415
"devDependencies": {
1516
"@types/node": "^18.15.11",

0 commit comments

Comments
 (0)