feat: implement number precision parameter for stats card (#4514)

* Update short number format 

Update short number format by adding 2 decimal places instead of 1 for numbers between 1,000 and 9,999

* review

* Update src/common/utils.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* dev

* dev

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Lucas
2025-10-13 20:21:28 +03:00
committed by GitHub
co-authored by Copilot Alexandr
parent 7caaa21e73
commit 4143c6dec3
7 changed files with 85 additions and 11 deletions
+2
View File
@@ -43,6 +43,7 @@ export default async (req, res) => {
disable_animations,
border_radius,
number_format,
number_precision,
border_color,
rank_icon,
show,
@@ -124,6 +125,7 @@ export default async (req, res) => {
border_radius,
border_color,
number_format,
number_precision: parseInt(number_precision, 10),
locale: locale ? locale.toLowerCase() : null,
disable_animations: parseBoolean(disable_animations),
rank_icon,