mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
refactor: rename topbar to topBar
This commit is contained in:
@@ -266,7 +266,7 @@ provide('scrollbarRef', scrollbarRef)
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- Topbar -->
|
||||
<!-- TopBar -->
|
||||
<div m-auto max-w="$bew-page-max-width">
|
||||
<Transition name="top-bar">
|
||||
<TopBar
|
||||
|
||||
@@ -42,8 +42,8 @@ onMounted(async () => {
|
||||
favoriteResources.length = 0
|
||||
handleSearch()
|
||||
})
|
||||
emitter.off('topbarVisibleChange')
|
||||
emitter.on('topbarVisibleChange', (val) => {
|
||||
emitter.off('topBarVisibleChange')
|
||||
emitter.on('topBarVisibleChange', (val) => {
|
||||
shouldMoveCtrlBarUp.value = false
|
||||
|
||||
// Allow moving tabs up only when the top bar is not hidden & is set to auto-hide
|
||||
@@ -62,7 +62,7 @@ onMounted(async () => {
|
||||
onUnmounted(() => {
|
||||
emitter.off('reachBottom')
|
||||
emitter.off('pageRefresh')
|
||||
emitter.off('topbarVisibleChange')
|
||||
emitter.off('topBarVisibleChange')
|
||||
})
|
||||
|
||||
async function getFavoriteCategories() {
|
||||
|
||||
@@ -55,8 +55,8 @@ onMounted(() => {
|
||||
emitter.on('pageRefresh', async () => {
|
||||
recommendContentKey.value = `recommendContent${Number(new Date())}`
|
||||
})
|
||||
emitter.off('topbarVisibleChange')
|
||||
emitter.on('topbarVisibleChange', (val) => {
|
||||
emitter.off('topBarVisibleChange')
|
||||
emitter.on('topBarVisibleChange', (val) => {
|
||||
shouldMoveTabsUp.value = false
|
||||
|
||||
// Allow moving tabs up only when the top bar is not hidden & is set to auto-hide
|
||||
@@ -74,7 +74,7 @@ onMounted(() => {
|
||||
|
||||
onUnmounted(() => {
|
||||
emitter.off('pageRefresh')
|
||||
emitter.off('topbarVisibleChange')
|
||||
emitter.off('topBarVisibleChange')
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ watch(() => activatedRankingType.value.id, () => {
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
emitter.on('topbarVisibleChange', (val) => {
|
||||
emitter.on('topBarVisibleChange', (val) => {
|
||||
shouldMoveAsideUp.value = false
|
||||
|
||||
// Allow moving tabs up only when the top bar is not hidden & is set to auto-hide
|
||||
@@ -75,7 +75,7 @@ onMounted(() => {
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
emitter.off('topbarVisibleChange')
|
||||
emitter.off('topBarVisibleChange')
|
||||
})
|
||||
|
||||
function getRankingVideos() {
|
||||
|
||||
Reference in New Issue
Block a user