made emojipicker work 10x better, also fixed a few bugs

This commit is contained in:
Zoe
2023-01-20 00:48:49 -06:00
parent bf5245bec4
commit b6d3b045aa
15 changed files with 625 additions and 586 deletions

12
plugins/mitt.ts Normal file
View File

@@ -0,0 +1,12 @@
import mitt from 'mitt'
export default defineNuxtPlugin(() => {
const emitter = mitt()
return {
provide: {
emit: emitter.emit, // Will emit an event
listen: emitter.on // Will register a listener for an event
}
}
})