How gabrieljgb/futbol-1 works
Fútbol 1 is a Preact football-results PWA. Its main workflow routes users to a date-based match listing, then to match, league, team, or player detail views; it also offers news and video content. Data hooks fetch and expose results to those views, while Signals hold shared UI selections and preferences. The README documents fixture, table, bracket, history, match-event, lineup, statistics, player, team, and multimedia capabilities. Some feature implementations are unsampled, so their relationships are included only where the source index or README supports them.
Main entry points: src/index.jsx Routed application · League/index.jsx League detail page · Player/index.jsx Player profile page · fetcher.js HTTP fetchers
Components 26
Application shell
- Routed application
src/index.jsx
Scores and matches
- Date-based home
src/pages/Home/index.jsx - Match detail page
src/pages/Game/index.jsx - Match events and field
src/components/game/Field_2.jsx
League coverage
- League detail page
src/pages/League/index.jsx - League competitions
src/components/league/tabs/Brackets.jsx - League history
src/components/league/tabs/History.jsx - Team statistics
src/components/league/tabs/TeamsStats.jsx
Team and player profiles
- Team profile
src/components/team - Player profile page
src/pages/Player/index.jsx - Player match history
src/components/player/LastGames.jsx - Player performance
src/components/player/Stats.jsx - Player honours
src/components/player/Trophies.jsx
News and media
- Article view
src/pages/Article/index.jsx - Video view
src/pages/Video/index.jsx - Home news
src/components/common/HomeNews.jsx
Data and state
- Match data hook
src/hooks/useGame.js - League data hooks
src/hooks/useLeague.js - Player data hooks
src/hooks/usePlayer.js - HTTP fetchers
src/utils/fetcher.js - Reactive UI state
src/signals/home.js - League selections
src/signals/league.js - Browser preferences
src/utils/storage.js
Other components
- Football fan
- Promiedos API
- 365Scores API
Connections 31
- Football fan → Routed application: opens
src/index.jsx - Routed application → Date-based home: routes to
src/index.jsx - Routed application → Match detail page: routes to
src/index.jsx - Routed application → League detail page: routes to
src/index.jsx - Routed application → Player profile page: routes to
src/index.jsx - Routed application → Team profile: routes to
src/index.jsx - Routed application → Article view: routes to
src/index.jsx - Routed application → Video view: routes to
src/index.jsx - Date-based home → Match data hook: loads matches
src/pages/Home/index.jsx - Date-based home → Home news: renders news
src/pages/Home/index.jsx - Date-based home → Reactive UI state: reads state
src/pages/Home/index.jsx - Match detail page → Match data hook: loads match
- Match detail page → Match events and field: shows field
- Match data hook → HTTP fetchers: fetches through
src/hooks/useGame.js - League detail page → League data hooks: loads league
src/pages/League/index.jsx - League detail page → League competitions: renders bracket
src/pages/League/index.jsx - League detail page → League history: renders history
src/pages/League/index.jsx - League detail page → Team statistics: renders stats
src/pages/League/index.jsx - League detail page → League selections: reads selection
src/pages/League/index.jsx - League data hooks → HTTP fetchers: fetches through
src/hooks/useLeague.js - League data hooks → Promiedos API: requests league data
src/hooks/useLeague.js - Player profile page → Player data hooks: loads player
src/pages/Player/index.jsx - Player profile page → Player match history: renders history
src/pages/Player/index.jsx - Player profile page → Player performance: renders stats
src/pages/Player/index.jsx - Player profile page → Player honours: renders honours
src/pages/Player/index.jsx - Player data hooks → HTTP fetchers: fetches through
src/hooks/usePlayer.js - Player data hooks → 365Scores API: requests player data
src/hooks/usePlayer.js - Player match history → Player data hooks: loads games
src/components/player/LastGames.jsx - Article view → HTTP fetchers: loads article
src/pages/Article/index.jsx - Routed application → Browser preferences: loads preference
src/index.jsx - HTTP fetchers → Promiedos API: requests data