forked from AkkomaGang/akkoma-fe
Add /cyb/ background by sonyam.
This commit is contained in:
parent
d7c9261dab
commit
a3b2be09b3
5 changed files with 8 additions and 3 deletions
|
@ -16,7 +16,10 @@ export default {
|
||||||
}),
|
}),
|
||||||
computed: {
|
computed: {
|
||||||
currentUser () { return this.$store.state.users.currentUser },
|
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 }
|
sitename () { return this.$store.state.config.name }
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -71,7 +71,8 @@ new Vue({
|
||||||
|
|
||||||
window.fetch('/static/config.json')
|
window.fetch('/static/config.json')
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then(({name, theme}) => {
|
.then(({name, theme, background}) => {
|
||||||
store.dispatch('setOption', { name: 'name', value: name })
|
store.dispatch('setOption', { name: 'name', value: name })
|
||||||
store.dispatch('setOption', { name: 'theme', value: theme })
|
store.dispatch('setOption', { name: 'theme', value: theme })
|
||||||
|
store.dispatch('setOption', { name: 'background', value: background })
|
||||||
})
|
})
|
||||||
|
|
BIN
static/bg.jpg
Normal file
BIN
static/bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 224 KiB |
BIN
static/bgalt.jpg
Normal file
BIN
static/bgalt.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 323 KiB |
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "Pleroma FE",
|
"name": "Pleroma FE",
|
||||||
"theme": "base16-ashes.css"
|
"theme": "base16-ashes.css",
|
||||||
|
"background": "/static/bg.jpg"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue