Moved data out of stores
This commit is contained in:
@@ -1,40 +1,10 @@
|
||||
import { charactersList } from '@/data/Characters'
|
||||
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' } }
|
||||
]
|
||||
const characters: Character[] = charactersList
|
||||
|
||||
// Get all birth events
|
||||
const charactersWithBirthData: ComputedRef<Character[]> = computed(() =>
|
||||
|
||||
Reference in New Issue
Block a user