mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
refactor: tidy up vue components folder
This commit is contained in:
parent
5a0830b8d5
commit
9bf781aa55
28 changed files with 63 additions and 62 deletions
|
|
@ -12,8 +12,8 @@
|
||||||
import { mapActions } from 'vuex'
|
import { mapActions } from 'vuex'
|
||||||
import Default from '@/layouts/Default.vue'
|
import Default from '@/layouts/Default.vue'
|
||||||
import Home from '@/layouts/Home.vue'
|
import Home from '@/layouts/Home.vue'
|
||||||
import NotificationsContainer from '@/components/NotificationsContainer.vue'
|
import NotificationsContainer from '@/components/Global/NotificationsContainer.vue'
|
||||||
import SVGContainer from '@/components/SVGContainer.vue'
|
import SVGContainer from '@/components/Global/SVGContainer.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
|
||||||
|
|
@ -3,16 +3,16 @@
|
||||||
<!-- trigger -->
|
<!-- trigger -->
|
||||||
<div
|
<div
|
||||||
ref="trigger"
|
ref="trigger"
|
||||||
@mouseenter="showDropdown"
|
@mouseenter="showTooltip"
|
||||||
@mousemove="mousemove"
|
@mousemove="mousemove"
|
||||||
@mouseleave="hideDropdown"
|
@mouseleave="hideTooltip"
|
||||||
:aria-expanded="isOpen"
|
:aria-expanded="isOpen"
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
>
|
>
|
||||||
<slot name="trigger"></slot>
|
<slot name="trigger"></slot>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- dropdown content -->
|
<!-- tooltip content -->
|
||||||
<div
|
<div
|
||||||
v-show="isOpen"
|
v-show="isOpen"
|
||||||
ref="content"
|
ref="content"
|
||||||
|
|
@ -58,7 +58,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
checkDropdownVisibility() {
|
checkTooltipVisibility() {
|
||||||
this.directionChecked = true
|
this.directionChecked = true
|
||||||
const contentRect = this.$refs.content.getBoundingClientRect()
|
const contentRect = this.$refs.content.getBoundingClientRect()
|
||||||
const triggerRect = this.$refs.trigger.getBoundingClientRect()
|
const triggerRect = this.$refs.trigger.getBoundingClientRect()
|
||||||
|
|
@ -74,7 +74,7 @@ export default {
|
||||||
height() {
|
height() {
|
||||||
return this.$refs.content ? this.$refs.content.clientHeight : 0
|
return this.$refs.content ? this.$refs.content.clientHeight : 0
|
||||||
},
|
},
|
||||||
hideDropdown() {
|
hideTooltip() {
|
||||||
this.isOpen = false
|
this.isOpen = false
|
||||||
this.directionBottom = true
|
this.directionBottom = true
|
||||||
this.directionRight = true
|
this.directionRight = true
|
||||||
|
|
@ -86,10 +86,10 @@ export default {
|
||||||
|
|
||||||
if (!this.directionChecked) {
|
if (!this.directionChecked) {
|
||||||
await this.$nextTick()
|
await this.$nextTick()
|
||||||
this.checkDropdownVisibility()
|
this.checkTooltipVisibility()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showDropdown(event) {
|
showTooltip(event) {
|
||||||
this.left = event.clientX
|
this.left = event.clientX
|
||||||
this.top = event.clientY
|
this.top = event.clientY
|
||||||
this.isOpen = true
|
this.isOpen = true
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapActions, mapState } from 'vuex'
|
import { mapActions, mapState } from 'vuex'
|
||||||
import SearchFormDropdown from '@/components/SearchFormDropdown.vue'
|
import SearchFormDropdown from '@/components/Form/SearchFormDropdown.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import SearchFormDropdownPlayer from '@/components/SearchFormDropdownPlayer.vue'
|
import SearchFormDropdownPlayer from '@/components/Form/SearchFormDropdownPlayer.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PopupNotification from '@/components/PopupNotification.vue'
|
import PopupNotification from '@/components/Global/PopupNotification.vue'
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import DetailedMatchGlobalStats from '@/components/Match/DetailedMatchGlobalStats.vue'
|
import DetailedMatchGlobalStats from '@/components/Match/DetailedMatchGlobalStats.vue'
|
||||||
import DetailedMatchTeam from '@/components/Match/DetailedMatchTeam.vue'
|
import DetailedMatchTeam from '@/components/Match/DetailedMatchTeam.vue'
|
||||||
import SwitchToggle from '@/components/SwitchToggle.vue'
|
import SwitchToggle from '@/components/Form/SwitchToggle.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="allyTeam ? 'text-left' : 'text-right'">
|
<div :class="allyTeam ? 'text-left' : 'text-right'">
|
||||||
<div v-if="team.bans">
|
<div v-if="team.bans">
|
||||||
<Dropdown
|
<Tooltip
|
||||||
v-for="ban in team.bans"
|
v-for="ban in team.bans"
|
||||||
:key="'ban-' + ban.pickTurn"
|
:key="'ban-' + ban.pickTurn"
|
||||||
:class="{'ml-2': ban.pickTurn !== 6 && ban.pickTurn !== 1}"
|
:class="{'ml-2': ban.pickTurn !== 6 && ban.pickTurn !== 1}"
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
<div>{{ ban.champion.id ? ban.champion.name : 'No ban' }}</div>
|
<div>{{ ban.champion.id ? ban.champion.name : 'No ban' }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
:class="allyTeam ? 'text-left' : 'text-right flex-row-reverse'"
|
:class="allyTeam ? 'text-left' : 'text-right flex-row-reverse'"
|
||||||
|
|
@ -73,11 +73,11 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dropdown from '@/components/Dropdown'
|
import Tooltip from '@/components/Common/Tooltip.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Dropdown,
|
Tooltip,
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-1 flex flex-col justify-around">
|
<div class="ml-1 flex flex-col justify-around">
|
||||||
<Dropdown>
|
<Tooltip>
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
<div
|
<div
|
||||||
:style="{backgroundImage: `url(${player.firstSum ? player.firstSum.icon : null})`}"
|
:style="{backgroundImage: `url(${player.firstSum ? player.firstSum.icon : null})`}"
|
||||||
|
|
@ -91,8 +91,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Tooltip>
|
||||||
<Dropdown>
|
<Tooltip>
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
<div
|
<div
|
||||||
:style="{backgroundImage: `url(${player.secondSum ? player.secondSum.icon : null})`}"
|
:style="{backgroundImage: `url(${player.secondSum ? player.secondSum.icon : null})`}"
|
||||||
|
|
@ -114,7 +114,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-2px flex flex-col justify-around">
|
<div class="ml-2px flex flex-col justify-around">
|
||||||
<div
|
<div
|
||||||
|
|
@ -204,14 +204,14 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import DotsLoader from '@/components/DotsLoader'
|
import DotsLoader from '@/components/Common/DotsLoader.vue'
|
||||||
import Dropdown from '@/components/Dropdown'
|
import Tooltip from '@/components/Common/Tooltip.vue'
|
||||||
import MatchItems from '@/components/Match/MatchItems'
|
import MatchItems from '@/components/Match/MatchItems.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
DotsLoader,
|
DotsLoader,
|
||||||
Dropdown,
|
Tooltip,
|
||||||
MatchItems,
|
MatchItems,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
<div class="ml-auto flex flex-col items-center justify-center">
|
<div class="ml-auto flex flex-col items-center justify-center">
|
||||||
<img class="w-5 h-5" src="@/assets/img/icons/Stopwatch.svg" alt="Stopwatch" />
|
<img class="w-5 h-5" src="@/assets/img/icons/Stopwatch.svg" alt="Stopwatch" />
|
||||||
<div class="text-lg text-teal-400 font-medium">{{ data.time|secToTime }}</div>
|
<div class="text-lg text-teal-400 font-medium">{{ data.time|secToTime }}</div>
|
||||||
<Dropdown>
|
<Tooltip>
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
<div class="text-xs text-white font-medium">{{ data.date }}</div>
|
<div class="text-xs text-white font-medium">{{ data.date }}</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -140,7 +140,7 @@
|
||||||
<div>{{ data.fullDate.time }}</div>
|
<div>{{ data.fullDate.time }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -151,15 +151,15 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapActions, mapState, mapGetters } from 'vuex'
|
import { mapActions, mapState, mapGetters } from 'vuex'
|
||||||
import Dropdown from '@/components/Dropdown'
|
import Tooltip from '@/components/Common/Tooltip.vue'
|
||||||
import DetailedMatch from '@/components/Match/DetailedMatch'
|
import DetailedMatch from '@/components/Match/DetailedMatch.vue'
|
||||||
import MatchItems from '@/components/Match/MatchItems'
|
import MatchItems from '@/components/Match/MatchItems.vue'
|
||||||
import Ripple from '@/components/Ripple.vue'
|
import Ripple from '@/components/Common/Ripple.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
DetailedMatch,
|
DetailedMatch,
|
||||||
Dropdown,
|
Tooltip,
|
||||||
MatchItems,
|
MatchItems,
|
||||||
Ripple,
|
Ripple,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="oneRow ? 'ml-2 items-center' : 'items-2-rows flex-wrap'" class="flex">
|
<div :class="oneRow ? 'ml-2 items-center' : 'items-2-rows flex-wrap'" class="flex">
|
||||||
<Dropdown v-for="(item, index) in items" :key="index">
|
<Tooltip v-for="(item, index) in items" :key="index">
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
<div
|
<div
|
||||||
:style="{backgroundImage: item ? `url('${item.image}')` : null}"
|
:style="{backgroundImage: item ? `url('${item.image}')` : null}"
|
||||||
|
|
@ -24,16 +24,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dropdown from '@/components/Dropdown.vue'
|
import Tooltip from '@/components/Common/Tooltip.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Dropdown
|
Tooltip
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Ripple from '@/components/Ripple.vue'
|
import Ripple from '@/components/Common/Ripple.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<use xlink:href="#layers" />
|
<use xlink:href="#layers" />
|
||||||
</svg>
|
</svg>
|
||||||
<div class="absolute right-0 top-0 mt-3 mr-2">
|
<div class="absolute right-0 top-0 mt-3 mr-2">
|
||||||
<Dropdown>
|
<Tooltip>
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
<svg class="w-4 h-4 cursor-pointer">
|
<svg class="w-4 h-4 cursor-pointer">
|
||||||
<use xlink:href="#info" />
|
<use xlink:href="#info" />
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="stats.champion.length">
|
<div v-if="stats.champion.length">
|
||||||
|
|
@ -87,11 +87,11 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import Dropdown from '@/components/Dropdown.vue'
|
import Tooltip from '@/components/Common/Tooltip.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Dropdown,
|
Tooltip,
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
>{{ mate.name }}</router-link>
|
>{{ mate.name }}</router-link>
|
||||||
<div class="w-1/4">{{ mate.wins }} / {{ mate.losses }}</div>
|
<div class="w-1/4">{{ mate.wins }} / {{ mate.losses }}</div>
|
||||||
<div class="w-1/4">
|
<div class="w-1/4">
|
||||||
<Dropdown>
|
<Tooltip>
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
<div class="bg-blue-900 rounded-full h-2 cursor-pointer">
|
<div class="bg-blue-900 rounded-full h-2 cursor-pointer">
|
||||||
<div
|
<div
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -64,11 +64,11 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import Dropdown from '@/components/Dropdown.vue'
|
import Tooltip from '@/components/Common/Tooltip.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Dropdown,
|
Tooltip,
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<use xlink:href="#graph" />
|
<use xlink:href="#graph" />
|
||||||
</svg>
|
</svg>
|
||||||
<div class="absolute right-0 top-0 mt-3 mr-2">
|
<div class="absolute right-0 top-0 mt-3 mr-2">
|
||||||
<Dropdown>
|
<Tooltip>
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
<svg class="w-4 h-4 cursor-pointer">
|
<svg class="w-4 h-4 cursor-pointer">
|
||||||
<use xlink:href="#info" />
|
<use xlink:href="#info" />
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-2 flex items-center py-2">
|
<div class="mt-2 flex items-center py-2">
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
class="flex flex-col items-center w-1/5"
|
class="flex flex-col items-center w-1/5"
|
||||||
>
|
>
|
||||||
<Dropdown>
|
<Tooltip>
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
<div class="flex flex-col justify-end w-2 h-12 bg-blue-900 rounded-full cursor-pointer">
|
<div class="flex flex-col justify-end w-2 h-12 bg-blue-900 rounded-full cursor-pointer">
|
||||||
<div
|
<div
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
>{{ calculateWinrate(role.wins, role.count).winrate|round }}%</div>
|
>{{ calculateWinrate(role.wins, role.count).winrate|round }}%</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Tooltip>
|
||||||
<div
|
<div
|
||||||
:style="{backgroundImage: `url(${require('@/assets/img/roles/' + role.role + '.png')})`}"
|
:style="{backgroundImage: `url(${require('@/assets/img/roles/' + role.role + '.png')})`}"
|
||||||
class="mt-1 w-4 h-4 bg-center bg-cover"
|
class="mt-1 w-4 h-4 bg-center bg-cover"
|
||||||
|
|
@ -226,12 +226,12 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import Dropdown from '@/components/Dropdown.vue'
|
import Tooltip from '@/components/Common/Tooltip.vue'
|
||||||
import { gameModes } from '@/data/data.js'
|
import { gameModes } from '@/data/data.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Dropdown,
|
Tooltip,
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
class="ml-1 flex flex-col flex-wrap"
|
class="ml-1 flex flex-col flex-wrap"
|
||||||
style="width: calc(20px * 15); height: calc(20px * 7)"
|
style="width: calc(20px * 15); height: calc(20px * 7)"
|
||||||
>
|
>
|
||||||
<Dropdown v-for="(day, index) in gridDays.slice(indexFirstMonday)" :key="day.timestamp">
|
<Tooltip v-for="(day, index) in gridDays.slice(indexFirstMonday)" :key="day.timestamp">
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
<div
|
<div
|
||||||
:class="[getCaseMargin(index), getCaseColor(day.matches)]"
|
:class="[getCaseMargin(index), getCaseColor(day.matches)]"
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -55,11 +55,11 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dropdown from '@/components/Dropdown.vue'
|
import Tooltip from '@/components/Common/Tooltip.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Dropdown,
|
Tooltip,
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { timeDifference } from '@/helpers/functions.js'
|
import { timeDifference } from '@/helpers/functions.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
color: {
|
color: {
|
||||||
|
|
|
||||||
|
|
@ -127,10 +127,10 @@
|
||||||
<script>
|
<script>
|
||||||
import { mapState, mapActions, mapGetters } from 'vuex'
|
import { mapState, mapActions, mapGetters } from 'vuex'
|
||||||
import FilterSeason from '@/components/Summoner/FilterSeason.vue'
|
import FilterSeason from '@/components/Summoner/FilterSeason.vue'
|
||||||
import LazyBackground from '@/components/LazyBackgroundImage.vue'
|
import LazyBackground from '@/components/Common/LazyBackgroundImage.vue'
|
||||||
import MainFooter from '@/components/MainFooter.vue'
|
import MainFooter from '@/components/Layout/MainFooter.vue'
|
||||||
import RecentActivity from '@/components/Summoner/RecentActivity.vue'
|
import RecentActivity from '@/components/Summoner/RecentActivity.vue'
|
||||||
import SearchForm from '@/components/SearchForm.vue'
|
import SearchForm from '@/components/Form/SearchForm.vue'
|
||||||
import HeaderLoader from '@/components/Summoner/HeaderLoader.vue'
|
import HeaderLoader from '@/components/Summoner/HeaderLoader.vue'
|
||||||
import SummonerRanked from '@/components/Summoner/SummonerRanked.vue'
|
import SummonerRanked from '@/components/Summoner/SummonerRanked.vue'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import LazyBackground from '@/components/LazyBackgroundImage.vue'
|
import LazyBackground from '@/components/Common/LazyBackgroundImage.vue'
|
||||||
import SearchForm from '@/components/SearchForm.vue'
|
import SearchForm from '@/components/Form/SearchForm.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<SummonerMates />
|
<SummonerMates />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-9/12">
|
<div class="w-9/12">
|
||||||
<div v-if="current" class="mb-4">
|
<div v-if="current && current.participants" class="mb-4">
|
||||||
<LiveMatch />
|
<LiveMatch />
|
||||||
</div>
|
</div>
|
||||||
<div v-if="overview.matches.length">
|
<div v-if="overview.matches.length">
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { mapState, mapActions, mapGetters } from 'vuex'
|
import { mapState, mapActions, mapGetters } from 'vuex'
|
||||||
import LiveMatch from '@/components/Match/LiveMatch.vue'
|
import LiveMatch from '@/components/Match/LiveMatch.vue'
|
||||||
import LoadingButton from '@/components/LoadingButton.vue'
|
import LoadingButton from '@/components/Form/LoadingButton.vue'
|
||||||
import Match from '@/components/Match/Match.vue'
|
import Match from '@/components/Match/Match.vue'
|
||||||
import OverviewLoader from '@/components/Summoner/Overview/OverviewLoader.vue'
|
import OverviewLoader from '@/components/Summoner/Overview/OverviewLoader.vue'
|
||||||
import SummonerChampions from '@/components/Summoner/Overview/SummonerChampions.vue'
|
import SummonerChampions from '@/components/Summoner/Overview/SummonerChampions.vue'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue