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

@ -1,5 +1,5 @@
<template>
<Modal
<Modal
:is-open="modalActivated"
class="settings-modal"
:class="{ peek: modalPeeked }"
@ -9,7 +9,7 @@
v-if="modalActivated"
class="modal-panel"
/>
</Modal>
</Modal>
</template>
<script src="./settings_modal.js"></script>

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

@ -1,5 +1,5 @@
<template>
<div
<div
:label="$t('settings.data_import_export_tab')"
>
<div class="setting-item">
@ -36,7 +36,7 @@
:export-button-label="$t('settings.block_export_button')"
/>
</div>
</div>
</div>
</template>
<script src="./data_import_export_tab.js"></script>

View file

@ -1,5 +1,5 @@
<template>
<div :label="$t('settings.filtering')">
<div :label="$t('settings.filtering')">
<div class="setting-item">
<div class="select-multiple">
<span class="label">{{ $t('settings.notification_visibility') }}</span>
@ -81,6 +81,6 @@
</Checkbox>
</div>
</div>
</div>
</div>
</template>
<script src="./filtering_tab.js"></script>

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,5 +1,5 @@
<template>
<div :label="$t('settings.general')">
<div :label="$t('settings.general')">
<div class="setting-item">
<h2>{{ $t('settings.interface') }}</h2>
<ul class="setting-list">

View file

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

View file

@ -1,5 +1,5 @@
<template>
<div :label="$t('settings.notifications')">
<div :label="$t('settings.notifications')">
<div class="setting-item">
<h2>{{ $t('settings.notification_setting_filters') }}</h2>
<div class="select-multiple">
@ -47,7 +47,7 @@
{{ $t('general.submit') }}
</button>
</div>
</div>
</div>
</template>
<script src="./notifications_tab.js"></script>

View file

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

View file

@ -1,5 +1,5 @@
<template>
<div class="profile-tab">
<div class="profile-tab">
<div class="setting-item">
<h2>{{ $t('settings.name_bio') }}</h2>
<p>{{ $t('settings.name') }}</p>
@ -206,7 +206,7 @@
/>
</div>
</div>
</div>
</div>
</template>
<script src="./profile_tab.js"></script>

View file

@ -1,5 +1,5 @@
<template>
<div :label="$t('settings.security_tab')">
<div :label="$t('settings.security_tab')">
<div class="setting-item">
<h2>{{ $t('settings.change_email') }}</h2>
<div>
@ -136,7 +136,7 @@
{{ $t('general.submit') }}
</button>
</div>
</div>
</div>
</template>
<script src="./security_tab.js"></script>

View file

@ -1,5 +1,5 @@
<template>
<div class="theme-tab">
<div class="theme-tab">
<div class="presets-container">
<div class="save-load">
<div

View file

@ -1,5 +1,5 @@
<template>
<div :label="$t('settings.version.title')">
<div :label="$t('settings.version.title')">
<div class="setting-item">
<ul class="setting-list">
<li>
@ -26,6 +26,6 @@
</li>
</ul>
</div>
</div>
</div>
</template>
<script src="./version_tab.js">