Commit Graph

16827 Commits (7d1933717d5eff2011128084693d57308d8102a4)
 

Author SHA1 Message Date
wxiaoguang 1f00bc44b2
Fix review UI ()
Close 


1. The `diff-detail-box` was abused, it shouldn't be used for
"DiffFileList/DiffFileTree".
2. Fix the sticky position for various screens.



![image](https://github.com/go-gitea/gitea/assets/2114189/558a5c06-c94c-4e5c-8395-d38473dd21c2)


![image](https://github.com/go-gitea/gitea/assets/2114189/3390fb0e-7dc7-457f-bd0c-398fdb6d24c0)


![image](https://github.com/go-gitea/gitea/assets/2114189/d19dd350-aecf-4909-8ef9-73b09d94560e)
wxiaoguang 72c68177ab
Improve issue history dialog and make poster can delete their own history ()
Fix  (see the comment)

And some UI improvements:

### Before


![image](https://github.com/go-gitea/gitea/assets/2114189/420a314d-8f34-4e30-a557-f41cf4f0d2f2)


![image](https://github.com/go-gitea/gitea/assets/2114189/60ca0be4-b55e-4e65-be73-fd53e0d4fc36)


### After


![image](https://github.com/go-gitea/gitea/assets/2114189/d354f815-5a0c-4e63-8d59-d03ed344dbea)


![image](https://github.com/go-gitea/gitea/assets/2114189/6ef437a4-aa6f-4917-a260-00625ee71e79)


![image](https://github.com/go-gitea/gitea/assets/2114189/9d88a36c-616b-4dc9-8c6b-76adaad8acf6)
wxiaoguang 7ea2a910ce
Improve branch list UI ()
1. Put the `"octicon-shield-lock"` into the flex container, then it
doesn't need a separate flex box
2. Remove some unnecessary `gt-df` helpers
3. Make `btn` button has the same flex behavior as `ui button`


![image](https://github.com/go-gitea/gitea/assets/2114189/60ce75f7-7fac-4157-9c42-91c7dee9300e)



![image](https://github.com/go-gitea/gitea/assets/2114189/ea606baf-6f52-41e1-b964-c4840d3b1529)
6543 15fa0383fb
doctor: delete action entries without existing user ()
just extend doctor with a usefully check :)

Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Earl Warren 98f02203f9
fix orphan check for deleted branch ()
- Modify the deleted branch orphan check to check for the new table
instead.
- Regression from 6e19484f4d
- Resolves https://codeberg.org/forgejo/forgejo/issues/1522

(cherry picked from commit c1d888686fe445e4edecb9d835c5b3893b574b75)

Co-authored-by: Gusted <postmaster@gusted.xyz>
Lunny Xiao 673cf6af76
make writing main test easier ()
This PR removed `unittest.MainTest` the second parameter
`TestOptions.GiteaRoot`. Now it detects the root directory by current
working directory.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
GiteaBot e74a3b18af [skip ci] Updated translations via Crowdin
yp05327 e5e1d842c0
Fix protected branch icon location ()
Nanguan Lin 70f8d10fc5
move the `gitea admin` subcommands into separate files ()
As title.
Probably it's better to put those sub cmd to different dirs. Will do
that in the future.
Lunny Xiao 5600504eed
Fix chinese translation ()
Fix translation from  
Source Map will be kept as English in Chinese usage habit.
techknowlogick 9e446dbf04
bump bleve ()
Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Lunny Xiao 3b2da7e4ae
Redefine the meaning of column is_active to make Actions Registration Token generation easier ()
Partially Fix 

This PR redefined the meaning of column `is_active` in table
`action_runner_token`.
Before this PR, `is_active` means whether it has been used by any
runner. If it's true, other runner cannot use it to register again.

In this PR, `is_active` means whether it's validated to be used to
register runner. And if it's true, then it can be used to register
runners until it become false. When creating a new `is_active` register
token, any previous tokens will be set `is_active` to false.
silverwind ee27b94b2c
Use vitest globals ()
Enable [globals](https://vitest.dev/config/#globals) in vitest, reducing
the noise in test files.
yp05327 5ef5a0ade6
Fix divider in subscription page ()
the divider should always display in the subscription page.

Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Lunny Xiao e59c9e3ecd
Fix yaml test ()
silverwind c5247eff73
Enable production source maps for index.js, fix CSS sourcemaps ()
Previously, the production build never output sourcemaps. Now we emit
one file for `index.js` because it is the most likely one where we need
to be able to better debug reported issues like
https://github.com/go-gitea/gitea/issues/27213. This will currently
increase the binary size of gitea by around 700kB which is what the
gzipped source map file has.

Also, I fixed the CSS sourcemap generation which was broken since the
introduction of lightningcss.
wxiaoguang 6967c13ad2
Fix some animation bugs ()
Fix 
Replace 
silverwind 709c2fad8a
Add missed return to actions view fetch ()
Should fix: 
Lunny Xiao eab20cb6bd
Fix more yaml lint errors ()
Fix 
delvh 1f89a45926
Fix incorrect change from ()
wxiaoguang 939d410a93
Add missing IconHTML size ()
Fix 

Regression of 
wxiaoguang d0012c8806
Document the queue item's marshaling behavior ()
Close 
GiteaBot 3f82ca38af [skip ci] Updated translations via Crowdin
JakobDev 7047df36d4
Another round of `db.DefaultContext` refactor ()
Part of 

---------

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
wxiaoguang 93bd4351bf
Fix more "locale" usages ()
delvh 7960ba7e2b
Always use `ctx.Locale.Tr` inside templates ()
Yarden Shoham e6d8b14620
Disable `Test Delivery` and `Replay` webhook buttons when webhook is inactive ()
These buttons are now disabled when the webhook is not active.

The buttons were always enabled before this change.

- Fixes 
- Replaces 

# Before


![image](https://github.com/go-gitea/gitea/assets/20454870/e783d0d8-b433-440e-b95f-50d7c42613d3)


![image](https://github.com/go-gitea/gitea/assets/20454870/b4886151-9f32-4e83-8001-dd3f20c23d70)

# After


![image](https://github.com/go-gitea/gitea/assets/20454870/74b76a72-0818-4143-8548-5d42c4119a05)


![image](https://github.com/go-gitea/gitea/assets/20454870/d5ae4e5c-c1ac-4751-a072-e6f7511b1e07)

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
yp05327 65d0b7c13a
Add missing public user visibility in user details page ()
It seems that `Public` user visibility is missing in the template.

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/a8e7f3e0-1b77-41a0-921a-10adba90211e)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/b0bffe13-0ca6-453e-95d7-0794528d5733)
silverwind 6af34c09a7
Use mask-based fade-out effect for `.new-menu` ()
The `.new-menu` was using a pseudo-element based fade-out effect.
Replace this with a more modern mask-based effect which in this case
required a child element to avoid fading out the background as well, so
I applied it to child `new-menu-inner` which was present on all these
menus except explore where I added it.

There is no visual difference except that the items on the explore page
have no `gap` between them any longer, making it consistent with other
menus. Before and after:

<img width="221" alt="Screenshot 2023-09-21 at 21 13 19"
src="https://github.com/go-gitea/gitea/assets/115237/b4a38ce2-cee1-4c54-84a5-e1d0bfd79e29">
<img width="222" alt="Screenshot 2023-09-21 at 21 32 36"
src="https://github.com/go-gitea/gitea/assets/115237/bb6b1335-d935-4ad4-bb85-3b0fc3027c2b">

Also, this cleans up the related CSS vars:

- `--color-header-wrapper-transparent` is removed, no longer needed
- `--color-header-wrapper` is defined in base theme as well, was
previously unset and therefor transparent.

[no whitespace
diff](https://github.com/go-gitea/gitea/pull/27181/files?diff=unified&w=1)
[demo of mask fade](https://jsfiddle.net/silverwind/tsfadb3u/)
GiteaBot c2eed61329 [skip ci] Updated translations via Crowdin
silverwind a50002c75c
Fix z-index on markdown completion ()
Fixes: https://github.com/go-gitea/gitea/issues/27230
techknowlogick 0816463cf4
Update database-preparation and add note re: MariaDB ()
update DB docs per feedback.
https://gitea.com/gitea/gitea-docusaurus/issues/69
Denys Konovalov 2325fe777d
cleanup locale function usage ()
silverwind 3a187eace5
Fix EOL handling in web editor ()
Fixes https://github.com/go-gitea/gitea/issues/27136.

This does the following for Monaco's EOL setting:

1. Use editorconfig setting if present
2. Use the file's dominant line ending as detected by monaco, which uses
LF for empty file
Nabapadma-sarker 8e23524b18
Fix PushEvent NullPointerException jenkinsci/github-plugin ()
Fixes 
Denys Konovalov 63b25e816d
fix issues on action runners page ()
- switch from some weird status badge to label
- translate untranslated `Reset registration token` string
- change documentation link from act_runner README to Gitea Docs site
- fix "No runners available" message width
- use `ctx.Locale.Tr` where possible


![grafik](https://github.com/go-gitea/gitea/assets/47871822/65547228-f9ed-4f80-9cfd-df5e55513a44)
wxiaoguang efd5176278
Fix Fomantic UI dropdown icon bug when there is a search input in menu ()
Fix 

And add the case to the devtest page.
delvh da0467e3b6
Update go-enry to 2.8.5 ()
Fixes 
silverwind 6e2888ce27
Update nodejs installation method in release container ()
KN4CK3R bcb78e70ca
Quote table `release` in sql queries ()
Fixes 

`release` is a reserved keyword in MySql. I can't reproduce the issue on
my setup and we have a test for that code but it seems there can be
setups where it fails.


a101dbaa79/tests/integration/repo_activity_test.go (L45-L46)
Daniel Kilimnik 0ee7cbf725
Fix push mirror, wrong timestamp format ()
I noticed, that the push mirrors endpoint, is the only endpoint which
returns the times in long format rather than as time.Time().

I think the behavior should be consistent across the project.

----

## ⚠️ BREAKING ⚠️

This PR changes the time format used in API responses for all
push_mirror endpoints which return a push mirror.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
JakobDev 5f7388e586
Allow copying issue comment link on archived repos and when not logged in ()
Fixes https://codeberg.org/Codeberg/Community/issues/1303
metiftikci 6c563a302a
fix: text decorator on issue sidebar menu label ()
fix underline for label on issue sidebar
silverwind a101dbaa79
Update JS and Poetry dependencies and eslint ()
- Update all JS and Poetry dependencies
- Remove deprecated `eslint-plugin-custom-elements` and replace it with
rules from `eslint-plugin-wc`
- Add a convenience `make update` to update both js and py dependencies
- Tested markdown toolbar, swagger and citation
wxiaoguang c0ed26f987
Remove some dead code ()
Some code is not in use any more, remove them.
GiteaBot 383edf2fd7 [skip ci] Updated translations via Crowdin
JakobDev 28f9b313ba
Updates to the API for archived repos ()
John Olheiser 7520cd678c
Fix release URL in webhooks ()
wxiaoguang 1f026bcb7e
Fix dropdown icon position ()
According to https://fomantic-ui.com/modules/dropdown.html and our
"devtest" page, many dropdown elements has incorrect "icon" position.

This PR fixes all of them. Fix 
wxiaoguang c2cabe7b28
Fix repo sub menu ()
Fix