diff --git a/src/static/app/src/components/map/map.vue b/src/static/app/src/components/map/map.vue index de5bc57..025d325 100644 --- a/src/static/app/src/components/map/map.vue +++ b/src/static/app/src/components/map/map.vue @@ -68,7 +68,6 @@ export default { const marker = new Feature({ geometry: new Point(coordinate) }); - // Add marker to the vector source vectorSource.addFeature(marker); } const lineString = new LineString(coordinates); @@ -90,8 +89,8 @@ export default { } else if (feature.getGeometry().getType() === 'LineString') { return new Style({ stroke: new Stroke({ - color: '#0d6efd', // Line color - width: 2 // Line width + color: '#0d6efd', + width: 2 }) }); } @@ -103,11 +102,15 @@ export default { - + \ No newline at end of file diff --git a/src/static/app/src/views/ping.vue b/src/static/app/src/views/ping.vue index 8511ca6..1c48a7b 100644 --- a/src/static/app/src/views/ping.vue +++ b/src/static/app/src/views/ping.vue @@ -46,7 +46,9 @@ export default { }else{ this.store.newMessage("Server", res.message, "danger") } + this.pinging = false }) + } {} } }, @@ -73,7 +75,7 @@ export default { - + {{key}} @@ -85,7 +87,7 @@ export default { - + @@ -98,7 +100,7 @@ export default { - + @@ -141,29 +144,40 @@ export default { - - - - - - - Ping! + + + Ping! + + + + Loading... + + + + + - - + + + + + @@ -216,9 +230,8 @@ export default { - - + @@ -241,17 +254,12 @@ export default { .ping-leave-active{ position: absolute; + width: 100%; } - .ping-enter-from, .ping-leave-to { opacity: 0; - //transform: scale(0.9); - } - - /* ensure leaving items are taken out of layout flow so that moving - animations can be calculated correctly. */ - .ping-leave-active { - position: absolute; + //transform: scale(1.1); + filter: blur(3px); } \ No newline at end of file diff --git a/src/static/app/src/views/traceroute.vue b/src/static/app/src/views/traceroute.vue index 14793b1..ca95de0 100644 --- a/src/static/app/src/views/traceroute.vue +++ b/src/static/app/src/views/traceroute.vue @@ -48,24 +48,37 @@ export default { IP Address - - {{this.tracing ? "Tracing...":"Trace It!"}} + + + Trace! + + + + Loading... + + - + + + @@ -111,7 +124,7 @@ export default { - + @@ -130,12 +143,14 @@ export default { .ping-leave-active{ position: absolute; + width: 100%; } .ping-enter-from, .ping-leave-to { opacity: 0; - //transform: scale(0.9); + //transform: scale(1.1); + filter: blur(3px); } /* ensure leaving items are taken out of layout flow so that moving @@ -151,4 +166,21 @@ table th, table td{ .table > :not(caption) > * > *{ background-color: transparent !important; } + +.ping-move, /* apply transition to moving elements */ +.ping-enter-active, +.ping-leave-active { + transition: all 0.4s cubic-bezier(0.82, 0.58, 0.17, 0.9); +} + +.ping-leave-active{ + position: absolute; + width: 100%; +} +.ping-enter-from, +.ping-leave-to { + opacity: 0; + //transform: scale(1.1); + filter: blur(3px); +} \ No newline at end of file diff --git a/src/static/css/dashboard.css b/src/static/css/dashboard.css index 0fb474c..4860142 100644 --- a/src/static/css/dashboard.css +++ b/src/static/css/dashboard.css @@ -1166,3 +1166,24 @@ pre.index-alert { .messageCentre{ z-index: 9999; } + + +.slide-move, /* apply transition to moving elements */ +.slide-enter-active, +.slide-leave-active { + transition: all 0.4s cubic-bezier(0.82, 0.58, 0.17, 0.9); +} + +.slide-leave-active{ + position: absolute; + width: 100%; +} +.slide-enter-from{ + opacity: 0; + transform: translateX(-50px) !important; +} + +.slide-leave-to { + opacity: 0; + transform: translateX(50px) !important; +} \ No newline at end of file