diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fbe1f599..c05e34f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ # This file is a template, and might need editing before it works on your project. # Official framework image. Look for the different tagged releases at: # https://hub.docker.com/r/library/node/tags/ -image: node:6 +image: node:7 before_script: # Install ssh-agent if not already installed, it is required by Docker. @@ -29,12 +29,14 @@ cache: test: script: - - npm install + - npm install -g yarn + - yarn - npm run unit build: script: - - npm install + - npm install -g yarn + - yarn - npm run build artifacts: paths: @@ -45,6 +47,7 @@ deploy: only: - develop script: - - npm install + - npm install -g yarn + - yarn - npm run build - scp -r dist/* pleroma@tenshi.heldscal.la:~/pleroma diff --git a/.node-version b/.node-version new file mode 100644 index 00000000..b26a34e4 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +7.2.1 diff --git a/index.html b/index.html index 52216b15..668b21bb 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - +
diff --git a/src/App.js b/src/App.js index 03421c62..4b0e81d0 100644 --- a/src/App.js +++ b/src/App.js @@ -14,7 +14,11 @@ 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 + }, + logoStyle () { return { 'background-image': `url(${this.$store.state.config.logo})` } }, + style () { return { 'background-image': `url(${this.background})` } }, sitename () { return this.$store.state.config.name } }, methods: { diff --git a/src/App.scss b/src/App.scss index e5d4c74f..b7bbf8ef 100644 --- a/src/App.scss +++ b/src/App.scss @@ -63,6 +63,10 @@ nav { align-items: center; flex-basis: 920px; margin: auto; + height: 50px; + background-repeat: no-repeat; + background-position: center; + background-size: contain; } } diff --git a/src/App.vue b/src/App.vue index fc510fda..7bd79280 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@