refactor: tidy up vue data folder

This commit is contained in:
Valentin Kaelin 2020-02-13 20:20:23 +01:00
parent 9bf781aa55
commit dacd3873e8
3 changed files with 2 additions and 15179 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
import { timeDifference } from '@/helpers/functions.js'
import { maps, gameModes } from '@/data/data.js'
import summonersJSON from '@/data/summoner.json'
import summonerSpells from '@/data/summonerSpells.json'
const leaguesNumbers = { 'I': 1, 'II': 2, 'III': 3, 'IV': 4 }
@ -94,6 +94,6 @@ export function getRankImg(leagueData) {
export function getSummonerLink(id) {
if (id === 0) return null
const spellName = summonersJSON.find(s => s.id === id).iconPath.split('/assets/')[1].toLowerCase()
const spellName = summonerSpells.find(s => s.id === id).iconPath.split('/assets/')[1].toLowerCase()
return `https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/${spellName}`
}