From 06d58547c88b2f02bd2b614bb617fffff93d8366 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Tue, 4 Feb 2020 07:05:37 +0530 Subject: [PATCH] :sparkles: Custom methods support (follow up of #398) --- assets/css/styles.scss | 8 +++ pages/index.vue | 109 ++++++++++++++++++++++++++++++++++------- 2 files changed, 100 insertions(+), 17 deletions(-) diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 5906ac886..382870d31 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -587,6 +587,14 @@ pre { .select-wrapper { position: relative; + input { + text-transform: uppercase; + } + + .trigger { + width: 100%; + } + &:after { display: inline-block; position: absolute; diff --git a/pages/index.vue b/pages/index.vue index 300204ede..af395bd97 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -45,17 +45,92 @@
  • - + + + +
  • @@ -1574,6 +1649,12 @@ export default { editingRequest(newValue) { this.editRequest = newValue; this.showRequestModal = true; + }, + method() { + // this.$store.commit('setState', { 'value': ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '', 'attribute': 'contentType' }) + this.contentType = ["POST", "PUT", "PATCH"].includes(this.method) + ? "application/json" + : ""; } }, computed: { @@ -2669,12 +2750,6 @@ export default { } this.setRouteQueryState(); }, - methodChange() { - // this.$store.commit('setState', { 'value': ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '', 'attribute': 'contentType' }) - this.contentType = ["POST", "PUT", "PATCH"].includes(this.method) - ? "application/json" - : ""; - }, uploadPayload() { this.rawInput = true; const file = this.$refs.payload.files[0];