2021-07-30 18:18:04 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2021-08-05 00:22:28 +00:00
|
|
|
<pre class="json">{{ user }}</pre>
|
2021-07-30 18:18:04 +00:00
|
|
|
<pre class="json">{{ json }}</pre>
|
|
|
|
</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: {
|
|
|
|
json() {
|
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:22:28 +00:00
|
|
|
user() {
|
|
|
|
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>
|