1589 Commits (308b562b3c0440e800dc63b0ef2eb6777a1e0026)

Author SHA1 Message Date
GiteaBot 44d76ff7cb [skip ci] Updated translations via Crowdin 3 years ago
zeripath 17be645498
Encrypt LDAP bind password in db with SECRET_KEY (#15547)
* Encrypt LDAP bind password in db with SECRET_KEY

The LDAP source bind password are currently stored in plaintext in the db
This PR simply encrypts them with the setting.SECRET_KEY.

Fix #15460

Signed-off-by: Andrew Thornton <art27@cantab.net>

* remove ui warning regarding unencrypted password

Co-authored-by: silverwind <me@silverwind.io>
3 years ago
GiteaBot 124b256c53 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 825547b20e [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 1da0d156bc [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 131b59ef89 [skip ci] Updated translations via Crowdin 3 years ago
Lunny Xiao 892e6561ff
Use a special name for update default branch on repository setting (#15893) 3 years ago
GiteaBot 41136db47e [skip ci] Updated licenses and gitignores 3 years ago
GiteaBot f3febeb594 [skip ci] Updated translations via Crowdin 3 years ago
zeripath d234d37aa8
Restore PAM user autocreation functionality (#15825)
* Restore PAM user autocreation functionality

PAM autoregistration of users currently fails due to email invalidity.
This PR adds a new setting to PAM to allow an email domain to be set
or just sets the email to the noreply address and if that fails falls
back to uuid@localhost

Fix #15702

Signed-off-by: Andrew Thornton <art27@cantab.net>

* As per KN4CKER

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
GiteaBot 6d2a333fdc [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 96b1315e6e [skip ci] Updated translations via Crowdin 3 years ago
6543 a229e34387
Allow only internal registration (#15795)
* Add ALLOW_ONLY_INTERNAL_REGISTRATION into settings

* OpenID respect setting too
3 years ago
Jonathan Tran 9557b8603a
Add selecting tags on the compare page (#15723)
* Add selecting tags on the compare page

* Remove unused condition and change indentation

* Fix tag tab in dropdown to be black

* Add compare tag integration test

Co-authored-by: Jonathan Tran <jon@allspice.io>
3 years ago
Loutro 34b21625c2
Display specific message if diff is not displayed because of too long line (#15611)
* 7184-  message if line too long

* Update options/locale/locale_en-US.ini

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

* add flag on missing cases

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Andrew Thornton <art27@cantab.net>
3 years ago
GiteaBot ed39377900 [skip ci] Updated translations via Crowdin 3 years ago
Jonathan Tran 5e047b9bd7
Add compare tag dropdown to releases page (#15695)
* Add compare tag dropdown to releases page

* Change defaults to be more intuitive and remove unneeded option

* Fix to select branch on releases page

Co-authored-by: Jonathan Tran <jon@allspice.io>
Co-authored-by: Kyle D <kdumontnu@gmail.com>
3 years ago
GiteaBot 87f8a3d39b [skip ci] Updated translations via Crowdin 3 years ago
a1012112796 ae6d7860be
add cron job to delete old actions from database (#15688)
that's a way to save database storage space.

Signed-off-by: a1012112796 <1012112796@qq.com>
3 years ago
GiteaBot 5811e162ae [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot e711050450 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot e91932bc15 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot d85a4e8cec [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 3a49c00f0d [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 7417628f8d [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot eee30d5586 [skip ci] Updated translations via Crowdin 3 years ago
Kyle D f44543a1bb
Disable Stars config option (#14653)
* Add config option to disable stars

* Replace "stars" with watched in user profile

* Add documentation
3 years ago
GiteaBot 35381a0e4f [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot d42509a534 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 0c77e0791c [skip ci] Updated translations via Crowdin 3 years ago
zeripath 9a0858cecf
SHA in merged commit comment should be rendered ui sha (#15376)
* SHA in merged commit comment should be rendered ui sha

On a PR page the sha of the merge commit should be rendered in monospace
as a SHA. Also fixes an issue with the manually merged string.

Fix #15049

Signed-off-by: Andrew Thornton <art27@cantab.net>

* issues.force_push_codes needs this too.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago
GiteaBot d0eeba9ff9 [skip ci] Updated translations via Crowdin 3 years ago
koalp 3dc099773d
Fix mirror_lfs source string in en-US locale (#15369)
The mirror_lfs source string was set to "Large File System" instead of "Large File Storage"

This has been fixed
3 years ago
KN4CK3R c03e488e14
Add LFS Migration and Mirror (#14726)
* Implemented LFS client.

* Implemented scanning for pointer files.

* Implemented downloading of lfs files.

* Moved model-dependent code into services.

* Removed models dependency. Added TryReadPointerFromBuffer.

* Migrated code from service to module.

* Centralised storage creation.

* Removed dependency from models.

* Moved ContentStore into modules.

* Share structs between server and client.

* Moved method to services.

* Implemented lfs download on clone.

* Implemented LFS sync on clone and mirror update.

* Added form fields.

* Updated templates.

* Fixed condition.

* Use alternate endpoint.

* Added missing methods.

* Fixed typo and make linter happy.

* Detached pointer parser from gogit dependency.

* Fixed TestGetLFSRange test.

* Added context to support cancellation.

* Use ReadFull to probably read more data.

* Removed duplicated code from models.

* Moved scan implementation into pointer_scanner_nogogit.

* Changed method name.

* Added comments.

* Added more/specific log/error messages.

* Embedded lfs.Pointer into models.LFSMetaObject.

* Moved code from models to module.

* Moved code from models to module.

* Moved code from models to module.

* Reduced pointer usage.

* Embedded type.

* Use promoted fields.

* Fixed unexpected eof.

* Added unit tests.

* Implemented migration of local file paths.

* Show an error on invalid LFS endpoints.

* Hide settings if not used.

* Added LFS info to mirror struct.

* Fixed comment.

* Check LFS endpoint.

* Manage LFS settings from mirror page.

* Fixed selector.

* Adjusted selector.

* Added more tests.

* Added local filesystem migration test.

* Fixed typo.

* Reset settings.

* Added special windows path handling.

* Added unit test for HTTPClient.

* Added unit test for BasicTransferAdapter.

* Moved into util package.

* Test if LFS endpoint is allowed.

* Added support for git://

* Just use a static placeholder as the displayed url may be invalid.

* Reverted to original code.

* Added "Advanced Settings".

* Updated wording.

* Added discovery info link.

* Implemented suggestion.

* Fixed missing format parameter.

* Added Pointer.IsValid().

* Always remove model on error.

* Added suggestions.

* Use channel instead of array.

* Update routers/repo/migrate.go

* fmt

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
3 years ago
GiteaBot 75dfc46d7c [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 7bf1e7a18b [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot f2715b8e29 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 42e62facf7 [skip ci] Updated translations via Crowdin 3 years ago
6543 80d6c6d7de
[refactor] mailer service (#15072)
* Unexport SendUserMail

* Instead of "[]*models.User" or "[]string" lists infent "[]*MailRecipient" for mailer

* adopt

* code format

* TODOs for "i18n"

* clean

* no fallback for lang -> just use english

* lint

* exec testComposeIssueCommentMessage per lang and use only emails

* rm MailRecipient

* Dont reload from users from db if you alredy have in ram

* nits

* minimize diff

Signed-off-by: 6543 <6543@obermui.de>

* localize subjects

* linter ...

* Tr extend

* start tmpl edit ...

* Apply suggestions from code review

* use translation.Locale

* improve mailIssueCommentBatch

Signed-off-by: Andrew Thornton <art27@cantab.net>

* add i18n to datas

Signed-off-by: Andrew Thornton <art27@cantab.net>

* a comment

Co-authored-by: Andrew Thornton <art27@cantab.net>
3 years ago
GiteaBot 54eae008d9 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot f07b137e04 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 9d57373144 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 0e7a2fb9e2 [skip ci] Updated translations via Crowdin 3 years ago
KN4CK3R 0c6137617f
Add Tabular Diff for CSV files (#14661)
Implements request #14320 The rendering of CSV files does match the diff style.

* Moved CSV logic into base package.

* Added method to create a tabular diff.

* Added CSV compare context.

* Added CSV diff template.

* Use new table style in CSV markup.

* Added file size limit for CSV rendering.

* Display CSV parser errors in diff.

* Lazy read single file.

* Lazy read rows for full diff.

* Added unit tests for various CSV changes.
3 years ago
GiteaBot 3416e2a825 [skip ci] Updated translations via Crowdin 3 years ago
parnic f4d27498bd
Add DefaultMergeStyle option to repository (#14789)
Fixes #12293
3 years ago
GiteaBot 0048d7c7cf [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 4c4a86bf8c [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot e6377d5eb4 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot bb5eb849f2 [skip ci] Updated translations via Crowdin 3 years ago