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

29 lines
692 B
Vue
Raw Normal View History

2018-07-21 06:34:30 +01:00
<template>
<div>
<div class="text-xs font-mono">
<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>
2018-07-21 06:34:30 +01:00
</div>
<div class="rounded-b p-2 bg-grey-darkest text-white">$</div>
</div>
</div>
</template>
<script>
import {mapState} from 'vuex';
2018-07-21 06:34:30 +01:00
export default {
name: 'console-page',
computed: {
...mapState('server', ['console']),
},
2018-07-21 06:34:30 +01:00
data: function () {
return {
lines: [],
};
}
};
</script>