Very rough go at connecting to socket and rendering console data for server

This commit is contained in:
Dane Everitt 2018-07-20 23:45:07 -07:00
parent 784c73becd
commit 8db9d9bbee
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
9 changed files with 311 additions and 114 deletions

View file

@ -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: [],