Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
:bug: Fixed error on Download feed
Liyas Thomas6bcd53276787
diff --git a/components/firebase/feeds.vue b/components/firebase/feeds.vueindex dd1715a42..89bd4c1fc 100644--- a/components/firebase/feeds.vue+++ b/components/firebase/feeds.vue@@ -59,13 +59,12 @@ export default {methods: {deleteFeed(feed) {fb.deleteFeed(feed.id);+ this.$toast.error(this.$t("deleted"), {+ icon: "delete"+ });},saveFeed(feed) {- const dataToWrite = JSON.stringify(- eval("(" + feed.message + ")"),- null,- 2- );+ const dataToWrite = JSON.stringify(feed.message, null, 2);const file = new Blob([dataToWrite], { type: "application/json" });const a = document.createElement("a"),url = URL.createObjectURL(file);diff --git a/functions/fb.js b/functions/fb.jsindex 9fa838363..a9fa957fc 100644--- a/functions/fb.js+++ b/functions/fb.js@@ -40,11 +40,12 @@ export const fb = {return console.error("error inserting", dt, e);}},- deleteFeed: id =>+ deleteFeed: id => {feedsCollection.doc(id).delete()- .catch(e => console.error("error deleting", dt, e)),+ .catch(e => console.error("error deleting", dt, e));+ },writeSettings: async (setting, value) => {const st = {updatedOn: new Date(),diff --git a/pages/settings.vue b/pages/settings.vueindex c6160da37..4a26bbe0e 100644--- a/pages/settings.vue+++ b/pages/settings.vue@@ -6,7 +6,7 @@<div v-if="!fb.currentUser"><label>{{ $t("login_with") }}</label><p>- <button class="icon" @click="signInWithGoogle" v-close-popover>+ <button class="icon" @click="signInWithGoogle"><svgxmlns="http://www.w3.org/2000/svg"width="24"@@ -21,7 +21,7 @@<span>Google</span></button><br />- <button class="icon" @click="signInWithGithub" v-close-popover>+ <button class="icon" @click="signInWithGithub"><svgxmlns="http://www.w3.org/2000/svg"width="24"@@ -57,12 +57,12 @@</span></button><br />- <button class="icon" @click="logout" v-close-popover>+ <button class="icon" @click="logout"><i class="material-icons">exit_to_app</i><span>{{ $t("logout") }}</span></button><br />- <p v-for="setting in fb.currentSettings">+ <p v-for="setting in fb.currentSettings" :key="setting.id"><pw-toggle:key="setting.name":on="setting.value"