Add /cyb/ background by sonyam.
This commit is contained in:
parent
d7c9261dab
commit
a3b2be09b3
|
@ -16,7 +16,10 @@ export default {
|
|||
}),
|
||||
computed: {
|
||||
currentUser () { return this.$store.state.users.currentUser },
|
||||
style () { return { 'background-image': `url(${this.currentUser.background_image})` } },
|
||||
background () {
|
||||
return this.currentUser.background_image || this.$store.state.config.background
|
||||
},
|
||||
style () { return { 'background-image': `url(${this.background})` } },
|
||||
sitename () { return this.$store.state.config.name }
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -71,7 +71,8 @@ new Vue({
|
|||
|
||||
window.fetch('/static/config.json')
|
||||
.then((res) => res.json())
|
||||
.then(({name, theme}) => {
|
||||
.then(({name, theme, background}) => {
|
||||
store.dispatch('setOption', { name: 'name', value: name })
|
||||
store.dispatch('setOption', { name: 'theme', value: theme })
|
||||
store.dispatch('setOption', { name: 'background', value: background })
|
||||
})
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 224 KiB |
Binary file not shown.
After Width: | Height: | Size: 323 KiB |
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"name": "Pleroma FE",
|
||||
"theme": "base16-ashes.css"
|
||||
"theme": "base16-ashes.css",
|
||||
"background": "/static/bg.jpg"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue