mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 11:17:42 +00:00
commit
f0766e5b7f
@ -55,7 +55,8 @@ export default {
|
|||||||
components: { SidebarButton, NavLinks, AlgoliaSearchBox, SearchBox},
|
components: { SidebarButton, NavLinks, AlgoliaSearchBox, SearchBox},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
linksWrapMaxWidth: null
|
linksWrapMaxWidth: null,
|
||||||
|
isAlpha: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
@ -71,14 +72,11 @@ export default {
|
|||||||
}
|
}
|
||||||
handleLinksWrapWidth()
|
handleLinksWrapWidth()
|
||||||
window.addEventListener('resize', handleLinksWrapWidth, false)
|
window.addEventListener('resize', handleLinksWrapWidth, false)
|
||||||
|
this.isAlpha = /documentation\/3.0.0-alpha.x/.test(window.location.href)
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
algolia () {
|
algolia () {
|
||||||
return this.$themeLocaleConfig.algolia || this.$site.themeConfig.algolia || {}
|
return this.$themeLocaleConfig.algolia || this.$site.themeConfig.algolia || {}
|
||||||
},
|
|
||||||
|
|
||||||
isAlpha () {
|
|
||||||
return /documentation\/3.0.0-alpha.x/.test(window.location.href)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user