fix(docs): algolia searching (#5926)

* fix(docs): algolia searching

- Fix algolia searching hit component
- Comment the code which is not used and causing warning in dev mode

* Fix Linter complains
This commit is contained in:
jeremywu 2022-02-10 17:30:00 +08:00 committed by GitHub
parent bcd5c8b848
commit 5c095d3a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 17 deletions

View File

@ -108,7 +108,7 @@ useEventListener(window, 'scroll', handleScroll)
<template>
<div ref="target" class="home-page">
<template v-if="isBeforeRelease">
<!-- <template v-if="isBeforeRelease">
<div class="banner">
<div class="banner-desc banner-dot">
<h1>
@ -152,27 +152,25 @@ useEventListener(window, 'scroll', handleScroll)
</div>
</div>
</div>
</template>
<template v-else>
<div class="banner">
<div class="banner-desc">
<h1>{{ homeLang['title'] }}</h1>
<p>{{ homeLang['title_sub'] }}</p>
</div>
</template> -->
<div class="banner">
<div class="banner-desc">
<h1>{{ homeLang['title'] }}</h1>
<p>{{ homeLang['title_sub'] }}</p>
</div>
<div ref="jumbotronRef" class="jumbotron">
<div :style="containerStyle">
<div :style="cardStyle">
<div class="banner" :style="layer0">
<img src="/images/theme-index-blue.png" alt="banner" />
<div class="jumbotron-red" :style="jumbotronRedStyle">
<img src="/images/theme-index-red.png" alt="" />
</div>
</div>
<div ref="jumbotronRef" class="jumbotron">
<div :style="containerStyle">
<div :style="cardStyle">
<div class="banner" :style="layer0">
<img src="/images/theme-index-blue.png" alt="banner" />
<div class="jumbotron-red" :style="jumbotronRedStyle">
<img src="/images/theme-index-red.png" alt="" />
</div>
</div>
</div>
</div>
</template>
</div>
<div class="sponsors-container">
<div class="sponsors-list">
<a

View File

@ -134,6 +134,7 @@ function initialize(userOptions: any) {
},
children,
},
__v: null,
}
},
})