🎨 Updated color codes

This commit is contained in:
liyasthomas
2019-08-22 21:23:08 +05:30
parent 1a02837ada
commit cdea0ff01b
2 changed files with 5 additions and 11 deletions

View File

@@ -29,11 +29,9 @@ const app = new Vue({
history: window.localStorage.getItem("history") ? JSON.parse(window.localStorage.getItem("history")) : [] history: window.localStorage.getItem("history") ? JSON.parse(window.localStorage.getItem("history")) : []
}, },
computed: { computed: {
urlNotValid() { urlNotValid() {
return !(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(this.url)) return !(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(this.url))
}, },
rawRequestBody() { rawRequestBody() {
const { const {
bodyParams bodyParams
@@ -91,14 +89,11 @@ const app = new Vue({
document.getElementsByClassName(el)[0].classList.toggle('hidden') document.getElementsByClassName(el)[0].classList.toggle('hidden')
}, },
sendRequest() { sendRequest() {
if (this.urlNotValid) { if (this.urlNotValid) {
alert("Please check the formatting of the URL") alert("Please check the formatting of the URL")
return return
} }
const n = new Date().toLocaleTimeString() const n = new Date().toLocaleTimeString()
// Latest requests should be placed on top // Latest requests should be placed on top
this.history = [{ this.history = [{
time: n, time: n,
@@ -106,7 +101,6 @@ const app = new Vue({
url: this.url, url: this.url,
path: this.path path: this.path
}, ...this.history] }, ...this.history]
window.localStorage.setItem("history", JSON.stringify(this.history)) window.localStorage.setItem("history", JSON.stringify(this.history))
if (this.$refs.response.classList.contains('hidden')) { if (this.$refs.response.classList.contains('hidden')) {
this.$refs.response.classList.toggle('hidden') this.$refs.response.classList.toggle('hidden')

View File

@@ -1,8 +1,8 @@
:root { :root {
--bg-color: #121212; --bg-color: #121212;
--fg-color: #fff; --fg-color: #FFF;
--ac-color: #51FF0D; --ac-color: #51FF0D;
--err-color: #FF0000; --err-color: #D0021B;
} }
* { * {
@@ -166,12 +166,12 @@ textarea {
} }
.error { .error {
border: 1px solid var(--err-color); background-color: var(--err-color);
} }
.disabled { .disabled {
background-color: #3C3C3C; background-color: #393939;
color: #B3B3B3; color: #b2b2b2;
} }
label { label {