knowyt/client/src/components/EngineDebug.vue

36 lines
650 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">
2021-11-28 16:24:22 +00:00
@import '~/assets/css/components';
2021-08-12 22:12:04 +00:00
.enginedebug {
width: 100%;
height: 100%;
2021-08-30 10:24:28 +00:00
background-color: rgba(0, 32, 64, 0.75);
2021-08-15 15:43:00 +00:00
overflow: auto;
2021-08-12 22:12:04 +00:00
&__json {
color: #808080;
font-size: 10px;
2021-08-12 22:12:04 +00:00
}
}
</style>