From 7c9fe9235c75459323dce92acc871ea957c63289 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Wed, 28 Feb 2024 17:57:13 +0100 Subject: [PATCH] Example of toaster --- frontend/package-lock.json | 30 +++++++++++++++++++++++------- frontend/package.json | 4 ++-- frontend/src/App.vue | 11 ++++++++--- frontend/src/main.js | 2 ++ 4 files changed, 35 insertions(+), 12 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index f324a1d..1b6cf73 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -8,8 +8,8 @@ "name": "clyde", "version": "0.0.0", "dependencies": { - "toastify-js": "^1.12.0", - "vue": "^3.4.15" + "vue": "^3.4.15", + "vue3-toastify": "^0.2.1" }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.3", @@ -2168,11 +2168,6 @@ "node": ">=14.0.0" } }, - "node_modules/toastify-js": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/toastify-js/-/toastify-js-1.12.0.tgz", - "integrity": "sha512-HeMHCO9yLPvP9k0apGSdPUWrUbLnxUKNFzgUoZp1PHCLploIX/4DSQ7V8H25ef+h4iO9n0he7ImfcndnN6nDrQ==" - }, "node_modules/tough-cookie": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", @@ -2402,6 +2397,27 @@ "integrity": "sha512-0vOfAtI67UjeO1G6UiX5Kd76CqaQ67wrRZiOe7UAb9Jm6GzlUr/fC7CV90XfwapJRjpCMaZFhv1V0ajWRmE9Dg==", "dev": true }, + "node_modules/vue3-toastify": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/vue3-toastify/-/vue3-toastify-0.2.1.tgz", + "integrity": "sha512-u4i5LCu1q5qs4L4Kbjb4u8NipCS8ox1fCHQ6XFS62676xnA6Q/AJRpZEkAurTMp723LeH6eQX6k9+24bKf1T4Q==", + "workspaces": [ + "docs", + "playground" + ], + "engines": { + "node": ">=16", + "npm": ">=7" + }, + "peerDependencies": { + "vue": ">=3.2.0" + }, + "peerDependenciesMeta": { + "vue": { + "optional": true + } + } + }, "node_modules/w3c-xmlserializer": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index d4c73ab..7fef311 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -10,8 +10,8 @@ "test:unit": "vitest" }, "dependencies": { - "toastify-js": "^1.12.0", - "vue": "^3.4.15" + "vue": "^3.4.15", + "vue3-toastify": "^0.2.1" }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.3", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 6fef200..e77b88d 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,10 +1,15 @@