Files
dashy/src/views/DownloadConfig.vue
2021-06-21 13:07:49 +01:00

36 lines
603 B
Vue

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