Add the expected buttons, reset color on each line

This commit is contained in:
Dane Everitt 2018-08-03 20:48:27 -07:00
parent 4c357e9231
commit c772376aa7
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 3 additions and 8 deletions

View file

@ -13,11 +13,7 @@
<h3 class="mb-2 text-blue font-medium">{{server.name}}</h3>
<span class="text-grey-dark text-sm">{{server.node}}</span>
</div>
<div class="mt-6 p-4 text-center bg-white border rounded">
<button class="btn btn-red uppercase text-xs px-4 py-2">Stop</button>
<button class="btn btn-secondary uppercase text-xs px-4 py-2">Restart</button>
<button class="btn btn-secondary uppercase text-xs px-4 py-2">Kill</button>
</div>
<power-buttons class="mt-6 p-4 text-center bg-white border rounded"/>
<div class="mt-6 p-4 bg-white border rounded">
<progress-bar title="Memory" percent="33"></progress-bar>
<progress-bar title="CPU" percent="80" class="mt-4"></progress-bar>
@ -66,7 +62,6 @@
import { TerminalIcon, FolderIcon, UsersIcon, CalendarIcon, DatabaseIcon, GlobeIcon, SettingsIcon } from 'vue-feather-icons'
import Navigation from '../core/Navigation';
import ProgressBar from './components/ProgressBar';
import {mapState} from 'vuex';
import { mapState } from 'vuex';
import VueSocketio from 'vue-socket.io-extended';
import io from 'socket.io-client';

View file

@ -56,13 +56,13 @@
sockets: {
'server log': function (data) {
data.split(/\n/g).forEach(line => {
this.terminal.writeln(line);
this.terminal.writeln(line + '\u001b[0m');
});
},
'console': function (data) {
data.line.split(/\n/g).forEach(line => {
this.terminal.writeln(line);
this.terminal.writeln(line + '\u001b[0m');
});
}
},