mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +01:00
made a StatCard interface, a NumberCard abstract class, and (Filtered)CountCard to extend it. Managed by StatsPanel, which has a static method DefaultLayout(), returning a list of preconfigured default cards (right now no. of users, invites and users created thru jfa-go). I intend to allow the user to customize these, maybe. Currently uses hardcoded strings for words, FIXME! Also ugly. The default layout currently shows in a new "Stats" tab. Also FIXME: Display in a nice grid with the same stuff used in the userpage, once we have cards of different sizes (graphs, maybe?)