Add plugins

This commit is contained in:
marzban-dev
2024-12-11 20:15:17 +03:30
parent b52abb3aa7
commit 423784fba5
5 changed files with 105 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import Toast, { useToast } from "vue-toastification";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(Toast, {
position: "top-center",
hideProgressBar: true,
transition: "Vue-Toastification__fade",
maxToasts: 3,
closeButton: false,
timeout: 1800,
});
return {
provide: {
toast: useToast(),
},
};
});