From be00a6fd603b2fb315bd6ab22bc79f93db81adad Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Tue, 29 Oct 2019 12:17:57 +0530 Subject: [PATCH 1/5] :sparkles: Browser tab color matches selected theme --- pages/settings.vue | 7 +++++-- store/postwoman.js | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/settings.vue b/pages/settings.vue index 06c707969..db15363bc 100644 --- a/pages/settings.vue +++ b/pages/settings.vue @@ -5,7 +5,7 @@
  • Background

    - + Date: Tue, 29 Oct 2019 13:36:41 +0530 Subject: [PATCH 2/5] :zap: Few UI tweaks --- README.md | 2 +- components/collections/collection.vue | 2 +- components/collections/folder.vue | 2 +- layouts/default.vue | 1 + pages/index.vue | 66 +++++++++++++-------------- 5 files changed, 37 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 52526c891..9516058d7 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ _Export, import and replace collections with JSON files_ _Collections are synced with local session storage_ -📁 **Proxy**: Enable Proxy Mode from Settings to access blocked APIs +🌐 **Proxy**: Enable Proxy Mode from Settings to access blocked APIs **Features:** - Hide your IP address diff --git a/components/collections/collection.vue b/components/collections/collection.vue index 08aeb8bef..4bed177f3 100644 --- a/components/collections/collection.vue +++ b/components/collections/collection.vue @@ -61,7 +61,7 @@ ul li { display: flex; - padding-left: 16px; + margin-left: 32px; border-left: 1px solid var(--brd-color); } diff --git a/components/collections/folder.vue b/components/collections/folder.vue index 4deb99575..d11505d5e 100644 --- a/components/collections/folder.vue +++ b/components/collections/folder.vue @@ -46,7 +46,7 @@ ul li { display: flex; - padding-left: 16px; + margin-left: 32px; border-left: 1px solid var(--brd-color); } diff --git a/layouts/default.vue b/layouts/default.vue index 61e5ce44d..6218ae256 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -223,6 +223,7 @@ "--act-color", vibrant ? "rgb(37, 38, 40)" : "#ffffff" ); + document.querySelector('meta[name=theme-color]').setAttribute('content', this.$store.state.postwoman.settings.THEME_TAB_COLOR || "#252628") })(); }, diff --git a/pages/index.vue b/pages/index.vue index be5499d9f..f6d268a39 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -130,22 +130,22 @@
    • -
    • -
    • @@ -357,21 +357,21 @@
    • -
    • -
    • @@ -420,19 +420,19 @@
    • -
    • -
    • @@ -1572,4 +1572,4 @@ export default { ); } }; - \ No newline at end of file + From 1f3d1fd344b1df4f94b3fdaba6d52ddde3d73264 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Tue, 29 Oct 2019 16:37:56 +0530 Subject: [PATCH 3/5] :zap: Theme color fix --- layouts/default.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/default.vue b/layouts/default.vue index 6218ae256..b97d57d71 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -223,7 +223,6 @@ "--act-color", vibrant ? "rgb(37, 38, 40)" : "#ffffff" ); - document.querySelector('meta[name=theme-color]').setAttribute('content', this.$store.state.postwoman.settings.THEME_TAB_COLOR || "#252628") })(); }, @@ -231,6 +230,7 @@ if (process.client) { document.body.classList.add("afterLoad"); } + document.querySelector('meta[name=theme-color]').setAttribute('content', this.$store.state.postwoman.settings.THEME_TAB_COLOR || "#252628"); // Initializes the PWA code - checks if the app is installed, // etc. From 282749166a9b82c77664975ef6f05ec5053c8a87 Mon Sep 17 00:00:00 2001 From: Abdul Rifqi Al Abqary Date: Tue, 29 Oct 2019 22:41:45 +0900 Subject: [PATCH 4/5] Fix excluding credentials in permalink --- pages/index.vue | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index f6d268a39..5df34eaef 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1381,9 +1381,9 @@ export default { "url", "path", !this.urlExcludes.auth ? "auth" : null, - "httpUser", - "httpPassword", - "bearerToken", + !this.urlExcludes.httpUser ? "httpUser" : null, + !this.urlExcludes.httpPassword ? "httpPassword" : null, + !this.urlExcludes.bearerToken ? "bearerToken" : null, "contentType" ].filter((item) => item !== null).map(item => flat(item)); let deeps = ["headers", "params"].map(item => deep(item)); @@ -1531,8 +1531,15 @@ export default { this.editRequest = {}; }, setExclude (excludedField, excluded) { + if (excludedField === "auth") { + this.urlExcludes.auth = excluded; + this.urlExcludes.httpUser = excluded; + this.urlExcludes.httpPassword = excluded; + this.urlExcludes.bearerToken = excluded; + } else { this.urlExcludes[excludedField] = excluded; - this.setRouteQueryState(); + } + this.setRouteQueryState(); }, methodChange() { // this.$store.commit('setState', { 'value': ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '', 'attribute': 'contentType' }) @@ -1545,7 +1552,10 @@ export default { created() { this.urlExcludes = this.$store.state.postwoman.settings.URL_EXCLUDES || { // Exclude authentication by default for security reasons. - auth: true + auth: true, + httpUser: true, + httpPassword: true, + bearerToken: true }; if (Object.keys(this.$route.query).length) From 1068f8a6642208720be47db3e4c40b4e2de63820 Mon Sep 17 00:00:00 2001 From: Amit Dash Date: Wed, 30 Oct 2019 01:07:12 +0530 Subject: [PATCH 5/5] Documentation cleanup and typo fixes --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9516058d7..f0255365b 100644 --- a/README.md +++ b/README.md @@ -44,12 +44,12 @@ When I wrote this, only God and I understood what I was doing. Now, only God kno **Methods:** - `GET` - Retrieve information about the REST API resource - - `HEAD` - Asks for a response identical to that of a GET request, but without the response body. + - `HEAD` - Retrieve response headers identical to those of a GET request, but without the response body. - `POST` - Create a REST API resource - `PUT` - Update a REST API resource - `DELETE` - Delete a REST API resource or related component - `OPTIONS` - Describe the communication options for the target resource - - `PATCH` - Applies partial modifications to a REST API resource + - `PATCH` - Apply partial modifications to a REST API resource _History entries are synced with local session storage_ @@ -118,7 +118,7 @@ _HTML responses have "Preview HTML" feature_ ⏰ **History**: Request entries are synced with local session storage to reuse with a single click. -**Field:s** +**Fields:** - Label - Timestamp - Method @@ -292,9 +292,9 @@ Support this project with your organization. Your logo will show up here with a This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details. -## Acknowledgments 🙏 +## Acknowledgements 🙏 -* Hat tip to anyone who's code was used +* Hat tip to anyone whose code was used * Inspirations: * [Dribbble](https://dribbble.com)