Merge remote-tracking branch 'origin/develop' into oauth
This commit is contained in:
commit
fbe30b4922
2 changed files with 15 additions and 3 deletions
|
@ -159,9 +159,11 @@ const afterStoreSetup = ({store, i18n}) => {
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
const metadata = data.metadata
|
const metadata = data.metadata
|
||||||
store.dispatch('setInstanceOption', { name: 'mediaProxyAvailable', value: data.metadata.mediaProxy })
|
|
||||||
store.dispatch('setInstanceOption', { name: 'chatAvailable', value: data.metadata.chat })
|
const features = metadata.features
|
||||||
store.dispatch('setInstanceOption', { name: 'gopherAvailable', value: data.metadata.gopher })
|
store.dispatch('setInstanceOption', { name: 'mediaProxyAvailable', value: features.includes('media_proxy') })
|
||||||
|
store.dispatch('setInstanceOption', { name: 'chatAvailable', value: features.includes('chat') })
|
||||||
|
store.dispatch('setInstanceOption', { name: 'gopherAvailable', value: features.includes('gopher') })
|
||||||
|
|
||||||
const suggestions = metadata.suggestions
|
const suggestions = metadata.suggestions
|
||||||
store.dispatch('setInstanceOption', { name: 'suggestionsEnabled', value: suggestions.enabled })
|
store.dispatch('setInstanceOption', { name: 'suggestionsEnabled', value: suggestions.enabled })
|
||||||
|
|
10
static/timeago-oc.json
Normal file
10
static/timeago-oc.json
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[
|
||||||
|
"ara meteis",
|
||||||
|
["fa %s s", "fa %s s"],
|
||||||
|
["fa %s min", "fa %s min"],
|
||||||
|
["fa %s h", "fa %s h"],
|
||||||
|
["fa %s dia", "fa %s jorns"],
|
||||||
|
["fa %s setm.", "fa %s setm."],
|
||||||
|
["fa %s mes", "fa %s meses"],
|
||||||
|
["fa %s any", "fa %s ans"]
|
||||||
|
]
|
Loading…
Reference in a new issue