You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wxiaoguang 7681d582cd
Refactor locale number (#24134)
Before, the `GiteaLocaleNumber.js` was just written as a a drop-in
replacement for old `js-pretty-number`.

Actually, we can use Golang's `text` package to format.

This PR partially completes the TODOs in `GiteaLocaleNumber.js`:

> if we have complete backend locale support (eg: Golang "x/text"
package), we can drop this component.
> tooltip: only 2 usages of this, we can replace it with Golang's
"x/text/number" package in the future.

This PR also helps #24131

Screenshots:

<details>

![image](https://user-images.githubusercontent.com/2114189/232179420-b1b9974b-9d96-4408-b209-b80182c8b359.png)


![image](https://user-images.githubusercontent.com/2114189/232179416-14f36aa0-3f3e-4ac9-b366-7bd3a4464a11.png)

</details>
1 year ago
..
components Update the value of the `diffEnd` when click `Show More` btn in the DiffFileTree (#24069) 1 year ago
features Sort repo topic labels by name (#24123) 1 year ago
markup update to mermaid v10 (#23178) 1 year ago
modules Use 1.18's aria role for dropdown menus (#24144) 1 year ago
standalone Add new JS linter rules (#17699) 3 years ago
test Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 1 year ago
utils Improve markdown editor: width, height, preferred (#23895) 1 year ago
webcomponents Refactor locale number (#24134) 1 year ago
bootstrap.js Show friendly 500 error page to users and developers (#24110) 1 year ago
index.js Use auto-updating, natively hoverable, localized time elements (#23988) 1 year ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 4 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 4 years ago
svg.js Improve `<SvgIcon>` to make it output `svg` node and optimize performance (#23570) 1 year ago
svg.test.js Improve `<SvgIcon>` to make it output `svg` node and optimize performance (#23570) 1 year ago
utils.js Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago
utils.test.js Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago