frontend: lint and format
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { getHighestPickrateBuildIndex, getFirstCoreItems } from '~/utils/buildHelpers'
|
||||
import { MOCK_SUMMONER_SPELLS, BOOTS_RUSH_THRESHOLD } from '~/utils/mockData'
|
||||
import { MOCK_SUMMONER_SPELLS } from '~/utils/mockData'
|
||||
import BuildVariantSelector from '~/components/build/BuildVariantSelector.vue'
|
||||
import SummonerSpells from '~/components/build/SummonerSpells.vue'
|
||||
import CompactRuneSelector from '~/components/build/CompactRuneSelector.vue'
|
||||
@@ -32,9 +32,9 @@ const { perks, primaryStyles, secondaryStyles, keystoneIds } = useRuneStyles(toR
|
||||
const { builds } = useBuilds(toRef(props, 'builds'))
|
||||
|
||||
// Summoner spells data - use提供的 or fall back to mock
|
||||
const displaySummonerSpells = computed(() =>
|
||||
(props.summonerSpells && props.summonerSpells.length > 0)
|
||||
? props.summonerSpells
|
||||
const displaySummonerSpells = computed(() =>
|
||||
props.summonerSpells && props.summonerSpells.length > 0
|
||||
? props.summonerSpells
|
||||
: MOCK_SUMMONER_SPELLS
|
||||
)
|
||||
|
||||
@@ -43,10 +43,6 @@ const firstCoreItems = computed(() => getFirstCoreItems(props.runes, builds.valu
|
||||
|
||||
const highestPickrateBuildIndex = computed(() => getHighestPickrateBuildIndex(props.runes))
|
||||
|
||||
const bootsLabel = computed(() =>
|
||||
builds.value.bootsFirst > BOOTS_RUSH_THRESHOLD ? 'Boots Rush' : 'Boots'
|
||||
)
|
||||
|
||||
// Reset selected build when runes change
|
||||
watch(
|
||||
() => props.runes,
|
||||
|
||||
Reference in New Issue
Block a user