diff --git a/README.md b/README.md index bf40f9179..c715cb2d0 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,11 @@ --- -**Start here: _[Story behind Postwoman](https://dev.to/liyasthomas/i-created-postwoman-an-online-open-source-api-request-builder-41md)_** +**Read: _[Story behind Postwoman](https://dev.to/liyasthomas/i-created-postwoman-an-online-open-source-api-request-builder-41md), [Postwoman v1.0](https://dev.to/liyasthomas/postwoman-v1-0-a-free-fast-beautiful-alternative-to-postman-mn0)_** -**Chat here: _[Telegram](https://t.me/postwoman_app), [Discord](https://discord.gg/GAMWxmR)_** +**Chat: _[Telegram](https://t.me/postwoman_app), [Discord](https://discord.gg/GAMWxmR)_** -**Donate here: _[PayPal](https://www.paypal.me/liyascthomas), [Open Collective](https://opencollective.com/postwoman), [Patreon](https://www.patreon.com/liyasthomas)_** +**Donate: _[PayPal](https://www.paypal.me/liyascthomas), [Open Collective](https://opencollective.com/postwoman), [Patreon](https://www.patreon.com/liyasthomas)_**

@@ -64,7 +64,7 @@ _History entries are synced with local session storage_ _Customized themes are also synced with local session storage_ -🔥 **PWA**: Install as a [PWA](https://developers.google.com/web/progressive-web-apps) on your device. +🔥 **PWA**: Install as a [PWA](https://developers.google.com/web/progressive-web-apps) (100/100 Lighthouse score) on your device. **Features:** - Instant loading with [Service Workers](https://developers.google.com/web/fundamentals/primers/service-workers) @@ -321,13 +321,13 @@ This project is licensed under the [MIT License](https://opensource.org/licenses ## Badges -| Status | Preview | Markdown Code (copy & paste into `readme.md`) | +| Status | Preview | Markdown code (copy & paste into `readme.md`) | | ----------- | ----------- | ----------- | | **Default** | [![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-50fa7b?logo=Postwoman)](https://postwoman.io) | `[![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-50fa7b?logo=Postwoman)](https://postwoman.io)` | | **Success** | [![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-success?logo=Postwoman)](https://postwoman.io) | `[![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-success?logo=Postwoman)](https://postwoman.io)` | | **Critical** | [![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-critical?logo=Postwoman)](https://postwoman.io) | `[![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-critical?logo=Postwoman)](https://postwoman.io)` | | **Custom** | [![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-blueviolet?logo=Postwoman)](https://postwoman.io) | `[![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-blueviolet?logo=Postwoman)](https://postwoman.io)` | -| Make your own badge! | [![Postwoman](https://img.shields.io/badge/your_text-Postwoman-hex_color_code?logo=Postwoman)](https://postwoman.io) | `[![Postwoman](https://img.shields.io/badge/your_text-Postwoman-hex_color_code?logo=Postwoman)](https://postwoman.io)` | +| Customize | [![Postwoman](https://img.shields.io/badge/your_text-Postwoman-hex_color_code?logo=Postwoman)](https://postwoman.io) | `[![Postwoman](https://img.shields.io/badge/your_text-Postwoman-hex_color_code?logo=Postwoman)](https://postwoman.io)` |

diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 851eb997f..5a86b8218 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -12,16 +12,23 @@ html { ::-webkit-scrollbar { width: 8px; height: 8px; + border-radius: 8px; + background-color: var(--bg-dark-color); + visibility: hidden; + + &:hover { + visibility: visible; + } } ::-webkit-scrollbar-thumb { background-color: var(--fg-light-color); border-radius: 8px; border: 2px solid var(--bg-color); -} -::-webkit-scrollbar-thumb:hover { - background-color: var(--fg-color); + &:hover { + background-color: var(--fg-color); + } } ::placeholder { @@ -402,7 +409,7 @@ button { &:not([disabled]):focus { color: var(--act-color); fill: var(--act-color); - box-shadow: 0 0 0 2px var(--fg-color); + box-shadow: inset 0 0 0 2px var(--fg-color); transition: all 0.2s ease-in-out; } @@ -595,6 +602,11 @@ ol { margin: 4px 0 4px; padding: 0; list-style-type: none; + + ul, + ol { + margin: 0; + } } ul li, @@ -663,19 +675,18 @@ ol li { background-color: var(--err-color); } -.virtual-list::-webkit-scrollbar { - width: 0; -} - fieldset#history { .method-list-item { position: relative; span { position: absolute; - top: 12px; - right: 12px; + top: 8px; + right: 8px; font-family: 'Roboto Mono', monospace; + background-color: var(--bg-color); + padding: 4px 8px; + border-radius: 8px; } } } @@ -692,6 +703,10 @@ fieldset#history { text-align: right; } +.mono { + font-family: 'Roboto Mono', monospace; +} + #response-details-wrapper { position: relative; overflow: hidden; diff --git a/build.js b/build.js index b2dd9f89f..22ebe8164 100644 --- a/build.js +++ b/build.js @@ -21,7 +21,7 @@ try { let version = {}; // Get the current version name as the tag from Git. - version.name = process.env.TRAVIS_TAG || runCommand("git", ["tag"]); + version.name = process.env.TRAVIS_TAG || runCommand("git", ["tag --sort=committerdate | tail -1"]); // FALLBACK: If version.name was unset, let's grab it from GitHub. if (!version.name) { diff --git a/components/history.vue b/components/history.vue index 96e850ffc..8db25ae28 100644 --- a/components/history.vue +++ b/components/history.vue @@ -2,117 +2,131 @@
  • - +
-
    -
  • -
  • -
-

+

{{version.name}} - + + • - by - Liyas Thomas 🦄 • + + 🦄Subscribe

@@ -259,6 +259,7 @@ let section = document.querySelector(link.hash); if ( + section && section.offsetTop <= fromTop && section.offsetTop + section.offsetHeight > fromTop ) { diff --git a/nuxt.config.js b/nuxt.config.js index 5a9388e6c..30c451c82 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -34,7 +34,7 @@ export default { }, { name: 'viewport', - content: 'width=device-width, initial-scale=1, minimum-scale=1, shrink-to-fit=no, minimal-ui' + content: 'width=device-width, initial-scale=1, minimum-scale=1, viewport-fit=cover, minimal-ui' }, { hid: 'description', @@ -59,7 +59,7 @@ export default { }, { itemprop: "image", - content: `${routerBase.router.base}icons/icon-192x192.png` + content: `${routerBase.router.base}logo.jpg` }, // Add to homescreen for Chrome on Android. Fallback for PWA (handled by nuxt) { @@ -115,12 +115,12 @@ export default { }, { property: 'og:image', - content: `${routerBase.router.base}icons/icon-144x144.png` + content: `${routerBase.router.base}logo.jpg` }, // Twitter { name: 'twitter:card', - content: "summary" + content: "summary_large_image" }, { name: 'twitter:site', @@ -136,15 +136,15 @@ export default { }, { name: 'twitter:title', - content: meta.name + content: `${meta.name} \u2022 ${meta.shortDescription}` }, { name: 'twitter:description', - content: meta.shortDescription + content: meta.description }, { name: 'twitter:image', - content: `${routerBase.router.base}icons/icon-144x144.png` + content: `${routerBase.router.base}logo.jpg` }, ], link: [{ diff --git a/package-lock.json b/package-lock.json index e4909079d..abd8170e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3666,9 +3666,9 @@ "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=" }, "cypress": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-3.6.0.tgz", - "integrity": "sha512-ODhbOrH1XZx0DUoYmJSvOSbEQjycNOpFYe7jOnHkT1+sdsn2+uqwAjZ1x982q3H4R/5iZjpSd50gd/iw2bofzg==", + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-3.6.1.tgz", + "integrity": "sha512-6n0oqENdz/oQ7EJ6IgESNb2M7Bo/70qX9jSJsAziJTC3kICfEMmJUlrAnP9bn+ut24MlXQST5nRXhUP5nRIx6A==", "dev": true, "requires": { "@cypress/listr-verbose-renderer": "0.4.1", diff --git a/package.json b/package.json index ad76a6ec2..4e6d33f42 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "yargs-parser": "^16.1.0" }, "devDependencies": { - "cypress": "^3.6.0", + "cypress": "^3.6.1", "node-sass": "^4.13.0", "sass-loader": "^7.3.1", "start-server-and-test": "^1.10.6" diff --git a/pages/index.vue b/pages/index.vue index 7705d9fbe..e24c4cb71 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -64,7 +64,7 @@ v-model="preRequestScript" v-textarea-auto-height="preRequestScript" spellcheck="false" - placeholder="pw.environment.set('variable', 'value');" + placeholder="pw.env.set('variable', 'value');" > @@ -230,7 +230,7 @@ v-tooltip.bottom="{ content: isHidden ? 'Show Code' : 'Hide Code'}" > flash_on - flash_off + flash_off
@@ -373,7 +373,7 @@ -