diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-03-30 13:52:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 13:52:24 +0800 |
commit | 2bce1ea9862c70ebb69963e65bb84dcad6ebb31c (patch) | |
tree | 04a83cae7c2e4e6c01982d9ec0ca203d1b8020bc /templates/swagger | |
parent | ea8622d454355355df38c97f6d122862fc744514 (diff) | |
download | gitea-2bce1ea9862c70ebb69963e65bb84dcad6ebb31c.tar.gz gitea-2bce1ea9862c70ebb69963e65bb84dcad6ebb31c.zip |
Show messages for users if the ROOT_URL is wrong, show JavaScript errors (#18971)
* ROOT_URL issues: some users did wrong to there app.ini config, then:
* The assets can not be loaded (AppSubUrl != "" and users try to access http://host:3000/)
*The ROOT_URL is wrong, then many URLs in Gitea are broken.
Now Gitea show enough information to users.
* JavaScript error issues, there are many users affected by JavaScript errors, some are caused by frontend bugs, some are caused by broken customized templates. If these JS errors can be found at first time, then maintainers do not need to ask about how bug occurs again and again.
* Some people like to modify the `head.tmpl`, so we separate the script part to `head_script.tmpl`, then it's much safer.
* use specialized CSS class "js-global-error", end users still have a chance to hide error messages by customized CSS styles.
Diffstat (limited to 'templates/swagger')
0 files changed, 0 insertions, 0 deletions