Skip to content

Commit

Permalink
Theme redirect page
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHirt committed Nov 23, 2020
1 parent a32cdff commit 4b2c0b2
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 12 deletions.
8 changes: 5 additions & 3 deletions src/pages/accessDenied.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<template>
<div class="oc-login" uk-height-viewport>
<div class="oc-login-card uk-position-center">
<h1 v-translate class="oc-login-logo">
ownCloud
</h1>
<img class="oc-login-logo" :src="logoImg" :alt="configuration.theme.general.name" />
<div class="oc-login-card-body uk-width-large">
<h3 class="oc-login-card-title">
<span v-translate>Login Error</span>
Expand Down Expand Up @@ -62,6 +60,10 @@ export default {
return this.configuration.theme.general.helpDeskLinkText
}
return ''
},
logoImg() {
return this.configuration.theme.logo.login
}
},
methods: {
Expand Down
22 changes: 17 additions & 5 deletions src/pages/oidcCallback.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<template>
<div class="oc-login" uk-height-viewport>
<div
class="oc-login"
:style="{ backgroundImage: 'url(' + backgroundImg + ')' }"
uk-height-viewport
>
<div class="oc-login-card uk-position-center">
<h1 v-translate class="oc-login-logo">
ownCloud
</h1>
<img class="oc-login-logo" :src="logoImg" :alt="configuration.theme.general.name" />
<div v-show="error" class="oc-login-card-body">
<h3 class="oc-login-card-title">
<translate>Authentication failed</translate>
Expand Down Expand Up @@ -38,9 +40,19 @@ export default {
error: false
}
},
computed: {
...mapGetters(['configuration'])
...mapGetters(['configuration']),
backgroundImg() {
return this.configuration.theme.loginPage.backgroundImg
},
logoImg() {
return this.configuration.theme.logo.login
}
},
mounted() {
this.$nextTick(() => {
if (this.$route.query.error) {
Expand Down
6 changes: 4 additions & 2 deletions src/store/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ const state = {
},
logo: {
sidebar: '',
favicon: ''
favicon: '',
login: ''
},
filesList: {
hideDefaultStatusIndicators: false
},
loginPage: {
autoRedirect: true
autoRedirect: true,
backgroundImg: ''
}
},
options: {
Expand Down
6 changes: 4 additions & 2 deletions themes/owncloud.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
},
"logo": {
"sidebar": "themes/owncloud/assets/logo.svg",
"favicon": "themes/owncloud/favicon.jpg"
"favicon": "themes/owncloud/favicon.jpg",
"login": "themes/owncloud/assets/logo.svg"
},
"filesList": {
"hideDefaultStatusIndicators": false
},
"loginPage": {
"autoRedirect": true
"autoRedirect": true,
"backgroundImg": "themes/owncloud/assets/loginBackground.jpg"
}
}
Binary file added themes/owncloud/assets/loginBackground.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b2c0b2

Please sign in to comment.