Very rough go at connecting to socket and rendering console data for server
This commit is contained in:
parent
784c73becd
commit
8db9d9bbee
9 changed files with 311 additions and 114 deletions
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="text-xs font-mono">
|
||||
<div class="rounded-t p-2 bg-black text-grey-lightest h-48">
|
||||
|
||||
<div class="rounded-t p-2 bg-black text-grey-lightest overflow-scroll" style="min-height: 16rem;max-height:32rem;">
|
||||
<span class="block" v-for="line in console">{{line}}</span>
|
||||
</div>
|
||||
<div class="rounded-b p-2 bg-grey-darkest text-white">$</div>
|
||||
</div>
|
||||
|
@ -10,9 +10,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from 'vuex';
|
||||
|
||||
export default {
|
||||
name: 'console-page',
|
||||
|
||||
computed: {
|
||||
...mapState('server', ['console']),
|
||||
},
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
lines: [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue