diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d5d370c9..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/* pleromaci@heldscal.la:~/pleroma + - 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/package.json b/package.json index 38321134..437ad57f 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "vue": "^2.0.1", "vue-router": "^2.0.1", "vue-timeago": "^3.1.2", - "vuex": "^2.0.0" + "vuex": "^2.0.0", + "vuex-persistedstate": "^1.1.0" }, "devDependencies": { "autoprefixer": "^6.4.0", diff --git a/src/App.js b/src/App.js index 14a41af0..06634adb 100644 --- a/src/App.js +++ b/src/App.js @@ -16,7 +16,12 @@ 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: { activatePanel (panelName) { diff --git a/src/App.scss b/src/App.scss index c820779a..d39fc749 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 5d5463fb..a22307a6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,9 @@