diff --git a/.travis.yml b/.travis.yml index 0223e03ab..92275152d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,38 +13,40 @@ language: node_js node_js: - - "12" + - "12" + +os: linux addons: - apt: - packages: - - libgconf-2-4 # cypress binary dependency + apt: + packages: + - libgconf-2-4 # cypress binary dependency env: - - DEPLOY_ENV=POSTWOMAN_IO + - DEPLOY_ENV=POSTWOMAN_IO cache: - npm: true - directories: - - "node_modules" - - ~/.cache + npm: true + directories: + - "node_modules" + - ~/.cache branches: - only: - - "master" + only: + - "master" install: - - "npm install firebase-tools" - - "npm install" + - "npm install firebase-tools" + - "npm install" before_script: - - "npm run test" + - "npm run test" script: - - "cd functions" - - "npm install" - - "cd .." - - "npm run generate" + - "cd functions" + - "npm install" + - "cd .." + - "npm run generate" notifications: webhooks: https://www.travisbuddy.com diff --git a/README.md b/README.md index c27261def..245e5795a 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@

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

- Helps you create your requests faster, saving you precious time on your development - Subscribe + Web alternative to Postman - Helps you create requests faster, saving precious time on development - Subscribe

@@ -69,8 +69,8 @@ _Customized themes are synced with local session storage_ - Instant loading with [Service Workers](https://developers.google.com/web/fundamentals/primers/service-workers) - Offline support - Low RAM/memory and CPU usage - - [Add to Home Screen](https://developers.google.com/web/fundamentals/app-install-banners) (button in footer) - - [Desktop PWA](https://developers.google.com/web/progressive-web-apps/desktop) support (button in footer) + - Add to Home Screen + - Desktop PWA - ([full features](https://developers.google.com/web/progressive-web-apps)) 🚀 **Request**: Retrieve response from endpoint instantly. @@ -190,38 +190,36 @@ _Requests with Pre-Request Scripts are indicated in History entries_ 🌎 **i18n β**: Experience the app in your own language. 1. Scroll down to the footer - 2. Click "Choose Language" button + 2. Click "Choose Language" icon button 3. Select your language from the menu -_Keep in mind translations aren't available for all source and target language combinations_ +_Keep in mind: Translations aren't available for all source and target language combinations_ **To provide a localized experience for users around the world, you can add you own translations.** - - Add a new locale in `lang/` - - Example: `lang/es-ES.js` - - Mention `code`, `name`, `iso` and `file` in `nuxt.config.js` - - Example: - ``` - i18n: { - locales: [{ - code: 'es', - name: 'Español', - iso: 'es-ES', - file: 'es-ES.js' - }] - } - ``` - _**All `i18n` contributions are welcome to `i18n` [branch](https://github.com/liyasthomas/postwoman/tree/i18n) only!**_ 📦 **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** - Browser extensions that simplifies access to Postwoman -_Add-ons are developed and maintained under **[Official Postwoman Organization](https://github.com/postwoman-io)**_ + [![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_16x16.png) **Firefox**](https://addons.mozilla.org/en-US/firefox/addon/postwoman) ([GitHub](https://github.com/AndrewBastin/postwoman-firefox))  |  [![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_16x16.png) **Chrome**](https://chrome.google.com/webstore/detail/postwoman-extension-for-c/amknoiejhlmhancpahfcfcfhllgkpbld) ([GitHub](https://github.com/AndrewBastin/postwoman-chrome)) + + >**Extensions fixes `CORS` issues.** + +_Add-ons are developed and maintained under **[Official Postwoman Organization](https://github.com/postwoman-io)**._ + +☁️ **Auth + Sync**: Sign in and sync in real-time. + +**Sign in with:** + - Google + - GitHub + +**Sync:** + - History + - Collections **To find out more, please check out [Postwoman Wiki](https://github.com/liyasthomas/postwoman/wiki).** diff --git a/assets/css/fonts.scss b/assets/css/fonts.scss index 313b4b58a..0c714f199 100644 --- a/assets/css/fonts.scss +++ b/assets/css/fonts.scss @@ -27,6 +27,7 @@ -webkit-font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; font-feature-settings: "liga"; + border-radius: 50%; } /* poppins-500 - latin */ diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 48b6130c3..7f6c9d5ec 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -592,7 +592,6 @@ pre { select { height: 37px; - background-color: var(--bg-dark-color); cursor: pointer; -webkit-appearance: none; -moz-appearance: none; @@ -698,6 +697,7 @@ ol li { .show-on-large-screen { display: inline-flex; + flex: 1; } .info-response { @@ -852,10 +852,7 @@ input[type="radio"]:checked + label + .tab { } @media (max-width: $responsiveWidth) { - .content { - flex-flow: column; - } - + .content, .columns { flex-flow: column; } diff --git a/build.js b/build.js index be7f3f4c3..c19eb2987 100644 --- a/build.js +++ b/build.js @@ -53,7 +53,7 @@ try { // Write version data into a file fs.writeFileSync( - PW_BUILD_DATA_DIR + "/version.json", + `${PW_BUILD_DATA_DIR}/version.json`, JSON.stringify(version) ); })(); diff --git a/components/collections/addCollection.vue b/components/collections/addCollection.vue index 197cc412a..39b7a7675 100644 --- a/components/collections/addCollection.vue +++ b/components/collections/addCollection.vue @@ -17,7 +17,11 @@

@@ -52,6 +56,10 @@ export default { }, methods: { addNewCollection() { + if (!this.$data.name) { + this.$toast.info("Please provide a valid name for the collection"); + return; + } this.$store.commit("postwoman/addNewCollection", { name: this.$data.name }); diff --git a/components/collections/addFolder.vue b/components/collections/addFolder.vue index 5601e6f47..1188ad495 100644 --- a/components/collections/addFolder.vue +++ b/components/collections/addFolder.vue @@ -17,7 +17,11 @@
diff --git a/components/collections/editCollection.vue b/components/collections/editCollection.vue index 4021557fe..084bb78bf 100644 --- a/components/collections/editCollection.vue +++ b/components/collections/editCollection.vue @@ -59,6 +59,10 @@ export default { }, methods: { saveCollection() { + if (!this.$data.name) { + this.$toast.info("Please provide a valid name for the collection"); + return; + } const collectionUpdated = { ...this.$props.editingCollection, name: this.$data.name diff --git a/components/collections/importExportCollections.vue b/components/collections/importExportCollections.vue index 254bdc684..8df70d36d 100644 --- a/components/collections/importExportCollections.vue +++ b/components/collections/importExportCollections.vue @@ -11,6 +11,54 @@ +
+ + + + + +
@@ -18,39 +66,6 @@
-
- - - - - -
@@ -71,7 +86,14 @@