diff --git a/src/config.js b/src/config.js index 872c6d2..8a688bb 100644 --- a/src/config.js +++ b/src/config.js @@ -1,107 +1,105 @@ import ChallengeObject from "./module/ChallengeObject"; - function fillLoadingUI() { - let loadingUIObject = [] - for (let i = 0; i < 16; i++) { - loadingUIObject.push( - - ) - } - return loadingUIObject; + let loadingUIObject = []; + for (let i = 0; i < 16; i++) { + loadingUIObject.push( + + ); + } + return loadingUIObject; } -const legacy = "https://cdn.darkintaqt.com/lol/static/challenges/legacy.svg" +const legacy = "https://cdn.darkintaqt.com/lol/static/challenges/legacy.svg"; const config = { - "windowVariables": { - "region": "na", - "requestCache": {}, - "reloadLocation": false, - "timezoneoffset": new Date().getTimezoneOffset() / 60, - "loadingUI": fillLoadingUI(), - "adIds": 0, - "language": "en", - "compactMode": true - }, - "config": { - "reloadAfter": 3600000 - }, - "regions": [ - "br", - "euw", - "eune", - "jp", - "kr", - "lan", - "las", - "me", - "na", - "oc", - "ru", - "tr", - "ph", - "sg", - "th", - "tw", - "vn", - ], - "cdnBasePath": "https://lolcdn.darkintaqt.com", - "tiers": [ - "NONE", - "IRON", - "BRONZE", - "SILVER", - "GOLD", - "PLATINUM", - "DIAMOND", - "MASTER", - "GRANDMASTER", - "CHALLENGER" - ], - "startScreenImages": [ - 131, 6, 47, /* anivia */ - 254, 4, 29, /* arcane vi */ - 38, 4, 14, /* arcane kassadin */ - 43, 4, 7, /* red eye karma */ - 2, 4, 25, /* olaf */ - 432, 4, 8, /* astronaut bard */ - 104, 4, 5, /* pool party graves */ - 114, 4, 1, /* fiora */ - 131, 4, 26, /* divine diana */ - 60, 4, 6, /* halloween elise */ - 24, 4, 13, /* jax */ - 78, 4, 14 /* xmas poppy */ - ], - "images": { - "2": "https://cdn.darkintaqt.com/lol/static/challenges/expertise.svg", - "5": "https://cdn.darkintaqt.com/lol/static/challenges/collection.svg", - "1": "https://cdn.darkintaqt.com/lol/static/challenges/imagination.svg", - "3": "https://cdn.darkintaqt.com/lol/static/challenges/veterancy.svg", - "4": "https://cdn.darkintaqt.com/lol/static/challenges/teamwork.svg", - "600006": legacy, - "0": legacy, - "601000": legacy, //"https://lolcdn.darkintaqt.com/cdn/arena.png", - "602000": legacy, //"https://lolcdn.darkintaqt.com/cdn/arena.png", - "2022000": "https://cdn.darkintaqt.com/lol/static/challenges/2022seasonal.svg", - "seasonal-retired": "https://cdn.darkintaqt.com/lol/static/challenges/retired.svg", - "2023000": "https://cdn.darkintaqt.com/lol/static/challenges/2023seasonal.svg", - "2024100": "https://cdn.darkintaqt.com/lol/static/challenges/2024-1seasonal.svg", - "2024200": "https://cdn.darkintaqt.com/lol/static/challenges/2024-2seasonal.svg", - "summonersrift": "https://lolcdn.darkintaqt.com/cdn/sr.svg", - "aram": "https://lolcdn.darkintaqt.com/cdn/ha.svg", - "bot": "https://lolcdn.darkintaqt.com/cdn/bot.png", - "arena": "https://lolcdn.darkintaqt.com/cdn/arena.png", - "603000": "https://lolcdn.darkintaqt.com/cdn/swarm.png" - } -} - - + windowVariables: { + region: "na", + requestCache: {}, + reloadLocation: false, + timezoneoffset: new Date().getTimezoneOffset() / 60, + loadingUI: fillLoadingUI(), + adIds: 0, + language: "en", + compactMode: true, + }, + config: { + reloadAfter: 3600000, + }, + regions: [ + "br", + "euw", + "eune", + "jp", + "kr", + "lan", + "las", + "me", + "na", + "oc", + "ru", + "tr", + "ph", + "sg", + "th", + "tw", + "vn", + ], + cdnBasePath: "https://lolcdn.darkintaqt.com", + tiers: [ + "NONE", + "IRON", + "BRONZE", + "SILVER", + "GOLD", + "PLATINUM", + "DIAMOND", + "MASTER", + "GRANDMASTER", + "CHALLENGER", + ], + startScreenImages: [ + 131, 6, 47 /* anivia */, 254, 4, 29 /* arcane vi */, 38, 4, + 14 /* arcane kassadin */, 43, 4, 7 /* red eye karma */, 2, 4, 25 /* olaf */, + 432, 4, 8 /* astronaut bard */, 104, 4, 5 /* pool party graves */, 114, 4, + 1 /* fiora */, 131, 4, 26 /* divine diana */, 60, 4, + 6 /* halloween elise */, 24, 4, 13 /* jax */, 78, 4, 14 /* xmas poppy */, + ], + images: { + 2: "https://cdn.darkintaqt.com/lol/static/challenges/expertise.svg", + 5: "https://cdn.darkintaqt.com/lol/static/challenges/collection.svg", + 1: "https://cdn.darkintaqt.com/lol/static/challenges/imagination.svg", + 3: "https://cdn.darkintaqt.com/lol/static/challenges/veterancy.svg", + 4: "https://cdn.darkintaqt.com/lol/static/challenges/teamwork.svg", + 600006: legacy, + 0: legacy, + 601000: legacy, //"https://lolcdn.darkintaqt.com/cdn/arena.png", + 602000: legacy, //"https://lolcdn.darkintaqt.com/cdn/arena.png", + 2022000: + "https://cdn.darkintaqt.com/lol/static/challenges/2022seasonal.svg", + "seasonal-retired": + "https://cdn.darkintaqt.com/lol/static/challenges/retired.svg", + 2023000: + "https://cdn.darkintaqt.com/lol/static/challenges/2023seasonal.svg", + 2024100: + "https://cdn.darkintaqt.com/lol/static/challenges/2024-1seasonal.svg", + 2024200: + "https://cdn.darkintaqt.com/lol/static/challenges/2024-2seasonal.svg", + 2024300: + "https://cdn.darkintaqt.com/lol/static/challenges/2024-3seasonal.svg", + summonersrift: "https://lolcdn.darkintaqt.com/cdn/sr.svg", + aram: "https://lolcdn.darkintaqt.com/cdn/ha.svg", + bot: "https://lolcdn.darkintaqt.com/cdn/bot.png", + arena: "https://lolcdn.darkintaqt.com/cdn/arena.png", + 603000: "https://lolcdn.darkintaqt.com/cdn/swarm.png", + }, +}; -export default config; \ No newline at end of file +export default config;