diff --git a/scripts/core/api.js b/scripts/core/api.js index 6d44a08b34..efd84c5471 100644 --- a/scripts/core/api.js +++ b/scripts/core/api.js @@ -34,7 +34,6 @@ api.guides = new API(`${DATA_DIR}/guides.json`) api.categories = new API(`${DATA_DIR}/categories.json`) api.languages = new API(`${DATA_DIR}/languages.json`) api.regions = new API(`${DATA_DIR}/regions.json`) -api.statuses = new API(`${DATA_DIR}/statuses.json`) api.blocklist = new API(`${DATA_DIR}/blocklist.json`) module.exports = api diff --git a/scripts/data/.gitignore b/scripts/data/.gitignore index 7438206064..6a1ce57ceb 100644 --- a/scripts/data/.gitignore +++ b/scripts/data/.gitignore @@ -1,4 +1,3 @@ * !.gitignore -!blocklist.json -!statuses.json \ No newline at end of file +!blocklist.json \ No newline at end of file diff --git a/scripts/data/statuses.json b/scripts/data/statuses.json deleted file mode 100644 index 8e96c1409b..0000000000 --- a/scripts/data/statuses.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "online": { - "label": "", - "code": "online", - "level": 1 - }, - "geo_blocked": { - "label": "Geo-blocked", - "code": "geo_blocked", - "level": 2 - }, - "not_247": { - "label": "Not 24/7", - "code": "not_247", - "level": 3 - }, - "timeout": { - "label": "Timeout", - "code": "timeout", - "level": 4 - }, - "offline": { - "label": "Offline", - "code": "offline", - "level": 5 - } -} diff --git a/scripts/store/setters/status.js b/scripts/store/setters/status.js deleted file mode 100644 index 6452721344..0000000000 --- a/scripts/store/setters/status.js +++ /dev/null @@ -1,11 +0,0 @@ -const statuses = require('../../data/statuses') - -module.exports = function ({ title, status = {} }) { - if (title) { - const [_, label] = title.match(/\[(.*)\]/i) || [null, null] - - return Object.values(statuses).find(s => s.label === label) || statuses['online'] - } - - return status -}