How z2dz/sumulacartolaproject works
Sumula Cartola is a Blazor WebAssembly fantasy-football app for building a team lineup, customizing a club and its shield, and viewing rankings, match history, and season information; it also includes administrative pages. The sampled code confirms Supabase-backed authentication, session persistence, and lineup/market/fan-service interactions. The README is empty and most pages were not sampled, so those feature branches are shown without speculative call relationships.
Main entry points: Program.cs Service setup · ServicoEscalacao.cs Lineup service · ServicoTorcida.cs Fan progression · GeradorEscudoSvg.cs Shield SVG renderer
Components 31
App and administration
- App shell
App.razor - Home and club
Pages/Home.razor - Admin pages
Pages/Admin.razor
Lineup and market
- Lineup editor
Pages/Escalar.razor - Lineup state
Models/EscalacaoMontada.cs - Formations
Models/Tatica.cs - Lineup service
Services/ServicoEscalacao.cs - Player market
Services/ServicoMercado.cs - Player and value model
Models/EscalacaoMontada.cs
Club customization
- Club settings
Pages/Clube.razor - Shield editor
Pages/EscudoTime.razor - Shield configuration
Models/EscudoConfig.cs - Shield SVG renderer
Services/GeradorEscudoSvg.cs - Shield symbols
Services/SimbolosImportados.cs - Fan progression
Services/ServicoTorcida.cs - Fan rewards
Models/Torcida.cs - Card customization
Models/Cards.cs
Competition data
- Rankings
Pages/Ranking.razor - Match history
Pages/Historico.razor - Match reports
Services/ServicoSumula.cs - History service
Services/ServicoHistorico.cs - Season service
Services/ServicoTemporada.cs
Identity and persistence
- Login
Pages/Login.razor - Authentication service
Services/ServicoAutenticacao.cs - Authorization state
Services/ProvedorEstadoAutenticacao.cs - Profile service
Services/ServicoPerfil.cs - Session persistence
Services/PersistenciaSessaoLocalStorage.cs - Service setup
Program.cs
Other components
- User
- Browser local storage
- Supabase
Connections 23
- Service setup → Supabase: configures client
Program.cs - Service setup → Session persistence: registers persistence
Program.cs - Service setup → Authorization state: registers provider
Program.cs - Service setup → Authentication service: registers service
Program.cs - Service setup → Profile service: registers service
Program.cs - Service setup → Lineup service: registers service
Program.cs - Service setup → Player market: registers service
Program.cs - Service setup → Fan progression: registers service
Program.cs - Service setup → History service: registers service
Program.cs - Service setup → Match reports: registers service
Program.cs - Service setup → Season service: registers service
Program.cs - Session persistence → Browser local storage: reads and writes
Services/PersistenciaSessaoLocalStorage.cs - Authorization state → Supabase: loads user profile
Services/ProvedorEstadoAutenticacao.cs - Lineup service → Player market: checks market
Services/ServicoEscalacao.cs - Lineup service → Fan progression: syncs fan data
Services/ServicoEscalacao.cs - Player market → Supabase: calls market RPC
Services/ServicoMercado.cs - Fan progression → Supabase: calls club RPCs
Services/ServicoTorcida.cs - Lineup service → Supabase: saves lineup RPC
Services/ServicoEscalacao.cs - Shield SVG renderer → Shield configuration: renders configuration
Services/GeradorEscudoSvg.cs - Shield SVG renderer → Shield symbols: uses symbols
Services/GeradorEscudoSvg.cs - Club settings → Fan progression
- Shield editor → Shield SVG renderer
- User → App shell: opens app