ok i'm dumb, no manual caching needed tehepero
This commit is contained in:
parent
5384d3b7a2
commit
a9c2d37315
|
@ -250,21 +250,15 @@ const instance = {
|
||||||
}, {})
|
}, {})
|
||||||
},
|
},
|
||||||
standardEmojiList (state) {
|
standardEmojiList (state) {
|
||||||
if (!state.standardEmojiList) {
|
return SORTED_EMOJI_GROUP_IDS
|
||||||
state.standardEmojiList = SORTED_EMOJI_GROUP_IDS
|
.map(groupId => (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations)))
|
||||||
.map(groupId => (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations)))
|
.reduce((a, b) => a.concat(b), [])
|
||||||
.reduce((a, b) => a.concat(b), [])
|
|
||||||
}
|
|
||||||
return state.standardEmojiList
|
|
||||||
},
|
},
|
||||||
standardEmojiGroupList (state) {
|
standardEmojiGroupList (state) {
|
||||||
if (!state.standardEmojiGroupList) {
|
return SORTED_EMOJI_GROUP_IDS.map(groupId => ({
|
||||||
state.standardEmojiGroupList = SORTED_EMOJI_GROUP_IDS.map(groupId => ({
|
id: groupId,
|
||||||
id: groupId,
|
emojis: (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations))
|
||||||
emojis: (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations))
|
}))
|
||||||
}))
|
|
||||||
}
|
|
||||||
return state.standardEmojiGroupList
|
|
||||||
},
|
},
|
||||||
instanceDomain (state) {
|
instanceDomain (state) {
|
||||||
return new URL(state.server).hostname
|
return new URL(state.server).hostname
|
||||||
|
|
Loading…
Reference in a new issue