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

23 lines
860 B
JavaScript
Raw Normal View History

2026-01-29 20:33:59 +02:00
import { mapState } from 'pinia'
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-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