Переименованы поля WS

This commit is contained in:
serega6531 2020-04-10 17:32:11 +03:00
parent 74c754c046
commit 4a0cb2c91f
3 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="packet" :class="{'packet-incoming': packet.incoming}"> <div class="packet" :class="{'packet-incoming': packet.incoming}">
<div>#{{ packet.id }} at {{ dateToText(packet.timestamp) }}, {{ packet.ungzipped ? 'GZIP ' : '' }}{{ packet.webSocketInflated ? 'WS' : '' }} <div>#{{ packet.id }} at {{ dateToText(packet.timestamp) }}, {{ packet.ungzipped ? 'GZIP ' : '' }}{{ packet.webSocketParsed ? 'WS' : '' }}
<button @click.prevent="copyRaw" class="btn btn-link">Copy HEX</button> <button @click.prevent="copyRaw" class="btn btn-link">Copy HEX</button>
<button @click.prevent="copyText" class="btn btn-link">Copy text</button> <button @click.prevent="copyText" class="btn btn-link">Copy text</button>
<button @click.prevent="copyPythonBytes" class="btn btn-link">Copy as Python bytes</button> <button @click.prevent="copyPythonBytes" class="btn btn-link">Copy as Python bytes</button>
@ -25,7 +25,7 @@
timestamp: Number(), timestamp: Number(),
incoming: Boolean(), incoming: Boolean(),
ungzipped: Boolean(), ungzipped: Boolean(),
webSocketInflated: Boolean(), webSocketParsed: Boolean(),
content: String(), content: String(),
}, },
}, },

View File

@ -43,7 +43,7 @@
label="Inflate WebSockets" label="Inflate WebSockets"
label-for="addSvc-inflateWS"> label-for="addSvc-inflateWS">
<b-form-checkbox id="addSvc-inflateWS" required <b-form-checkbox id="addSvc-inflateWS" required
v-model="inflateWebSockets"/> v-model="parseWebSockets"/>
</b-form-group> </b-form-group>
</form> </form>
</b-modal> </b-modal>
@ -59,7 +59,7 @@
ungzipHttp: Boolean(), ungzipHttp: Boolean(),
urldecodeHttpRequests: Boolean(), urldecodeHttpRequests: Boolean(),
mergeAdjacentPackets: Boolean(), mergeAdjacentPackets: Boolean(),
inflateWebSockets: Boolean(), parseWebSockets: Boolean(),
}; };
}, },
methods: { methods: {
@ -75,7 +75,7 @@
this.ungzipHttp = false; this.ungzipHttp = false;
this.urldecodeHttpRequests = false; this.urldecodeHttpRequests = false;
this.mergeAdjacentPackets = false; this.mergeAdjacentPackets = false;
this.inflateWebSockets = false; this.parseWebSockets = false;
}, },
createService(ev) { createService(ev) {
@ -84,7 +84,7 @@
const ungzipHttp = this.ungzipHttp; const ungzipHttp = this.ungzipHttp;
const urldecodeHttpRequests = this.urldecodeHttpRequests; const urldecodeHttpRequests = this.urldecodeHttpRequests;
const mergeAdjacentPackets = this.mergeAdjacentPackets; const mergeAdjacentPackets = this.mergeAdjacentPackets;
const inflateWebSockets = this.inflateWebSockets; const parseWebSockets = this.parseWebSockets;
if (!this.checkValidity()) { if (!this.checkValidity()) {
ev.preventDefault(); ev.preventDefault();
console.debug('Form is invalid'); console.debug('Form is invalid');
@ -98,7 +98,7 @@
ungzipHttp, ungzipHttp,
urldecodeHttpRequests, urldecodeHttpRequests,
mergeAdjacentPackets, mergeAdjacentPackets,
inflateWebSockets, parseWebSockets,
}).then(response => { }).then(response => {
const data = response.data; const data = response.data;
console.debug('Done adding service', data); console.debug('Done adding service', data);

View File

@ -39,7 +39,7 @@
label="Inflate WebSockets" label="Inflate WebSockets"
label-for="service-inflateWS"> label-for="service-inflateWS">
<b-form-checkbox id="service-inflateWS" required <b-form-checkbox id="service-inflateWS" required
v-model="service.inflateWebSockets"/> v-model="service.parseWebSockets"/>
</b-form-group> </b-form-group>
</b-form> </b-form>
</b-modal> </b-modal>
@ -59,7 +59,7 @@
ungzipHttp: Boolean, ungzipHttp: Boolean,
urldecodeHttpRequests: Boolean, urldecodeHttpRequests: Boolean,
mergeAdjacentPackets: Boolean, mergeAdjacentPackets: Boolean,
inflateWebSockets: Boolean, parseWebSockets: Boolean,
}, },
}, },
data() { data() {