mirror of
https://github.com/mue/mue.git
synced 2026-07-09 21:45:26 +02:00
refactor(marketplace & achievements): Structural achanges and fixes
Co-authored-by: Isaac <contact@eartharoid.me> Co-authored-by: David Ralph <me@davidcralph.co.uk>
This commit is contained in:
36
src/utils/achievements/index.js
Normal file
36
src/utils/achievements/index.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import de_DE from 'i18n/locales/achievements/de_DE.json';
|
||||
import en_GB from 'i18n/locales/achievements/en_GB.json';
|
||||
import en_US from 'i18n/locales/achievements/en_US.json';
|
||||
import es from 'i18n/locales/achievements/es.json';
|
||||
import fr from 'i18n/locales/achievements/fr.json';
|
||||
import nl from 'i18n/locales/achievements/nl.json';
|
||||
import no from 'i18n/locales/achievements/no.json';
|
||||
import ru from 'i18n/locales/achievements/ru.json';
|
||||
import zh_CN from 'i18n/locales/achievements/zh_CN.json';
|
||||
import id_ID from 'i18n/locales/achievements/id_ID.json';
|
||||
import tr_TR from 'i18n/locales/achievements/tr_TR.json';
|
||||
import bn from 'i18n/locales/achievements/bn.json';
|
||||
import pt_BR from 'i18n/locales/achievements/pt_BR.json';
|
||||
|
||||
import achievements from 'utils/data/achievements.json';
|
||||
|
||||
const translations = {
|
||||
de_DE,
|
||||
en_GB,
|
||||
en_US,
|
||||
es,
|
||||
fr,
|
||||
nl,
|
||||
no,
|
||||
ru,
|
||||
zh_CN,
|
||||
id_ID,
|
||||
tr_TR,
|
||||
bn,
|
||||
pt_BR,
|
||||
};
|
||||
|
||||
export {
|
||||
achievements,
|
||||
translations
|
||||
};
|
||||
@@ -1,52 +1,86 @@
|
||||
{
|
||||
"achievements": [
|
||||
{
|
||||
"name": "10/10 IGN",
|
||||
"description": "Opened 10 tabs",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 10
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Thank you",
|
||||
"description": "Opened 39 tabs",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 39
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Seasoning",
|
||||
"description": "Opened 100 tabs",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Mr Worldwide",
|
||||
"description": "Opened 305 tabs",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 305
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Average Linux user",
|
||||
"description": "Installed an add-on",
|
||||
"condition": {
|
||||
"type": "addonInstall",
|
||||
"amount": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Fully riced",
|
||||
"description": "Installed 5 add-ons",
|
||||
"condition": {
|
||||
"type": "addonInstall",
|
||||
"amount": 5
|
||||
}
|
||||
[
|
||||
{
|
||||
"id": "10tabs",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 10
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "thankyou",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 39
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "seasoning",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "mrworldwide",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 305
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tabaholic",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 500
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "727",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 727
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "808sandtabs",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 808
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "1337",
|
||||
"condition": {
|
||||
"type": "tabsOpened",
|
||||
"amount": 1337
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "averagelinuxuser",
|
||||
"condition": {
|
||||
"type": "addonInstall",
|
||||
"amount": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fullyriced",
|
||||
"condition": {
|
||||
"type": "addonInstall",
|
||||
"amount": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "21addons",
|
||||
"condition": {
|
||||
"type": "addonInstall",
|
||||
"amount": 21
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "overload",
|
||||
"condition": {
|
||||
"type": "addonInstall",
|
||||
"amount": 50
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user