2021-07-30 18:18:04 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2021-08-05 00:33:47 +00:00
|
|
|
<pre class="json">{{ userJson }}</pre>
|
|
|
|
<pre class="json">{{ engineJson }}</pre>
|
2021-07-30 18:18:04 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2021-08-05 00:22:28 +00:00
|
|
|
async mounted() {
|
|
|
|
await this.$engine.start()
|
2021-07-30 18:18:04 +00:00
|
|
|
},
|
|
|
|
computed: {
|
2021-08-05 00:33:47 +00:00
|
|
|
engineJson() {
|
2021-07-30 19:03:43 +00:00
|
|
|
return JSON.stringify(this.$store.state.engine.json, null, 2)
|
2021-07-30 18:18:04 +00:00
|
|
|
},
|
2021-08-05 00:33:47 +00:00
|
|
|
userJson() {
|
2021-08-05 00:22:28 +00:00
|
|
|
return JSON.stringify(this.$store.state.engine.user, null, 2)
|
|
|
|
},
|
2021-07-30 18:18:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.json {
|
|
|
|
margin: 1em 2em;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
</style>
|