diff --git a/README.md b/README.md index a77f29440..0093dee15 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

- A free, fast & beautiful API request builder + A free, fast and beautiful API request builder

Web alternative to Postman - Helps you create requests faster, saving precious time on development - Subscribe diff --git a/layouts/default.vue b/layouts/default.vue index b029eff92..4302a71f8 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -373,7 +373,7 @@

+
@@ -672,7 +681,7 @@ export default { methods: { getSpecialKey() { - return (/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)) ? "⌘" : "Ctrl"; + return /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘" : "Ctrl"; }, linkActive(path) { return { @@ -680,7 +689,6 @@ export default { "nuxt-link-active": this.$route.path === path }; }, - logout() { fb.currentUser = null; firebase @@ -694,6 +702,21 @@ export default { this.$toast.info(this.$t("logged_out"), { icon: "vpn_key" }); + }, + nativeShare() { + if (navigator.share) { + navigator + .share({ + title: "Postwoman", + text: + "Postwoman • A free, fast and beautiful API request builder - Web alternative to Postman - Helps you create requests faster, saving precious time on development.", + url: "https://postwoman.io/" + }) + .then(() => {}) + .catch(console.error); + } else { + // fallback + } } }, @@ -709,7 +732,8 @@ export default { showSupport: false, firefoxExtInstalled: window.firefoxExtSendRequest, chromeExtInstalled: window.chrome && hasChromeExtensionInstalled(), - fb + fb, + navigatorShare: navigator.share }; }, diff --git a/nuxt.config.js b/nuxt.config.js index 66f07cc06..8dbdf656d 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -2,9 +2,9 @@ // TODO: Use these when rendering the pages (rather than just for head/meta tags...) export const meta = { name: "Postwoman", - shortDescription: "API request builder", + shortDescription: "A free, fast and beautiful API request builder", description: - "The Postwoman API request builder helps you create your requests faster, saving you precious time on your development." + "Web alternative to Postman - Helps you create requests faster, saving precious time on development." }; // Sets the base path for the router. // Important for deploying to GitHub pages. diff --git a/package-lock.json b/package-lock.json index 4c7813e8a..d3bf154b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -991,9 +991,9 @@ } }, "@firebase/firestore": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@firebase/firestore/-/firestore-1.10.1.tgz", - "integrity": "sha512-104SkNefcasRWwHZPUx0LLAhiOdb2ZG9c28hJIiUTKoehZKS/FvdSA2fXMsWvXshuUS3RJO70/eCtbqMKJU9/w==", + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/@firebase/firestore/-/firestore-1.10.2.tgz", + "integrity": "sha512-Ay9V7eLYNEt12STCfmUxtyu4IBWIgOONzxoRUnkK1nmNbvket7XhSCfij4P4pi3qx4kdpp+hzjUl6ndVbh7y5Q==", "requires": { "@firebase/component": "0.1.5", "@firebase/firestore-types": "1.9.1", @@ -4078,9 +4078,9 @@ "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=" }, "cypress": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-4.0.1.tgz", - "integrity": "sha512-P+cSwc5yE+1hIkWwJzpsiSQthKmzkFeFz2ySejSrJJ6FiXoL8pp0vr1cyWp+75KT4nqL9IYt1GMrHp+mVmvocA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-4.0.2.tgz", + "integrity": "sha512-WRzxOoSd+TxyXKa7Zi9orz3ii5VW7yhhVYstCU+EpOKfPan9x5Ww2Clucmy4H/W0GHUYAo7GYFZRD33ZCSNBQA==", "dev": true, "requires": { "@cypress/listr-verbose-renderer": "0.4.1", @@ -5194,16 +5194,16 @@ } }, "firebase": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/firebase/-/firebase-7.8.1.tgz", - "integrity": "sha512-Ji1/21pNvxW3gbBo/iTtXFJsTTWzcDoMeCRx+NJ7/uUVYvmX91WjhnwO84OusHIo9WMs54kosoOWL0i6PZyWwg==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/firebase/-/firebase-7.8.2.tgz", + "integrity": "sha512-qB/YopC6PVYTe2Q8hSwDD9CLdQHiMN1HUj/rxFxoICJR1VGkHP2KUvx2gv990V7CwzXIruLWoz9MwCOHFj9D0w==", "requires": { "@firebase/analytics": "0.2.13", "@firebase/app": "0.5.4", "@firebase/app-types": "0.5.1", "@firebase/auth": "0.13.5", "@firebase/database": "0.5.21", - "@firebase/firestore": "1.10.1", + "@firebase/firestore": "1.10.2", "@firebase/functions": "0.4.32", "@firebase/installations": "0.4.2", "@firebase/messaging": "0.6.4", @@ -9676,9 +9676,9 @@ }, "dependencies": { "@types/node": { - "version": "10.17.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.14.tgz", - "integrity": "sha512-G0UmX5uKEmW+ZAhmZ6PLTQ5eu/VPaT+d/tdLd5IFsKRPcbe6lPxocBtcYBFSaLaCW8O60AX90e91Nsp8lVHCNw==" + "version": "10.17.15", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.15.tgz", + "integrity": "sha512-daFGV9GSs6USfPgxceDA8nlSe48XrVCJfDeYm7eokxq/ye7iuOH87hKXgMtEAVLFapkczbZsx868PMDT1Y0a6A==" } } }, diff --git a/package.json b/package.json index 784123fa4..6311d60db 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@nuxtjs/sitemap": "^2.0.1", "@nuxtjs/toast": "^3.3.0", "ace-builds": "^1.4.8", - "firebase": "^7.8.1", + "firebase": "^7.8.2", "graphql": "^14.6.0", "nuxt": "^2.11.0", "nuxt-i18n": "^6.5.0", @@ -38,7 +38,7 @@ "yargs-parser": "^17.0.0" }, "devDependencies": { - "cypress": "^4.0.1", + "cypress": "^4.0.2", "node-sass": "^4.13.1", "sass-loader": "^8.0.2", "start-server-and-test": "^1.10.8" diff --git a/pages/index.vue b/pages/index.vue index 7d4c49514..e74fd46ea 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -2382,7 +2382,7 @@ export default { const date = new Date().toLocaleDateString(); navigator .share({ - title: `Postwoman`, + title: "Postwoman", text: `Postwoman • API request builder at ${time} on ${date}`, url: window.location.href })