Thomas E Lackey
1216ff96e5
Merge branch 'main' into telackey/sort
2025-03-11 11:33:47 -05:00
wxiaoguang
f61f30153b
Fix file icon mapping ( #33855 )
...
Use the file extension mapping from VSCode's extensions.
Otherwise js/ts/vba/... files won't get correct icons.
2025-03-11 21:06:59 +08:00
wxiaoguang
608ccc32e5
Drop fomantic build ( #33845 )
...
We would never update or build fomantic again, we have forked it as a
private library long time ago.
So just put the JS and CSS files in "fomantic/build" into git. And use
"import" to use them.
Remove "form.js", rewrite "tab" component.
All source code is from official Fomantic UI build. Will apply patches
in separate PRs.
2025-03-11 12:44:52 +08:00
ChristopherHX
a92d5f65ce
Fix auto concurrency cancellation skips commit status updates ( #33764 )
...
* add missing commit status
* conflicts with concurrency support
Closes #33763
Co-authored-by: Giteabot <teabot@gitea.io>
2025-03-10 15:58:48 -07:00
wxiaoguang
e47bba046c
Fix test code ( #33829 )
...
Do not use onGiteaRun if there is no git operation
2025-03-10 21:45:42 +00:00
Thomas E Lackey
5e74d7897f
Merge branch 'main' into telackey/sort
2025-03-10 13:36:27 -05:00
wxiaoguang
7fa47de7e9
Remove "noscript" tag from html head ( #33846 )
2025-03-11 00:52:08 +08:00
wxiaoguang
657239b480
Fix material icon & diff highlight ( #33844 )
2025-03-10 22:34:48 +08:00
wxiaoguang
c102492e5a
Fix LFS URL ( #33840 )
...
Fix #33839
2025-03-10 17:36:02 +08:00
wxiaoguang
34e5df6d30
Add material icons for file list ( #33837 )
2025-03-10 15:57:17 +08:00
Lunny Xiao
ae63568ce3
Move notifywatch to service layer ( #33825 )
...
No logic change.
2025-03-10 00:54:25 +00:00
GiteaBot
31ddbe1444
[skip ci] Updated translations via Crowdin
2025-03-10 00:29:01 +00:00
wxiaoguang
7290bfaccb
Only keep popular licenses ( #33832 )
...
Fix #33467
2025-03-10 06:40:37 +08:00
Vinoth Kumar
3e53b01143
Removing unwanted ui container ( #33833 )
...
when the passkey auth and register was disabled
the unwanted ui container was show
Co-authored-by: Vinoth414 <103478407+Vinoth414@users.noreply.github.com>
2025-03-10 00:38:11 +08:00
Dustin Firebaugh
3f1f808b9e
Full-file syntax highlighting for diff pages ( #33766 )
...
Fix #33358 , fix #21970
This adds a step in the `GitDiffForRender` that does syntax highlighting for the
entire file and then only references lines from that syntax highlighted
code. This allows things like multi-line comments to be syntax
highlighted correctly.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-09 12:51:58 +08:00
wxiaoguang
6f13331754
Improve theme display ( #30671 )
...
Document: https://gitea.com/gitea/docs/pulls/180

2025-03-08 21:38:11 +00:00
TheFox0x7
4c4c56c7cd
Decouple context from repository related structs ( #33823 )
...
Calls that required context implicitly are made to pass it as argument
2025-03-08 13:12:46 -08:00
wxiaoguang
4ed71eb754
Improve log format ( #33814 )
2025-03-08 21:47:11 +08:00
wxiaoguang
6422f05a4e
Decouple diff stats query from actual diffing ( #33810 )
...
The diff stats are no longer part of the diff generation.
Use `GetDiffShortStat` instead to get the total number of changed files,
added lines, and deleted lines.
As such, `gitdiff.GetDiff` can be simplified:
It should not do more than expected.
And do not run "git diff --shortstat" for pull list. Fix #31492
2025-03-08 17:36:08 +08:00
Lunny Xiao
1b2dffff8e
Add global lock for migrations to make upgrade more safe with multiple replications ( #33706 )
2025-03-07 21:08:53 +00:00
wxiaoguang
b8c2afdc5f
Do not show passkey on http sites ( #33820 )
...
Fix #33615
2025-03-07 19:37:27 +00:00
Thomas E Lackey
385d454321
Merge branch 'main' into telackey/sort
2025-03-06 21:36:05 -06:00
Alexander McRae
582ad338d7
Use correct start and end commits for GetDiffTree ( #33816 )
...
Fixes
https://github.com/go-gitea/gitea/pull/33514#issuecomment-2702814099
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-07 02:40:39 +00:00
wxiaoguang
ef18655215
Try to fix ACME (3rd) ( #33807 )
...
Fix #33802 , fix #32191
2025-03-07 01:00:10 +00:00
TheFox0x7
e7cf62f2f7
remove context from mail struct ( #33811 )
...
it can be passed by argument instead
2025-03-06 20:57:00 +00:00
Thomas E Lackey
c2c057d95f
Switch to DB indexer if the sort is based on label scope.
2025-03-06 12:00:36 -06:00
Thomas E Lackey
6e03264218
Show sort order on the rendered label.
2025-03-05 22:46:24 -06:00
Thomas E Lackey
83078edeca
Add const for 'scope-' prefix.
2025-03-05 20:02:08 -06:00
Thomas E Lackey
7df700ed0e
Merge branch 'telackey/sort' of ssh://github.com/telackey/gitea into telackey/sort
2025-03-05 19:59:03 -06:00
Thomas E Lackey
d12ea5f854
Add const for 'scope-' prefix.
2025-03-05 19:58:45 -06:00
Thomas E Lackey
6bd0e2dc60
Merge branch 'main' into telackey/sort
2025-03-05 19:42:37 -06:00
Thomas E Lackey
8da23e7555
Make sure to pull org labels too.
2025-03-05 19:38:25 -06:00
GiteaBot
b0ee340969
[skip ci] Updated translations via Crowdin
2025-03-06 00:32:55 +00:00
Lunny Xiao
0453177b61
Refactor: move part of updating protected branch logic to service layer ( #33742 )
2025-03-05 19:15:40 +00:00
Lunny Xiao
df7b61ce9a
Update changelog for v1.23.5 ( #33797 )
...
frontport from #33780
2025-03-05 18:47:13 +00:00
Thomas E Lackey
817fc88563
Lint
2025-03-05 12:26:10 -06:00
Thomas E Lackey
13fd9cdcb4
Merge branch 'main' into telackey/sort
2025-03-05 12:17:52 -06:00
Thomas E Lackey
dc495e491a
Bump migration up
2025-03-05 12:16:57 -06:00
sommerf-lf
7cdde20c73
Email option to embed images as base64 instead of link ( #32061 )
...
ref: #15081
ref: #14037
Documentation: https://gitea.com/gitea/docs/pulls/69
# Example
Content:

Result in Email:

Result with source code:
(first image is external image, 2nd is now embedded)

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-05 16:29:29 +00:00
Kerwin Bryant
f0f10413ae
Update TypeScript types ( #33799 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-05 08:03:44 -08:00
silverwind
95efc7b35b
Disable vet=off again ( #33794 )
...
Ref: https://github.com/go-gitea/gitea/issues/33792
To avoid slowing unit-test down.
2025-03-05 17:15:31 +08:00
GiteaBot
b9913d9568
[skip ci] Updated translations via Crowdin
2025-03-05 00:33:24 +00:00
Lunny Xiao
65bb837fa2
Upgrade golang net from 0.35.0 -> 0.36.0 ( #33795 )
2025-03-04 23:25:09 +01:00
TheFox0x7
ae3a18e01a
Remove context from git struct ( #33793 )
...
Argument is moved from struct init in command run, which lets us remove
context from struct.
2025-03-04 11:56:11 -08:00
Lunny Xiao
6c8fb8d455
Small refactor to reduce unnecessary database queries and remove duplicated functions ( #33779 )
2025-03-04 18:25:20 +00:00
wxiaoguang
75e85c25c1
Refactor repo-issue.ts ( #33784 )
...
And remove jQuery
2025-03-04 17:58:17 +00:00
wxiaoguang
ca0ce003ab
Refactor repo-settings.ts ( #33785 )
...
and remove jQuery
2025-03-05 01:19:03 +08:00
wxiaoguang
163bbca0eb
Refactor admin/common.ts ( #33788 )
...
Only remove jQuery
2025-03-04 23:42:07 +08:00
Denys Konovalov
ffb276578f
Adjust appearence of commit status webhook ( #33778 )
...
Some visual improvement for the commit status webhook message introduced
by #33320
- use short commit SHA as already done in e. g. commit webhook
- fix spacing, link text
- do not set user link for internal gitea-actions user
Before:

After:

2025-03-03 21:23:42 +00:00
Kerwin Bryant
14be462646
Refactor initRepoBranchTagSelector to use new init framework ( #33776 )
...
Make "initRepoBranchTagSelector" to use new init framework and fix the
abused "js-branch-tag-selector" styles
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-03 20:58:19 +00:00