Commit Graph

2040 Commits (ca964c1ce97b265026552afadd42a488940308aa)

Author SHA1 Message Date
Lunny Xiao 61be52be5d
finish submodule support 2 months ago
Kerwin Bryant b1193e0291 fix 2 months ago
Kerwin Bryant abf95a76db fix 2 months ago
Kerwin Bryant 9400d52ee9 fix 2 months ago
Kerwin Bryant 459edfebcb fix 2 months ago
Lunny Xiao bdd78dfdcb
Use the old infrustructure about getting refullname 2 months ago
Kerwin Bryant a55548feb2 fix 2 months ago
Kerwin Bryant fe212908b1 fix 2 months ago
Kerwin Bryant dc63b48493 fix 2 months ago
Kerwin Bryant c0e2fd2e7d fix 2 months ago
Lunny Xiao eff3568d31 Merge branch 'main' into kerwin612-add-file-tree-to-file-view-page 2 months ago
wxiaoguang c0751ef116
Fix upload file form (#33230)
Fix #33228
2 months ago
wxiaoguang 9024b79933
Remove unused CSS styles and move some styles to proper files (#33217) 2 months ago
Kerwin Bryant d4a99e53c8 fix 2 months ago
Kerwin Bryant 62ecf34b99
Merge branch 'main' into add-file-tree-to-file-view-page 2 months ago
Kerwin Bryant c2670dbb81 fix 2 months ago
Kerwin Bryant 0cafe2a39d fix 2 months ago
Kerwin Bryant 9b95582f5d fix 2 months ago
Harry Vince d7ec23febf
Fix editor markdown not incrementing in a numbered list (#33187)
Amended the logic for newPrefix in the MarkdownEditor to resolve
incorrect number ordering.

Fixes #33184

Attached screenshot of fixed input similar to issue 
<img width="175" alt="Screenshot 2025-01-09 at 23 59 24"
src="https://github.com/user-attachments/assets/dfa23cf1-f3db-4b5e-99d2-a71bbcb289a8"
/>

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 months ago
Kerwin Bryant 3e679d67b3 fix 2 months ago
Kerwin Bryant 335375fd76 merge main 2 months ago
Lunny Xiao 39d51e7c82
Automerge supports deleting branch automatically after merging (#32343)
Resolve #32341 
~Depends on #27151~

- [x] It will display a checkbox of deleting the head branch on the pull
request view page when starting an auto-merge task.
- [x] Add permission check before deleting the branch
- [x] Add delete branch comment for those closing pull requests because
of head branch or base branch was deleted.
- [x] Merge `RetargetChildrenOnMerge` and `AddDeletePRBranchComment`
into `service.DeleteBranch`.
2 months ago
wxiaoguang 9c00e065a1
Fix form width (#33151)
Fix #33150
2 months ago
wxiaoguang 386c1ed908
Refactor HTMLFormat, update chroma render, fix js error (#33136)
A small refactor to improve HTMLFormat, to help to prevent low-level
mistakes.

And fix #33141, fix #33139
2 months ago
Rowan Bohde a8e7caedfa
add submodule diff links (#33097)
This adds links to submodules in diffs, similar to the existing link
when viewing a repo at a specific commit. It does this by expanding diff
parsing to recognize changes to submodules, and find the specific refs
that are added, deleted or changed.

Related #25888

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 months ago
TheFox0x7 4a18c72262
Remove extended glob pattern from branch protection UI (#33125)
Underlying go library has no support for it

Fixes: https://github.com/go-gitea/gitea/issues/33121

---

I never touched frontend tests so pointers how to write them are
welcome.

This can be either fix or workaround, depending if this is something
gitea should support in the future or not. The golang side is unlikely
to get updates though.
2 months ago
wxiaoguang ef736b7e27
Refactor legacy JS (#33115) 2 months ago
Kerwin Bryant 6b86304589 fix 2 months ago
Kerwin Bryant 07e48964b5 fix lint error 2 months ago
Kerwin Bryant 91f972ce82 fix 2 months ago
Kerwin Bryant c949f42d4d fix 2 months ago
wxiaoguang cf60734a4d
Fix dropdown menu header and mobile view (#33108)
![image](https://github.com/user-attachments/assets/3f831c8c-ef87-4282-880a-c2738f3e1d17)

----

![image](https://github.com/user-attachments/assets/c4c0519b-cfa6-42b4-bd28-205ee514eb34)

----

![image](https://github.com/user-attachments/assets/8624a605-9f2b-4905-9cbc-0af073972874)
2 months ago
wxiaoguang 2b064b8637
Refactor legacy line-number and scroll code (#33094)
1. remove jquery
2. rewrite the "line number selection", fix various edge cases
3. fix the scroll
2 months ago
Kerwin Bryant 2a8f9c8531 fix 2 months ago
Kerwin Bryant 087f0d41bd fix 2 months ago
Kerwin Bryant b1b24282ae
Merge branch 'main' into add-file-tree-to-file-view-page 2 months ago
wxiaoguang 68972a9947
Clean up legacy form CSS styles (#33081) 2 months ago
wxiaoguang c1167709ed
Refactor repo-new.ts (#33070)
1. merge `repo-template.ts` into `repo-new.ts` (they are all for "/repo/create")
2. remove jquery
3. fix an anonying fomantic dropdown bug, see the comment of `onResponseKeepSelectedItem`
2 months ago
wxiaoguang 85c756e279
Refactor pull-request compare&create page (#33071)
The old code is unnecessarily complex.
2 months ago
wxiaoguang a0853e2278
Fix unittest and repo create bug (#33061)
1. `StatDir` was not right, fix the FIXME
2. Clarify the test cases for `IsUsableRepoName`
3. Fix regression bug in `repo-new.ts`

Fix #33060
2 months ago
Chai-Shi 0387195abb
[Feature] Private README.md for organization (#32872)
Implemented #29503

---------

Co-authored-by: Ben Chang <ben_chang@htc.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 months ago
wxiaoguang c09656e0e0
Make issue suggestion work for new PR page (#33035)
Fix #33026
2 months ago
Lunny Xiao 344c89ea34
Fix bug automerge cannot be chosed when there is only 1 merge style (#33040)
This is a quick bug fix. Even if there is only 1 merge style, the
dropdown menu will still be displayed to allow users to choose
auto-merge.

Fix #32448
2 months ago
metiftikci 94048f3035
fix toggle commit body button ui when latest commit message is long (#32997)
#### Before


![before](https://github.com/user-attachments/assets/fe36bdb3-10e8-4fe7-9106-0897f49bedb3)

#### After


![after](https://github.com/user-attachments/assets/745bd164-5f25-41ca-b340-36cb695551db)


## Edit:

I found an issue on mobile view and changed the code as using flex gap


![small](https://github.com/user-attachments/assets/dd7c2093-6860-4800-a2bc-676a03e764c8)


![large](https://github.com/user-attachments/assets/5c933779-8281-4d48-9fd0-4d7b245bf4ac)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 months ago
wxiaoguang a92f5057ae
Fix and/or comment some legacy CSS problems (#33015) 2 months ago
wxiaoguang 3d3ece36d2
Refactor comment history and fix content edit (#33018)
And fix a regression bug for comment content editing.

Now 11 "import jquery" files left
2 months ago
metiftikci 254314be5f
fix scoped label ui when contains emoji (#33007)
### Before

![old_label](https://github.com/user-attachments/assets/2211f711-613a-4ed4-90fd-8ff6ab0700f5)

### After

![new_label](https://github.com/user-attachments/assets/ecbc89da-7f77-44d0-8ce9-ba51b67421e5)
2 months ago
Blender Defender 079a1ffe8f
De-emphasize signed commits (#31160)
The new code structure is easier to make more improvements or
refactor, for example: change the colors to de-emphasize more, or design
some new layouts.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 months ago
Kerwin Bryant 91ffb2d720 fix bug 2 months ago
Lunny Xiao bf15e1878c
Fix bug 2 months ago