Skip to content

Commit c772376

Browse files
committed
Add the expected buttons, reset color on each line
1 parent 4c357e9 commit c772376

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

resources/assets/scripts/components/server/Server.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@
1313
<h3 class="mb-2 text-blue font-medium">{{server.name}}</h3>
1414
<span class="text-grey-dark text-sm">{{server.node}}</span>
1515
</div>
16-
<div class="mt-6 p-4 text-center bg-white border rounded">
17-
<button class="btn btn-red uppercase text-xs px-4 py-2">Stop</button>
18-
<button class="btn btn-secondary uppercase text-xs px-4 py-2">Restart</button>
19-
<button class="btn btn-secondary uppercase text-xs px-4 py-2">Kill</button>
20-
</div>
16+
<power-buttons class="mt-6 p-4 text-center bg-white border rounded"/>
2117
<div class="mt-6 p-4 bg-white border rounded">
2218
<progress-bar title="Memory" percent="33"></progress-bar>
2319
<progress-bar title="CPU" percent="80" class="mt-4"></progress-bar>
@@ -66,7 +62,6 @@
6662
import { TerminalIcon, FolderIcon, UsersIcon, CalendarIcon, DatabaseIcon, GlobeIcon, SettingsIcon } from 'vue-feather-icons'
6763
import Navigation from '../core/Navigation';
6864
import ProgressBar from './components/ProgressBar';
69-
import {mapState} from 'vuex';
7065
import { mapState } from 'vuex';
7166
import VueSocketio from 'vue-socket.io-extended';
7267
import io from 'socket.io-client';

resources/assets/scripts/components/server/subpages/ConsolePage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@
5656
sockets: {
5757
'server log': function (data) {
5858
data.split(/\n/g).forEach(line => {
59-
this.terminal.writeln(line);
59+
this.terminal.writeln(line + '\u001b[0m');
6060
});
6161
},
6262
6363
'console': function (data) {
6464
data.line.split(/\n/g).forEach(line => {
65-
this.terminal.writeln(line);
65+
this.terminal.writeln(line + '\u001b[0m');
6666
});
6767
}
6868
},

0 commit comments

Comments
 (0)