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