2026-01-29 20:33:59 +02:00
|
|
|
import { mapState } from 'pinia'
|
|
|
|
|
|
2020-12-11 17:11:03 +03:00
|
|
|
import fileSizeFormatService from '../../services/file_size_format/file_size_format.js'
|
|
|
|
|
|
2026-01-29 20:40:00 +02:00
|
|
|
import { useInstanceStore } from 'src/stores/instance.js'
|
|
|
|
|
|
2018-09-03 14:43:10 +09:00
|
|
|
const FeaturesPanel = {
|
|
|
|
|
computed: {
|
2026-01-29 20:33:59 +02:00
|
|
|
...mapState(useInstanceStore, {
|
|
|
|
|
shout: (store) => store.shoutAvailable,
|
|
|
|
|
pleromaChatMessages: (store) =>
|
|
|
|
|
store.featureSet.pleromaChatMessagesAvailable,
|
|
|
|
|
gopher: (store) => store.featureSet.gopherAvailable,
|
|
|
|
|
whoToFollow: (store) => store.featureSet.suggestionsEnabled,
|
|
|
|
|
mediaProxy: (store) => store.featureSet.mediaProxyAvailable,
|
|
|
|
|
minimalScopesMode: (store) => store.prefsStorage.minimalScopesMode,
|
|
|
|
|
textlimit: (store) => store.limits.textlimit,
|
|
|
|
|
uploadlimit: (store) =>
|
|
|
|
|
fileSizeFormatService.fileSizeFormat(store.limits.uploadlimit),
|
|
|
|
|
}),
|
2026-01-06 16:22:52 +02:00
|
|
|
},
|
2018-09-03 14:43:10 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default FeaturesPanel
|