forked from AkkomaGang/akkoma-fe
tabs for settings
This commit is contained in:
parent
8e560676f1
commit
b48a3210a3
3 changed files with 95 additions and 78 deletions
|
@ -1,4 +1,5 @@
|
||||||
/* eslint-env browser */
|
/* eslint-env browser */
|
||||||
|
import TabSwitcher from '../tab_switcher/tab_switcher.jsx'
|
||||||
import StyleSwitcher from '../style_switcher/style_switcher.vue'
|
import StyleSwitcher from '../style_switcher/style_switcher.vue'
|
||||||
import InterfaceLanguageSwitcher from '../interface_language_switcher/interface_language_switcher.vue'
|
import InterfaceLanguageSwitcher from '../interface_language_switcher/interface_language_switcher.vue'
|
||||||
import { filter, trim } from 'lodash'
|
import { filter, trim } from 'lodash'
|
||||||
|
@ -29,6 +30,7 @@ const settings = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
TabSwitcher,
|
||||||
StyleSwitcher,
|
StyleSwitcher,
|
||||||
InterfaceLanguageSwitcher
|
InterfaceLanguageSwitcher
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,14 +4,11 @@
|
||||||
{{$t('settings.settings')}}
|
{{$t('settings.settings')}}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
<tab-switcher>
|
||||||
|
<div :title="$t('settings.general')" >
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<h2>{{$t('settings.theme')}}</h2>
|
<h2>{{ $t('settings.interfaceLanguage') }}</h2>
|
||||||
<style-switcher></style-switcher>
|
<interface-language-switcher />
|
||||||
</div>
|
|
||||||
<div class="setting-item">
|
|
||||||
<h2>{{$t('settings.filtering')}}</h2>
|
|
||||||
<p>{{$t('settings.filtering_explanation')}}</p>
|
|
||||||
<textarea id="muteWords" v-model="muteWordsString"></textarea>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<h2>{{$t('nav.timeline')}}</h2>
|
<h2>{{$t('nav.timeline')}}</h2>
|
||||||
|
@ -84,10 +81,22 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-item">
|
|
||||||
<h2>{{ $t('settings.interfaceLanguage') }}</h2>
|
|
||||||
<interface-language-switcher />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div :title="$t('settings.theme')" >
|
||||||
|
<div class="setting-item">
|
||||||
|
<style-switcher></style-switcher>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div :title="$t('settings.filtering')" >
|
||||||
|
<div class="setting-item">
|
||||||
|
<p>{{$t('settings.filtering_explanation')}}</p>
|
||||||
|
<textarea id="muteWords" v-model="muteWordsString"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</tab-switcher>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -103,6 +112,10 @@
|
||||||
margin: 1em 1em 1.4em;
|
margin: 1em 1em 1.4em;
|
||||||
padding-bottom: 1.4em;
|
padding-bottom: 1.4em;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -277,6 +277,7 @@ const en = {
|
||||||
no_retweet_hint: 'Post is marked as followers-only or direct and cannot be repeated'
|
no_retweet_hint: 'Post is marked as followers-only or direct and cannot be repeated'
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
|
general: 'General',
|
||||||
user_settings: 'User Settings',
|
user_settings: 'User Settings',
|
||||||
name_bio: 'Name & Bio',
|
name_bio: 'Name & Bio',
|
||||||
name: 'Name',
|
name: 'Name',
|
||||||
|
@ -1625,6 +1626,7 @@ const ru = {
|
||||||
no_retweet_hint: 'Пост помечен как "только для подписчиков" или "личное" и поэтому не может быть повторён'
|
no_retweet_hint: 'Пост помечен как "только для подписчиков" или "личное" и поэтому не может быть повторён'
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
|
general: 'Общие',
|
||||||
user_settings: 'Настройки пользователя',
|
user_settings: 'Настройки пользователя',
|
||||||
name_bio: 'Имя и описание',
|
name_bio: 'Имя и описание',
|
||||||
name: 'Имя',
|
name: 'Имя',
|
||||||
|
|
Loading…
Reference in a new issue