Commit Graph

2639 Commits (main)

Author SHA1 Message Date
GiteaBot 68d5c18953 [skip ci] Updated translations via Crowdin 2 days ago
GiteaBot db578431ea [skip ci] Updated translations via Crowdin 4 days ago
Lunny Xiao 5b6f80989f
Remove unnecessary double quotes on language file (#30977)
The double quotes and the prefix/suffix space are unnecessary.

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
4 days ago
GiteaBot 9a577c62e4 [skip ci] Updated translations via Crowdin 5 days ago
GiteaBot 2442ead680 [skip ci] Updated licenses and gitignores 6 days ago
GiteaBot f80b403dc9 [skip ci] Updated translations via Crowdin 1 week ago
wxiaoguang 7424f27cf3
Check if reverse proxy is correctly configured (#30890)
Follow #27011
Follow #30885

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
1 week ago
GiteaBot f1b0729078 [skip ci] Updated translations via Crowdin 2 weeks ago
GiteaBot d8d46d1c48 [skip ci] Updated translations via Crowdin 3 weeks ago
Micash ad4e902d5a
Add support for npm bundleDependencies (#30751) 3 weeks ago
GiteaBot e67141756d [skip ci] Updated licenses and gitignores 3 weeks ago
GiteaBot 27861d711b [skip ci] Updated translations via Crowdin 3 weeks ago
GiteaBot 935330b1b9 [skip ci] Updated translations via Crowdin 3 weeks ago
wxiaoguang bffbbf5470
Improve oauth2 client "preferred username field" logic and the error handling (#30622)
Follow #30454
And fix #24957

When using "preferred_username", if no such field,
`extractUserNameFromOAuth2` (old `getUserName`) shouldn't return an
error. All other USERNAME options do not return such error.

And fine tune some logic and error messages, make code more stable and
more friendly to end users.
3 weeks ago
GiteaBot 4ff54933f8 [skip ci] Updated translations via Crowdin 3 weeks ago
wxiaoguang b79e3db264
Initial support for colorblindness-friendly themes (#30625)
Initial support for #25680

This PR only adds some simple styles from GitHub, it is big enough and
it focuses on adding the necessary framework-level supports. More styles
could be fine-tuned later.
4 weeks ago
GiteaBot 7d5a03fda2 [skip ci] Updated translations via Crowdin 4 weeks ago
GiteaBot 31386dc2bb [skip ci] Updated licenses and gitignores 4 weeks ago
wxiaoguang f4a1cf7eab
Fix repo home UI when there is no repo description (#30552)
Fix #30502 by a new approach.


![image](https://github.com/go-gitea/gitea/assets/2114189/22f48bca-82d1-45cc-b1b7-ee2344b81a76)
4 weeks ago
GiteaBot 99d789e8cd [skip ci] Updated translations via Crowdin 4 weeks ago
GiteaBot ba9b124c34 [skip ci] Updated translations via Crowdin 1 month ago
GiteaBot ffc9879070 [skip ci] Updated translations via Crowdin 1 month ago
6543 be5be0ac81
Expose fuzzy search for issues/pulls (#29701)
close  #29685

---------

Signed-off-by: 6543 <6543@obermui.de>
Co-authored-by: silverwind <me@silverwind.io>
1 month ago
wxiaoguang 3feba9f1f4
Allow everyone to read or write a wiki by a repo unit setting (#30495)
Replace #6312
Help #5833
Wiki solution for #639
1 month ago
wxiaoguang 0798370f25
Correct locale string rendering (#30522)
Since #29165, the translations are rendered as HTML in templates, so:

1. if the translation does contain `<>`, use `TrString`
2. use `{dummy}` instead of `<dummy>` as much as possible

Co-authored-by: Giteabot <teabot@gitea.io>
1 month ago
GiteaBot 38147d020d [skip ci] Updated translations via Crowdin 1 month ago
GiteaBot 3b045ee165 [skip ci] Updated translations via Crowdin 1 month ago
GiteaBot 708e87e17d [skip ci] Updated licenses and gitignores 1 month ago
GiteaBot 17c7ebb327 [skip ci] Updated translations via Crowdin 1 month ago
GiteaBot d7013c26c8 [skip ci] Updated translations via Crowdin 1 month ago
GiteaBot 0c7b0c5aca [skip ci] Updated licenses and gitignores 1 month ago
GiteaBot 48223909be [skip ci] Updated translations via Crowdin 1 month ago
GiteaBot 83c5072077 [skip ci] Updated translations via Crowdin 1 month ago
GiteaBot 663acd0b46 [skip ci] Updated translations via Crowdin 2 months ago
wxiaoguang ca5c895efb
Render embedded code preview by permlink in markdown (#30234)
The permlink in markdown will be rendered as a code preview block, like GitHub

Co-authored-by: silverwind <me@silverwind.io>
2 months ago
GiteaBot 8a5c597c1d [skip ci] Updated translations via Crowdin 2 months ago
GiteaBot 3607f827fb [skip ci] Updated licenses and gitignores 2 months ago
wxiaoguang 6d34ce25b1
Do not allow different storage configurations to point to the same directory (#30169)
Replace #29171
2 months ago
GiteaBot 7eb3ab0765 [skip ci] Updated translations via Crowdin 2 months ago
GiteaBot bcf3be3a6c [skip ci] Updated translations via Crowdin 2 months ago
Denys Konovalov e5160185ed
Add default board to new projects, remove uncategorized pseudo-board (#29874)
On creation of an empty project (no template) a default board will be
created instead of falling back to the uneditable pseudo-board.

Every project now has to have exactly one default boards. As a
consequence, you cannot unset a board as default, instead you have to
set another board as default. Existing projects will be modified using a
cron job, additionally this check will run every midnight by default.

Deleting the default board is not allowed, you have to set another board
as default to do it.

Fixes #29873
Fixes #14679 along the way
Fixes #29853

Co-authored-by: delvh <dev.lh@web.de>
2 months ago
wxiaoguang 4734d43e14
Support repo code search without setting up an indexer (#29998)
By using git's ability, end users (especially small instance users) do
not need to enable the indexer, they could also benefit from the code
searching feature.

Fix #29996


![image](https://github.com/go-gitea/gitea/assets/2114189/11b7e458-88a4-480d-b4d7-72ee59406dd1)


![image](https://github.com/go-gitea/gitea/assets/2114189/0fe777d5-c95c-4288-a818-0427680805b6)

---------

Co-authored-by: silverwind <me@silverwind.io>
2 months ago
Zettat123 2f060c5834
Fix bugs in rerunning jobs (#29955)
Fix #28761
Fix #27884
Fix #28093

## Changes

### Rerun all jobs
When rerun all jobs, status of the jobs with `needs` will be set to
`blocked` instead of `waiting`. Therefore, these jobs will not run until
the required jobs are completed.

### Rerun a single job
When a single job is rerun, its dependents should also be rerun, just
like GitHub does
(https://github.com/go-gitea/gitea/issues/28761#issuecomment-2008620820).
In this case, only the specified job will be set to `waiting`, its
dependents will be set to `blocked` to wait the job.

### Show warning if every job has `needs`
If every job in a workflow has `needs`, all jobs will be blocked and no
job can be run. So I add a warning message.

<img
src="https://github.com/go-gitea/gitea/assets/15528715/88f43511-2360-465d-be96-ee92b57ff67b"
width="480px" />
2 months ago
wxiaoguang bfa160fc98
Refactor repo header/list (#29969)
1. Use general "mobile-only" and "not-mobile" CSS styles, remove some`@media (max-width: 767.98px)` tricks
2. Use `CountFmt` for repo list, just like the repo header (and it matches GitHub, to avoid big numbers bloat the page)
2 months ago
yp05327 4bef1fb3e4
Update register application URL for GitLab (#29959)
Fix #26593
The old URL was updated 7 years ago. Maybe no need to hold it any more.

![image](https://github.com/go-gitea/gitea/assets/18380374/95a0b364-832b-4f10-800e-21845d64df1a)
2 months ago
wxiaoguang cdb4d1a8db
Refactor StringsToInt64s (#29967)
And close #27176
2 months ago
buckybytes 16e360099d
Editor error message misleading due to re-used key. (#29859)
The error message:

`editor.file_changed_while_editing = The file contents have changed
since you started editing. <a target="_blank" rel="noopener noreferrer"
href="%s">Click here</a> to see them or <strong>Commit Changes
again</strong> to overwrite them.`

Is re-used in inappropriate contexts. The link in the key goes to a 404
when the key is used in a situation where the file contents have not
changed.

Added two new keys to differentiate commit id mismatch and push out of
date conditions.
2 months ago
GiteaBot a4a766f4a2 [skip ci] Updated licenses and gitignores 2 months ago
HEREYUA 2eb7c564df
Improve branch select list ui in go templates (#29729)
Relate:[#27417](https://github.com/go-gitea/gitea/issues/27471)
Reference:  [#26631](https://github.com/go-gitea/gitea/pull/26631)

Before


![image](https://github.com/go-gitea/gitea/assets/37935145/88ca8da5-25dd-4f60-bea8-a80107f19cc5)

After


![image](https://github.com/go-gitea/gitea/assets/37935145/3cb180dc-1331-43e9-8633-be5e288401e8)

---------

Co-authored-by: silverwind <me@silverwind.io>
2 months ago
silverwind 256a1eeb9a
Add `<overflow-menu>`, rename webcomponents (#29400)
1. Add `<overflow-menu>` web component
2. Rename `<gitea-origin-url>` to `<origin-url>` and make filenames
match.

<img width="439" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/2fbe4ca4-110b-4ad2-8e17-c1e116ccbd74">

<img width="444" alt="Screenshot 2024-03-02 at 21 36 52"
src="https://github.com/go-gitea/gitea/assets/115237/aa8f786e-dc8c-4030-b12d-7cfb74bdfd6e">

<img width="537" alt="Screenshot 2024-03-03 at 03 05 06"
src="https://github.com/go-gitea/gitea/assets/115237/fddd50aa-adf1-4b4b-bd7f-caf30c7b2245">


![image](https://github.com/go-gitea/gitea/assets/115237/0f43770c-834c-4a05-8e3d-d30eb8653786)


![image](https://github.com/go-gitea/gitea/assets/115237/4b4c6bd7-843f-4f49-808f-6b3aed5e9f9a)

TODO:

- [x] Check if removal of `requestAnimationFrame` is possible to avoid
flash of content. Likely needs a `MutationObserver`.
- [x] Hide tippy when button is removed from DOM.
- [x] ~~Implement right-aligned items
(https://github.com/go-gitea/gitea/pull/28976)~~. Not going to do it.
- [x] Clean up CSS so base element has no background and add background
via tailwind instead.
- [x] Use it for org and user page.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 months ago