Add X Battles

This commit is contained in:
Matt Isenhower
2022-11-30 22:09:39 -08:00
parent 099864e760
commit f0425ede21
19 changed files with 88 additions and 24 deletions

View File

@@ -26,7 +26,9 @@
"open": "Offen",
"regular": "Standardkampf",
"anarchy": "Anarchie-Kampf",
"splatfest": "Splatfest-Kampf"
"splatfest": "Splatfest-Kampf",
"xmatch": "X-Kampf",
"league": "Ligakampf"
},
"all-upcoming": "Alle bevorstehenden Arenen"
},

View File

@@ -25,7 +25,9 @@
"open": "Open",
"regular": "Regular Battle",
"anarchy": "Anarchy Battle",
"splatfest": "Splatfest Battle"
"splatfest": "Splatfest Battle",
"xmatch": "X Battle",
"league": "League Battle"
},
"all-upcoming": "All Upcoming Stages"
},

View File

@@ -26,7 +26,9 @@
"open": "Open",
"regular": "Regular Battle",
"anarchy": "Anarchy Battle",
"splatfest": "Splatfest Battle"
"splatfest": "Splatfest Battle",
"xmatch": "X Battle",
"league": "League Battle"
},
"all-upcoming": "All Upcoming Stages"
},

View File

@@ -25,7 +25,9 @@
"open": "Informal",
"regular": "Combate amistoso",
"anarchy": "Combate caótico",
"splatfest": "Combate temático"
"splatfest": "Combate temático",
"xmatch": "Combate X",
"league": "Combate del torneo"
}
},
"salmonrun": {

View File

@@ -25,7 +25,9 @@
"open": "Informal",
"regular": "Combate amistoso",
"anarchy": "Combate caótico",
"splatfest": "Combate temático"
"splatfest": "Combate temático",
"xmatch": "Combate X",
"league": "Combate de liga"
}
},
"salmonrun": {

View File

@@ -25,7 +25,9 @@
"open": "Ouvert",
"regular": "Match classique",
"anarchy": "Match anarchie",
"splatfest": "Festimatch"
"splatfest": "Festimatch",
"xmatch": "Match X",
"league": "Match de ligue"
},
"all-upcoming": "Les stages à venir"
},

View File

@@ -26,7 +26,9 @@
"open": "Ouvert",
"regular": "Match classique",
"anarchy": "Match anarchie",
"splatfest": "Festimatch"
"splatfest": "Festimatch",
"xmatch": "Match X",
"league": "Match de ligue"
},
"all-upcoming": "Les stages à venir"
},

View File

@@ -25,7 +25,9 @@
"open": "Aperta",
"regular": "Partita amichevole",
"anarchy": "Partita anarchica",
"splatfest": "Partita tematica"
"splatfest": "Partita tematica",
"xmatch": "Partita X",
"league": "Partita di lega"
}
},
"salmonrun": {

View File

@@ -25,7 +25,9 @@
"open": "オープン",
"regular": "レギュラーマッチ",
"anarchy": "バンカラマッチ",
"splatfest": "フェスマッチ"
"splatfest": "フェスマッチ",
"xmatch": "Xマッチ",
"league": "リーグマッチ"
}
},
"salmonrun": {

View File

@@ -25,7 +25,9 @@
"open": "오픈",
"regular": "레귤러 매치",
"anarchy": "카오폴리스 매치",
"splatfest": "페스티벌 매치"
"splatfest": "페스티벌 매치",
"xmatch": "X 매치",
"league": "리그 매치"
}
},
"salmonrun": {

View File

@@ -25,7 +25,9 @@
"open": "Open",
"regular": "Standaardgevecht",
"anarchy": "Chaosgevecht",
"splatfest": "Splatfest-gevecht"
"splatfest": "Splatfest-gevecht",
"xmatch": "X-gevecht",
"league": "Toernooigevecht"
}
},
"salmonrun": {

View File

@@ -25,7 +25,9 @@
"open": "Открытый",
"regular": "Бой салаг",
"anarchy": "Стихийный бой",
"splatfest": "Сплатфест-бой"
"splatfest": "Сплатфест-бой",
"xmatch": "Бой X",
"league": "Бой лиги"
}
},
"salmonrun": {

View File

@@ -25,7 +25,9 @@
"open": "开放",
"regular": "一般比赛",
"anarchy": "蛮颓比赛",
"splatfest": "祭典比赛"
"splatfest": "祭典比赛",
"xmatch": "X比赛",
"league": "联盟比赛"
},
"all-upcoming": "接下来的对战场地"
},

View File

@@ -25,7 +25,9 @@
"open": "開放",
"regular": "一般比賽",
"anarchy": "蠻頹比賽",
"splatfest": "祭典比賽"
"splatfest": "祭典比賽",
"xmatch": "X比賽",
"league": "聯盟比賽"
}
},
"salmonrun": {

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -1,6 +1,9 @@
import { useAnarchyOpenSchedulesStore, useAnarchySeriesSchedulesStore, useRegularSchedulesStore, useSplatfestSchedulesStore } from '@/stores/schedules';
import battleRegularSvg from '@/assets/img/modes/regular.svg';
import battleBankaraSvg from '@/assets/img/modes/bankara.svg';
import battleXSvg from '@/assets/img/modes/x.svg';
import battleLeagueSvg from '@/assets/img/modes/league.svg';
import { useLeagueSchedulesStore, useXSchedulesStore } from '../../stores/schedules.mjs';
export function useScheduleTypes() {
const types = {
@@ -25,6 +28,20 @@ export function useScheduleTypes() {
img: battleBankaraSvg,
bg: 'bg-splatoon-battle-ranked bg-tapes',
},
xMatch: {
name: 'schedule.types.xmatch',
badge: null,
store: useXSchedulesStore(),
img: battleXSvg,
bg: 'bg-splatoon-battle-xmatch bg-tapes',
},
league: {
name: 'schedule.types.league',
badge: null,
store: useLeagueSchedulesStore(),
img: battleLeagueSvg,
bg: 'bg-splatoon-battle-league bg-tapes',
},
splatfest: {
name: 'schedule.types.splatfest',
badge: null,

View File

@@ -56,6 +56,18 @@ export const useAnarchyOpenSchedulesStore = defineScheduleStore('anarchy/open',
settings: node => node.bankaraMatchSettings?.find(s => s.mode === 'OPEN'),
});
// X Battle
export const useXSchedulesStore = defineScheduleStore('xmatch', {
nodes: () => useSchedulesDataStore().data?.xSchedules.nodes,
settings: node => node.xMatchSetting,
});
// League Battle
export const useLeagueSchedulesStore = defineScheduleStore('league', {
nodes: () => useSchedulesDataStore().data?.leagueSchedules.nodes,
settings: node => node.leagueMatchSetting,
});
// Splatfest Battle
export const useSplatfestSchedulesStore = defineScheduleStore('splatfest', {
nodes: () => useSchedulesDataStore().data?.festSchedules.nodes,
@@ -72,6 +84,8 @@ if (import.meta.hot) {
import.meta.hot.accept(acceptHMRUpdate(useRegularSchedulesStore, import.meta.hot));
import.meta.hot.accept(acceptHMRUpdate(useAnarchySeriesSchedulesStore, import.meta.hot));
import.meta.hot.accept(acceptHMRUpdate(useAnarchyOpenSchedulesStore, import.meta.hot));
import.meta.hot.accept(acceptHMRUpdate(useXSchedulesStore, import.meta.hot));
import.meta.hot.accept(acceptHMRUpdate(useLeagueSchedulesStore, import.meta.hot));
import.meta.hot.accept(acceptHMRUpdate(useSplatfestSchedulesStore, import.meta.hot));
import.meta.hot.accept(acceptHMRUpdate(useSalmonRunSchedulesStore, import.meta.hot));
}

View File

@@ -8,12 +8,16 @@
</div>
<ScheduleBox type="splatfest" class="flex-1 max-w-lg md:rotate-1" />
</div>
<div class="flex flex-col space-y-6 md:flex-row md:space-x-6 md:space-y-0" v-else>
<ScheduleBox type="regular" class="flex-1 md:-rotate-1" />
<ScheduleBox type="anarchySeries" class="flex-1 md:rotate-1" />
<ScheduleBox type="anarchyOpen" class="flex-1 md:-rotate-1" />
</div>
<template v-else>
<div class="flex flex-col space-y-6 md:flex-row md:space-x-6 md:space-y-0">
<ScheduleBox type="regular" class="flex-1 md:-rotate-1" />
<ScheduleBox type="anarchySeries" class="flex-1 md:rotate-1" />
<ScheduleBox type="anarchyOpen" class="flex-1 md:-rotate-1" />
</div>
<div class="flex flex-col justify-center space-y-6 md:flex-row md:space-x-6 md:space-y-0">
<ScheduleBox type="xMatch" class="flex-1 md:-rotate-1 max-w-lg" />
</div>
</template>
<div class="flex justify-center" v-if="usSplatfests.upcomingFestival">
<SplatfestBox
:festival="usSplatfests.upcomingFestival"

View File

@@ -20,6 +20,7 @@ module.exports = {
battle: {
regular: '#19d719',
ranked: '#f54910',
xmatch: '#0fdb9b',
league: '#f02d7d',
},