2125 Commits (3243dbe1a9e3ff7031f243c72232bcc31bbdec75)

Author SHA1 Message Date
wxiaoguang c4742fbea3 [skip ci] Updated licenses and gitignores 2 years ago
Tyrone Yeh da0a9ec811 [skip ci] Updated translations via Crowdin 2 years ago
KN4CK3R 301d84e83a [skip ci] Updated translations via Crowdin 2 years ago
silverwind bdc4c4c379 [skip ci] Updated translations via Crowdin 2 years ago
KN4CK3R ef40324c43
Display image digest for container packages (#21170)
fixes #21160
2 years ago
JakobDev fe73246cf9 [skip ci] Updated translations via Crowdin 2 years ago
silverwind 77c916f6d9 [skip ci] Updated licenses and gitignores 2 years ago
silverwind 754861a020 [skip ci] Updated translations via Crowdin 2 years ago
Tyrone Yeh 619eed913c [skip ci] Updated translations via Crowdin 2 years ago
luzpaz cb3b3e519f
Fix various typos (#21103)
Found via `codespell -q 3 -S
./options/locale,./options/license,./public/vendor,./web_src/fomantic -L
actived,allways,attachements,ba,befores,commiter,pullrequest,pullrequests,readby,splitted,te,unknwon`

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2 years ago
Kyle D 7006d8297d [skip ci] Updated translations via Crowdin 2 years ago
silverwind 795bd946e2 [skip ci] Updated translations via Crowdin 2 years ago
Aaron F 0232601734 [skip ci] Updated translations via Crowdin 2 years ago
Aaron F 3963625b6e
Webhook for Wiki changes (#20219)
Add support for triggering webhook notifications on wiki changes.

This PR contains frontend and backend for webhook notifications on wiki actions (create a new page, rename a page, edit a page and delete a page). The frontend got a new checkbox under the Custom Event -> Repository Events section. There is only one checkbox for create/edit/rename/delete actions, because it makes no sense to separate it and others like releases or packages follow the same schema.

![image](https://user-images.githubusercontent.com/121972/177018803-26851196-831f-4fde-9a4c-9e639b0e0d6b.png)

The actions itself are separated, so that different notifications will be executed (with the "action" field). All the webhook receivers implement the new interface method (Wiki) and the corresponding tests.

When implementing this, I encounter a little bug on editing a wiki page. Creating and editing a wiki page is technically the same action and will be handled by the ```updateWikiPage``` function. But the function need to know if it is a new wiki page or just a change. This distinction is done by the ```action``` parameter, but this will not be sent by the frontend (on form submit). This PR will fix this by adding the ```action``` parameter with the values ```_new``` or ```_edit```, which will be used by the ```updateWikiPage``` function.

I've done integration tests with matrix and gitea (http).

![image](https://user-images.githubusercontent.com/121972/177018795-eb5cdc01-9ba3-483e-a6b7-ed0e313a71fb.png)

Fix #16457

Signed-off-by: Aaron Fischer <mail@aaron-fischer.net>
2 years ago
silverwind 0887459ac6 [skip ci] Updated licenses and gitignores 2 years ago
JakobDev 18046eb91e [skip ci] Updated translations via Crowdin 2 years ago
Jason Song 84447df4d3
Support Issue forms and PR forms (#20987)
* feat: extend issue template for yaml

* feat: support yaml template

* feat: render form to markdown

* feat: support yaml template for pr

* chore: rename to Fields

* feat: template unmarshal

* feat: split template

* feat: render to markdown

* feat: use full name as template file name

* chore: remove useless file

* feat: use dropdown of fomantic ui

* feat: update input style

* docs: more comments

* fix: render text without render

* chore: fix lint error

* fix: support use description as about in markdown

* fix: add field class in form

* chore: generate swagger

* feat: validate template

* feat: support is_nummber and regex

* test: fix broken unit tests

* fix: ignore empty body of md template

* fix: make multiple easymde editors work in one page

* feat: better UI

* fix: js error in pr form

* chore: generate swagger

* feat: support regex validation

* chore: generate swagger

* fix: refresh each markdown editor

* chore: give up required validation

* fix: correct issue template candidates

* fix: correct checkboxes style

* chore: ignore .hugo_build.lock in docs

* docs: separate out a new doc for merge templates

* docs: introduce syntax of yaml template

* feat: show a alert for invalid templates

* test: add case for a valid template

* fix: correct attributes of required checkbox

* fix: add class not-under-easymde for dropzone

* fix: use more back-quotes

* chore: remove translation in zh-CN

* fix EasyMDE statusbar margin

* fix: remove repeated blocks

* fix: reuse regex for quotes

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
zeripath 6b7bb419ed [skip ci] Updated translations via Crowdin 2 years ago
Lunny Xiao d74390ee39 [skip ci] Updated translations via Crowdin 2 years ago
JonRB 3edc14b687 [skip ci] Updated translations via Crowdin 2 years ago
KN4CK3R 41c76ad714
Add support for Vagrant packages (#20930)
* Add support for Vagrant boxes.

* Add authentication.

* Add tests.

* Add integration tests.

* Add docs.

* Add icons.

* Update routers/api/packages/api.go

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
2 years ago
JonRB 8a66b01e55 [skip ci] Updated translations via Crowdin 2 years ago
silverwind c21d6511a8 [skip ci] Updated licenses and gitignores 2 years ago
silverwind 532c223c45 [skip ci] Updated translations via Crowdin 2 years ago
Gusted 27ac65a124
Only show relevant repositories on explore page (#19361)
Adds a new option to only show relevant repo's on the explore page, for bigger Gitea instances like Codeberg this is a nice option to enable to make the explore page more populated with unique and "high" quality repo's. A note is shown that the results are filtered and have the possibility to see the unfiltered results.

Co-authored-by: vednoc <vednoc@protonmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: 6543 <6543@obermui.de>
2 years ago
xinyu 4a4bfafa23 [skip ci] Updated translations via Crowdin 2 years ago
silverwind 7d1765e940 [skip ci] Updated translations via Crowdin 2 years ago
Gusted 353a5331d5
Remove deprecated licenses (#20222) 2 years ago
Gary Wang 585e80a7fa [skip ci] Updated translations via Crowdin 2 years ago
JonRB 0ee96da052 [skip ci] Updated translations via Crowdin 2 years ago
wxiaoguang 8cceee4084 [skip ci] Updated translations via Crowdin 2 years ago
techknowlogick 4a797f8fab [skip ci] Updated translations via Crowdin 2 years ago
MaeIsBad e3308a092a [skip ci] Updated translations via Crowdin 2 years ago
Gusted 7ae297800e [skip ci] Updated translations via Crowdin 2 years ago
Gusted 4f56ab3bf3
Add missing translation for queue flush workers (#20791)
- Add a missing translation key and value for the flush worker indication
- Resolves #20770
2 years ago
Frank cc649f0cb3 [skip ci] Updated licenses and gitignores 2 years ago
zeripath 99efa02edf
Switch Unicode Escaping to a VSCode-like system (#19990)
This PR rewrites the invisible unicode detection algorithm to more
closely match that of the Monaco editor on the system. It provides a
technique for detecting ambiguous characters and relaxes the detection
of combining marks.

Control characters are in addition detected as invisible in this
implementation whereas they are not on monaco but this is related to
font issues.

Close #19913

Signed-off-by: Andrew Thornton <art27@cantab.net>
2 years ago
PEN² 3d7058adbe
Remove the translation key website by PR #20777 (#20779) 2 years ago
Gusted 54d9816502 [skip ci] Updated translations via Crowdin 2 years ago
silverwind 77d7b4c63d [skip ci] Updated translations via Crowdin 2 years ago
parnic 2660b0397a [skip ci] Updated translations via Crowdin 2 years ago
parnic 0066bc5113
Add issue filter for Author (#20578)
This adds a new filter option on the issues and pulls pages to filter by the author/poster/creator of the issue or PR
2 years ago
Lunny Xiao 73e9854040 [skip ci] Updated translations via Crowdin 2 years ago
silverwind abdebd2641
Rework repo buttons (#20602)
* Rework repo buttons

- Replace "New PR" and "Go to File" button with Icon Button
- Move all "Add File" actions into a dropdown button
- Remove most custom styling of clone buttons
- Margin and wiki tweaks

Buttons are now all equal height, mobile layout wraps gracefully.

Fixes: https://github.com/go-gitea/gitea/issues/13671
Replaces: https://github.com/go-gitea/gitea/pull/20375

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
KN4CK3R f55af4675c
Add support for Pub packages (#20560)
* Added support for Pub packages.

* Update docs/content/doc/packages/overview.en-us.md

Co-authored-by: Gergely Nagy <algernon@users.noreply.github.com>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Gergely Nagy <algernon@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2 years ago
silverwind cb97114e91 [skip ci] Updated licenses and gitignores 2 years ago
KN4CK3R 61aafb9c7d [skip ci] Updated translations via Crowdin 2 years ago
KN4CK3R 0f767e799c [skip ci] Updated translations via Crowdin 2 years ago
wxiaoguang b6bb3891fd [skip ci] Updated translations via Crowdin 2 years ago
Gusted 7baa7cb98f [skip ci] Updated translations via Crowdin 2 years ago
wxiaoguang 90b2657ae7
Fix the admin mailer config display (#20633) 2 years ago
Clar Fon 036dd8a788
Rework mailer settings (#18982)
* `PROTOCOL`: can be smtp, smtps, smtp+startls, smtp+unix, sendmail, dummy
* `SMTP_ADDR`: domain for SMTP, or path to unix socket
* `SMTP_PORT`: port for SMTP; defaults to 25 for `smtp`, 465 for `smtps`, and 587 for `smtp+startls`
* `ENABLE_HELO`, `HELO_HOSTNAME`: reverse `DISABLE_HELO` to `ENABLE_HELO`; default to false + system hostname
* `FORCE_TRUST_SERVER_CERT`: replace the unclear `SKIP_VERIFY`
* `CLIENT_CERT_FILE`, `CLIENT_KEY_FILE`, `USE_CLIENT_CERT`: clarify client certificates here

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
PEN² cf40619215 [skip ci] Updated translations via Crowdin 2 years ago
Gary Wang 1a8d7d03fd [skip ci] Updated translations via Crowdin 2 years ago
Norwin ff9b6fa663 [skip ci] Updated licenses and gitignores 2 years ago
silverwind 33bb7c485d [skip ci] Updated translations via Crowdin 2 years ago
zeripath 98f6670cde [skip ci] Updated translations via Crowdin 2 years ago
wxiaoguang 2c108d20ba
Fix i18n for email notifications (#20518) 2 years ago
Tyrone Yeh 3bd8f50af8
Added email notification option to receive all own messages (#20179)
Sometimes users want to receive email notifications of messages they create or reply to,
Added an option to personal preferences to allow users to choose

Closes #20149
2 years ago
Norwin 2ae1675092
Show hint to link package to repo when viewing empty repo package list (#20504)
* show hint to link package to repo

on empty repo package listing

* reword
2 years ago
Tyrone Yeh 7205f6b6a3 [skip ci] Updated translations via Crowdin 2 years ago
Gergely Nagy d9608c4e76 [skip ci] Updated translations via Crowdin 2 years ago
silverwind 755410162f [skip ci] Updated translations via Crowdin 2 years ago
6543 0d05bdbea8 [skip ci] Updated translations via Crowdin 2 years ago
Lucas Azevedo e519249266
Fix modified due date message (#20388) 2 years ago
CLanguagePurist 17ce5f8660 [skip ci] Updated licenses and gitignores 2 years ago
wxiaoguang ce8e06f9f3 [skip ci] Updated translations via Crowdin 2 years ago
6543 4ddae2c1b5 [skip ci] Updated translations via Crowdin 2 years ago
zeripath bffa303020
Add option to purge users (#18064)
Add the ability to purge users when deleting them.

Close #15588

Signed-off-by: Andrew Thornton <art27@cantab.net>
2 years ago
zeripath ed094dbab9 [skip ci] Updated translations via Crowdin 2 years ago
Ing. Jaroslav Šafka 8420c1bf4c
Fix checks in PR for empty commits #19603 (#20290)
* Fixes issue #19603 (Not able to merge commit in PR when branches content is same, but different commit id)
* fill HeadCommitID in PullRequest
* compare real commits ID as check for merging
* based on @zeripath patch in #19738
2 years ago
luzpaz d29d6d1991
Fix various typos (#20338)
* Fix various typos

Found via `codespell -q 3 -S ./options/locale,./options/license,./public/vendor -L actived,allways,attachements,ba,befores,commiter,pullrequest,pullrequests,readby,splitted,te,unknwon`

Co-authored-by: zeripath <art27@cantab.net>
2 years ago
silverwind e24c238ecc
Remove blue text on migrate page (#20273)
* Remove blue text on migrate page

* remove Safe

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
silverwind 734e81d48c [skip ci] Updated translations via Crowdin 2 years ago
Gusted cb6c5f8193 [skip ci] Updated translations via Crowdin 2 years ago
Gusted a9e66cfdad [skip ci] Updated translations via Crowdin 2 years ago
Gusted 87c563b706
Use dedicated draft PR icon when possible (#20303)
* Use dedicated draft PR icon when possible

- Currently the generic pull-request icon is used for draft PR's. This
patch changes that by using the dedicated icon for this.
- Resolves #20296

* Use draft title
2 years ago
Chongyi Zheng 49f9d43afe
Implement sync push mirror on commit (#19411)
Support synchronizing with the push mirrors whenever new commits are pushed or synced from pull mirror.

Related Issues: #18220

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
wxiaoguang 2eb713bacc [skip ci] Updated translations via Crowdin 2 years ago
wxiaoguang db3355cb1a [skip ci] Updated translations via Crowdin 2 years ago
wxiaoguang 26ec628624 [skip ci] Updated translations via Crowdin 2 years ago
Gusted cdd6371ad4 [skip ci] Updated translations via Crowdin 2 years ago
Gusted 0048595811
Remove U2F support (#20141)
- Completely remove U2F support from 1.18.0, 1.17.0 will be the last
release that U2F is somewhat supported. Users who used U2F would already
be warned about using U2F for a while now and should hopefully already
be migrated. But starting 1.18 definitely remove it.
2 years ago
Lunny Xiao 3ba09103a4 [skip ci] Updated translations via Crowdin 2 years ago
SteveTheEngineer e67e685ed8 [skip ci] Updated translations via Crowdin 2 years ago
Gusted 3289abcefc [skip ci] Updated translations via Crowdin 2 years ago
a1012112796 cc42c6488a
fix delete pull head ref for DeleteIssue (#20032)
* fix delete pull head ref for DeleteIssue

fix #19655

Signed-off-by: a1012112796 <1012112796@qq.com>

* add different help message for delete pull request

Signed-off-by: a1012112796 <1012112796@qq.com>

Co-authored-by: 6543 <6543@obermui.de>
2 years ago
zeripath 870d7f90e7 [skip ci] Updated translations via Crowdin 2 years ago
zeripath af7cfdee0e [skip ci] Updated translations via Crowdin 2 years ago
zeripath 7fbf002403 [skip ci] Updated translations via Crowdin 2 years ago
zeripath 46e50bcbfc [skip ci] Updated translations via Crowdin 2 years ago
wxiaoguang 89b0aac374 [skip ci] Updated translations via Crowdin 2 years ago
Gusted 70ce051f1a [skip ci] Updated translations via Crowdin 2 years ago
a1012112796 d05fb6f6c9 [skip ci] Updated translations via Crowdin 2 years ago
Gusted 881646520e [skip ci] Updated translations via Crowdin 2 years ago
singuliere f6e2dbaf1e [skip ci] Updated translations via Crowdin 2 years ago
singuliere 460c03ca49 [skip ci] Updated translations via Crowdin 2 years ago
Lunny Xiao 5f136783d1 [skip ci] Updated translations via Crowdin 2 years ago
Gusted 796c4eca0b
Prettify number of issues (#17760)
* Prettify number of issues

- Use the PrettyNumber function to add commas in large amount of issues.

* Use client-side formatting

* prettify on both server and client

* remove unused i18n entries

* handle more cases, support other int types in PrettyNumber

* specify locale to avoid issues with node default locale

* remove superfluos argument

* introduce template helper, octicon tweaks, js refactor

* Update modules/templates/helper.go

* Apply some suggestions.

* Add comment

* Update templates/user/dashboard/issues.tmpl

Co-authored-by: silverwind <me@silverwind.io>

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
Gusted edf14202fe
Unify repo settings & show better error (#19828)
* Unify context data
* Actually show invalid url in error
2 years ago