π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
<template>
<pre v-if="allowViewConfig"><code>{{ yamlConfig }}</code></pre>
<AccessError v-else />
</template>
<script>
import { dump as yamlDump } from '@/utils/yaml';
import AccessError from '@/components/Configuration/AccessError';
export default {
name: 'DownloadConfig',
components: {
AccessError,
},
computed: {
config() {
return this.$store.state.configSource;
},
yamlConfig() {
return yamlDump(this.config);
},
allowViewConfig() {
return this.$store.getters.permissions.allowViewConfig;
},
},
};
</script>
<style scoped lang="scss">
pre {
margin: 0;
padding: 1rem;
color: var(--code-editor-color);
background: var(--code-editor-background);
}
</style>