diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-09-25 18:19:42 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-10-01 17:16:09 +0200 |
commit | b9bc2417e7a8dc81feb0abe20359bedaf864f790 (patch) | |
tree | 61b47fbf37c1d168da8625224debde9e6a985348 /core/src/login.js | |
parent | 7fb651235128dcbca8a6683b5cdafdf835f46300 (diff) | |
download | nextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.tar.gz nextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.zip |
Comply to eslint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/login.js')
-rw-r--r-- | core/src/login.js | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/core/src/login.js b/core/src/login.js index 12f3a896308..4314da7ab07 100644 --- a/core/src/login.js +++ b/core/src/login.js @@ -19,25 +19,26 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -import Vue from 'vue'; -import queryString from 'query-string'; +import Vue from 'vue' +import queryString from 'query-string' -import OC from './OC/index'; // TODO: Not needed but L10n breaks if removed -import LoginView from './views/Login.vue'; -import Nextcloud from './mixins/Nextcloud'; +// eslint-disable-next-line no-unused-vars +import OC from './OC/index' // TODO: Not needed but L10n breaks if removed +import LoginView from './views/Login.vue' +import Nextcloud from './mixins/Nextcloud' -const query = queryString.parse(location.search); +const query = queryString.parse(location.search) if (query.clear === '1') { try { - window.localStorage.clear(); - window.sessionStorage.clear(); - console.debug('Browser storage cleared'); + window.localStorage.clear() + window.sessionStorage.clear() + console.debug('Browser storage cleared') } catch (e) { - console.error('Could not clear browser storage', e); + console.error('Could not clear browser storage', e) } } -Vue.mixin(Nextcloud); +Vue.mixin(Nextcloud) const fromStateOr = (key, orValue) => { try { @@ -47,7 +48,7 @@ const fromStateOr = (key, orValue) => { } } -const View = Vue.extend(LoginView); +const View = Vue.extend(LoginView) new View({ propsData: { errors: fromStateOr('loginErrors', []), @@ -60,6 +61,6 @@ new View({ resetPasswordLink: fromStateOr('loginResetPasswordLink', ''), autoCompleteAllowed: fromStateOr('loginAutocomplete', true), resetPasswordTarget: fromStateOr('resetPasswordTarget', ''), - resetPasswordUser: fromStateOr('resetPasswordUser', ''), + resetPasswordUser: fromStateOr('resetPasswordUser', '') } -}).$mount('#login'); +}).$mount('#login') |