]> source.dussan.org Git - gitea.git/commit
Refactor branch/tag selector to Vue SFC (#23421)
authorwxiaoguang <wxiaoguang@gmail.com>
Tue, 14 Mar 2023 09:51:20 +0000 (17:51 +0800)
committerGitHub <noreply@github.com>
Tue, 14 Mar 2023 09:51:20 +0000 (17:51 +0800)
commitac8d71ff07a3354a27d6a5daab45d1e79e242269
treebcf34685ce59b0ad89903ac769c4080dc1073349
parentd56bb7420184c0c2f451f4bcaa96c9b3b00c393d
Refactor branch/tag selector to Vue SFC (#23421)

Follow #23394

There were many bad smells in old code. This PR only moves the code into
Vue SFC, doesn't touch the unrelated logic.

update: after
https://github.com/go-gitea/gitea/pull/23421/commits/5f23218c851e12132f538a404c946bbf6ff38e62
, there should be no usage of the vue-rumtime-compiler anymore
(hopefully), so I think this PR could close #19851

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
14 files changed:
templates/repo/branch_dropdown.tmpl
web_src/js/components/DashboardRepoList.vue
web_src/js/components/PullRequestMergeForm.vue
web_src/js/components/RepoBranchTagDropdown.js [deleted file]
web_src/js/components/RepoBranchTagSelector.vue [new file with mode: 0644]
web_src/js/features/repo-findfile.js
web_src/js/features/repo-findfile.test.js
web_src/js/features/repo-legacy.js
web_src/js/svg.js
web_src/js/utils/url.js [new file with mode: 0644]
web_src/js/utils/url.test.js [new file with mode: 0644]
web_src/less/_base.less
web_src/less/_repository.less
webpack.config.js