From 6eeb9143d791a768675b47607c2692e476fd60ab Mon Sep 17 00:00:00 2001 From: Damnae Date: Wed, 3 Apr 2024 13:51:50 +0200 Subject: [PATCH] Display battle event changes. --- src/views/pages/Changes.vue | 7 ++- src/views/pages/changes/BattleEventItem.vue | 27 ++++++++++++ src/views/pages/changes/BattleEvents.vue | 49 +++++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 src/views/pages/changes/BattleEventItem.vue create mode 100644 src/views/pages/changes/BattleEvents.vue diff --git a/src/views/pages/Changes.vue b/src/views/pages/Changes.vue index 0c4d74d..7e20e59 100644 --- a/src/views/pages/Changes.vue +++ b/src/views/pages/Changes.vue @@ -5,10 +5,11 @@ import Abilities from './changes/Abilities.vue'; import Modifiers from './changes/Modifiers.vue'; import Statuses from './changes/Statuses.vue'; + import BattleEvents from './changes/BattleEvents.vue'; const props = defineProps<{fromCommitId:string, commitId:string}>() - const tabs:string[] = ['Abilities', 'Modifiers', 'Statuses'] + const tabs:string[] = ['Abilities', 'Modifiers', 'Statuses', 'Battle Events'] const tabsWithContext = ['Abilities', 'Modifiers'] const selectedTab = ref('Abilities') @@ -27,6 +28,8 @@ provide('createAbilityRoute', (abilityId:string, isPrevious:boolean) : object => { return { name: 'ability', params:{ commitId: isPrevious ? props.fromCommitId : props.commitId, abilityId: abilityId, } }}) provide('createModifierRoute', (modifierId:string, isPrevious:boolean) : object => { return { name: 'modifier', params:{ commitId: isPrevious ? props.fromCommitId : props.commitId, modifierId: modifierId, } }}) + provide('createBattleEventRoute', (battleEventId:number, isPrevious:boolean) : object => { return { name: 'battleEvent', params:{ commitId: isPrevious ? props.fromCommitId : props.commitId, objectId: battleEventId, } }}) + provide('createBattleEventAbilityRoute', (battleEventId:number, abilityId:string, isPrevious:boolean) : object => { return { name: 'battleEventAbility', params:{ commitId: isPrevious ? props.fromCommitId : props.commitId, abilityId: abilityId, objectId: battleEventId, } }}) diff --git a/src/views/pages/changes/BattleEventItem.vue b/src/views/pages/changes/BattleEventItem.vue new file mode 100644 index 0000000..d7a4d9e --- /dev/null +++ b/src/views/pages/changes/BattleEventItem.vue @@ -0,0 +1,27 @@ + + + + + \ No newline at end of file diff --git a/src/views/pages/changes/BattleEvents.vue b/src/views/pages/changes/BattleEvents.vue new file mode 100644 index 0000000..ef80533 --- /dev/null +++ b/src/views/pages/changes/BattleEvents.vue @@ -0,0 +1,49 @@ + + + + + \ No newline at end of file