@@ -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** | [](https://postwoman.io) | `[](https://postwoman.io)` |
| **Success** | [](https://postwoman.io) | `[](https://postwoman.io)` |
| **Critical** | [](https://postwoman.io) | `[](https://postwoman.io)` |
| **Custom** | [](https://postwoman.io) | `[](https://postwoman.io)` |
-| Make your own badge! | [](https://postwoman.io) | `[](https://postwoman.io)` |
+| Customize | [](https://postwoman.io) | `[](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 @@
-
-
+
- -
-
-
-
- -
-
-
- -
-
-
+
+
-
+
+
+ -
+
+
+
+
+
-
+
+
+ -
+
+
+
-
-
- {{entry.status}}
-
- -
-
-
- -
-
+
+ {{entry.status}}
-
-
+ -
+
+
+
+
+
+
-
+
+
+ -
+
+
+
+
+
+
-
+
-
-
@@ -131,12 +145,7 @@
-
-
+
clear_all
Clear All
@@ -171,17 +180,42 @@
}
}
+ .smooth-enter-active,
+ .smooth-leave-active {
+ transition: all 0.2s;
+ }
+
+ .smooth-enter,
+ .smooth-leave-to {
+ opacity: 0;
+ }
+
+ .stared {
+ color: #F8E81C !important;
+ }
+
@media (max-width: 720px) {
.virtual-list.filled {
- min-height: 200px;
+ min-height: 320px;
+ }
+
+ .labels {
+ display: none;
+ }
+
+ .entry {
+ border-bottom: 1px solid var(--brd-color);
}
}
+
diff --git a/functions/preRequest.js b/functions/preRequest.js
index eed6fd828..aa608d01c 100644
--- a/functions/preRequest.js
+++ b/functions/preRequest.js
@@ -7,6 +7,9 @@ export default function getEnvironmentVariablesFromScript(script) {
environment: {
set: (key, value) => _variables[key] = value,
},
+ env: {
+ set: (key, value) => _variables[key] = value,
+ },
// globals that the script is allowed to have access to.
};
diff --git a/layouts/default.vue b/layouts/default.vue
index 97062fd57..e6401b892 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -131,25 +131,25 @@
-
+
{{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
close