client: Use named constants for time calculations #183
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "client-time-constants"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Constants were borrowed from
const.tsfrom the backend but alsoincludes
WEEK,MONTH, andYEARconstants as well.Looks good this far.
If you want to convert everything, I also found that at least
scripts/get-user-menu.tsandcomponents/poll-editor.vueand a timeout inpages/settings/2fa.vuealso exist.6e1fddcd145830a983b85830a983b8ffc4fe244df5a41b1fc440d3358374