Files
dashy/src/views/DownloadConfig.vue
T
2021-10-09 19:42:51 +01:00

31 lines
475 B
Vue

<template>
<pre><code>{{ jsonParser(config) }}</code></pre>
</template>
<script>
import JsonToYaml from '@/utils/JsonToYaml';
export default {
name: 'DownloadConfig',
computed: {
config() {
return this.$store.state.config;
},
},
data() {
return {
jsonParser: JsonToYaml,
};
},
};
</script>
<style scoped lang="scss">
pre {
background: var(--code-editor-background);
color: var(--code-editor-color);
padding: 1rem;
}
</style>