Skip to content

Commit d8ea789

Browse files
authored
docs: add madvue banner (#2949)
1 parent 4865716 commit d8ea789

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

packages/docs/.vitepress/theme/components/MadVueBanner.vue

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { ref, onMounted } from 'vue'
33
44
const isVisible = ref(false)
5-
const nameStorage = 'MADVUE-BANNER-MARCH-2025'
5+
const nameStorage = 'MADVUE-BANNER-MARCH-25'
66
const target = 'https://madvue.es/?utm_source=pinia&utm_content=top_banner'
77
88
function closeBanner() {
@@ -18,17 +18,20 @@ onMounted(() => {
1818
return
1919
}
2020
21-
const keys = Object.keys(localStorage).filter(
22-
(key) => key.includes('FREEWEEKEND25') && key.endsWith('_CLOSED')
23-
)
21+
isVisible.value = true
22+
document.documentElement.classList.add('has-banner')
2423
25-
if (
26-
keys.length > 0 &&
27-
keys.every((key) => localStorage.getItem(key) != null)
28-
) {
29-
isVisible.value = true
30-
document.documentElement.classList.add('has-banner')
31-
}
24+
// const keys = Object.keys(localStorage).filter(
25+
// (key) => key.includes('FREEWEEKEND25') && key.endsWith('_CLOSED')
26+
// )
27+
28+
// if (
29+
// keys.length > 0 &&
30+
// keys.every((key) => localStorage.getItem(key) != null)
31+
// ) {
32+
// isVisible.value = true
33+
// document.documentElement.classList.add('has-banner')
34+
// }
3235
})
3336
</script>
3437

0 commit comments

Comments
 (0)