Open mscipio opened 2 years ago
This sounds like a good enhancement either in addition to the current content or to replace it. Sorry about the code, it is a big mess. I've worked on it very haphazardly and have only recently started to clean it up.
You'll want to look at the div <div class="leagueData">
in src/routes/index.svelte
, as that's where the sidebar lives. You'll then want to look into calling getLeagueMatchups
and using an await block
to display the data. It's a bit more complex than that, but hopefully that points you in the right direction!
You might end up wanting to make a new svelte component in src/lib/Matchups/
for the smaller widget for the homepage and pass the results of getLeagueMatchups
to that new component.
I would love to figure this feature change out as well. While I can manage some base coding, I've never deal with svelte before so, I'm not sure I'm any help.
I'll gladly help test. In the meantime, I'll play and see what I can figure out. Wasn't sure if anything happened with this since last summer.
Thanks in advance.
Is your feature request related to a problem? Please describe. Not a problem, but rather a customization of the home page I'd like to make. On the sidebar, where right now we see the waiver and trades, I would much rather see a list of the next matchups, as we see on the matchup page.
League ID 785196368615641088
Additional context I am not at all new at writing code, and I am familiar with the basics of html and css, however, svelte is something I had never heard of before and the code is getting me confused about what I should touch to start working towards this change of the home page.
Any assistance in identifying the right file to modify ( or if this change is at all possible) would be very much welcome. I am totally willing to work on this myself, as it is a modification that I am aware not everybody would care about.
Thanks a lot!