chore: migrate to @nuxt/module-builder

This commit is contained in:
Benjamin Canac
2022-01-21 14:32:11 +01:00
parent 78013a7b25
commit 39bba82079
9 changed files with 1145 additions and 503 deletions

View File

@@ -1,7 +1,7 @@
import { nanoid } from 'nanoid'
import { Ref } from 'vue'
import { defineNuxtPlugin, useState } from '#app'
import { ToastNotification, ToastPlugin } from '../../types'
import { ToastNotification, ToastPlugin } from '../types/toast'
export default defineNuxtPlugin((nuxtApp) => {
const notifications: Ref<ToastNotification[]> = useState('notifications', () => [])