Add feature panel listing

This commit is contained in:
Chizu 2023-03-19 19:15:18 +09:00
parent 557253648f
commit d8b070847c
4 changed files with 6 additions and 0 deletions

View file

@ -287,6 +287,7 @@ const getNodeInfo = async ({ store }) => {
store.dispatch('setInstanceOption', { name: 'quotePosting', value: features.includes('quote_posting') })
store.dispatch('setInstanceOption', { name: 'customEmojiReactions', value: features.includes('custom_emoji_reactions') })
store.dispatch('setInstanceOption', { name: 'bubbleTimeline', value: features.includes('bubble_timeline') })
store.dispatch('setInstanceOption', { name: 'profileCustomisation', value: features.includes('profile_customisation') })
const uploadLimits = metadata.uploadLimits
store.dispatch('setInstanceOption', { name: 'uploadlimit', value: parseInt(uploadLimits.general) })

View file

@ -5,6 +5,7 @@ const FeaturesPanel = {
shout: function () { return this.$store.state.instance.shoutAvailable },
bubbleTimeline: function () { return this.$store.state.instance.bubbleTimeline },
pleromaChatMessages: function () { return this.$store.state.instance.pleromaChatMessagesAvailable },
profileCustomisation: function () { return this.$store.state.instance.profileCustomisation },
customEmojiReactions: function () { return this.$store.state.instance.customEmojiReactions },
gopher: function () { return this.$store.state.instance.gopherAvailable },
translationEnabled: function () { return this.$store.state.instance.translationEnabled },

View file

@ -17,6 +17,9 @@
<li v-if="pleromaChatMessages">
{{ $t('features_panel.pleroma_chat_messages') }}
</li>
<li v-if="profileCustomisation">
{{ $t('features_panel.profile_customisation') }}
</li>
<li v-if="customEmojiReactions">
{{ $t('features_panel.custom_emoji_reactions') }}
</li>

View file

@ -105,6 +105,7 @@
"features_panel": {
"shout": "Shoutbox",
"pleroma_chat_messages": "Pleroma Chat",
"profile_customisation": "Profile Customisation",
"custom_emoji_reactions": "Custom emoji reactions",
"quote_posting": "Quote boosts",
"bubble_timeline": "Bubble Timeline",