mirror of
https://github.com/BrenBroZAYT/dashy.git
synced 2026-06-14 00:49:58 +00:00
31 lines
475 B
Vue
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>
|