<template>
  <div>
    <pre class="json">{{ userJson }}</pre>
    <pre class="json">{{ engineJson }}</pre>
  </div>
</template>

<script>
export default {
  async mounted() {
    await this.$engine.start()
  },
  computed: {
    engineJson() {
      return JSON.stringify(this.$store.state.engine.json, null, 2)
    },
    userJson() {
      return JSON.stringify(this.$store.state.engine.user, null, 2)
    },
  }
}
</script>

<style lang="scss">
.json {
  margin: 1em 2em;
  color: #ffffff;
}
</style>
