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

35 lines
976 B
JavaScript
Raw Normal View History

import { useInstanceStore } from 'src/stores/instance.js'
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 useInstanceStore().shoutAvailable
2026-01-06 16:22:52 +02:00
},
pleromaChatMessages: function () {
return useInstanceStore().pleromaChatMessagesAvailable
2026-01-06 16:22:52 +02:00
},
gopher: function () {
return useInstanceStore().gopherAvailable
2026-01-06 16:22:52 +02:00
},
whoToFollow: function () {
return useInstanceStore().suggestionsEnabled
2026-01-06 16:22:52 +02:00
},
mediaProxy: function () {
return useInstanceStore().mediaProxyAvailable
2026-01-06 16:22:52 +02:00
},
minimalScopesMode: function () {
return useInstanceStore().minimalScopesMode
2026-01-06 16:22:52 +02:00
},
textlimit: function () {
return useInstanceStore().textlimit
2026-01-06 16:22:52 +02:00
},
uploadlimit: function () {
return fileSizeFormatService.fileSizeFormat(
useInstanceStore().uploadlimit,
2026-01-06 16:22:52 +02:00
)
},
},
2018-09-03 14:43:10 +09:00
}
export default FeaturesPanel