mirror of
https://git.youjo.love/youjo/youjo-fe.git
synced 2025-03-30 14:02:11 +02:00
Add feature panel listing
This commit is contained in:
parent
557253648f
commit
d8b070847c
4 changed files with 6 additions and 0 deletions
|
@ -287,6 +287,7 @@ const getNodeInfo = async ({ store }) => {
|
||||||
store.dispatch('setInstanceOption', { name: 'quotePosting', value: features.includes('quote_posting') })
|
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: 'customEmojiReactions', value: features.includes('custom_emoji_reactions') })
|
||||||
store.dispatch('setInstanceOption', { name: 'bubbleTimeline', value: features.includes('bubble_timeline') })
|
store.dispatch('setInstanceOption', { name: 'bubbleTimeline', value: features.includes('bubble_timeline') })
|
||||||
|
store.dispatch('setInstanceOption', { name: 'profileCustomisation', value: features.includes('profile_customisation') })
|
||||||
|
|
||||||
const uploadLimits = metadata.uploadLimits
|
const uploadLimits = metadata.uploadLimits
|
||||||
store.dispatch('setInstanceOption', { name: 'uploadlimit', value: parseInt(uploadLimits.general) })
|
store.dispatch('setInstanceOption', { name: 'uploadlimit', value: parseInt(uploadLimits.general) })
|
||||||
|
|
|
@ -5,6 +5,7 @@ const FeaturesPanel = {
|
||||||
shout: function () { return this.$store.state.instance.shoutAvailable },
|
shout: function () { return this.$store.state.instance.shoutAvailable },
|
||||||
bubbleTimeline: function () { return this.$store.state.instance.bubbleTimeline },
|
bubbleTimeline: function () { return this.$store.state.instance.bubbleTimeline },
|
||||||
pleromaChatMessages: function () { return this.$store.state.instance.pleromaChatMessagesAvailable },
|
pleromaChatMessages: function () { return this.$store.state.instance.pleromaChatMessagesAvailable },
|
||||||
|
profileCustomisation: function () { return this.$store.state.instance.profileCustomisation },
|
||||||
customEmojiReactions: function () { return this.$store.state.instance.customEmojiReactions },
|
customEmojiReactions: function () { return this.$store.state.instance.customEmojiReactions },
|
||||||
gopher: function () { return this.$store.state.instance.gopherAvailable },
|
gopher: function () { return this.$store.state.instance.gopherAvailable },
|
||||||
translationEnabled: function () { return this.$store.state.instance.translationEnabled },
|
translationEnabled: function () { return this.$store.state.instance.translationEnabled },
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
<li v-if="pleromaChatMessages">
|
<li v-if="pleromaChatMessages">
|
||||||
{{ $t('features_panel.pleroma_chat_messages') }}
|
{{ $t('features_panel.pleroma_chat_messages') }}
|
||||||
</li>
|
</li>
|
||||||
|
<li v-if="profileCustomisation">
|
||||||
|
{{ $t('features_panel.profile_customisation') }}
|
||||||
|
</li>
|
||||||
<li v-if="customEmojiReactions">
|
<li v-if="customEmojiReactions">
|
||||||
{{ $t('features_panel.custom_emoji_reactions') }}
|
{{ $t('features_panel.custom_emoji_reactions') }}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -105,6 +105,7 @@
|
||||||
"features_panel": {
|
"features_panel": {
|
||||||
"shout": "Shoutbox",
|
"shout": "Shoutbox",
|
||||||
"pleroma_chat_messages": "Pleroma Chat",
|
"pleroma_chat_messages": "Pleroma Chat",
|
||||||
|
"profile_customisation": "Profile Customisation",
|
||||||
"custom_emoji_reactions": "Custom emoji reactions",
|
"custom_emoji_reactions": "Custom emoji reactions",
|
||||||
"quote_posting": "Quote boosts",
|
"quote_posting": "Quote boosts",
|
||||||
"bubble_timeline": "Bubble Timeline",
|
"bubble_timeline": "Bubble Timeline",
|
||||||
|
|
Loading…
Reference in a new issue