193 lines
6.5 KiB
TypeScript
193 lines
6.5 KiB
TypeScript
// This file is auto-generated by scripts/generate-people-data.js
|
|
// When new people components are added, run: npm run generate-people-data
|
|
|
|
export interface PersonData {
|
|
name: string
|
|
role: string
|
|
imageUrl: string
|
|
xUrl: string
|
|
linkedinUrl: string
|
|
}
|
|
|
|
// Function to dynamically get all people data
|
|
export async function getAllPeopleData(): Promise<PersonData[]> {
|
|
const allPeopleData: PersonData[] = []
|
|
|
|
// Auto-generated list of all people components
|
|
const peopleComponents = [
|
|
() => import('@/components/people/People_Adnan_Fateryji'),
|
|
() => import('@/components/people/People_Alexandre_Hannelas'),
|
|
() => import('@/components/people/People_Chris_Camponovo'),
|
|
() => import('@/components/people/People_Florian_Fournier'),
|
|
() => import('@/components/people/People_Gregory_Flipo'),
|
|
() => import('@/components/people/People_Hugo_Mathecowitsch'),
|
|
() => import('@/components/people/People_Jan_De_Landtsheer'),
|
|
() => import('@/components/people/People_Karoline_Zizka'),
|
|
() => import('@/components/people/People_Kristof_de_Spiegeleer'),
|
|
() => import('@/components/people/People_Malte_Geierhos'),
|
|
() => import('@/components/people/People_Marion_Ravarino'),
|
|
() => import('@/components/people/People_Michel_Coucke'),
|
|
() => import('@/components/people/People_Nousrath_Bhugeloo'),
|
|
() => import('@/components/people/People_Owen_Kemp'),
|
|
() => import('@/components/people/People_Sacha_Obeegadoo'),
|
|
() => import('@/components/people/People_Sam_Taggart'),
|
|
() => import('@/components/people/People_Sasha_Astiadi'),
|
|
() => import('@/components/people/People_Timur_Gordon'),
|
|
() => import('@/components/people/People_Vianney_Spriet'),
|
|
]
|
|
|
|
for (const importComponent of peopleComponents) {
|
|
try {
|
|
const module = await importComponent()
|
|
if (module.data && Array.isArray(module.data)) {
|
|
allPeopleData.push(...module.data)
|
|
}
|
|
} catch (error) {
|
|
console.error('Error loading people data:', error)
|
|
}
|
|
}
|
|
|
|
return allPeopleData
|
|
}
|
|
|
|
// Synchronous version using static imports for immediate data access
|
|
import { data as adnan_fateryjiData } from '@/components/people/People_Adnan_Fateryji'
|
|
import { data as alexandre_hannelasData } from '@/components/people/People_Alexandre_Hannelas'
|
|
import { data as chris_camponovoData } from '@/components/people/People_Chris_Camponovo'
|
|
import { data as florian_fournierData } from '@/components/people/People_Florian_Fournier'
|
|
import { data as gregory_flipoData } from '@/components/people/People_Gregory_Flipo'
|
|
import { data as hugo_mathecowitschData } from '@/components/people/People_Hugo_Mathecowitsch'
|
|
import { data as jan_de_landtsheerData } from '@/components/people/People_Jan_De_Landtsheer'
|
|
import { data as karoline_zizkaData } from '@/components/people/People_Karoline_Zizka'
|
|
import { data as kristof_de_spiegeleerData } from '@/components/people/People_Kristof_de_Spiegeleer'
|
|
import { data as malte_geierhosData } from '@/components/people/People_Malte_Geierhos'
|
|
import { data as marion_ravarinoData } from '@/components/people/People_Marion_Ravarino'
|
|
import { data as michel_couckeData } from '@/components/people/People_Michel_Coucke'
|
|
import { data as nousrath_bhugelooData } from '@/components/people/People_Nousrath_Bhugeloo'
|
|
import { data as owen_kempData } from '@/components/people/People_Owen_Kemp'
|
|
import { data as sacha_obeegadooData } from '@/components/people/People_Sacha_Obeegadoo'
|
|
import { data as sam_taggartData } from '@/components/people/People_Sam_Taggart'
|
|
import { data as sasha_astiadiData } from '@/components/people/People_Sasha_Astiadi'
|
|
import { data as timur_gordonData } from '@/components/people/People_Timur_Gordon'
|
|
import { data as vianney_sprietData } from '@/components/people/People_Vianney_Spriet'
|
|
|
|
export function getAllPeopleDataSync(): PersonData[] {
|
|
const allPeopleData: PersonData[] = []
|
|
|
|
try {
|
|
allPeopleData.push(...adnan_fateryjiData)
|
|
} catch (error) {
|
|
console.error('Error loading adnan_fateryji data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...alexandre_hannelasData)
|
|
} catch (error) {
|
|
console.error('Error loading alexandre_hannelas data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...chris_camponovoData)
|
|
} catch (error) {
|
|
console.error('Error loading chris_camponovo data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...florian_fournierData)
|
|
} catch (error) {
|
|
console.error('Error loading florian_fournier data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...gregory_flipoData)
|
|
} catch (error) {
|
|
console.error('Error loading gregory_flipo data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...hugo_mathecowitschData)
|
|
} catch (error) {
|
|
console.error('Error loading hugo_mathecowitsch data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...jan_de_landtsheerData)
|
|
} catch (error) {
|
|
console.error('Error loading jan_de_landtsheer data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...karoline_zizkaData)
|
|
} catch (error) {
|
|
console.error('Error loading karoline_zizka data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...kristof_de_spiegeleerData)
|
|
} catch (error) {
|
|
console.error('Error loading kristof_de_spiegeleer data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...malte_geierhosData)
|
|
} catch (error) {
|
|
console.error('Error loading malte_geierhos data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...marion_ravarinoData)
|
|
} catch (error) {
|
|
console.error('Error loading marion_ravarino data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...michel_couckeData)
|
|
} catch (error) {
|
|
console.error('Error loading michel_coucke data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...nousrath_bhugelooData)
|
|
} catch (error) {
|
|
console.error('Error loading nousrath_bhugeloo data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...owen_kempData)
|
|
} catch (error) {
|
|
console.error('Error loading owen_kemp data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...sacha_obeegadooData)
|
|
} catch (error) {
|
|
console.error('Error loading sacha_obeegadoo data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...sam_taggartData)
|
|
} catch (error) {
|
|
console.error('Error loading sam_taggart data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...sasha_astiadiData)
|
|
} catch (error) {
|
|
console.error('Error loading sasha_astiadi data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...timur_gordonData)
|
|
} catch (error) {
|
|
console.error('Error loading timur_gordon data:', error)
|
|
}
|
|
|
|
try {
|
|
allPeopleData.push(...vianney_sprietData)
|
|
} catch (error) {
|
|
console.error('Error loading vianney_spriet data:', error)
|
|
}
|
|
|
|
return allPeopleData
|
|
}
|