gitea/templates/base
wxiaoguang b2359f3df6
Fix various bugs for "install" page ()
## TLDR

* Fix the broken page / broken image problem when click "Install"
* Close 
* Fix the Password Hash Algorithm display problem for 
* Close 
* Close 

## Details

### The broken page / broken image problem when click "Install"
(Redirect failed after install gitea )

Before: when click "install", all new requests will fail, because the
server has been restarted. Users just see a broken page with broken
images, sometimes the server is not ready but the user would have been
redirect to "/user/login" page, then the users see a new broken page
(connection refused or something wrong ...)

After: only check InstallLock=true for necessary handlers, and sleep for
a while before restarting the server, then the browser has enough time
to load the "post-install" page. And there is a script to check whether
"/user/login" is ready, the user will only be redirected to the login
page when the server is ready.

### During new instance setup make 'Gitea Base URL' filled from
window.location.origin 

If the "app_url" input contains `localhost` (the default value from
config), use current window's location href as the `app_url` (aka
ROOT_URL)

### Fix the Password Hash Algorithm display problem for "Provide the
ability to set password hash algorithm parameters "

Before: the UI shows `pbkdf2$50000$50`

<details>

![image](https://user-images.githubusercontent.com/2114189/221917143-e1e54798-1698-4fee-a18d-00c48081fc39.png)

</details>

After: the UI shows `pbkdf2`

<details>

![image](https://user-images.githubusercontent.com/2114189/221916999-97a15be8-2ebb-4a01-bf93-dac18e354fcc.png)

</details>

### GET data: net::ERR_INVALID_URL 

Cause by empty `data:` in `<link rel="manifest"
href="data:{{.ManifestData}}">`

---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2023-03-04 10:12:02 +08:00
..
alert.tmpl Support Issue forms and PR forms () 2022-09-02 15:58:49 +08:00
alert_details.tmpl Enforce tab indentation in templates () 2021-04-10 23:46:37 -04:00
delete_modal_actions.tmpl Refactor `i18n` to `locale` () 2022-06-27 15:58:46 -05:00
disable_form_autofill.tmpl Disable form autofill () 2021-10-19 01:08:41 +03:00
footer.tmpl Add new captcha: cloudflare turnstile () 2023-02-05 15:29:03 +08:00
footer_content.tmpl Improve accessibility of navigation bar and footer () 2023-01-29 09:29:10 +08:00
head.tmpl Fix various bugs for "install" page () 2023-03-04 10:12:02 +08:00
head_navbar.tmpl Add accessibility to the menu on the navbar () 2023-02-22 15:58:07 -06:00
head_script.tmpl Introduce customized HTML elements, fix incorrect AppUrl usages in templates () 2023-02-17 22:02:20 +08:00
paginate.tmpl Move helpers to be prefixed with `gt-` () 2023-02-13 17:59:59 +00:00