mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
refactor: tidy up vue data folder
This commit is contained in:
parent
9bf781aa55
commit
dacd3873e8
3 changed files with 2 additions and 15179 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,6 @@
|
||||||
import { timeDifference } from '@/helpers/functions.js'
|
import { timeDifference } from '@/helpers/functions.js'
|
||||||
import { maps, gameModes } from '@/data/data.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 }
|
const leaguesNumbers = { 'I': 1, 'II': 2, 'III': 3, 'IV': 4 }
|
||||||
|
|
||||||
|
|
@ -94,6 +94,6 @@ export function getRankImg(leagueData) {
|
||||||
|
|
||||||
export function getSummonerLink(id) {
|
export function getSummonerLink(id) {
|
||||||
if (id === 0) return null
|
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}`
|
return `https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/${spellName}`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue