|
|
@ -3,7 +3,7 @@ import ChoiceSetting from '../helpers/choice_setting.vue'
|
|
|
|
import ScopeSelector from 'src/components/scope_selector/scope_selector.vue'
|
|
|
|
import ScopeSelector from 'src/components/scope_selector/scope_selector.vue'
|
|
|
|
import IntegerSetting from '../helpers/integer_setting.vue'
|
|
|
|
import IntegerSetting from '../helpers/integer_setting.vue'
|
|
|
|
import FloatSetting from '../helpers/float_setting.vue'
|
|
|
|
import FloatSetting from '../helpers/float_setting.vue'
|
|
|
|
import UnitSetting, { defaultHorizontalUnits } from '../helpers/unit_setting.vue'
|
|
|
|
import UnitSetting from '../helpers/unit_setting.vue'
|
|
|
|
import InterfaceLanguageSwitcher from 'src/components/interface_language_switcher/interface_language_switcher.vue'
|
|
|
|
import InterfaceLanguageSwitcher from 'src/components/interface_language_switcher/interface_language_switcher.vue'
|
|
|
|
|
|
|
|
|
|
|
|
import SharedComputedObject from '../helpers/shared_computed_object.js'
|
|
|
|
import SharedComputedObject from '../helpers/shared_computed_object.js'
|
|
|
@ -40,11 +40,6 @@ const GeneralTab = {
|
|
|
|
value: mode,
|
|
|
|
value: mode,
|
|
|
|
label: this.$t(`settings.mention_link_display_${mode}`)
|
|
|
|
label: this.$t(`settings.mention_link_display_${mode}`)
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|
thirdColumnModeOptions: ['none', 'notifications', 'postform'].map(mode => ({
|
|
|
|
|
|
|
|
key: mode,
|
|
|
|
|
|
|
|
value: mode,
|
|
|
|
|
|
|
|
label: this.$t(`settings.third_column_mode_${mode}`)
|
|
|
|
|
|
|
|
})),
|
|
|
|
|
|
|
|
userPopoverAvatarActionOptions: ['close', 'zoom', 'open'].map(mode => ({
|
|
|
|
userPopoverAvatarActionOptions: ['close', 'zoom', 'open'].map(mode => ({
|
|
|
|
key: mode,
|
|
|
|
key: mode,
|
|
|
|
value: mode,
|
|
|
|
value: mode,
|
|
|
@ -70,9 +65,6 @@ const GeneralTab = {
|
|
|
|
ProfileSettingIndicator
|
|
|
|
ProfileSettingIndicator
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
horizontalUnits () {
|
|
|
|
|
|
|
|
return defaultHorizontalUnits
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
postFormats () {
|
|
|
|
postFormats () {
|
|
|
|
return this.$store.state.instance.postFormats || []
|
|
|
|
return this.$store.state.instance.postFormats || []
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -83,29 +75,6 @@ const GeneralTab = {
|
|
|
|
label: this.$t(`post_status.content_type["${format}"]`)
|
|
|
|
label: this.$t(`post_status.content_type["${format}"]`)
|
|
|
|
}))
|
|
|
|
}))
|
|
|
|
},
|
|
|
|
},
|
|
|
|
columns () {
|
|
|
|
|
|
|
|
const mode = this.$store.getters.mergedConfig.thirdColumnMode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const notif = mode === 'none' ? [] : ['notifs']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.$store.getters.mergedConfig.sidebarRight || mode === 'postform') {
|
|
|
|
|
|
|
|
return [...notif, 'content', 'sidebar']
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return ['sidebar', 'content', ...notif]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
instanceSpecificPanelPresent () { return this.$store.state.instance.showInstanceSpecificPanel },
|
|
|
|
|
|
|
|
instanceWallpaperUsed () {
|
|
|
|
|
|
|
|
return this.$store.state.instance.background &&
|
|
|
|
|
|
|
|
!this.$store.state.users.currentUser.background_image
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
instanceShoutboxPresent () { return this.$store.state.instance.shoutAvailable },
|
|
|
|
|
|
|
|
language: {
|
|
|
|
|
|
|
|
get: function () { return this.$store.getters.mergedConfig.interfaceLanguage },
|
|
|
|
|
|
|
|
set: function (val) {
|
|
|
|
|
|
|
|
this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: val })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
...SharedComputedObject()
|
|
|
|
...SharedComputedObject()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|