Lauris BH
9aaaf980f0
Fix open redirect check for more cases ( #25143 )
...
If redirect_to parameter has set value starting with `\\example.com`
redirect will be created with header `Location: /\\example.com` that
will redirect to example.com domain.
2023-06-08 14:08:14 +00:00
Lauris BH
58b4143803
Add loading yaml label template files ( #22976 )
...
Extract from #11669 and enhancement to #22585 to support exclusive
scoped labels in label templates
* Move label template functionality to label module
* Fix handling of color codes
* Add Advanced label template
2023-03-02 01:44:23 +02:00
Lauris BH
6037043adf
Fix container layer display overflow ( #22208 )
...
Before:

After:

2022-12-22 12:33:17 +02:00
Lauris BH
8e8b536c29
Update OpenRC startup script ( #21436 )
2022-10-15 17:59:52 -04:00
Lauris BH
b59b0cad0a
Add user/organization code search ( #19977 )
...
Fixes #19925
Screenshots:

2022-10-11 00:12:03 +01:00
Lauris BH
1f8f9c3826
Remove tab/TabName usage where it's not needed ( #19973 )
...
`tab` query argument and `TabName` in context is used only in profile so remove it from all other places where it's not used anymore.
2022-06-15 23:05:32 +08:00
Lauris BH
d087554d81
[skip ci] Updated translations via Crowdin
2022-06-09 00:10:14 +00:00
Lauris BH
f92b7a6331
Add support for rendering terminal output with colors ( #19497 )
2022-06-09 00:46:39 +03:00
Lauris BH
65e0688a5c
Fix raw endpoint PDF file headers ( #19825 )
2022-05-28 18:10:14 +03:00
Lauris BH
604ce77628
Allow to filter repositories by language in explore, user and organization repositories lists ( #18430 )
2022-01-28 13:29:04 +02:00
Lauris BH
8038610a42
Automatically pause queue if index service is unavailable ( #15066 )
...
* Handle keyword search error when issue indexer service is not available
* Implement automatic disabling and resume of code indexer queue
2022-01-27 10:30:51 +02:00
Lauris BH
6392f4691a
API: Return primary language and repository language stats API URL ( #18396 )
2022-01-25 08:33:40 +02:00
Lauris BH
9628a76ce6
Update to work with latest VS Code go debugger ( #18397 )
2022-01-25 05:00:55 +00:00
Lauris BH
d26551bd0c
Load issue/PR context popup data only when needed ( #15955 )
...
* Load issue/PR context popup data only when needed
* Add SVG icon Vue component
* Remove unneeded check
2021-07-13 20:09:19 +02:00
Lauris BH
2f0eb9fd5d
Handle unauthorized user events gracefully ( #15071 )
2021-03-20 21:39:43 +01:00
Lauris BH and techknowlogick
044cd4d016
Add reverse proxy configuration support for remote IP address ( #14959 )
...
* Add reverse proxy configuration support for remote IP address validation
* Trust all IP addresses in containerized environments by default
* Use single option to specify networks and proxy IP addresses. By default trust all loopback IPs
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-03-16 00:27:28 +02:00
Lauris BH and Gitea
1ae9b2a89b
Update go-enry to v2.6.1 ( #14997 )
...
Co-authored-by: Gitea <gitea@gitea.io >
2021-03-15 04:20:02 +01:00
Lauris BH
f5abe2f563
Upgrade blevesearch dependency to v2.0.1 ( #14346 )
...
* Upgrade blevesearch dependency to v2.0.1
* Update rupture to v1.0.0
* Fix test
2021-01-17 20:21:14 -05:00
Lauris BH
ca63a9d3f1
Add edit, delete and reaction support to code review comments on issue page ( #14339 )
2021-01-17 19:29:10 +02:00
Lauris BH
0a3c3357f3
Sort issue search results by revelance ( #14353 )
2021-01-16 12:55:17 +08:00
Lauris BH
6eee9f0f4e
Merge default and system webhooks under one menu ( #14244 )
2021-01-15 01:24:03 +02:00
Lauris BH
4a510e08e4
Update go-enry dependency to v2.6.0 ( #13861 )
2020-12-05 13:31:18 -05:00
Lauris BH
57fa9b0f25
Support shortened commit SHAs in URLs ( #13686 )
...
* Support shortened commit SHAs in URLs and API
* Add test case for short sha
* Fix format
* Revert API support
* Add canonical link headers for short commit ID URLs
2020-11-25 15:07:39 -05:00
Lauris BH and techknowlogick
8c2b5feeae
When building rootless docker image move chown&chmod to build stage ( #13578 )
...
* When building rootless docker image move chown&chmod to build stage
Fixes #13577
* Fix command newlines
* Move chown to COPY command
* Seems to be working also without chmod
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-11-15 20:44:41 -05:00
Lauris BH
a2a05d164b
Fix punctuation in trust model description ( #13140 )
2020-10-14 14:17:40 +03:00
Lauris BH
e710a34981
Add spent time to referenced issue in commit message ( #12220 )
2020-09-04 11:37:37 -04:00
Lauris BH
42a31c797b
Fix correct upstream remote HTTPS URL ( #12436 )
2020-08-05 20:15:57 +01:00
Lauris BH
bae5293d24
Show drone status for master branch in README ( #12248 )
2020-07-15 12:37:38 +08:00
Lauris BH
4384320db9
Use hash of repo path, ref and entrypath as cache key ( #12151 )
2020-07-06 01:40:34 +03:00
Lauris BH
8f489131f3
Fix merge section in dark theme ( #12086 )
...
* Fix merge section in dark theme
* Fix lint
2020-07-01 02:03:37 +03:00
Lauris BH
ce5f2b9845
Fix commit icon position ( #12087 )
2020-06-29 23:53:30 -04:00
Lauris BH
121103fecf
Changelog for v1.11.8 and v1.12.1 ( #12006 ) ( #12007 )
...
* Changelog for v1.12.1 (#12006 )
* Update gitea version to latest release
2020-06-22 09:58:54 -04:00
Lauris BH
6891b90303
Use enry language type to detect special languages ( #11974 )
2020-06-19 15:24:03 +03:00
Lauris BH
5389b6cde1
For language detection do not try to analyze big files by content ( #11971 )
2020-06-19 11:07:56 +03:00
Lauris BH
2874ab54bc
Add language statistics API endpoint ( #11737 )
...
* Add language statistics API
* Add tests
2020-06-07 14:48:41 +03:00
Lauris BH and Cirno the Strongest
ea4c139cd2
Change language statistics to save size instead of percentage ( #11681 )
...
* Change language statistics to save size instead of percentage in database
Co-Authored-By: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com >
* Do not exclude if only language
* Fix edge cases with special langauges
Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com >
2020-05-30 10:46:15 +03:00
Lauris BH
bd2335671f
Exclude generated files from language statistics ( #11653 )
...
* Update go-enry to v2.5.2
2020-05-29 09:20:01 +03:00
Lauris BH
75918d9dc6
Fix translation to be compatible with crowdin ( #11453 )
2020-05-17 12:18:59 +03:00
Lauris BH
4dc62dadce
Migrate to go-enry new version ( #10906 )
2020-04-15 20:40:39 +03:00
Lauris BH
a3f90948d8
Set MySQL rowtype to dynamic for new tables ( #10833 )
...
* Set mysql rowtype to dynamic for new tables
* Update models.go
2020-03-27 10:44:05 +02:00
Lauris BH and zeripath
bbd910ed1b
Allow to set protected file patterns that can not be changed under no conditions ( #10806 )
...
Co-Authored-By: zeripath <art27@cantab.net >
2020-03-27 00:26:34 +02:00
Lauris BH
e5a008f7b2
Add nowrap to language bar items ( #10755 )
2020-03-20 10:10:02 +08:00
Lauris BH
43c09134a9
Migrate to go-git/go-git v5.0.0 ( #10735 )
2020-03-17 12:19:58 -04:00
Lauris BH
ca181100ca
FIx hiding of fields in authorization source page ( #10734 )
2020-03-17 10:12:44 +02:00
Lauris BH and Lunny Xiao
fb76136aec
Add notice for awesome-gitea ( #10612 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-03-05 11:55:28 +02:00
Lauris BH and zeripath
6a57364dc8
Delete dependencies when deleting a repository ( #10608 )
...
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-03-05 09:58:02 +02:00
Lauris BH and guillep2k
6420f17fb6
Add migration to fix the old broken merge-bases ( #10604 )
...
* Add migration
* Fix migration
* Update models/migrations/v128.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-03-05 09:18:07 +02:00
Lauris BH
37c3db7be6
Add restricted user filter to LDAP authentication ( #10600 )
...
* Add restricted user filter to LDAP authentification
* Fix unit test cases
2020-03-05 08:30:33 +02:00
3d5d21133c
OAuth2: add Yandex provider ( #8335 ) ( #10564 )
...
* OAuth2: add Yandex provider (#8335 )
* remove changes from locale ru-RU
* fmt modules/auth/oauth2/oauth2.go
Co-Authored-By: 6543 <6543@obermui.de >
* fix fmt
* Update templates/admin/auth/new.tmpl
* fix fmt
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-03-05 00:08:52 +02:00
Lauris BH
3c45cf8494
Add detected file language to code search ( #10256 )
...
Move langauge detection to separate module to be more reusable
Add option to disable vendored file exclusion from file search
Allways show all language stats for search
2020-02-20 16:53:55 -03:00
Lauris BH
e461852e73
Change loading animation frame order ( #10358 )
2020-02-19 22:59:55 +02:00
Lauris BH
a1d796f521
Index code and stats only for non-empty repositories ( #10251 )
...
Fix test and switch to unique queue
Fix MySQL support when deleting old statistics
2020-02-14 13:42:30 +01:00
Lauris BH
ad2642a8aa
Language statistics bar for repositories ( #8037 )
...
* Implementation for calculating language statistics
Impement saving code language statistics to database
Implement rendering langauge stats
Add primary laguage to show in repository list
Implement repository stats indexer queue
Add indexer test
Refactor to use queue module
* Do not timeout for queues
2020-02-11 11:34:17 +02:00
Lauris BH
852aeeffc0
Fix commit between two commits calculation if there is only last commit ( #10225 )
2020-02-11 01:04:43 +02:00
Lauris BH
fe00886bef
Fix followers and following tabs in profile ( #10202 )
2020-02-09 22:18:01 +02:00
Lauris BH
20c513be6e
Show download count info in release list ( #10124 )
...
* Show download count info in release list
* Use go-humanize
2020-02-03 21:50:37 +02:00
Lauris BH
b3d8e2d4f7
Update topics repo count when deleting repository ( #10051 )
...
* Update topics repo count when deleting repository
* Add migration to fix incorrect data
* Optimize to use single update to recalculate values
2020-01-31 08:57:19 +02:00
Lauris BH
59510d6227
Change font to Roboto to support more charsets ( #9803 )
2020-01-25 23:47:42 +02:00
Lauris BH
3185a13ea5
Check if diff actually contains sections when rendering ( #9926 )
2020-01-22 09:20:58 +02:00
Lauris BH
81cfe243f9
Add top author stats to activity page ( #9615 )
2020-01-20 12:07:30 +02:00
Lauris BH
2b8b0f66ed
Add translatable Powered by Gitea text in footer ( #9600 )
2020-01-04 20:27:19 +00:00
Lauris BH
8f8c250ddb
Make consistent links to repository in the Slack/Mattermost notificiations ( #9205 )
2019-11-30 12:23:37 +02:00
Lauris BH
95c3dc856a
Fix max length check and limit in multiple repo forms ( #9148 )
...
* Fix input field max length for release, label and milestone forms
* Add max length for isseu and PR title
2019-11-25 01:06:23 +02:00
Lauris BH
45f219239e
Fix to close opened io resources as soon as not needed ( #8839 )
...
* Fix to close opened io resources as soon as not needed
* Remove unneeded err checks
2019-11-05 20:54:47 +08:00
Lauris BH
05e7715c4b
Update go-org to optimize code ( #8824 )
2019-11-05 16:39:03 +08:00
Lauris BH
a91679c9e3
Add additional periods to activity page ( #8829 )
2019-11-05 00:45:48 -05:00
Lauris BH
86a44f6b48
Fix new user form for non-local users ( #8826 )
2019-11-04 21:10:37 +02:00
Lauris BH
ebcc38188e
Fix commit expand button to not go to commit link ( #8745 )
...
* Fix commit expand button to not go to commit link
* Fix message rendering to have correct HTML in result
* Fix check for empty commit message
* Code optimization
2019-11-01 06:48:30 +02:00
Lauris BH
086a46994a
Rewrite markdown rendering to blackfriday v2 and rewrite orgmode rendering to go-org ( #8560 )
...
* Rewrite markdown rendering to blackfriday v2.0
* Fix style
* Fix go mod with golang 1.13
* Fix blackfriday v2 import
* Inital orgmode renderer migration to go-org
* Vendor go-org dependency
* Ignore errors :/
* Update go-org to latest version
* Update test
* Fix go-org test
* Remove unneeded code
* Fix comments
* Fix markdown test
* Fix blackfriday regression rendering HTML block
2019-10-31 01:06:25 +00:00
Lauris BH
3083522620
Starting v1.11.0 development
2019-10-15 00:02:16 +03:00
Lauris BH
772241b324
Latvian translation for home page ( #8468 )
2019-10-11 22:32:52 +01:00
Lauris BH
28d5347cf3
Singular form for files that has only one line ( #8416 )
2019-10-07 19:38:41 -04:00
Lauris BH
6c0c5c5310
Fix milestone completness calculation when migrating ( #7725 )
2019-08-03 21:38:42 +03:00
Lauris BH
d9d538c8a1
Refactor table width to have more info shown in file list ( #6867 )
...
* Refactor table width to have more info shown in file list
* Remove unnecesary semicolon
* Fix tests for changed html structure
2019-05-06 21:43:40 +03:00
Lauris BH
410301f0ee
Improve localization of git activity stats ( #6848 )
2019-05-04 23:32:37 +03:00
Lauris BH
1fa9662946
Git statistics in Activity tab ( #4724 )
...
* Initial implementation for git statistics in Activity tab
* Create top user by commit count endpoint
* Add UI and update src-d/go-git dependency
* Add coloring
* Fix typo
* Move git activity stats data extraction to git module
* Fix message
* Add git code stats test
2019-05-04 15:39:03 +03:00
Lauris BH
9b9ec7847c
Show scrollbar only when needed ( #6802 )
2019-04-29 23:08:04 +03:00
Lauris BH
fc14344acb
Fix heatmap and repository menu display in Internet Explorer 9+ ( #6117 )
2019-02-19 21:26:27 +02:00
Lauris BH
80098bd752
Fix go-get URL generation ( #5905 )
2019-01-30 21:04:19 +00:00
Lauris BH
fada6968a8
Fix new release creation API to allow empty target ( #5870 )
...
* Fix new release creation API to allow empty target
* Add more test cases
* Update swagger
2019-01-30 11:33:00 -05:00
Lauris BH
cd83c2ca05
Fix topics saving internal error and disable for archived repos ( #5821 )
2019-01-24 12:22:27 +02:00
Lauris BH
386e5312a4
When creating new repository fsck option should be enabled ( #5817 )
2019-01-23 22:26:18 -05:00
Lauris BH
331c9120e8
Request for public keys only if LDAP attribute is set ( #5816 )
...
* Update go-ldap dependency
* Request for public keys only if attribute is set
2019-01-24 01:25:33 +02:00
Lauris BH
075649572d
Add the ability to use multiple labels as filters( #5786 )
2019-01-22 23:10:38 -05:00
Lauris BH
f17524bd0c
Fix heatmap colors for Chrome/Safari ( #5421 )
2018-11-28 18:22:46 +02:00
Lauris BH
08bf443016
Implement git refs API for listing references (branches, tags and other) ( #5354 )
...
* Inital routes to git refs api
* Git refs API implementation
* Update swagger
* Fix copyright
* Make swagger happy add basic test
* Fix test
* Fix test again :)
2018-11-27 16:52:20 -05:00
Lauris BH
e09fe48773
Refactor heatmap to vue component ( #5401 )
2018-11-27 10:36:54 +01:00
Lauris BH
499d132124
Fix dependent issue searching when gitea is run in subpath ( #5392 )
2018-11-25 12:25:55 -05:00
Lauris BH
7278372388
Implement pasting image from clipboard for browsers that supports that ( #5317 )
2018-11-14 20:20:13 -05:00
Lauris BH
7dd31eb8fb
Fix file edit change preview functionality ( #5300 )
2018-11-09 14:05:43 +02:00
Lauris BH
de8f98192b
Fix U2F if gitea is configured in subpath ( #5302 )
2018-11-08 17:46:44 -05:00
Lauris BH
8f8ff5a295
Remove maxlines option for file logger ( #5282 )
2018-11-07 06:48:53 +02:00
Lauris BH
6eff62ae09
Add changelog for 1.5.3 release ( #5227 )
2018-10-30 22:13:14 -04:00
Lauris BH
34695f460a
Update process to include tag vX.Y.0-dev on master branch ( #5091 )
2018-10-16 22:50:11 +02:00
Lauris BH
0cd8cecdf8
Fix dep for actual goth version used in dep lock file ( #5078 )
2018-10-12 23:49:27 +03:00
Lauris BH
c42b366f0e
Fix golint to new URL ( #5079 )
2018-10-12 23:01:41 +03:00
Lauris BH
fb3954f9a5
Fix adding review comment in split view ( #5038 )
2018-10-09 08:46:23 +08:00
Lauris BH
ab5b245182
Disable debug routes unless PPROF is enabled in configuration ( #4995 )
2018-09-29 18:44:06 -04:00
Lauris BH
81702e6ec9
Detect charset and convert non UTF-8 files for display ( #4950 )
...
* Detect charset and convert non UTF-8 files for display
* Refactor and move function to correct module
* Revert unrelated changes
* More unrelated changes
* Duplicate content for small text to have better encoding detection
* Check if original content is valid before duplicating it
2018-09-29 16:33:54 +08:00
Lauris BH
4092b32bad
Fix preview when adding new code review comment ( #4975 )
2018-09-25 14:36:45 +02:00