🚨 Lint
This commit is contained in:
@@ -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/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");
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ a {
|
|||||||
|
|
||||||
header,
|
header,
|
||||||
footer {
|
footer {
|
||||||
& > div {
|
&>div {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -527,7 +527,7 @@ input[type="checkbox"] {
|
|||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
&,
|
&,
|
||||||
& + label {
|
&+label {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
@@ -546,7 +546,7 @@ input[type="checkbox"] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:checked + label:before {
|
&:checked+label:before {
|
||||||
background-color: var(--ac-color);
|
background-color: var(--ac-color);
|
||||||
border-color: var(--ac-color);
|
border-color: var(--ac-color);
|
||||||
color: var(--act-color);
|
color: var(--act-color);
|
||||||
@@ -713,7 +713,7 @@ input[type="radio"],
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="radio"] + label {
|
input[type="radio"]+label {
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
border-bottom: 2px solid transparent;
|
border-bottom: 2px solid transparent;
|
||||||
cursor: pointer;
|
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);
|
border-color: var(--fg-color);
|
||||||
color: var(--fg-color);
|
color: var(--fg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="radio"]:checked + label + .tab {
|
input[type="radio"]:checked+label+.tab {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,10 +18,6 @@
|
|||||||
border-bottom: 1px solid var(--brd-color);
|
border-bottom: 1px solid var(--brd-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.field-title {
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.field-deprecated {
|
.field-deprecated {
|
||||||
background-color: yellow;
|
background-color: yellow;
|
||||||
color: black;
|
color: black;
|
||||||
|
|||||||
@@ -39,11 +39,7 @@
|
|||||||
useWorker: false
|
useWorker: false
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
<button
|
<button class="icon" @click="copySchema" v-tooltip="'Copy Schema'">
|
||||||
class="icon"
|
|
||||||
@click="copySchema"
|
|
||||||
v-tooltip="'Copy Schema'"
|
|
||||||
>
|
|
||||||
<i class="material-icons">file_copy</i>
|
<i class="material-icons">file_copy</i>
|
||||||
</button>
|
</button>
|
||||||
</pw-section>
|
</pw-section>
|
||||||
@@ -149,7 +145,6 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
copySchema() {
|
copySchema() {
|
||||||
const aux = document.createElement("textarea");
|
const aux = document.createElement("textarea");
|
||||||
aux.innerText = this.schemaString;
|
aux.innerText = this.schemaString;
|
||||||
@@ -172,8 +167,8 @@ export default {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await axios.post(this.url, {
|
const res = await axios.post(this.url, {
|
||||||
query: gql.getIntrospectionQuery()
|
query: gql.getIntrospectionQuery()
|
||||||
})
|
});
|
||||||
|
|
||||||
const schema = gql.buildClientSchema(res.data.data);
|
const schema = gql.buildClientSchema(res.data.data);
|
||||||
this.schemaString = gql.printSchema(schema, {
|
this.schemaString = gql.printSchema(schema, {
|
||||||
@@ -238,14 +233,14 @@ export default {
|
|||||||
this.$toast.info(`Finished in ${duration}ms`, {
|
this.$toast.info(`Finished in ${duration}ms`, {
|
||||||
icon: "done"
|
icon: "done"
|
||||||
});
|
});
|
||||||
} catch(error) {
|
} catch (error) {
|
||||||
this.$nuxt.$loading.finish();
|
this.$nuxt.$loading.finish();
|
||||||
this.schemaString = error + ". Check console for details.";
|
this.schemaString = error + ". Check console for details.";
|
||||||
this.$toast.error(error + " (F12 for details)", {
|
this.$toast.error(error + " (F12 for details)", {
|
||||||
icon: "error"
|
icon: "error"
|
||||||
});
|
});
|
||||||
console.log("Error", error);
|
console.log("Error", error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -315,7 +315,6 @@
|
|||||||
<input id="tab-one" type="radio" name="options" checked="checked" />
|
<input id="tab-one" type="radio" name="options" checked="checked" />
|
||||||
<label for="tab-one">Authentication</label>
|
<label for="tab-one">Authentication</label>
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
|
|
||||||
<pw-section
|
<pw-section
|
||||||
class="cyan"
|
class="cyan"
|
||||||
label="Authentication"
|
label="Authentication"
|
||||||
@@ -401,7 +400,6 @@
|
|||||||
<input id="tab-two" type="radio" name="options" />
|
<input id="tab-two" type="radio" name="options" />
|
||||||
<label for="tab-two">Headers</label>
|
<label for="tab-two">Headers</label>
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
|
|
||||||
<pw-section class="orange" label="Headers" ref="headers">
|
<pw-section class="orange" label="Headers" ref="headers">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@@ -482,7 +480,6 @@
|
|||||||
<input id="tab-three" type="radio" name="options" />
|
<input id="tab-three" type="radio" name="options" />
|
||||||
<label for="tab-three">Parameters</label>
|
<label for="tab-three">Parameters</label>
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
|
|
||||||
<pw-section class="pink" label="Parameters" ref="parameters">
|
<pw-section class="pink" label="Parameters" ref="parameters">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
@@ -24,7 +24,9 @@
|
|||||||
{{ toggleConnectionVerb }}
|
{{ toggleConnectionVerb }}
|
||||||
<span>
|
<span>
|
||||||
<i class="material-icons" v-if="!connectionState">sync</i>
|
<i class="material-icons" v-if="!connectionState">sync</i>
|
||||||
<i class="material-icons" v-if="connectionState">sync_disabled</i>
|
<i class="material-icons" v-if="connectionState"
|
||||||
|
>sync_disabled</i
|
||||||
|
>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
@@ -47,9 +49,7 @@
|
|||||||
v-for="(logEntry, index) in communication.log"
|
v-for="(logEntry, index) in communication.log"
|
||||||
:style="{ color: logEntry.color }"
|
:style="{ color: logEntry.color }"
|
||||||
:key="index"
|
:key="index"
|
||||||
>@ {{ logEntry.ts }} {{ getSourcePrefix(logEntry.source) }}
|
>@ {{ logEntry.ts }} {{ getSourcePrefix(logEntry.source) }} {{ logEntry.payload }}</span>
|
||||||
{{ logEntry.payload }}</span
|
|
||||||
>
|
|
||||||
</span>
|
</span>
|
||||||
<span v-else>(waiting for connection)</span>
|
<span v-else>(waiting for connection)</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user