Some stuff for easier logging configuration - wip
This commit is contained in:
parent
4c0aca48fd
commit
acfa833203
28
src/common/components/JsonExplorer.vue
Normal file
28
src/common/components/JsonExplorer.vue
Normal file
@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="root">
|
||||
<template v-for="key in json"
|
||||
>
|
||||
<div class="element" :key="key">
|
||||
<span class="json-key">"{{key}}"</span>:
|
||||
<template v-if="Array.isArray(json[key])">
|
||||
[<br/>
|
||||
<div v-for="index of json[key]"
|
||||
class="json-table-row"
|
||||
:key="index"
|
||||
>
|
||||
|
||||
</div>
|
||||
]
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "json-explorer",
|
||||
props: {
|
||||
json: Object
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user