chore(docs): lint

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-11 20:29:53 +02:00
parent f4616af840
commit 4454867c36
9 changed files with 41 additions and 15 deletions
+2 -1
View File
@@ -10,10 +10,11 @@ const emit = defineEmits(['pane'])
const getNodeClass: ClassFunc<GraphNode> = (el) => {
const classes = ['font-semibold', '!border-2', 'transition-colors', 'duration-300', 'ease-in-out']
if (el.selected)
if (el.selected) {
classes.push(
...['!border-green-500/80', '!shadow-md', '!shadow-green-500/50', '!bg-green-100/80 dark:(!bg-white)', '!text-gray-700'],
)
}
return classes.join(' ')
}
+8 -3
View File
@@ -75,13 +75,18 @@ const clicks = ref(0)
const disabled = ref(false)
const confettiColors = Object.values(colors).flatMap((color) => {
if (typeof color === 'string') return color
else return Object.values(color).flatMap((c) => c)
if (typeof color === 'string') {
return color
} else {
return Object.values(color).flatMap((c) => c)
}
})
onNodeClick(async ({ node }) => {
if (node.id === 'intro') {
if (disabled.value) return
if (disabled.value) {
return
}
animatedBackground.value = !animatedBackground.value