]> source.dussan.org Git - gitea.git/commit
Refactor sidebar label selector (#32460)
authorwxiaoguang <wxiaoguang@gmail.com>
Sun, 10 Nov 2024 08:26:42 +0000 (16:26 +0800)
committerGitHub <noreply@github.com>
Sun, 10 Nov 2024 08:26:42 +0000 (08:26 +0000)
commit58c634b8549fb279aec72cecd6a48511803db067
tree15f734f16ac5c4cf3a84301ec33dc968845f412b
parentb55a31eb6a894feb5508e350ff5e9548b2531bd6
Refactor sidebar label selector (#32460)

Introduce `issueSidebarLabelsData` to handle all sidebar labels related data.
22 files changed:
routers/web/repo/compare.go
routers/web/repo/issue.go
routers/web/repo/issue_label.go
routers/web/repo/issue_label_test.go
routers/web/web.go
templates/repo/issue/labels/label.tmpl [deleted file]
templates/repo/issue/labels/labels_selector_field.tmpl [deleted file]
templates/repo/issue/labels/labels_sidebar.tmpl [deleted file]
templates/repo/issue/new_form.tmpl
templates/repo/issue/sidebar/label_list.tmpl [new file with mode: 0644]
templates/repo/issue/sidebar/label_list_item.tmpl [new file with mode: 0644]
templates/repo/issue/sidebar/reviewer_list.tmpl
templates/repo/issue/view_content/sidebar.tmpl
web_src/css/repo.css
web_src/css/repo/issue-label.css
web_src/js/features/common-page.ts
web_src/js/features/repo-issue-sidebar-combolist.ts
web_src/js/features/repo-issue-sidebar.md [new file with mode: 0644]
web_src/js/features/repo-issue-sidebar.ts
web_src/js/features/repo-issue.ts
web_src/js/index.ts
web_src/js/utils/dom.ts