|
|
@ -1,8 +1,10 @@
|
|
|
|
/* eslint-env browser */
|
|
|
|
/* eslint-env browser */
|
|
|
|
|
|
|
|
import { filter, trim } from 'lodash'
|
|
|
|
|
|
|
|
|
|
|
|
import TabSwitcher from '../tab_switcher/tab_switcher.js'
|
|
|
|
import TabSwitcher from '../tab_switcher/tab_switcher.js'
|
|
|
|
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 { parseBackendVersionString, parseFrontendVersionString } from '../../services/version/version.service'
|
|
|
|
|
|
|
|
|
|
|
|
const settings = {
|
|
|
|
const settings = {
|
|
|
|
data () {
|
|
|
|
data () {
|
|
|
@ -78,7 +80,10 @@ const settings = {
|
|
|
|
// Future spec, still not supported in Nightly 63 as of 08/2018
|
|
|
|
// Future spec, still not supported in Nightly 63 as of 08/2018
|
|
|
|
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'audioTracks'),
|
|
|
|
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'audioTracks'),
|
|
|
|
playVideosInModal: user.playVideosInModal,
|
|
|
|
playVideosInModal: user.playVideosInModal,
|
|
|
|
useContainFit: user.useContainFit
|
|
|
|
useContainFit: user.useContainFit,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
backendVersion: instance.backendVersion,
|
|
|
|
|
|
|
|
frontendVersion: instance.frontendVersion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
@ -98,6 +103,14 @@ const settings = {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
instanceSpecificPanelPresent () { return this.$store.state.instance.showInstanceSpecificPanel }
|
|
|
|
instanceSpecificPanelPresent () { return this.$store.state.instance.showInstanceSpecificPanel }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
parseBackendVersion (versionString) {
|
|
|
|
|
|
|
|
return parseBackendVersionString(versionString)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
parseFrontendVersion (versionString) {
|
|
|
|
|
|
|
|
return parseFrontendVersionString(versionString)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
hideAttachmentsLocal (value) {
|
|
|
|
hideAttachmentsLocal (value) {
|
|
|
|
this.$store.dispatch('setOption', { name: 'hideAttachments', value })
|
|
|
|
this.$store.dispatch('setOption', { name: 'hideAttachments', value })
|
|
|
|