From 8b75b99034a9501add1a4d13c0a083a4036f920f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Gabald=C3=B3n=20Rico?= Date: Tue, 29 Jun 2021 15:37:53 +0200 Subject: [PATCH] feat: add data request examples --- package.json | 3 +- src/components/EditorToolBar.vue | 3 ++ src/components/steps/Loading.vue | 9 +++- src/constants.js | 15 ++++++ src/radExamples/bitcoinPrice.js | 49 +++++++++++++++++++ src/radExamples/ethPrice.js | 60 +++++++++++++++++++++++ src/store/rad.js | 20 +++++++- yarn.lock | 83 +++++++++++++++++++++++++++++++- 8 files changed, 236 insertions(+), 6 deletions(-) create mode 100644 src/radExamples/bitcoinPrice.js create mode 100644 src/radExamples/ethPrice.js diff --git a/package.json b/package.json index d2b16be8d..104d68d19 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,8 @@ "vue-observe-visibility": "^0.4.6", "vue-router": "^3.0.3", "vuex": "^3.0.1", - "witnet-radon-js": "0.8.4" + "witnet-radon-js": "0.8.4", + "witnet-requests": "git+https://github.com/witnet/witnet-requests-js" }, "devDependencies": { "@babel/compat-data": "7.9.0", diff --git a/src/components/EditorToolBar.vue b/src/components/EditorToolBar.vue index ec2861327..7ecd7a5ba 100644 --- a/src/components/EditorToolBar.vue +++ b/src/components/EditorToolBar.vue @@ -164,6 +164,9 @@ export default { }, }, }, + beforeDestroy() { + this.clear() + }, methods: { ...mapMutations({ undo: EDITOR_UNDO, diff --git a/src/components/steps/Loading.vue b/src/components/steps/Loading.vue index 40ef9cc0c..43421b77e 100644 --- a/src/components/steps/Loading.vue +++ b/src/components/steps/Loading.vue @@ -9,10 +9,10 @@