-> REFONTE DU DESIGN DES AFFICHEURS CLASSIQUES (GÉNÉRAL + QUAIS) -> IMPLÉMENTATION DU DESIGN AFL : GÉNÉRAL ET QUAIS -> CHOIX DE LA SÉLECTION DES TYPES D'AFFICHEURS (GÉNÉRAL / QUAIS) UNE FOIS LE TYPE D'AFFICHEUR SÉLECTIONNÉS EN COURS DE DÉVELOPPEMENT : -> IMPLÉMENTATION DES PERTURBATION DU LANDEMAIN POUR LES HORAIRES DU LANDEMAIN AFFICHÉS AVANT MINUIT. -> IMPLÉMENTATION DES AFFICHEURS D'INFORMATIONS / INFOS TRAVAUX, etc... (AFFICHEURS AFL)
17 lines
667 B
JavaScript
17 lines
667 B
JavaScript
const { createClient } = require('@supabase/supabase-js');
|
|
require('dotenv').config({ path: '/Users/mathisgrillot/IdeaProjects/afficheurs-ferrovia/.env' });
|
|
const supabase = createClient(process.env.REACT_APP_SUPABASE_URL, process.env.REACT_APP_SUPABASE_ANON_KEY);
|
|
|
|
async function test() {
|
|
const { data: horaires } = await supabase.from('horaires').select('*').limit(100);
|
|
const matched = horaires.filter(h => JSON.stringify(h).includes("Ouges"));
|
|
const h = matched[0];
|
|
console.log("Train:", h.numero_train);
|
|
console.log("Stops:", h.gares_desservies.map(s => ({
|
|
gare_nom: s.gare_nom,
|
|
quai_reel: s.quai_reel,
|
|
gare_id: s.gare_id
|
|
})));
|
|
}
|
|
test();
|