15 min, search multiple
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4">
|
||||
<div class='input-group time' id='datetimepicker2'>
|
||||
<div class='input-group time' id='search_input'>
|
||||
<search-input ref="search" placeholder="Uživateľ"></search-input>
|
||||
<span class="input-group-append">
|
||||
<button v-on:click="displayResults()" type="button" class="btn btn-secondary">Zobraz</button>
|
||||
@@ -51,6 +51,7 @@
|
||||
|
||||
<script>
|
||||
$(document).ready( function() {
|
||||
Cookies.set('test','test2');
|
||||
var settings = { "network": { name:"Network",show: false, prefix: "netstat",suffix: { "recv": "Received", "sent": "Send Bytes" }, units:"B"},
|
||||
"temp": {name:"Temerature",show: false,prefix: null,units:"C"},
|
||||
"memory": {name:"Memory",show: false,prefix:"memory", suffix: {"free":"Free Memory", "total": "Total Memory","used":"Used Memory"},units: "KB"},
|
||||
@@ -62,6 +63,7 @@
|
||||
return new Promise((resolve) => setTimeout(resolve, time));
|
||||
}
|
||||
|
||||
|
||||
var app = new Vue({
|
||||
el: "#app",
|
||||
data: {
|
||||
@@ -71,6 +73,9 @@
|
||||
to_date:null,
|
||||
counter: 0
|
||||
},
|
||||
mounted: function () {
|
||||
console.log('MOUNTED');
|
||||
},
|
||||
methods: {
|
||||
changeDisplay: function (key) {
|
||||
for (s in settings) {
|
||||
@@ -96,6 +101,7 @@
|
||||
}
|
||||
})
|
||||
.then(function (response) {
|
||||
|
||||
for (s in app.settings) {
|
||||
app.settings[s].show = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user