-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(countdown): move streams into lua #4372
Conversation
- get rid of some anno warnings - add display components (in prep for moving it from js to lua) - add filter function - allow 2nd stream for any platform
The rest looks ok to me, don't know all the specific behaviors like legacy and stuff tho, but I trust you on this ;) |
Is it still in draft? Considering the PR title |
- let js add the ` - ` with the same criteria as before - display streams if finished is not set but the time switch has already happened --> it will again show the date together with the stream but without dash and countdown
Would it not be better to hide the steams in JS for this scenario? That's at least what I had in mind |
it requires quite a bit of changes though Lua-Modules/javascript/commons/Countdown.js Lines 32 to 33 in 3756685
and rebuild it entirely there in addition it mirrors current behaviour 1:1 now we could leave it as oos for a future PR |
Co-authored-by: Rikard Blixt <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
As per discussion in #4363 refactor the countdown stuff in a way that moves the stream building out of js into lua.
Also allows to call the stream icon building from outside of Module:Countdown.
How did you test this change?
on the deprecated secret commons
https://*****.liquipedia.net/commons/User:Hjpalpha/countdown
(mind css for infobox icons is broken on that wiki, hence the icons looking badly)