47
How does the Donation progress bar work?
(merv.news)
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
Looking for support?
Looking for a community?
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
It seems to be manually updated.
https://github.com/LemmyNet/joinlemmy-site/blob/main/src/shared/donation_stats.ts
Oh, so is the progress bar just an image or is it code that can update the progress based on the manually inputted values?
Seems like something that could be automated using SVGs
Seems like something a donation could fund.
IIRC @dessalines@lemmy.ml decided against updating the donation progress automatically because it would involve juggling multiple donation platform APIs, which seemed more of a pain in the ass than it's worth.
The main donate block of items is here: https://github.com/LemmyNet/joinlemmy-site/blob/main/src/shared/components/common.tsx#L129
Follow the chain and you'll see it's just using the
progress
html element.