diff --git a/README.md b/README.md index c27261def..2ffff8300 100644 --- a/README.md +++ b/README.md @@ -218,8 +218,11 @@ _**All `i18n` contributions are welcome to `i18n` [branch](https://github.com/li 📦 **Add-ons**: Official add-ons for Postwoman. - - **[Postwoman Proxy β](https://github.com/postwoman-io/postwoman-proxy)** - A simple proxy server created for Postwoman - - **[Postwoman CLI β](https://github.com/postwoman-io/postwoman-cli)** - A CLI solution for Postwoman + - **[Proxy β](https://github.com/postwoman-io/postwoman-proxy)** - A simple proxy server created for Postwoman + - **[CLI β](https://github.com/postwoman-io/postwoman-cli)** - A CLI solution for Postwoman + - **[Browser Extensions](https://github.com/postwoman-io/postwoman-cli)** - Browser extensions that simplifies access to Postwoman + + [ **Firefox**]() |  **Chrome (coming soon)** _Add-ons are developed and maintained under **[Official Postwoman Organization](https://github.com/postwoman-io)**_ diff --git a/lang/en-US.js b/lang/en-US.js index 3a70eb8b5..baa78e0fb 100644 --- a/lang/en-US.js +++ b/lang/en-US.js @@ -245,5 +245,8 @@ export default { go_home: "Go Home", reload: "Reload", enter_curl: "Enter cURL", - empty: "Empty" + empty: "Empty", + extensions: "Extensions", + extensions_info1: "Browser extension that simplifies access to Postwoman", + extensions_info2: "Get Postwoman browser extension!" }; diff --git a/layouts/default.vue b/layouts/default.vue index 6ed7a7c0c..bdba8e0d0 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -293,6 +293,16 @@ more_vert + + + extension + {{ $t("extensions") }} + + + + + + + + {{ $t("extensions") }} + + + close + + + + + + + + + {{ $t("extensions_info1") }} + + + + + + + + Firefox + + + + + + + + + Chrome (coming soon) + + + + + @@ -532,6 +602,7 @@ export default { // prompt. showInstallPrompt: null, version: {}, + showExtensions: false, showShortcuts: false, showSupport: false }; @@ -591,6 +662,33 @@ export default { ] }); } + let showExtensionsToast = + localStorage.getItem("showExtensionsToast") === "yes"; + if (!showExtensionsToast) { + setTimeout(() => { + this.$toast.show(this.$t("extensions_info2"), { + icon: "extension", + duration: 5000, + theme: "toasted-primary", + action: [ + { + text: this.$t("yes"), + onClick: (e, toastObject) => { + this.showExtensions = true; + localStorage.setItem("showExtensionsToast", "yes"); + toastObject.goAway(0); + } + }, + { + text: this.$t("no"), + onClick: (e, toastObject) => { + toastObject.goAway(0); + } + } + ] + }); + }, 10000); + } })(); window.addEventListener("scroll", event => {
+ {{ $t("extensions_info1") }} +