-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7523c5a
commit 165b9c7
Showing
7 changed files
with
992 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<script setup> | ||
import DefaultTheme from "vitepress/theme"; | ||
import { onMounted } from "vue"; | ||
import { useRouter } from "vitepress"; | ||
import mediumZoom from "medium-zoom"; | ||
const { Layout } = DefaultTheme; | ||
const router = useRouter(); | ||
const setupZoom = () => { | ||
mediumZoom("[data-zoomable]", { | ||
background: "transparent", | ||
}); | ||
}; | ||
onMounted(setupZoom); | ||
router.onAfterRouteChanged = setupZoom; | ||
</script> | ||
|
||
<template> | ||
<Layout /> | ||
</template> | ||
|
||
<style> | ||
.zoom-overlay { | ||
backdrop-filter: blur(5rem); | ||
} | ||
.zoom-overlay, | ||
.zoom-image--opened { | ||
z-index: 999; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import DefaultTheme from "vitepress/theme"; | ||
import Layout from "./Layout.vue"; | ||
import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client' | ||
import '@nolebase/vitepress-plugin-git-changelog/client/style.css' | ||
|
||
export default { | ||
extends: DefaultTheme, | ||
Layout, | ||
enhanceApp({app}) | ||
{ | ||
app.use(NolebaseGitChangelogPlugin); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.