forgejo/templates/repo
wxiaoguang 75022f8b1a
Refactor branch/tag selector dropdown (first step) (#23394)
Follow: 
* #23345

The branch/tag selector dropdown mixes jQuery/Fomantic UI/Vue together,
it's very diffcult to maintain and causes unfixable a11y problems. It
also causes problems like #19851 #21314 #21952

This PR is the first step for the refactoring, move `data-` attributes
to JS object and use Vue data as much as possible.

The old selector `'.choose.reference .dropdown'` was also wrong, it hits
`<div class="choose reference"><svg class="dropdown icon">` and would
cause undefined behaviors.

I have done some quick tests and it works. After this PR gets merged, I
will move the code into a Vue SFC in next PR.



![image](https://user-images.githubusercontent.com/2114189/224099638-378a8a86-0865-47d1-bcba-f972506374c7.png)


![image](https://user-images.githubusercontent.com/2114189/224099690-70276cf5-b1e4-404a-b0c6-582448abf40e.png)

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2023-03-11 12:47:09 +02:00
..
actions Remove unnecessary space on link (#23334) 2023-03-06 13:12:10 -06:00
branch
cite
diff Fix PR view misalignment caused by long name file (#23321) 2023-03-06 09:44:04 -06:00
editor Fix broken code editor diff preview (#23307) 2023-03-06 09:37:58 +08:00
find
graph
issue Fix incorrect display for comment context menu (#23343) 2023-03-08 11:26:37 +08:00
migrate
projects Redirect to project again after editing it (#23326) 2023-03-09 08:38:29 -06:00
pulls
release Hide target selector if tag exists when creating new release (#23171) 2023-03-10 10:42:38 -06:00
settings Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
wiki
activity.tmpl Add context when rendering labels or emojis (#23281) 2023-03-05 22:59:05 +01:00
blame.tmpl
branch_dropdown.tmpl Refactor branch/tag selector dropdown (first step) (#23394) 2023-03-11 12:47:09 +02:00
clone_buttons.tmpl
clone_script.tmpl
commit_page.tmpl Refactor branch/tag selector dropdown (first step) (#23394) 2023-03-11 12:47:09 +02:00
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl Add context when rendering labels or emojis (#23281) 2023-03-05 22:59:05 +01:00
commits_list_small.tmpl
commits_table.tmpl
create.tmpl
create_helper.tmpl
empty.tmpl
file_info.tmpl
forks.tmpl
graph.tmpl
header.tmpl
home.tmpl Fix and move "Use this template" button (#23398) 2023-03-09 22:14:45 -05:00
icon.tmpl
packages.tmpl
search.tmpl
shabox_badge.tmpl
sub_menu.tmpl
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl
view_list.tmpl Add wrapper to author to avoid long name ui problem (#23030) 2023-02-23 14:28:18 -06:00
watchers.tmpl