Skip to content

Commit

Permalink
update sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Oct 24, 2024
1 parent 8ac4016 commit 34667aa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docs/.vuepress/theme/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</p>
</div>

<div style="border-top: 1px solid #eaecef; text-align: center">
<!-- <div style="border-top: 1px solid #eaecef; text-align: center">
<h4>赞助商</h4>
<div style="display: flex;justify-content: space-around;width: 60%;margin: 0 auto;font-size: 14px;">
<div style="width: 300px;display: flex;justify-content: space-around;flex-direction:row;">
Expand All @@ -24,7 +24,7 @@
</a>
</div>
</div>
</div>
</div> -->

<div v-if="data.features && data.features.length" class="features" :class="{isCN:isCN}">
<div v-for="(feature, index) in data.features" :key="index" class="feature">
Expand Down
26 changes: 14 additions & 12 deletions docs/.vuepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Sidebar :items="sidebarItems" @toggle-sidebar="toggleSidebar">
<div slot="top" :class="{'load-success':loadSuccess}">
<div v-if="!isHome" id="codefund" :key="$route.path" />
<div v-if="isCN||isGitee" class="sidebar-heading" style="color:auto;padding-top:8px;margin-bottom:-8px">
<!-- <div v-if="isCN||isGitee" class="sidebar-heading" style="color:auto;padding-top:8px;margin-bottom:-8px">
<span>赞助商</span>
<div>
<ul
Expand Down Expand Up @@ -59,7 +59,7 @@
</li>
</ul>
</div>
</div>
</div> -->

</div>
<slot slot="bottom" name="sidebar-bottom" />
Expand Down Expand Up @@ -182,23 +182,25 @@ export default {
$route: {
handler(val, oldVal) {
if (this.$isServer) return
if (document.getElementById('carbonads') && !this.isCN) {
if (document.getElementById('carbonads')) {
window._carbonads && window._carbonads.refresh()
}
},
immediate: true
},
$lang(val) {
if (val !== 'zh-CN') {
loadCarbon()
}
// if (val !== 'zh-CN') {
// loadCarbon()
// }
loadCarbon()
}
},
mounted() {
loadGitter()
if (!this.isCN) {
loadCarbon()
}
// loadGitter()
// if (!this.isCN) {
// loadCarbon()
// }
loadCarbon()
window.addEventListener('scroll', this.onScroll)
// configure progress bar
Expand Down Expand Up @@ -401,7 +403,7 @@ export default {
line-height: 1;
}
#carbonads :lang(zh-CN) {
/* #carbonads :lang(zh-CN) {
display: none;
}
} */
</style>

0 comments on commit 34667aa

Please sign in to comment.