mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Very rough go at connecting to socket and rendering console data for server
This commit is contained in:
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user