a97db1efd6
* origin/develop: (83 commits) Make media modal buttons larger Add English translation for hide tooltip Add hide button to media modal Lint Prevent hiding media viewer if swiped over SwipeClick Fix webkit image blurs Fix video in media modal not displaying properly Add changelog for https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1403 Remove image box-shadow in media modal Clean up debug code for image pinch zoom Bump @kazvmoe-infra/pinch-zoom-element to 1.2.0 on npm Bump pinch-zoom-element version Clean up Check whether we swiped only for mouse pointer Scale swipe threshold with viewport width Update pinch-zoom-element Allow pinch-zoom to fill the whole screen Use native click for hiding overlay Reset position on swipe end even if we cannot navigate Make lint happy ...
85 lines
2.8 KiB
JavaScript
85 lines
2.8 KiB
JavaScript
import BooleanSetting from '../helpers/boolean_setting.vue'
|
|
import ChoiceSetting from '../helpers/choice_setting.vue'
|
|
import ScopeSelector from 'src/components/scope_selector/scope_selector.vue'
|
|
import IntegerSetting from '../helpers/integer_setting.vue'
|
|
import InterfaceLanguageSwitcher from 'src/components/interface_language_switcher/interface_language_switcher.vue'
|
|
|
|
import SharedComputedObject from '../helpers/shared_computed_object.js'
|
|
import ServerSideIndicator from '../helpers/server_side_indicator.vue'
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
import {
|
|
faGlobe
|
|
} from '@fortawesome/free-solid-svg-icons'
|
|
|
|
library.add(
|
|
faGlobe
|
|
)
|
|
|
|
const GeneralTab = {
|
|
data () {
|
|
return {
|
|
subjectLineOptions: ['email', 'noop', 'masto'].map(mode => ({
|
|
key: mode,
|
|
value: mode,
|
|
label: this.$t(`settings.subject_line_${mode === 'masto' ? 'mastodon' : mode}`)
|
|
})),
|
|
conversationDisplayOptions: ['tree', 'linear'].map(mode => ({
|
|
key: mode,
|
|
value: mode,
|
|
label: this.$t(`settings.conversation_display_${mode}`)
|
|
})),
|
|
conversationOtherRepliesButtonOptions: ['below', 'inside'].map(mode => ({
|
|
key: mode,
|
|
value: mode,
|
|
label: this.$t(`settings.conversation_other_replies_button_${mode}`)
|
|
})),
|
|
mentionLinkDisplayOptions: ['short', 'full_for_remote', 'full'].map(mode => ({
|
|
key: mode,
|
|
value: mode,
|
|
label: this.$t(`settings.mention_link_display_${mode}`)
|
|
})),
|
|
loopSilentAvailable:
|
|
// Firefox
|
|
Object.getOwnPropertyDescriptor(HTMLVideoElement.prototype, 'mozHasAudio') ||
|
|
// Chrome-likes
|
|
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'webkitAudioDecodedByteCount') ||
|
|
// Future spec, still not supported in Nightly 63 as of 08/2018
|
|
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'audioTracks')
|
|
}
|
|
},
|
|
components: {
|
|
BooleanSetting,
|
|
ChoiceSetting,
|
|
IntegerSetting,
|
|
InterfaceLanguageSwitcher,
|
|
ScopeSelector,
|
|
ServerSideIndicator
|
|
},
|
|
computed: {
|
|
postFormats () {
|
|
return this.$store.state.instance.postFormats || []
|
|
},
|
|
postContentOptions () {
|
|
return this.postFormats.map(format => ({
|
|
key: format,
|
|
value: format,
|
|
label: this.$t(`post_status.content_type["${format}"]`)
|
|
}))
|
|
},
|
|
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 },
|
|
...SharedComputedObject()
|
|
},
|
|
methods: {
|
|
changeDefaultScope (value) {
|
|
this.$store.dispatch('setServerSideOption', { name: 'defaultScope', value })
|
|
}
|
|
}
|
|
}
|
|
|
|
export default GeneralTab
|