From 4c9c9a22406141f0b63f4f13b6b7e589dd8f74bb Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Thu, 21 Nov 2019 09:11:50 +0530 Subject: [PATCH] :rotating_light: Lint --- assets/css/fonts.scss | 2 +- assets/css/styles.scss | 12 ++++++------ components/graphql/field.vue | 4 ---- pages/graphql.vue | 27 +++++++++++---------------- pages/index.vue | 3 --- pages/websocket.vue | 8 ++++---- 6 files changed, 22 insertions(+), 34 deletions(-) diff --git a/assets/css/fonts.scss b/assets/css/fonts.scss index 496de8831..30a260901 100644 --- a/assets/css/fonts.scss +++ b/assets/css/fonts.scss @@ -1,2 +1,2 @@ @import url("https://fonts.googleapis.com/css?family=Poppins:500,700|Roboto+Mono:400&display=swap"); -@import url("https://fonts.googleapis.com/icon?family=Material+Icons"); +@import url("https://fonts.googleapis.com/icon?family=Material+Icons&display=swap"); diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 24d199e21..7e9f05752 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -77,7 +77,7 @@ a { header, footer { - & > div { + &>div { display: flex; padding: 16px; width: 100%; @@ -527,7 +527,7 @@ input[type="checkbox"] { display: none; &, - & + label { + &+label { vertical-align: middle; cursor: pointer; @@ -546,7 +546,7 @@ input[type="checkbox"] { } } - &:checked + label:before { + &:checked+label:before { background-color: var(--ac-color); border-color: var(--ac-color); color: var(--act-color); @@ -713,7 +713,7 @@ input[type="radio"], display: none; } -input[type="radio"] + label { +input[type="radio"]+label { padding: 8px 16px; border-bottom: 2px solid transparent; cursor: pointer; @@ -726,12 +726,12 @@ input[type="radio"] + label { } } -input[type="radio"]:checked + label { +input[type="radio"]:checked+label { border-color: var(--fg-color); color: var(--fg-color); } -input[type="radio"]:checked + label + .tab { +input[type="radio"]:checked+label+.tab { display: block; } diff --git a/components/graphql/field.vue b/components/graphql/field.vue index e8efa07be..0da0f522f 100644 --- a/components/graphql/field.vue +++ b/components/graphql/field.vue @@ -18,10 +18,6 @@ border-bottom: 1px solid var(--brd-color); } -.field-title { - font-weight: 700; -} - .field-deprecated { background-color: yellow; color: black; diff --git a/pages/graphql.vue b/pages/graphql.vue index 6e12e2a36..2473d66c2 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -39,11 +39,7 @@ useWorker: false }" /> - @@ -149,7 +145,6 @@ export default { }; }, methods: { - copySchema() { const aux = document.createElement("textarea"); aux.innerText = this.schemaString; @@ -172,8 +167,8 @@ export default { try { const res = await axios.post(this.url, { - query: gql.getIntrospectionQuery() - }) + query: gql.getIntrospectionQuery() + }); const schema = gql.buildClientSchema(res.data.data); this.schemaString = gql.printSchema(schema, { @@ -238,14 +233,14 @@ export default { this.$toast.info(`Finished in ${duration}ms`, { icon: "done" }); - } catch(error) { - this.$nuxt.$loading.finish(); - this.schemaString = error + ". Check console for details."; - this.$toast.error(error + " (F12 for details)", { - icon: "error" - }); - console.log("Error", error); - } + } catch (error) { + this.$nuxt.$loading.finish(); + this.schemaString = error + ". Check console for details."; + this.$toast.error(error + " (F12 for details)", { + icon: "error" + }); + console.log("Error", error); + } } } }; diff --git a/pages/index.vue b/pages/index.vue index 4112f7e3c..fbd1b924e 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -315,7 +315,6 @@
-
-
  • @@ -482,7 +480,6 @@
    -
    • diff --git a/pages/websocket.vue b/pages/websocket.vue index c7bbc469f..c8e6ccfc9 100644 --- a/pages/websocket.vue +++ b/pages/websocket.vue @@ -24,7 +24,9 @@ {{ toggleConnectionVerb }} sync - sync_disabled + sync_disabled
    • @@ -47,9 +49,7 @@ v-for="(logEntry, index) in communication.log" :style="{ color: logEntry.color }" :key="index" - >@ {{ logEntry.ts }} {{ getSourcePrefix(logEntry.source) }} - {{ logEntry.payload }} + >@ {{ logEntry.ts }} {{ getSourcePrefix(logEntry.source) }} {{ logEntry.payload }} (waiting for connection)