Improvement on web server (#215)

This commit is contained in:
Simon Lecoq
2021-04-08 20:26:03 +02:00
committed by GitHub
parent 7f3a1b365e
commit 7a36aba08f
10 changed files with 42 additions and 14 deletions

View File

@@ -86,6 +86,7 @@
descriptions:{
classic:"Classic template",
terminal:"Terminal template",
markdown:"(hidden)",
repository:"(hidden)",
},
},
@@ -97,6 +98,10 @@
},
//Computed data
computed:{
//Unusable plugins
unusable() {
return this.plugins.list.filter(({name}) => this.plugins.enabled[name]).filter(({enabled}) => !enabled).map(({name}) => name)
},
//User's avatar
avatar() {
return this.generated.content ? `https://github.com/${this.user}.png` : null