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.
gitea/web_src/js
wxiaoguang 19de52e0f4
Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861)
Follow #21429 & #22861

Use `<gitea-locale-number>` instead of backend `PrettyNumber`. All old
`PrettyNumber` related functions are removed. A lot of code could be
simplified.

And some functions haven't been used for long time (dead code), so they
are also removed by the way (eg: `SplitStringAtRuneN`, `Dedent`)

This PR only tries to improve the `PrettyNumber` rendering problem, it
doesn't touch the "plural" problem.

Screenshot:


![image](https://user-images.githubusercontent.com/2114189/229290804-1f63db65-1e34-4a54-84ba-e00b44331b17.png)


![image](https://user-images.githubusercontent.com/2114189/229290911-c88dea00-b11d-48dd-accb-9f52edd73ce4.png)
2 years ago
..
components Improve action log display with control chars (#23820) 2 years ago
features Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 2 years ago
markup update to mermaid v10 (#23178) 2 years ago
modules Fix dropdown direction behavior (#23806) 2 years 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) 2 years ago
utils Remove assertion debug code for show/hide refactoring (#23576) 2 years ago
webcomponents Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 2 years ago
bootstrap.js Quick fixes monaco-editor error: "vs.editor.nullLanguage" (#21734) 2 years ago
index.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 5 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 5 years ago
svg.js Improve `<SvgIcon>` to make it output `svg` node and optimize performance (#23570) 2 years ago
svg.test.js Improve `<SvgIcon>` to make it output `svg` node and optimize performance (#23570) 2 years ago
utils.js Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 2 years ago
utils.test.js Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 2 years ago