mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
🎉 New website!
This commit is contained in:
parent
28f602b9ad
commit
c97a0abf92
68 changed files with 8433 additions and 353 deletions
15
.vitepress/theme/components/ToggleStarred.vue
Normal file
15
.vitepress/theme/components/ToggleStarred.vue
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<script setup lang="ts">
|
||||
import Switch from "./Switch.vue";
|
||||
|
||||
const toggleStarred = () => document.documentElement.classList.toggle("starred-only");
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Switch @click="toggleStarred()" />
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.starred-only li:not(.starred) {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue