From b3d63dd99cfbc62eb072713d6bceda5489a8b9a9 Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Sun, 18 Sep 2022 20:07:37 +0200 Subject: [PATCH] added upload ledenlijst --- frontend/package-lock.json | 17 ++++- frontend/package.json | 3 +- frontend/pages/settings/admin/ledenlijst.vue | 75 +++++++++++++++++++- frontend/plugins/toast.js | 6 ++ 4 files changed, 98 insertions(+), 3 deletions(-) create mode 100644 frontend/plugins/toast.js diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 5be5a57..f01d768 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -6,7 +6,8 @@ "": { "hasInstallScript": true, "dependencies": { - "@formkit/nuxt": "^1.0.0-beta.10" + "@formkit/nuxt": "^1.0.0-beta.10", + "vue-toastification": "^2.0.0-rc.5" }, "devDependencies": { "@nuxtjs/tailwindcss": "^5.3.3", @@ -9186,6 +9187,14 @@ "vue": "^3.2.0" } }, + "node_modules/vue-toastification": { + "version": "2.0.0-rc.5", + "resolved": "https://registry.npmjs.org/vue-toastification/-/vue-toastification-2.0.0-rc.5.tgz", + "integrity": "sha512-q73e5jy6gucEO/U+P48hqX+/qyXDozAGmaGgLFm5tXX4wJBcVsnGp4e/iJqlm9xzHETYOilUuwOUje2Qg1JdwA==", + "peerDependencies": { + "vue": "^3.0.2" + } + }, "node_modules/watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", @@ -16272,6 +16281,12 @@ "@vue/devtools-api": "^6.1.4" } }, + "vue-toastification": { + "version": "2.0.0-rc.5", + "resolved": "https://registry.npmjs.org/vue-toastification/-/vue-toastification-2.0.0-rc.5.tgz", + "integrity": "sha512-q73e5jy6gucEO/U+P48hqX+/qyXDozAGmaGgLFm5tXX4wJBcVsnGp4e/iJqlm9xzHETYOilUuwOUje2Qg1JdwA==", + "requires": {} + }, "watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index 26b2bf5..fc976f5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -15,6 +15,7 @@ "nuxt-icon": "^0.1.5" }, "dependencies": { - "@formkit/nuxt": "^1.0.0-beta.10" + "@formkit/nuxt": "^1.0.0-beta.10", + "vue-toastification": "^2.0.0-rc.5" } } diff --git a/frontend/pages/settings/admin/ledenlijst.vue b/frontend/pages/settings/admin/ledenlijst.vue index 8f2e543..a28b87a 100644 --- a/frontend/pages/settings/admin/ledenlijst.vue +++ b/frontend/pages/settings/admin/ledenlijst.vue @@ -12,13 +12,18 @@ \ No newline at end of file diff --git a/frontend/plugins/toast.js b/frontend/plugins/toast.js new file mode 100644 index 0000000..8ec7f9b --- /dev/null +++ b/frontend/plugins/toast.js @@ -0,0 +1,6 @@ +import Toast from "vue-toastification"; +import "vue-toastification/dist/index.css"; + +export default defineNuxtPlugin((nuxtApp) => { + nuxtApp.vueApp.use(Toast) +}) \ No newline at end of file