Changed store file names

This commit is contained in:
Alexis
2024-04-07 15:55:24 +02:00
parent e9df8545a4
commit c8b915c856
14 changed files with 15 additions and 15 deletions

View File

@@ -0,0 +1,50 @@
import type { Character } from '@/models/Characters'
import { defineStore } from 'pinia'
import { computed, type ComputedRef } from 'vue'
export const useCharacters = defineStore('characters', () => {
const characters: Character[] = [
// Counts of the Alliance
{ name: 'Alfrid de Lagarde', birth: { day: 29, month: 7, year: 3193, period: 'nante' } },
{ name: 'Alaric de Lagarde', birth: { day: 23, month: 8, year: 3192, period: 'nante' } },
{ name: 'Anastael III de Quillon', birth: { day: 1, month: 5, year: 3184, period: 'nante' } },
{ name: 'Antoine de Mireloin', birth: { day: 31, month: 5, year: 3190, period: 'nante' } },
{ name: 'Armance Ronchère', birth: { day: 1, month: 1, year: 3132, period: 'nante' } },
{ name: 'Baranne Rougefer', birth: { day: 1, month: 0, year: 3175, period: 'nante' } },
{ name: 'Béatrice II de Grandlac', birth: { day: 21, month: 4, year: 3158, period: 'nante' } },
{ name: 'Favio Asharos-Losantelle', birth: { day: 17, month: 3, year: 3091, period: 'nante' } },
{ name: 'Firmin de Montardieu', birth: { day: 9, month: 2, year: 3203, period: 'nante' } },
{
name: 'Laura de Montardieu',
birth: { day: 32, month: 3, year: 3167, period: 'nante' },
death: { day: 1, month: 4, year: 3217, period: 'nante' }
},
{ name: 'Lazarus Tymos', birth: { day: 29, month: 9, year: 3145, period: 'nante' } },
{ name: 'Marion de Corambre', birth: { day: 14, month: 7, year: 3190, period: 'nante' } },
{ name: 'Relforg Pergaré', birth: { day: 18, month: 9, year: 3182, period: 'nante' } },
{ name: 'Vilgarde de Ternâcre', birth: { day: 3, month: 3, year: 2998, period: 'nante' } },
{ name: 'Ysildy Milopée', birth: { day: 3, month: 1, year: 3187, period: 'nante' } },
// "Les Milles Cages"
{ name: 'Ernestin Pomel', birth: { day: 11, month: 2, year: 3179, period: 'nante' } },
{ name: 'Quacille Lévios', birth: { day: 3, month: 6, year: 3162, period: 'nante' } },
{ name: 'Anastael Simon', birth: { day: 32, month: 2, year: 3166, period: 'nante' } },
{ name: 'Grestain', birth: { day: 9, month: 2, year: 3162, period: 'nante' } },
{ name: 'Tivian Rodhus', birth: { day: 13, month: 3, year: 3157, period: 'nante' } },
// Player characters
{ name: 'Sulvan Trois-Barbes', birth: { day: 20, month: 3, year: 3169, period: 'nante' } }
]
// Get all birth events
const charactersWithBirthData: ComputedRef<Character[]> = computed(() =>
characters.filter((character) => character.birth)
)
// Get all death events
const charactersWithDeathData: ComputedRef<Character[]> = computed(() =>
characters.filter((character) => character.death)
)
return { characters, charactersWithBirthData, charactersWithDeathData }
})