various improvements

This commit is contained in:
Zoe
2023-04-20 21:19:22 -05:00
parent b6d3b045aa
commit 3ea8167569
60 changed files with 12369 additions and 7625 deletions

18
plugins/mitt.ts Normal file → Executable file
View File

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