gitea/web_src/js/features
wxiaoguang 12fff36d05
Fine tune more downdrop settings, use SVG for labels, improve Repo Topic Edit form ()
Although it seems that some different purposes are mixed in this PR,
however, they are all related, and can be tested together, so I put them
together to save everyone's time.

Diff: `+79 −84`, everything becomes much better.

### Improve the dropdown settings.

Move all fomantic-init related code into our `fomantic.js`

Fine-tune some dropdown global settings, see the comments.

Also help to fix the first problem in  , cc: @yp05327 

The "language" menu has been simplified, and it works with small-height
window better.

### Use SVG instead of `<i class="delete icon">`

It's also done by `$.fn.dropdown.settings.templates.label` , cc:
@silverwind

### Remove incorrect `tabable` CSS class

It doesn't have CSS styles, and it was only in Vue. So it's totally
unnecessary, remove it by the way.

### Improve the Repo Topic Edit form

* Simplify the code
* Add a "Cancel" button
* Align elements

Before:

<details>

![image](https://user-images.githubusercontent.com/2114189/223325782-f09532de-0c38-4742-ba86-ed35cc9a858d.png)

</details>

After:

![image](https://user-images.githubusercontent.com/2114189/226796347-207feb0a-b3cd-4820-8a3e-01930bab1069.png)
..
admin Convert `<div class="button">` to `<button class="button">` ()
comp Use data-tooltip-content for tippy tooltip ()
captcha.js Add new captcha: cloudflare turnstile ()
citation.js Fix switched citation format ()
clipboard.js Use link in UI which returned a relative url but not html_url which contains an absolute url ()
codeeditor.js Allow new file and edit file preview if it has editable extension ()
colorpicker.js JS refactors ()
common-global.js Fine tune more downdrop settings, use SVG for labels, improve Repo Topic Edit form ()
common-issue.js Convert `<div class="button">` to `<button class="button">` ()
common-organization.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
contextpopup.js Use a general approach to show tooltip, fix temporary tooltip bug ()
copycontent.js JS refactors ()
dropzone.js JS refactors ()
emoji.js JS refactors ()
eventsource.sharedworker.js Fix the JS error "EventSource is not defined" caused by some non-standard browsers ()
file-fold.js JS refactors ()
formatting.js JS refactors ()
heatmap.js JS refactors ()
imagediff.js Fix various ImageDiff/SVG bugs ()
install.js Fix various bugs for "install" page ()
notification.js Move helpers to be prefixed with `gt-` ()
org-team.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
pull-view-file.js Replace unstyled meter with progress ()
repo-branch.js Add apply-patch, basic revert and cherry-pick functionality ()
repo-code.js Fix links for the menus in the view file page ()
repo-code.test.js Ignore line anchor links with leading zeroes ()
repo-commit.js Fix hidden commit status on multiple checks ()
repo-common.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-diff-filetree.js JS refactors ()
repo-diff.js Use a general approach to show tooltip, fix temporary tooltip bug ()
repo-editor.js Editor preview support for external renderers ()
repo-findfile.js Refactor branch/tag selector to Vue SFC ()
repo-findfile.test.js Refactor branch/tag selector to Vue SFC ()
repo-graph.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-home.js Fine tune more downdrop settings, use SVG for labels, improve Repo Topic Edit form ()
repo-issue-content.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-issue-pr-form.js JS refactors ()
repo-issue.js Use a general approach to show tooltip, fix temporary tooltip bug ()
repo-legacy.js Fix aria.js bugs: incorrect role element problem, mobile focus problem, tippy problem ()
repo-migrate.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-migration.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-projects.js Sync the class change of Edit Column Button to JS code ()
repo-release.js Hide target selector if tag exists when creating new release ()
repo-settings.js Remove customized (unmaintained) dropdown, improve aria a11y for dropdown ()
repo-template.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-unicode-escape.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-wiki.js Enable spellcheck for EasyMDE, use contenteditable mode ()
serviceworker.js JS refactors ()
sshkey-helper.js Use explicit jQuery import, remove unused eslint globals ()
stopwatch.js Move helpers to be prefixed with `gt-` ()
tablesort.js JS refactors ()
tribute.js JS refactors ()
user-auth-webauthn.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
user-auth.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
user-settings.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()