mirror of
https://github.com/Av0idD4rk/packmate.git
synced 2026-10-25 13:29:24 +00:00
Переименованы поля WS
This commit is contained in:
parent
74c754c046
commit
4a0cb2c91f
@ -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(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
@ -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() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user