Merge branch 'master' into feature/postmanParsing

This commit is contained in:
Jacob Anavisca
2020-02-15 17:39:28 -05:00
committed by GitHub
6 changed files with 47 additions and 23 deletions

View File

@@ -3,7 +3,7 @@
<br>
<br>
<p>
<b>A free, fast & beautiful API request builder</b>
<b>A free, fast and beautiful API request builder</b>
</p>
<p>
<i>Web alternative to Postman - Helps you create requests faster, saving precious time on development - <a href="https://postwoman.launchaco.com">Subscribe</a></i>

View File

@@ -373,7 +373,7 @@
<div>
<button
class="icon"
onClick="window.open('https://twitter.com/share?text=👽 Postwoman • API request builder - Helps you create your requests faster, saving you precious time on your development&url=https://postwoman.io&hashtags=postwoman&via=liyasthomas');"
onClick="window.open('https://twitter.com/share?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&hashtags=postwoman&via=liyasthomas');"
v-close-popover
>
<svg
@@ -388,6 +388,15 @@
</svg>
<span>{{ $t("tweet") }}</span>
</button>
<button
v-if="navigatorShare"
class="icon"
@click="nativeShare"
v-close-popover
v-tooltip="$t('more')"
>
<i class="material-icons">share</i>
</button>
</div>
</template>
</v-popover>
@@ -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
};
},

View File

@@ -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.

26
package-lock.json generated
View File

@@ -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=="
}
}
},

View File

@@ -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"

View File

@@ -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
})