chore: lint and fmt

This commit is contained in:
Julien Calixte
2026-03-28 09:38:55 +01:00
parent 8e8706e258
commit 5f48aa5690
108 changed files with 726 additions and 680 deletions

View File

@@ -1,16 +1,16 @@
import { useMagicKeys } from '@vueuse/core'
import { ref, watch } from 'vue'
import { useMagicKeys } from "@vueuse/core"
import { ref, watch } from "vue"
export const useEditionMode = () => {
const mode = ref<'read' | 'edit'>('read')
const mode = ref<"read" | "edit">("read")
const toggleMode = () => {
mode.value = mode.value === 'read' ? 'edit' : 'read'
mode.value = mode.value === "read" ? "edit" : "read"
}
const { escape } = useMagicKeys()
watch(escape, () => {
if (mode.value === 'edit') {
if (mode.value === "edit") {
toggleMode()
}
})