Skip to content

Commit 1c03603

Browse files
authored
Merge pull request #997 from vitest-dev/sync-07905088-1
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 0790508
2 parents bcf195a + ec0ec2c commit 1c03603

4 files changed

Lines changed: 460 additions & 257 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<script setup lang="ts">
2+
const phases = [
3+
{ emoji: '🌑', alt: 'new moon' },
4+
{ emoji: '🌒', alt: 'waxing crescent moon' },
5+
{ emoji: '🌓', alt: 'first quarter moon' },
6+
{ emoji: '🌔', alt: 'waxing gibbous moon' },
7+
{ emoji: '🌕', alt: 'full moon' },
8+
{ emoji: '🌖', alt: 'waning gibbous moon' },
9+
{ emoji: '🌗', alt: 'last quarter moon' },
10+
{ emoji: '🌘', alt: 'waning crescent moon' },
11+
]
12+
13+
const phase = phases[
14+
Math.floor(Math.random() * phases.length)
15+
]
16+
</script>
17+
18+
<template>
19+
<span :aria-label="phase.alt">{{ phase.emoji }}</span>
20+
</template>

0 commit comments

Comments
 (0)