From e789d52c4b7879d66eef35288640115e3e7795c2 Mon Sep 17 00:00:00 2001 From: serega6531 Date: Fri, 10 Apr 2020 20:25:23 +0300 Subject: [PATCH 1/4] =?UTF-8?q?=D0=9A=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=D0=B0=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D0=B8=20pcap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 12 ++++++++++++ src/components/Sidebar.vue | 23 +++++++++++++++++++++++ src/store.js | 4 ++++ src/views/EditService.vue | 4 ++-- 4 files changed, 41 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index f819f22..bf0295d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -129,6 +129,18 @@ this.$refs.navbar.$refs.patternsDropdown.togglePatternFromWs(parsed.value, false); break; } + case 'PCAP_STARTED': { + this.$store.commit('startPcap'); + break; + } + case 'PCAP_STOPPED': { + this.$bvToast.toast(`All streams processed`, { + title: 'Notification', + variant: 'success', + autoHideDelay: 5000, + }); + break; + } default: { console.error('[WS] Event is not implemented!', parsed); break; diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index a9e29fb..dbe2a3d 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -15,6 +15,10 @@ @click.stop.prevent="toggleHexdump"> + - From c4d60c9ee2835de8c02eec8a7d2cc15a28aa668a Mon Sep 17 00:00:00 2001 From: serega6531 Date: Fri, 10 Apr 2020 20:50:43 +0300 Subject: [PATCH 3/4] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BE=D0=BF=D0=BE=D0=B2=D0=B5=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BF=D1=80=D0=B8=20=D0=BD=D0=B0=D1=87=D0=B0?= =?UTF-8?q?=D0=BB=D0=B5=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D0=B8=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 5 +++++ src/components/Sidebar.vue | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/App.vue b/src/App.vue index bf0295d..c8b8815 100644 --- a/src/App.vue +++ b/src/App.vue @@ -131,6 +131,11 @@ } case 'PCAP_STARTED': { this.$store.commit('startPcap'); + this.$bvToast.toast(`Pcap file processing started`, { + title: 'Notification', + variant: 'info', + autoHideDelay: 5000, + }); break; } case 'PCAP_STOPPED': { diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index c254c87..c70280e 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -176,6 +176,11 @@ this.$http.post('pcap/start') .then(() => { this.$store.commit('startPcap'); + this.$bvToast.toast(`Pcap file processing started`, { + title: 'Notification', + variant: 'info', + autoHideDelay: 5000, + }); }).catch(e => { this.$bvToast.toast(`Failed to start pcap: ${e}`, { title: 'Error', From 44212ae2d90b75510f701329c6158c415a104cb5 Mon Sep 17 00:00:00 2001 From: serega6531 Date: Fri, 10 Apr 2020 21:13:17 +0300 Subject: [PATCH 4/4] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=BE?= =?UTF-8?q?=20=D0=BB=D0=B8=D1=88=D0=BD=D0=B5=D0=B5=20=D1=81=D0=BE=D0=BE?= =?UTF-8?q?=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sidebar.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index c70280e..c9c5dfa 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -5,7 +5,7 @@ :title="this.$store.state.pause ? 'Continue' : 'Pause new streams'" :class="this.$store.state.pause ? 'btn-danger' : 'btn-outline-success'" @click.stop.prevent="togglePause"> - +