Lunny Xiao
832b78eb69
Empty, mirror & archived repository will not allow create branch
2024-12-09 18:43:36 -08:00
Lunny Xiao
da7f700d28
Fix create branch permission
2024-12-07 21:13:49 -08:00
Lunny Xiao
a81c785918
Merge branch 'main' into lunny/issue_dev
2024-12-07 20:59:54 -08:00
Lunny Xiao
cd7bf77b2f
Split issue/pull view router function as multiple smaller functions ( #32749 )
...
This PR splits issue/pull view function into multiple smaller functions.
It also removed duplicated branches load.
2024-12-08 04:39:35 +00:00
metiftikci
ad994780af
fix: render job title as commit message ( #32748 )
...
resolves #32724
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-08 03:23:09 +00:00
silverwind
1518f4ed12
Fix typescript errors in Vue files, fix regression in "Recent Commits" chart ( #32649 )
...
- Fix all typescript errors in `.vue` files
- Fix regression from https://github.com/go-gitea/gitea/pull/32329 where
"Recent Commits" chart would not render.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-08 02:58:18 +00:00
wxiaoguang
96d3a03a08
Refactor LabelEdit ( #32752 )
...
And fix a regression:
https://github.com/go-gitea/gitea/pull/30053#discussion_r1874405470
Major changes:
* rewrite without jquery
* remove the "delete modal", using "link-action" is good enough
* merge "new modal" and "edit modal"
2024-12-08 02:35:28 +00:00
GiteaBot
a78a466383
[skip ci] Updated translations via Crowdin
2024-12-08 00:37:22 +00:00
metiftikci
6bd70d4d87
fix(project): add title to project view page ( #32747 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-07 12:44:33 +08:00
GiteaBot
5449da7448
[skip ci] Updated translations via Crowdin
2024-12-07 00:34:09 +00:00
silverwind
5c980f6bb3
Fix case of .tsbuildinfo in .gitignore ( #32737 )
...
The docs at https://www.typescriptlang.org/tsconfig/#tsBuildInfoFile are
inconsistent, but I'm positive now that the file name is all-lowercase.
2024-12-06 23:09:36 +00:00
wxiaoguang
513da407f4
Support "merge upstream branch" (Sync fork) ( #32741 )
...
Add basic "sync fork" support (GitHub-like)
<details>
![image](https://github.com/user-attachments/assets/e71473f4-4518-48c7-b9e2-fedfcd564fc3 )
</details>
2024-12-06 21:10:35 +00:00
Lunny Xiao
5a75160c92
Update changelog to add missed changelog ( #32734 )
2024-12-06 17:31:43 +00:00
yp05327
faf5705d29
GitHub like repo home page ( #32213 )
...
Move some components (description, license, release, language stats) to sidebar
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-06 14:29:04 +00:00
wxiaoguang
3c4a06273f
Refactor markdown render ( #32736 )
...
and add some tests
2024-12-06 20:00:24 +08:00
Lunny Xiao
b32f0cdfa0
Make wiki pages visit fast ( #32732 )
2024-12-06 07:39:50 +00:00
wxiaoguang
0f18046df4
Refactor markdown render ( #32728 )
...
Follow up recent render system refactoring PRs (split test code), and
fine tune the math render (added some new cases)
2024-12-06 04:29:09 +00:00
wxiaoguang
f7f68e4cc0
Refactor RepoActionView.vue, add ::group::
support ( #32713 )
...
1. make it able to "force reload", then the previous pending request
won't block the new request
2. make it support `::group::`
3. add some TS types (but there are still many variables untyped, this
PR is large enough, the remaining types could be added in the future)
2024-12-06 12:04:16 +08:00
Yarden Shoham
ff14ada965
Bump relative-time-element to v4.4.4 ( #32730 )
...
Fix #32716
Tested, it still works.
- cc @wxiaoguang for
https://github.com/github/relative-time-element/pull/296
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2024-12-06 06:11:35 +08:00
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.
![grafik](https://github.com/user-attachments/assets/81cdb0c2-02f9-4733-bee2-e48af6b45224 )
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 )
...
![image](https://github.com/user-attachments/assets/7b62a38f-36d5-452a-8a97-204842c68b2e )
---------
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
![image](https://github.com/user-attachments/assets/40dd4c46-3f5b-4a68-89b0-d0a9a806f1fc )
### milestone
![image](https://github.com/user-attachments/assets/e3efb630-f07c-4c9d-b877-71e28cddcdce )
### user account setting
![image](https://github.com/user-attachments/assets/d15609ee-016d-4aee-999a-b5455fe6185c )
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