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/templates
wxiaoguang 27bf63ad20
Refactor global init code and add more comments (#33755)
Follow up #33748

Now there are 3 "global" functions:

* registerGlobalSelectorFunc: for all elements matching the selector, eg: `.ui.dropdown`
* registerGlobalInitFunc: for `data-global-init="initInputAutoFocusEnd"`
* registerGlobalEventFunc: for `data-global-click="onCommentReactionButtonClick"`


And introduce `initGlobalInput` to replace old `initAutoFocusEnd` and
`attachDirAuto`, use `data-global-init` to replace fragile
`.js-autofocus-end` selector.

Another benefit is that by the new approach, no matter how many times
`registerGlobalInitFunc` is called, we only need to do one
"querySelectorAll" in the last step, it could slightly improve the
performance.
2 weeks ago
..
admin Improve admin user view page (#33735) 2 weeks ago
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 11 months ago
base Refactor global init code and add more comments (#33755) 2 weeks ago
custom
devtest Always show the "rerun" button for action jobs (#33692) 2 weeks ago
explore Refactor template ctx and render utils (#32422) 4 months ago
mail Remove unnecessary SanitizeHTML from code (#29575) 1 year ago
org Improve button layout on small screens (#33633) 3 weeks ago
package Trivial fixes (#33304) 2 months ago
projects Fix project issues list and counting (#33594) 4 weeks ago
repo Refactor global init code and add more comments (#33755) 2 weeks ago
shared Fix dynamic content loading init problem (#33748) 2 weeks ago
status Remove urls from translations (#31950) 6 months ago
swagger allow filtering /repos/{owner}/{repo}/pulls by target base branch queryparam (#33684) 2 weeks ago
user Improve "generate new access token" form (#33730) 2 weeks ago
webhook Fix incorrect tailwind migration (#30007) 12 months ago
home.tmpl Remove urls from translations (#31950) 6 months ago
install.tmpl Supplement and Improvement for #32558 (#32585) 4 months ago
post-install.tmpl Optimize the installation page (#32994) 2 months ago