pleroma-fe/src/components/features_panel/features_panel.js

34 lines
982 B
JavaScript
Raw Normal View History

import fileSizeFormatService from '../../services/file_size_format/file_size_format.js'
2018-09-03 14:43:10 +09:00
const FeaturesPanel = {
computed: {
2026-01-06 16:22:52 +02:00
shout: function () {
return this.$store.state.instance.shoutAvailable
},
pleromaChatMessages: function () {
return this.$store.state.instance.pleromaChatMessagesAvailable
},
gopher: function () {
return this.$store.state.instance.gopherAvailable
},
whoToFollow: function () {
return this.$store.state.instance.suggestionsEnabled
},
mediaProxy: function () {
return this.$store.state.instance.mediaProxyAvailable
},
minimalScopesMode: function () {
return this.$store.state.instance.minimalScopesMode
},
textlimit: function () {
return this.$store.state.instance.textlimit
},
uploadlimit: function () {
return fileSizeFormatService.fileSizeFormat(
this.$store.state.instance.uploadlimit,
)
},
},
2018-09-03 14:43:10 +09:00
}
export default FeaturesPanel