knowyt/client/src/components/EngineDebug.vue

37 lines
670 B
Vue
Raw Normal View History

2021-08-12 22:12:04 +00:00
<template>
<div class="enginedebug">
<pre class="enginedebug__json">{{ userJson }}</pre>
<pre class="enginedebug__json">{{ engineJson }}</pre>
</div>
</template>
<script>
export default {
computed: {
userJson() {
return JSON.stringify(this.$store.state.engine.user, null, 2)
},
engineJson() {
return JSON.stringify(this.$store.state.engine.json, null, 2)
},
}
}
</script>
<style lang="scss">
.enginedebug {
position: absolute;
right: 0;
bottom: 0;
2021-08-30 10:24:28 +00:00
max-height: 100%;
background-color: rgba(0, 32, 64, 0.75);
2021-08-15 15:43:00 +00:00
max-width: 600px;
overflow: auto;
2021-08-12 22:12:04 +00:00
&__json {
margin: 1em 2em;
color: #808080;
}
}
</style>