Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show branches and tags that contain a commit #25180

Merged
merged 45 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
60cc93e
Add barebones frontend structure
delvh Jun 6, 2023
1975e64
Add complete backend for loading tags and branches of a commit
delvh Jun 9, 2023
ff62d3c
Merge branch 'main' into feature/load-referencing-branches-and-tags
delvh Jun 9, 2023
8adb11b
Complete the frontend and backend functionality
delvh Jun 9, 2023
be8cd4e
Make all borders rounded, increase margin between tags and commits
delvh Jun 9, 2023
b311b53
Remove dead code
delvh Jun 9, 2023
0b39f9e
Move translation key and print error on browser console
delvh Jun 9, 2023
a433b56
Apparently, I don't like our too strict linter
delvh Jun 9, 2023
73f31f8
Hopefully, please linter this time
delvh Jun 9, 2023
9599991
Linter: 3, delvh: 0
delvh Jun 9, 2023
83b9251
Use a better icon for the button as per @silverwind
delvh Jun 9, 2023
ef53879
Linter: 4, delvh: 0
delvh Jun 9, 2023
c87b361
Align branches/tags on their respective icon as per @silverwind + @KN…
delvh Jun 13, 2023
4e80dca
Merge branch 'main' into feature/load-referencing-branches-and-tags
silverwind Jun 13, 2023
7962907
I guess that's why the linter fails?
delvh Jun 13, 2023
e1efe08
Do not show branch/tag icon when this commit is not contained anywhere
delvh Jun 13, 2023
2b55713
Rename `response` -> `res`
delvh Jun 13, 2023
6983dc4
Batch add classes
delvh Jun 13, 2023
f75db06
`text` -> `textContent`
delvh Jun 13, 2023
c8ea65b
Convert "load" button to an ellipsis-button
delvh Jun 13, 2023
82d3222
Let's hope the linter likes the line-splitting
delvh Jun 13, 2023
d37c790
Split even more lines
delvh Jun 13, 2023
8d011d2
Remove information that is now redundant
delvh Jun 30, 2023
e3002bc
Merge branch 'main' into feature/load-referencing-branches-and-tags
delvh Jul 14, 2023
42712b5
Apparently the merge went wrong
delvh Jul 14, 2023
48c225e
Fix typo in translated string
delvh Jul 14, 2023
c9eba48
Merge branch 'main' into feature/load-referencing-branches-and-tags
silverwind Jul 16, 2023
0969a39
Implement suggestions by @wxiaoguang
delvh Jul 21, 2023
b009c77
Separate ellipsis-button into ellipsis-button and ellipsis-js-button
delvh Jul 21, 2023
97956cf
Fix formatting
delvh Jul 21, 2023
7206f0f
Improve formatting
delvh Jul 21, 2023
6818614
Merge branch 'main' into feature/load-referencing-branches-and-tags
delvh Jul 21, 2023
f335dd1
Merge branch 'main' into feature/load-referencing-branches-and-tags
delvh Jul 22, 2023
0012681
Merge branch 'main' into feature/load-referencing-branches-and-tags
delvh Jul 23, 2023
b0f5f48
Merge branch 'main' into feature/load-referencing-branches-and-tags
wxiaoguang Jul 26, 2023
e91843a
temp fix
wxiaoguang Jul 26, 2023
666a019
fix
wxiaoguang Jul 26, 2023
672f0bb
fix
wxiaoguang Jul 26, 2023
bf96470
fix
wxiaoguang Jul 26, 2023
e5effc8
rename
wxiaoguang Jul 26, 2023
c573def
revert the "icon" position
wxiaoguang Jul 26, 2023
23319d6
Merge branch 'main' into feature/load-referencing-branches-and-tags
delvh Jul 26, 2023
f17c4d4
Merge branch 'main' into feature/load-referencing-branches-and-tags
GiteaBot Jul 27, 2023
07a31b9
Merge branch 'main' into feature/load-referencing-branches-and-tags
GiteaBot Jul 27, 2023
d52dbd4
Merge branch 'main' into feature/load-referencing-branches-and-tags
GiteaBot Jul 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function addLink(parent, href, text, tooltip) {
parent.append(link);
}

export function initLoadBranchesAndTagsButton() {
export function initRepoDiffCommitBranchesAndTags() {
for (const area of document.querySelectorAll('.branch-and-tag-area')) {
const btn = area.querySelector('.load-branches-and-tags');
btn.addEventListener('click', () => loadBranchesAndTags(area, btn));
Expand Down
5 changes: 2 additions & 3 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import {initGiteaFomantic} from './modules/fomantic.js';
import {onDomReady} from './utils/dom.js';
import {initRepoIssueList} from './features/repo-issue-list.js';
import {initCommonIssueListQuickGoto} from './features/common-issue-list.js';
import {initLoadBranchesAndTagsButton} from './features/load-branches-and-tags.js';
import {initRepoDiffCommitBranchesAndTags} from './features/repo-diff-commit.js';

// Init Gitea's Fomantic settings
initGiteaFomantic();
Expand Down Expand Up @@ -142,6 +142,7 @@ onDomReady(() => {
initRepoCodeView();
initRepoCommentForm();
initRepoEllipsisButton();
initRepoDiffCommitBranchesAndTags();
initRepoCommitLastCommitLoader();
initRepoEditor();
initRepoGraphGit();
Expand Down Expand Up @@ -180,6 +181,4 @@ onDomReady(() => {
initRepoDiffView();
initPdfViewer();
initScopedAccessTokenCategories();
delvh marked this conversation as resolved.
Show resolved Hide resolved

initLoadBranchesAndTagsButton();
});