File tree Expand file tree Collapse file tree 4 files changed +33
-20
lines changed
docs/.vuepress/components Expand file tree Collapse file tree 4 files changed +33
-20
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<HopeHomePage >
3
3
<template #center >
4
- <div class =" ss" >
4
+ <div class =" ss" v-if = " showMingdao " >
5
5
<span >🌈 {{ spStr }}</span >
6
6
<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 >
9
12
</div >
10
13
</div >
11
14
<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 >
13
20
</div >
14
21
</template >
15
22
</HopeHomePage >
16
23
</template >
17
24
<script setup lang="ts">
18
25
import HopeHomePage from " vuepress-theme-hope/components/HomePage" ;
19
- import { usePageData } from ' @vuepress/client'
26
+ import { usePageData } from " @vuepress/client" ;
20
27
import { computed } from " vue" ;
21
28
22
- const pageData = usePageData ()
29
+ const pageData = usePageData ();
23
30
24
31
const spStr = computed (() => {
25
32
if (pageData .value .path .startsWith (" /zh/" )) {
26
33
return " 特别赞助" ;
27
34
}
28
35
return " Sponsorship" ;
29
- })
36
+ });
30
37
38
+ const showMingdao = false ;
31
39
</script >
32
40
33
41
<style scoped lang="scss">
@@ -60,5 +68,4 @@ const spStr = computed(() => {
60
68
padding-top : 0 !important ;
61
69
padding-bottom : 0 !important ;
62
70
}
63
-
64
- </style >
71
+ </style >
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const isTool = computed(() => {
41
41
const sidebar = frontmatter .value .sidebar ;
42
42
return sidebar === false ;
43
43
})
44
- const showMingdao = isTool
44
+ const showMingdao = false
45
45
46
46
const spStr = computed (() => {
47
47
if (pageData .value .path .startsWith (" /zh/" )) {
Original file line number Diff line number Diff line change 2
2
<Sidebar >
3
3
<template #top >
4
4
<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 >
8
11
<span >{{ spStr }}</span >
9
12
</div >
10
- <div style =" padding-right : 8px ;" v-if =" isDrivers" >
13
+ <div style =" padding : 8px ; padding-bottom : 0 ; margin-bottom : -16 px ;" v-if =" isDrivers" >
11
14
<ApiSelect />
12
15
</div >
13
16
</div >
16
19
</template >
17
20
<script setup lang="ts">
18
21
import Sidebar from " vuepress-theme-hope/modules/sidebar/components/Sidebar" ;
19
- import { usePageData } from ' @vuepress/client'
22
+ import { usePageData } from " @vuepress/client" ;
20
23
import { computed } from " vue" ;
21
24
import ApiSelect from " ./api/ApiSelect.vue" ;
22
25
23
- const pageData = usePageData ()
26
+ const pageData = usePageData ();
24
27
const spStr = computed (() => {
25
28
if (pageData .value .path .startsWith (" /zh/" )) {
26
29
return " 赞助商" ;
27
30
}
28
31
return " Sponsorship" ;
29
- })
32
+ });
30
33
const isDrivers = computed (() => {
31
34
return pageData .value .path .includes (" /drivers/" );
32
- })
35
+ });
36
+
37
+ const showMingdao = false ;
33
38
</script >
34
39
35
40
<style scoped lang="scss">
@@ -55,4 +60,4 @@ const isDrivers = computed(() => {
55
60
color : #999 ;
56
61
}
57
62
}
58
- </style >
63
+ </style >
Original file line number Diff line number Diff line change 9
9
"dev-build" : " vuepress build docs" ,
10
10
"docs:build" : " pnpm ecosystem && vuepress build docs" ,
11
11
"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"
13
14
},
14
15
"devDependencies" : {
15
16
"@types/node" : " ^18.15.11" ,
You can’t perform that action at this time.
0 commit comments