mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 10:07:22 +00:00
Move some JS code from fomantic.js
to standalone files (#27994)
To improve maintainability, this PR: 1. Rename `web_src/js/modules/aria` to `web_src/js/modules/fomantic` (the code there are all for aria of fomantic) 2. Move api/transition related code to `web_src/js/modules/fomantic/api.js` and `web_src/js/modules/fomantic/transition.js` No logic is changed.
This commit is contained in:
5
web_src/js/modules/fomantic/base.js
Normal file
5
web_src/js/modules/fomantic/base.js
Normal file
@ -0,0 +1,5 @@
|
||||
let ariaIdCounter = 0;
|
||||
|
||||
export function generateAriaId() {
|
||||
return `_aria_auto_id_${ariaIdCounter++}`;
|
||||
}
|
Reference in New Issue
Block a user