feat: add easy-jyy Slidev theme

This commit is contained in:
2026-08-29 18:59:41 +08:00
parent 33152a90dc
commit 5224d45994
23 changed files with 1875 additions and 0 deletions
@@ -0,0 +1,31 @@
<script setup lang="ts">
import { useNav } from '@slidev/client'
import { onBeforeUnmount, onMounted, watch } from 'vue'
const nav = useNav()
function isInteractiveRoute() {
if (/(?:^|\/)(?:overview|export|editor|notes|notes-edit|print)(?:\/|$)/.test(window.location.pathname))
return false
return nav.isPresenter.value || nav.hasPrimarySlide.value
}
function syncScrollFallback() {
document.body.classList.toggle('easy-slide-scroll-fallback', isInteractiveRoute())
}
onMounted(syncScrollFallback)
watch(
[nav.isPresenter, nav.hasPrimarySlide],
syncScrollFallback,
)
onBeforeUnmount(() => {
document.body.classList.remove('easy-slide-scroll-fallback')
})
</script>
<template>
<span hidden aria-hidden="true" />
</template>