docs/.vitepress/theme/components/DevOnly.vue

996d569334aead93e7388d2447be33599af3026c
wotaku/docs/.vitepress/theme/components/DevOnly.vue
taskylizard fix oopsie, format5b7264f968 1 year ago

15 lines · 292 bytes

 1<script setup lang="ts">
 2defineProps<{
 3  fallback?: string
 4}>()
 5
 6const isDev = import.meta.env.DEV
 7</script>
 8
 9<template>
10  <div v-if="isDev" class="vp-doc vp-doc-content">
11    <slot />
12  </div>
13  <div v-else-if="fallback" class="vp-doc vp-doc-content" v-html="fallback">
14  </div>
15</template>
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form