From 19167091cf6ec905079f9007246a3d95b5903d0d Mon Sep 17 00:00:00 2001 From: alan890104 Date: Sat, 29 Apr 2023 17:44:40 +0800 Subject: [PATCH] feat: add pending transaction --- package.json | 1 + src/App.vue | 2 ++ src/components/AppHeader.vue | 22 +++++++++++++++++----- src/components/VUpload/PanelUpload.vue | 14 ++++++++++---- yarn.lock | 5 +++++ 5 files changed, 35 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 0296416..92368c8 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "ethers": "^5.7.2", "ipfs-core": "^0.18.0", "jszip": "^3.10.1", + "mitt": "^3.0.0", "notyf": "^3.10.0", "pinia": "^2.0.0-rc.6", "uuid": "^9.0.0", diff --git a/src/App.vue b/src/App.vue index 68a04ab..88ac1b5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,6 +17,7 @@ import ReloadPrompt from "@src/components/ReloadPrompt.vue"; import Footer from "./components/Footer.vue"; import { Notyf } from "notyf"; import { provide } from "vue"; +import mitt from "mitt"; export default { name: "App", @@ -45,6 +46,7 @@ export default { ] }) provide("notyf", NotfyProvider); + provide("emitter", mitt()); } } diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 5b6c50d..8768232 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -15,7 +15,7 @@ - + Connect @@ -23,19 +23,29 @@