Lint frontend
This commit is contained in:
@@ -35,47 +35,49 @@ function updateState(newState: string, newLane: number) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Head>
|
||||
<Title>{{ championData.name }}</Title>
|
||||
</Head>
|
||||
<div class="champion-root">
|
||||
<Head>
|
||||
<Title>{{ championData.name }}</Title>
|
||||
</Head>
|
||||
|
||||
<div id="alias-content-wrapper">
|
||||
<NavBar
|
||||
:champion-name="championData.name"
|
||||
:champion-lanes="championData.lanes"
|
||||
@state-change="updateState"
|
||||
/>
|
||||
<div id="alias-content-wrapper">
|
||||
<NavBar
|
||||
:champion-name="championData.name"
|
||||
:champion-lanes="championData.lanes"
|
||||
@state-change="updateState"
|
||||
/>
|
||||
|
||||
<div id="champion-content">
|
||||
<ChampionTitle
|
||||
v-if="championData.gameCount > 0"
|
||||
id="champion-title"
|
||||
:champion-id="championId"
|
||||
:winrate="lane.winrate"
|
||||
:pickrate="lane.pickrate"
|
||||
:game-count="lane.count"
|
||||
/>
|
||||
<RuneSelector
|
||||
v-if="state == 'runes' && championData.gameCount > 0"
|
||||
style="margin: auto; margin-top: 40px"
|
||||
:runes="lane.runes!!"
|
||||
/>
|
||||
<ItemViewer
|
||||
v-if="state == 'items' && championData.gameCount > 0"
|
||||
style="margin: auto; margin-top: 40px"
|
||||
:builds="lane.builds!!"
|
||||
/>
|
||||
<ItemTree
|
||||
v-if="state == 'alternatives' && championData.gameCount > 0"
|
||||
style="margin: auto; margin-top: 40px; width: fit-content"
|
||||
:tree="lane.builds!!.tree"
|
||||
/>
|
||||
<h2
|
||||
v-if="championData.gameCount == 0"
|
||||
style="margin: auto; margin-top: 20px; width: fit-content"
|
||||
>
|
||||
Sorry, there is no data for this champion :(
|
||||
</h2>
|
||||
<div id="champion-content">
|
||||
<ChampionTitle
|
||||
v-if="championData.gameCount > 0"
|
||||
id="champion-title"
|
||||
:champion-id="championId"
|
||||
:winrate="lane.winrate"
|
||||
:pickrate="lane.pickrate"
|
||||
:game-count="lane.count"
|
||||
/>
|
||||
<RuneSelector
|
||||
v-if="state == 'runes' && championData.gameCount > 0"
|
||||
style="margin: auto; margin-top: 40px"
|
||||
:runes="lane.runes!!"
|
||||
/>
|
||||
<ItemViewer
|
||||
v-if="state == 'items' && championData.gameCount > 0"
|
||||
style="margin: auto; margin-top: 40px"
|
||||
:builds="lane.builds!!"
|
||||
/>
|
||||
<ItemTree
|
||||
v-if="state == 'alternatives' && championData.gameCount > 0"
|
||||
style="margin: auto; margin-top: 40px; width: fit-content"
|
||||
:tree="lane.builds!!.tree"
|
||||
/>
|
||||
<h2
|
||||
v-if="championData.gameCount == 0"
|
||||
style="margin: auto; margin-top: 20px; width: fit-content"
|
||||
>
|
||||
Sorry, there is no data for this champion :(
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user