eslint --fix + small fix

This commit is contained in:
Henry Jameson 2020-05-25 03:43:55 +03:00
parent bcea2e4d12
commit e7ba4255bb
14 changed files with 927 additions and 921 deletions

View file

@ -12,7 +12,7 @@ const SettingsModal = {
modalPeeked () {
return this.$store.state.interface.settingsModalState === 'minimized'
}
},
}
}
export default SettingsModal

View file

@ -4,26 +4,33 @@
<span class="title">
{{ $t('settings.settings') }}
</span>
<button class="btn" @click="peekModal">
<button
class="btn"
@click="peekModal"
>
{{ $t('general.peek') }}
</button>
<button class="btn" @click="closeModal">
<button
class="btn"
@click="closeModal"
>
{{ $t('general.close') }}
</button>
</div>
<div class="panel-body">
<tab-switcher
class="settings_tab-switcher"
:sideTabBar="true"
:scrollableTabs="true"
ref="tabSwitcher"
class="settings_tab-switcher"
:side-tab-bar="true"
:scrollable-tabs="true"
>
<div
:label="$t('settings.general')"
>
<GeneralTab />
</div>
<div v-if="isLoggedIn"
<div
v-if="isLoggedIn"
:label="$t('settings.profile_tab')"
>
<ProfileTab />

View file

@ -5,7 +5,6 @@ import SharedComputedObject from './helpers/shared_computed_object.js'
const GeneralTab = {
data () {
const instance = this.$store.state.instance
return {
loopSilentAvailable:
// Firefox
@ -13,7 +12,7 @@ const GeneralTab = {
// Chrome-likes
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'webkitAudioDecodedByteCount') ||
// Future spec, still not supported in Nightly 63 as of 08/2018
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'audioTracks'),
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'audioTracks')
}
},
components: {

View file

@ -1,6 +1,6 @@
<template>
<tab-switcher
:scrollableTabs="true"
:scrollable-tabs="true"
class="mutes-and-blocks-tab"
>
<div :label="$t('settings.blocks_tab')">

View file

@ -32,7 +32,7 @@ const ProfileTab = {
background: null,
backgroundPreview: null,
bannerUploadError: null,
backgroundUploadError: null,
backgroundUploadError: null
}
},
components: {