Lunny Xiao
d869d3286f
Merge branch 'main' into lunny/issue_dev
2024-12-05 10:17:10 -08:00
silverwind
5cada75596
Update dependencies, tweak eslint ( #32719 )
...
- ~~Remove `eslint-plugin-sonarjs`. I lost faith in it since they moved
it to their monorepo and I can't recall the last time when this plugin
raised a useful error.~~
- Add new rules from `no-jquery`
- ~~Tweak typescript config to prevent temp files in root directory in
certain situations~~ File is just gitignored now.
- Tested all relevant dependencies
2024-12-05 16:13:10 +00:00
Illya Marchenko
936665bf85
Issue time estimate, meaningful time tracking ( #23113 )
...
Redesign the time tracker side bar, and add "time estimate" support (in "1d 2m" format)
Closes #23112
---------
Co-authored-by: stuzer05 <stuzer05@gmail.com >
Co-authored-by: Yarden Shoham <hrsi88@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-05 13:07:53 +00:00
Lunny Xiao
c5422fae9a
Fix fork page branch selection ( #32711 )
...
Fix #32709
2024-12-05 00:57:32 +00:00
Lunny Xiao
478fbd5f49
Merge branch 'main' into lunny/issue_dev
2024-12-04 15:44:30 -08:00
Lunny Xiao
f2a28d0980
Add missing locale string
2024-12-04 15:44:24 -08:00
KN4CK3R
0c3c041c88
Add Arch package registry ( #32692 )
...
Close #25037
Close #31037
This PR adds a Arch package registry usable with pacman.

Rewrite of #25396 and #31037 . You can follow [this
tutorial](https://wiki.archlinux.org/title/Creating_packages ) to build a
package for testing.
Docs PR: https://gitea.com/gitea/docs/pulls/111
Co-authored-by: [d1nch8g@ion.lc ](mailto:d1nch8g@ion.lc )
Co-authored-by: @ExplodingDragon
---------
Co-authored-by: dancheg97 <dancheg97@fmnx.su >
Co-authored-by: dragon <ExplodingFKL@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-04 23:09:07 +00:00
Lunny Xiao
5ab7aa700f
Use new mail package instead of an unmintained one ( #32682 )
...
Resolve #18664
2024-12-05 06:33:43 +08:00
wxiaoguang
4142397b0b
Fix mentionable users when writing issue comments ( #32715 )
...
Fix #32702
2024-12-04 22:57:50 +08:00
wxiaoguang
838653d1df
Fix file editor & preview ( #32706 )
...
Fix a regression caused by jQuery removal (`renderPreviewPanelContent`)
And simplify the file editor, it doesn't need to be that complex. And
remove jQuery code.
2024-12-04 09:26:54 +00:00
Lunny Xiao
e45ffc530f
Remove outdated code about fixture generation ( #32708 )
2024-12-04 07:59:28 +00:00
Zettat123
5dda9510f4
Fix gogit GetRefCommitID
( #32705 )
2024-12-03 23:30:46 -08:00
Lunny Xiao
051b42a4a8
Add ellipsis
2024-12-03 22:02:04 -08:00
Lunny Xiao
66dbadcf68
Merge branch 'main' into lunny/issue_dev
2024-12-03 21:55:18 -08:00
Lunny Xiao
029a444523
Fix dropdown list
2024-12-03 21:54:55 -08:00
Lunny Xiao
17053e953f
Fix delete branch perm checking ( #32654 )
2024-12-04 11:59:48 +08:00
wxiaoguang
c9e582c6b6
Refactor markdown editor and use it for milestone description editor ( #32688 )
...
Refactor markdown editor to clarify its "preview" behavior and remove
jQuery code.
Close #15045
---------
Co-authored-by: silverwind <me@silverwind.io >
2024-12-04 02:11:34 +00:00
wxiaoguang
2f43536c3e
Fix issue title rendering and refactor legacy function names ( #32703 )
...
Fix #32700 , regression of recent markup refactoring
And by the way, clarify many legacy problems:
1. Some "RenderXxx" functions do not really "render", they only call "post processors"
2. Merge "RenderEmoji | RenderCodeBlock", they are all for "simple issue title"
2024-12-04 01:39:33 +00:00
Lunny Xiao
3556305d15
Merge branch 'main' into lunny/issue_dev
2024-12-03 17:09:10 -08:00
Lunny Xiao
35b7d32725
add margin top 2 for item
2024-12-03 17:09:07 -08:00
wxiaoguang
171edfc793
Fix oauth2 login methods ( #32698 )
...
Regression of #32687
It should use "or" but not "and", otherwise the oauth2 methods won't
show when no ENABLE_OPENID_SIGNIN
2024-12-03 17:53:57 +00:00
yp05327
690d07470c
Fix word overflow in file search page ( #32695 )
2024-12-03 16:52:25 +00:00
KN4CK3R
136408307c
Add Swift login endpoint ( #32693 )
...
Fix #32683
This PR adds the login endpoint and fixes the documentation links.
2024-12-03 16:24:16 +00:00
Lunny Xiao
829c34129c
Quick fix for license file name ( #32696 )
2024-12-03 07:59:07 -08:00
Lunny Xiao
f77d7e71e6
Merge branch 'main' into lunny/issue_dev
2024-12-02 23:50:02 -08:00
Lunny Xiao
f52a57dcd5
Fix bug
2024-12-02 23:49:57 -08:00
Kerwin Bryant
576e31ae3b
Add "View all branches/tags" entry to Branch Selector ( #32653 )
...

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-02 20:19:27 +00:00
wxiaoguang
13fbab5cf4
Remove all "floated" CSS styles ( #32691 )
...
flex but don't float
diff with ignoring spaces :
https://github.com/go-gitea/gitea/pull/32691/files?diff=split&w=1
related pages:
### admin users

### milestone

### user account setting

2024-12-03 03:54:33 +08:00
Kerwin Bryant
9a494af125
Optimize the styling of icon buttons within file-header-right ( #32675 )
...
Optimize partial layout and styling to achieve uniformity and
consistency.
Some buttons's structure is `<a><span><svg/></span></a>`, while others
buttons's structure is `<a><svg/></a>`. Additionally, some buttons have
icons that are **14** in size, while others have icons that are **16**.
Now, the layout has been unified to structure `<a><svg/></a>`, and the
icon size for all buttons has been standardized to the default size of
**16**.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-02 22:36:16 +08:00
metiftikci
2824ae2128
fix: show tag name on branch/tag selector if repo shown from tag ref ( #32689 )
2024-12-02 13:34:16 +00:00
wxiaoguang
e3e32605a1
Refactor RepoBranchTagSelector ( #32681 )
2024-12-02 01:41:32 +00:00
wxiaoguang
def13ece7c
Allow to disable the password-based login (sign-in) form ( #32687 )
...
Usually enterprise/organization users would like to only allow OAuth2
login.
This PR adds a new config option to disable the password-based login
form. It is a simple and clear approach and won't block the future
login-system refactoring works.
Fix a TODO in #24821
Replace #21851
Close #7633 , close #13606
2024-12-02 02:03:15 +08:00
wxiaoguang
1bb1a51f47
Fix JS error when reply comment on Conversation page ( #32685 )
...
Fix #32684 , regression of #32596 (side-effect of jQuery removal: jQuery could tolerate non-existing elements)
And fix another regression bug from #30453 (initCompReactionSelector double-init)
2024-12-02 00:13:58 +08:00
Simon Pistache
2abef971dc
fix( #32667 ): 🐛 Fixe a keystring misuse and refactor duplicates keystrings ( #32668 )
...
- Fixes a translation keystring misuse where the string 'open
milestones' is used in place of 'closed milestones'.
- De-duplicates the use of 'open milesones' and 'closed milestones'
keystrings on the sidebar of an issue, reusing the ones on the issues
filter and action bars.
- Closes #32667
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-01 10:14:56 +08:00
Lunny Xiao
79d593a9be
Split mail sender sub package from mailer service package ( #32618 )
...
Move all mail sender related codes into a sub package of
services/mailer. Just move, no code change.
Then we just have dependencies on go-mail package in the new sub
package. We can use other package to replace it because it's
unmaintainable. ref #18664
2024-11-30 01:15:41 +00:00
Zettat123
fd3aa5bedb
Fix a bug in actions artifact test ( #32672 )
...
This bug exists in `TestActionsArtifactDownload`.
a1f56f83bf/tests/integration/api_actions_artifact_test.go (L123-L134)
We assert that `listResp.Count` is `2`, so `artifactIdx` could be `0` or `1`.
a1f56f83bf/tests/integration/api_actions_artifact_test.go (L144-L147)
Then we assert that the length of `downloadResp.Value` is `1`. If
`artifactIdx` is `1` at this point, the assertion on Line 147 will throw
an `index out of range` error.
2024-11-29 20:32:10 +00:00
Lunny Xiao
1ed5f379b9
Move GetFeeds to service layer ( #32526 )
...
Move GetFeeds from models to service layer, no code change.
2024-11-29 17:53:49 +00:00
wxiaoguang
93640993e3
Refactor render system (orgmode) ( #32671 )
...
Close #29100
2024-11-29 16:08:29 +08:00
Lunny Xiao
17956ae24a
Make toast in front of modal
2024-11-28 21:31:30 -08:00
Lunny Xiao
267a2ec367
fill default branch name
2024-11-28 21:07:07 -08:00
Lunny Xiao
c0d1960efb
Fix lint
2024-11-28 17:25:33 -08:00
Lunny Xiao
e5b581ccfa
More ui improvements
2024-11-28 16:49:17 -08:00
Lunny Xiao
b3086c9e00
improve the popup branch create window
2024-11-28 16:39:50 -08:00
Lunny Xiao
79cb88901b
display pull request on float window
2024-11-28 16:21:03 -08:00
Lunny Xiao
ab6d2ed9d7
Display forked repository's branch
2024-11-28 16:13:40 -08:00
Lunny Xiao
703eebfa92
Adjust development sidebar
2024-11-28 15:54:27 -08:00
Lunny Xiao
121b823971
Follow template change
2024-11-28 12:35:51 -08:00
Lunny Xiao
3d8ed0e853
Merge branch 'main' into lunny/issue_dev
2024-11-28 12:14:58 -08:00
Lunny Xiao
72d06ee533
Remove issue.ref
2024-11-28 11:57:52 -08:00
silverwind
a1f56f83bf
Improve diff file tree ( #32658 )
...
- Unfolded directories now show a "open" icon
- Prevent accidential text selection while toggling directories
- Increase vertical item padding from 3px to 6px
<img width="257" alt="image"
src="https://github.com/user-attachments/assets/d5372306-a666-4732-827e-3ddeee3c711e ">
2024-11-28 12:25:21 +00:00