🎨 Fixed few UI glitches
This commit is contained in:
@@ -58,18 +58,6 @@ footer {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(max-width: $responsiveWidth) {
|
|
||||||
header {
|
|
||||||
display: block;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
nav {
|
|
||||||
display: inline-flex;
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
a:not(:last-of-type) {
|
a:not(:last-of-type) {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
@@ -182,8 +170,8 @@ textarea,
|
|||||||
pre {
|
pre {
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
width: calc(100% - 8px);
|
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
width: calc(100% - 8px);
|
||||||
background-color: var(--bg-dark-color);
|
background-color: var(--bg-dark-color);
|
||||||
color: var(--fg-color);
|
color: var(--fg-color);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
@@ -195,7 +183,7 @@ pre {
|
|||||||
select,
|
select,
|
||||||
input,
|
input,
|
||||||
option {
|
option {
|
||||||
height: 38px;
|
height: 41px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
@@ -242,6 +230,15 @@ ol li {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: $responsiveWidth) {
|
@media (max-width: $responsiveWidth) {
|
||||||
|
header {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
nav {
|
||||||
|
display: inline-flex;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ul,
|
ul,
|
||||||
ol {
|
ol {
|
||||||
@@ -252,6 +249,10 @@ ol li {
|
|||||||
ol li {
|
ol li {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hide-on-small-screen {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#installPWA {
|
#installPWA {
|
||||||
@@ -295,8 +296,13 @@ fieldset#history {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.align-left { text-align: left; }
|
.align-left {
|
||||||
.align-right { text-align: right; }
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.align-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
#response-details-wrapper {
|
#response-details-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -304,6 +310,10 @@ fieldset#history {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#response-details {
|
#response-details {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@@ -315,7 +325,6 @@ fieldset#history {
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<header>
|
<header>
|
||||||
<div class="slide-in">
|
<div class="slide-in">
|
||||||
<nuxt-link to="/">
|
<nuxt-link to="/">
|
||||||
<h1 class="logo"><logo alt="" style="height: 24px; margin-right: 16px"/>Postwoman</h1>
|
<h1 class="logo">
|
||||||
|
<logo alt="" style="height: 24px; margin-right: 16px" />Postwoman</h1>
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
<h3>API request builder</h3>
|
<h3>API request builder</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<nuxt-link to="/">HTTP</nuxt-link>
|
<nuxt-link to="/">HTTP</nuxt-link>
|
||||||
<nuxt-link to="/websocket">WebSocket</nuxt-link>
|
<nuxt-link to="/websocket">WebSocket</nuxt-link>
|
||||||
@@ -19,39 +19,38 @@
|
|||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<nuxt id="main" />
|
<nuxt id="main" />
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://github.com/liyasthomas/postwoman" target="_blank"><img src="~static/icons/github.svg" alt="" style="margin-right: 16px">GitHub</a>
|
<a href="https://github.com/liyasthomas/postwoman" target="_blank"><img src="~static/icons/github.svg" alt="" style="margin-right: 16px">GitHub</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button id="installPWA" @click.prevent="showInstallPrompt()">
|
<button id="installPWA" @click.prevent="showInstallPrompt()">
|
||||||
Install PWA
|
Install PWA
|
||||||
</button>
|
</button>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.slide-in {
|
.slide-in {
|
||||||
position: relative;
|
position: relative;
|
||||||
animation: slideIn 0.4s forwards ease-in-out;
|
animation: slideIn 0.2s forwards ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes slideIn {
|
@keyframes slideIn {
|
||||||
0% {
|
0% {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
left: -30px;
|
left: -16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
header, #main, footer {
|
header,
|
||||||
|
#main,
|
||||||
|
footer {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
}
|
}
|
||||||
@@ -71,7 +70,11 @@
|
|||||||
&.nuxt-link-exact-active {
|
&.nuxt-link-exact-active {
|
||||||
color: var(--act-color);
|
color: var(--act-color);
|
||||||
fill: var(--act-color);
|
fill: var(--act-color);
|
||||||
&:before { width: 100%; height: 100% }
|
|
||||||
|
&:before {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
@@ -81,7 +84,6 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
|
||||||
background-color: var(--ac-color);
|
background-color: var(--ac-color);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@@ -92,22 +94,27 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@keyframes linkHover {
|
@keyframes linkHover {
|
||||||
0% { width: 0; height: 2px; }
|
0% {
|
||||||
100% { width: 100%; height: 2px; }
|
width: 0;
|
||||||
|
height: 2px;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
|
100% {
|
||||||
|
width: 100%;
|
||||||
|
height: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import intializePwa from '../assets/js/pwa';
|
import intializePwa from '../assets/js/pwa';
|
||||||
import logo from "../components/logo";
|
import logo from "../components/logo";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
logo
|
logo
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// Once the PWA code is initialized, this holds a method
|
// Once the PWA code is initialized, this holds a method
|
||||||
@@ -116,23 +123,19 @@
|
|||||||
showInstallPrompt: null
|
showInstallPrompt: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeMount() {
|
beforeMount() {
|
||||||
// Load theme settings
|
// Load theme settings
|
||||||
(() => {
|
(() => {
|
||||||
// Apply theme from settings.
|
// Apply theme from settings.
|
||||||
document.documentElement.className = this.$store.state.postwoman.settings.THEME_CLASS || '';
|
document.documentElement.className = this.$store.state.postwoman.settings.THEME_CLASS || '';
|
||||||
|
|
||||||
// Load theme color data from settings, or use default color.
|
// Load theme color data from settings, or use default color.
|
||||||
let color = this.$store.state.postwoman.settings.THEME_COLOR || '#51FF0D';
|
let color = this.$store.state.postwoman.settings.THEME_COLOR || '#51FF0D';
|
||||||
let vibrant = this.$store.state.postwoman.settings.THEME_COLOR_VIBRANT;
|
let vibrant = this.$store.state.postwoman.settings.THEME_COLOR_VIBRANT;
|
||||||
if (vibrant == null) vibrant = true;
|
if (vibrant == null) vibrant = true;
|
||||||
|
|
||||||
document.documentElement.style.setProperty('--ac-color', color);
|
document.documentElement.style.setProperty('--ac-color', color);
|
||||||
document.documentElement.style.setProperty('--act-color', vibrant ? '#121212' : '#fff');
|
document.documentElement.style.setProperty('--act-color', vibrant ? '#121212' : '#fff');
|
||||||
})();
|
})();
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
// Initializes the PWA code - checks if the app is installed,
|
// Initializes the PWA code - checks if the app is installed,
|
||||||
// etc.
|
// etc.
|
||||||
@@ -141,4 +144,5 @@
|
|||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<input id="path" v-model="path" v-on:keyup.enter="sendRequest">
|
<input id="path" v-model="path" v-on:keyup.enter="sendRequest">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="action"> </label>
|
<label for="action" class="hide-on-small-screen"> </label>
|
||||||
<button id="action" name="action" @click="sendRequest" :disabled="!isValidURL">Send</button>
|
<button id="action" name="action" @click="sendRequest" :disabled="!isValidURL">Send</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<input :name="'bvalue'+index" v-model="param.value">
|
<input :name="'bvalue'+index" v-model="param.value">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="request"> </label>
|
<label for="request" class="hide-on-small-screen"> </label>
|
||||||
<button name="request" @click="removeRequestBodyParam(index)">Remove</button>
|
<button name="request" @click="removeRequestBodyParam(index)">Remove</button>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
<input :name="'value'+index" v-model="header.value">
|
<input :name="'value'+index" v-model="header.value">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="header"> </label>
|
<label for="header" class="hide-on-small-screen"> </label>
|
||||||
<button name="header" @click="removeRequestHeader(index)">Remove</button>
|
<button name="header" @click="removeRequestHeader(index)">Remove</button>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
<input :name="'value'+index" v-model="param.value">
|
<input :name="'value'+index" v-model="param.value">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="param"> </label>
|
<label for="param" class="hide-on-small-screen"> </label>
|
||||||
<button name="param" @click="removeRequestParam(index)">Remove</button>
|
<button name="param" @click="removeRequestParam(index)">Remove</button>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
@@ -175,12 +175,10 @@
|
|||||||
<label for="body">response</label>
|
<label for="body">response</label>
|
||||||
<button v-if="response.body" name="action" @click="copyResponse">Copy Response</button>
|
<button v-if="response.body" name="action" @click="copyResponse">Copy Response</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="response-details-wrapper">
|
<div id="response-details-wrapper">
|
||||||
<textarea name="body" rows="16" id="response-details" readonly>{{response.body || '(waiting to send request)'}}</textarea>
|
<textarea name="body" rows="16" id="response-details" readonly>{{response.body || '(waiting to send request)'}}</textarea>
|
||||||
<iframe src="about:blank" class="covers-response" ref="previewFrame" :class="{hidden: !previewEnabled}"></iframe>
|
<iframe src="about:blank" class="covers-response" ref="previewFrame" :class="{hidden: !previewEnabled}"></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="response.body && responseType === 'text/html'" class="align-right">
|
<div v-if="response.body && responseType === 'text/html'" class="align-right">
|
||||||
<button @click.prevent="togglePreview">{{ previewEnabled ? 'Hide Preview' : 'Preview HTML' }}</button>
|
<button @click.prevent="togglePreview">{{ previewEnabled ? 'Hide Preview' : 'Preview HTML' }}</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -212,11 +210,11 @@
|
|||||||
<input name="path" type="text" readonly :value="entry.path">
|
<input name="path" type="text" readonly :value="entry.path">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="delete"> </label>
|
<label for="delete" class="hide-on-small-screen"> </label>
|
||||||
<button name="delete" @click="deleteHistory(entry)">Delete</button>
|
<button name="delete" @click="deleteHistory(entry)">Delete</button>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="use"> </label>
|
<label for="use" class="hide-on-small-screen"> </label>
|
||||||
<button name="use" @click="useHistory(entry)">Use</button>
|
<button name="use" @click="useHistory(entry)">Use</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -255,7 +253,6 @@
|
|||||||
statusCodeRegex: new RegExp(/.*/),
|
statusCodeRegex: new RegExp(/.*/),
|
||||||
className: 'missing-data-response'
|
className: 'missing-data-response'
|
||||||
}
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
const parseHeaders = xhr => {
|
const parseHeaders = xhr => {
|
||||||
const headers = xhr.getAllResponseHeaders().trim().split(/[\r\n]+/);
|
const headers = xhr.getAllResponseHeaders().trim().split(/[\r\n]+/);
|
||||||
@@ -357,7 +354,6 @@
|
|||||||
}) => `${key}=${encodeURIComponent(value)}`).join('&')
|
}) => `${key}=${encodeURIComponent(value)}`).join('&')
|
||||||
return result == '' ? '' : `?${result}`
|
return result == '' ? '' : `?${result}`
|
||||||
},
|
},
|
||||||
|
|
||||||
responseType() {
|
responseType() {
|
||||||
return (this.response.headers['content-type'] || '').split(';')[0].toLowerCase();
|
return (this.response.headers['content-type'] || '').split(';')[0].toLowerCase();
|
||||||
}
|
}
|
||||||
@@ -391,35 +387,28 @@
|
|||||||
alert('Please check the formatting of the URL');
|
alert('Please check the formatting of the URL');
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.$refs.response.$el.classList.contains('hidden')) {
|
if (this.$refs.response.$el.classList.contains('hidden')) {
|
||||||
this.$refs.response.$el.classList.toggle('hidden')
|
this.$refs.response.$el.classList.toggle('hidden')
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$refs.response.$el.scrollIntoView({
|
this.$refs.response.$el.scrollIntoView({
|
||||||
behavior: 'smooth'
|
behavior: 'smooth'
|
||||||
});
|
});
|
||||||
|
|
||||||
this.previewEnabled = false;
|
this.previewEnabled = false;
|
||||||
this.response.status = 'Fetching...';
|
this.response.status = 'Fetching...';
|
||||||
this.response.body = 'Loading...';
|
this.response.body = 'Loading...';
|
||||||
|
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
const user = this.auth === 'Basic' ? this.httpUser : null;
|
const user = this.auth === 'Basic' ? this.httpUser : null;
|
||||||
const password = this.auth === 'Basic' ? this.httpPassword : null;
|
const password = this.auth === 'Basic' ? this.httpPassword : null;
|
||||||
xhr.open(this.method, this.url + this.path + this.queryString, true, user, password);
|
xhr.open(this.method, this.url + this.path + this.queryString, true, user, password);
|
||||||
|
|
||||||
if (this.auth === 'Bearer Token') xhr.setRequestHeader(
|
if (this.auth === 'Bearer Token') xhr.setRequestHeader(
|
||||||
'Authorization',
|
'Authorization',
|
||||||
'Bearer ' + this.bearerToken
|
'Bearer ' + this.bearerToken
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this.headers) {
|
if (this.headers) {
|
||||||
this.headers.forEach(function(element) {
|
this.headers.forEach(function(element) {
|
||||||
xhr.setRequestHeader(element.key, element.value)
|
xhr.setRequestHeader(element.key, element.value)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.method === 'POST' || this.method === 'PUT') {
|
if (this.method === 'POST' || this.method === 'PUT') {
|
||||||
const requestBody = this.rawInput ? this.rawParams : this.rawRequestBody;
|
const requestBody = this.rawInput ? this.rawParams : this.rawRequestBody;
|
||||||
xhr.setRequestHeader('Content-Length', requestBody.length);
|
xhr.setRequestHeader('Content-Length', requestBody.length);
|
||||||
@@ -428,16 +417,13 @@
|
|||||||
} else {
|
} else {
|
||||||
xhr.send();
|
xhr.send();
|
||||||
}
|
}
|
||||||
|
|
||||||
xhr.onload = e => {
|
xhr.onload = e => {
|
||||||
this.response.status = xhr.status;
|
this.response.status = xhr.status;
|
||||||
const headers = this.response.headers = parseHeaders(xhr);
|
const headers = this.response.headers = parseHeaders(xhr);
|
||||||
|
|
||||||
this.response.body = xhr.responseText;
|
this.response.body = xhr.responseText;
|
||||||
if ((headers['content-type'] || '').startsWith('application/json')) {
|
if ((headers['content-type'] || '').startsWith('application/json')) {
|
||||||
this.response.body = JSON.stringify(JSON.parse(this.response.body), null, 2);
|
this.response.body = JSON.stringify(JSON.parse(this.response.body), null, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const n = new Date().toLocaleTimeString();
|
const n = new Date().toLocaleTimeString();
|
||||||
this.history = [{
|
this.history = [{
|
||||||
status: xhr.status,
|
status: xhr.status,
|
||||||
@@ -448,7 +434,6 @@
|
|||||||
}, ...this.history];
|
}, ...this.history];
|
||||||
window.localStorage.setItem('history', JSON.stringify(this.history));
|
window.localStorage.setItem('history', JSON.stringify(this.history));
|
||||||
};
|
};
|
||||||
|
|
||||||
xhr.onerror = e => {
|
xhr.onerror = e => {
|
||||||
this.response.status = xhr.status;
|
this.response.status = xhr.status;
|
||||||
this.response.body = xhr.statusText;
|
this.response.body = xhr.statusText;
|
||||||
@@ -459,7 +444,6 @@
|
|||||||
key: '',
|
key: '',
|
||||||
value: ''
|
value: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
removeRequestHeader(index) {
|
removeRequestHeader(index) {
|
||||||
@@ -507,16 +491,13 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
copyResponse() {
|
copyResponse() {
|
||||||
var copyText = document.getElementById("response-details");
|
var copyText = document.getElementById("response-details");
|
||||||
copyText.select();
|
copyText.select();
|
||||||
document.execCommand("copy");
|
document.execCommand("copy");
|
||||||
},
|
},
|
||||||
|
|
||||||
togglePreview() {
|
togglePreview() {
|
||||||
this.previewEnabled = !this.previewEnabled;
|
this.previewEnabled = !this.previewEnabled;
|
||||||
|
|
||||||
if (this.previewEnabled) {
|
if (this.previewEnabled) {
|
||||||
// If you want to add 'preview' support for other response types,
|
// If you want to add 'preview' support for other response types,
|
||||||
// just add them here.
|
// just add them here.
|
||||||
@@ -524,7 +505,6 @@
|
|||||||
// If the preview already has that URL loaded, let's not bother re-loading it all.
|
// If the preview already has that URL loaded, let's not bother re-loading it all.
|
||||||
if (this.$refs.previewFrame.getAttribute('data-previewing-url') === this.url)
|
if (this.$refs.previewFrame.getAttribute('data-previewing-url') === this.url)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Use DOMParser to parse document HTML.
|
// Use DOMParser to parse document HTML.
|
||||||
const previewDocument = new DOMParser().parseFromString(this.response.body, this.responseType);
|
const previewDocument = new DOMParser().parseFromString(this.response.body, this.responseType);
|
||||||
// Inject <base href="..."> tag to head, to fix relative CSS/HTML paths.
|
// Inject <base href="..."> tag to head, to fix relative CSS/HTML paths.
|
||||||
@@ -537,4 +517,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<input id="url" type="url" :class="{ error: !urlValid }" v-model="url" @keyup.enter="toggleConnection">
|
<input id="url" type="url" :class="{ error: !urlValid }" v-model="url" @keyup.enter="toggleConnection">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label> </label>
|
<label for="action" class="hide-on-small-screen"> </label>
|
||||||
<button :class="{ disabled: !urlValid }" name="action" @click="toggleConnection">{{ toggleConnectionVerb }}</button>
|
<button :class="{ disabled: !urlValid }" name="action" @click="toggleConnection">{{ toggleConnectionVerb }}</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
<input id="message" name="message" type="text" v-model="communication.input" :readonly="!connectionState" @keyup.enter="sendMessage">
|
<input id="message" name="message" type="text" v-model="communication.input" :readonly="!connectionState" @keyup.enter="sendMessage">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label> </label>
|
<label for="send" class="hide-on-small-screen"> </label>
|
||||||
<button name="send" :class="{ disabled: !connectionState }" @click="sendMessage">Send</button>
|
<button name="send" :class="{ disabled: !connectionState }" @click="sendMessage">Send</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user