Lunny Xiao and zeripath
a67c06ce90
Sanitize credentials in mirror form ( #9975 )
2020-01-25 10:57:42 +00:00
5b17bb8f3d
add css extraction and minification to webpack ( #9944 )
...
This changes the CSS output of webpack to output to the public/css
directory instead of inling CSS in JS. This enables CSS minification and
autoprefixer based on browserslist which would otherwise not be
possible.
The result of this change is two new output files currently:
- public/css/swagger.css
- public/css/gitgraph.css
Co-authored-by: techknowlogick <[email protected] >
2020-01-25 16:41:34 +08:00
GiteaBot
89f7dcb13d
[skip ci] Updated translations via Crowdin
2020-01-25 06:20:28 +00:00
a47cfdf346
Fix crowdin update script ( #9969 )
...
* Fix crowdin update script
* Refine the script to be specific about what it should change
Co-authored-by: Lunny Xiao <[email protected] >
2020-01-25 01:19:35 -05:00
GiteaBot
9d5756989a
[skip ci] Updated translations via Crowdin
2020-01-25 02:49:08 +00:00
f2d12f7b03
Fix pull view when head repository or head branch missed and close related pull requests when delete head repository or head branch ( #9927 )
...
* fix pull view when head repository or head branch missed and close related pull requests when delete branch
* fix pull view broken when head repository deleted
* close pull requests when head repositories deleted
* Add tests for broken pull request head repository or branch
* fix typo
* ignore special error when close pull request
Co-authored-by: Lauris BH <[email protected] >
2020-01-25 10:48:22 +08:00
ee26f042c4
Fix file rename/copy not supported by indexer ( #9965 )
...
Co-authored-by: zeripath <[email protected] >
2020-01-24 18:26:49 -05:00
zeripath and GitHub
700611cc18
Switch to use -f instead of -F for sendmail ( #9961 )
...
Fix #9385
2020-01-24 22:59:39 +00:00
John Olheiser and zeripath
88c212a8a3
Fix image ( #9962 )
...
Signed-off-by: jolheiser <[email protected] >
2020-01-24 21:23:10 +00:00
1f01f53c53
API add/generalize pagination ( #9452 )
...
* paginate results
* fixed deadlock
* prevented breaking change
* updated swagger
* go fmt
* fixed find topic
* go mod tidy
* go mod vendor with go1.13.5
* fixed repo find topics
* fixed unit test
* added Limit method to Engine struct; use engine variable when provided; fixed gitignore
* use ItemsPerPage for default pagesize; fix GetWatchers, getOrgUsersByOrgID and GetStargazers; fix GetAllCommits headers; reverted some changed behaviors
* set Page value on Home route
* improved memory allocations
* fixed response headers
* removed logfiles
* fixed import order
* import order
* improved swagger
* added function to get models.ListOptions from context
* removed pagesize diff on unit test
* fixed imports
* removed unnecessary struct field
* fixed go fmt
* scoped PR
* code improvements
* code improvements
* go mod tidy
* fixed import order
* fixed commit statuses session
* fixed files headers
* fixed headers; added pagination for notifications
* go mod tidy
* go fmt
* removed Private from user search options; added setting.UI.IssuePagingNum as default valeu on repo's issues list
* Apply suggestions from code review
Co-Authored-By: 6543 <[email protected] >
Co-Authored-By: zeripath <[email protected] >
* fixed build error
* CI.restart()
* fixed merge conflicts resolve
* fixed conflicts resolve
* improved FindTrackedTimesOptions.ToOptions() method
* added backwards compatibility on ListReleases request; fixed issue tracked time ToSession
* fixed build error; fixed swagger template
* fixed swagger template
* fixed ListReleases backwards compatibility
* added page to user search route
Co-authored-by: techknowlogick <[email protected] >
Co-authored-by: 6543 <[email protected] >
Co-authored-by: zeripath <[email protected] >
2020-01-24 14:00:29 -05:00
GiteaBot
333401e0fd
[skip ci] Updated translations via Crowdin
2020-01-24 18:03:57 +00:00
dbd1fae618
Fix repo indexer not updating upon push ( #9957 )
...
* Fix check for push on default branch
* restart CI
Co-authored-by: zeripath <[email protected] >
2020-01-24 20:00:49 +02:00
John Olheiser and zeripath
514be723b2
Update migration instructions ( #9955 )
...
Signed-off-by: jolheiser <[email protected] >
2020-01-24 14:23:38 +00:00
guillep2k and zeripath
ad94a94114
Fix activity count in TestRepoActivity ( #9959 )
...
* Fix activity count
* Fix comment
2020-01-24 13:06:40 +00:00
Lunny Xiao and Lauris BH
f6067a8465
Migrate reviews when migrating repository from github ( #9463 )
...
* fix typo
* Migrate reviews when migrating repository from github
* fix lint
* Added test and migration when external user login
* fix test
* fix commented state
* Some improvements
* fix bug when get pull request and ref original author on code comments
* Fix migrated line; Added comment for review
* Don't load all pull requests attributes
* Fix typo
* wrong change copy head
* fix tests
* fix reactions
* Fix test
* fix fmt
* fix review comment reactions
2020-01-23 19:28:15 +02:00
bfdfa9a8b3
move fomantic target, update 'make help' ( #9945 )
...
I'd like to run webpack without fomantic in the prereqs so move it to
the `generate` target.
Co-authored-by: Lunny Xiao <[email protected] >
2020-01-23 00:53:57 -05:00
zeripath and GitHub
c8d7ae1ee3
Make archive prefixing configurable with a global setting ( #9943 )
...
* Allow archive prefix setting
* Update copyright
* Update copyright
2020-01-22 23:46:46 +00:00
GiteaBot
608cd58db6
[skip ci] Updated translations via Crowdin
2020-01-22 21:26:56 +00:00
techknowlogick and GitHub
e6730c9f18
Frontport: Fix regression with tag test running ( #9941 ) ( #9942 )
2020-01-22 16:25:41 -05:00
GiteaBot
2ff2cddd16
[skip ci] Updated translations via Crowdin
2020-01-22 20:57:03 +00:00
9d0930d5c6
Changelog 1.11.0-rc2 ( #9853 ) ( #9940 )
...
Signed-off-by: jolheiser <[email protected] >
Co-authored-by: guillep2k <[email protected] >
Co-authored-by: Lunny Xiao <[email protected] >
Co-authored-by: Antoine GIRARD <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-01-22 15:51:38 -05:00
53f9dbfc7b
Don't convert ellipsis in markdown ( #9905 )
...
* Don't convert ellipsis
Signed-off-by: jolheiser <[email protected] >
* Formatting
Co-Authored-By: zeripath <[email protected] >
Co-authored-by: Lunny Xiao <[email protected] >
Co-authored-by: Antoine GIRARD <[email protected] >
Co-authored-by: zeripath <[email protected] >
2020-01-22 16:30:20 +01:00
4b67989c9d
Remove statements not supported by SQLExpress from migration te… ( #9929 )
...
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: Antoine GIRARD <[email protected] >
2020-01-22 15:09:35 +01:00
eed361638a
Improve stale message ( #9920 )
...
* Improve stale nessage
* Update .github/stale.yml
Co-authored-by: guillep2k <[email protected] >
2020-01-22 12:55:27 +02:00
Lauris BH and GitHub
3185a13ea5
Check if diff actually contains sections when rendering ( #9926 )
2020-01-22 09:20:58 +02:00
c7fe028db4
misc webpack tweaks ( #9924 )
...
- reduce verbosity during build
- use array form `use` to allow easier extension
- disable uninteresting source maps
- disable symlink resolution for a speedup
Co-authored-by: zeripath <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-01-22 14:35:29 +08:00
Lunny Xiao and GitHub
81daf26878
Fix wrong hint when status checking is running on pull request view ( #9886 )
...
* Fix wrong hint when status checking is running on pull request view
* fix lint
* fix test
* fix test
* fix wrong tmpl
* fix import
* rename function name
2020-01-22 11:46:04 +08:00
bobemoe and techknowlogick
cca13ae2ac
add remote ip to the invalid credentials error message ( #9918 )
2020-01-21 17:51:39 -05:00
38a6b11015
Fix RocketChat ( #9908 )
...
* Fix RocketChat??
Signed-off-by: jolheiser <[email protected] >
* Don't send attachment for repo create/delete
Signed-off-by: jolheiser <[email protected] >
* Make fmt
Signed-off-by: jolheiser <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
2020-01-21 21:29:24 +01:00
a315e091e4
Do not try to recreate ldap user if they are already created ( #9900 )
...
* Do not try to recreate ldap user if they are already created
* just remove autoregister
Co-authored-by: techknowlogick <[email protected] >
2020-01-21 18:49:30 +00:00
ad3a9577a8
fix wrong font url on semantic-ui ( #9917 )
...
Co-authored-by: Lauris BH <[email protected] >
2020-01-21 18:07:34 +00:00
silverwind and Lauris BH
2982afe6b4
move jquery and jquery-migrate to npm/webpack ( #9813 )
...
Currently, this needs to be its own chunk because fomantic depends
on jQuery being present. The next step is to move fomantic to webpack
too after which we can combine the index,fomantic and jquery files into
one.
jquery-migrate is still neccessary because our ancient version of Dropzone
seems to break without it. I imagine it can be removed after a Dropzone
upgrade.
2020-01-21 19:32:33 +02:00
GiteaBot
0e8b27afe8
[skip ci] Updated translations via Crowdin
2020-01-21 16:27:57 +00:00
Antoine GIRARD and GitHub
99aad09bd0
Filter locales under 25% ( #9893 )
...
* Create update-locales.sh
* Update .drone.yml
* fix file perms +x
2020-01-21 17:26:17 +01:00
8cb9b2f016
Update queue_redis.go ( #9910 )
...
Co-authored-by: Lunny Xiao <[email protected] >
2020-01-21 12:50:27 +00:00
8da863ed15
Fix missing defer prepareTestEnv(t)() on some tests ( #9906 )
...
Co-authored-by: Lunny Xiao <[email protected] >
Co-authored-by: zeripath <[email protected] >
2020-01-21 12:40:21 +01:00
GiteaBot
3f1c8970ec
[skip ci] Updated translations via Crowdin
2020-01-21 10:21:24 +00:00
2f7a747e4f
Fixed repo link in generated comment for cross repository dependency ( #9863 )
...
* fixed link to issue in issue comments after adding/removing a dependency, before links assumed the issue was in the same repository. also changed the format of the displayed issue since the issue will not necessarily be in the same repo
* based on pr comments, changed to use HTMLURL instead of piecing together the issue url, and added an if statement around the issue link display as a nil protection
* only showing repo name in dependency comment if the issue is from another repo
Co-authored-by: Antoine GIRARD <[email protected] >
2020-01-21 10:18:52 +00:00
5cf241b312
Use npm to manage fomantic and only build needed components ( #9561 )
...
* Use npm to manage fomantic
* Only build needed semantic components
* Fix make
* Don't import fonts from google sites since we have loaded
* [misc] devendor fomantic-ui and rebuild upon src or config changes only
Signed-off-by: Jakob Ackermann <[email protected] >
* Change sort alphabetically of semantic components
* Fix trailing slash
* fix makefile
* Remove dependency to gulp from package.json
* Fix something
* Simplife the makefile
* add missed fomantic compnent
Co-authored-by: Jakob Ackermann <[email protected] >
2020-01-21 13:17:58 +08:00
GiteaBot
e7322a1138
[skip ci] Updated translations via Crowdin
2020-01-20 23:35:43 +00:00
9bc8413534
Add documentation how to render PlantUML in code blocks. ( #9894 )
...
* Add documentation how to render plantuml in code blocks.
* Review comments
* Apply suggestions from code review
Co-Authored-By: guillep2k <[email protected] >
Co-authored-by: guillep2k <[email protected] >
Co-authored-by: zeripath <[email protected] >
2020-01-21 00:34:23 +01:00
d730725e5c
fix broken link ( #9901 )
...
Co-authored-by: Lauris BH <[email protected] >
2020-01-20 15:45:16 -05:00
Lunny Xiao and zeripath
d92781bf94
Refactor repository check and sync functions ( #9854 )
...
Move more general repository functions out of models/repo.go
2020-01-20 20:01:19 +00:00
27c6b8fc07
Add documentation to add Mermaid.js to Gitea ( #9872 )
...
* Add documentation to add mermaid to Gitea
* Update documentation
Co-authored-by: Antoine GIRARD <[email protected] >
2020-01-20 11:14:03 -05:00
GiteaBot
1920e5bcaf
[skip ci] Updated translations via Crowdin
2020-01-20 15:46:46 +00:00
ad1b6d439f
Add support for database schema in PostgreSQL ( #8819 )
...
* Add support for database schema
* Require setting search_path for the db user
* Add schema setting to admin/config.tmpl
* Use a schema different from default for psql tests
* Update postgres scripts to use custom schema
* Update to xorm/core 0.7.3 and xorm/xorm c37aff9b3a
* Fix migration test
Co-authored-by: Antoine GIRARD <[email protected] >
Co-authored-by: Lunny Xiao <[email protected] >
2020-01-20 16:45:14 +01:00
6d6f1d568e
Fix wrong permissions check when issues/prs shared operations ( #9885 )
...
* Fix wrong permissions check when issues/prs shared operations
* move redirect to the last of the function
* fix swagger
Co-authored-by: zeripath <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
2020-01-20 13:00:32 +01:00
Lauris BH and GitHub
81cfe243f9
Add top author stats to activity page ( #9615 )
2020-01-20 12:07:30 +02:00
7d7ab1eeae
Issue/PR Context Popups ( #9822 )
...
* Add data-index attribute to issue anchors
Signed-off-by: jolheiser <[email protected] >
* Init JS
Signed-off-by: jolheiser <[email protected] >
* Add required data to anchor
Signed-off-by: jolheiser <[email protected] >
* Finish popup
Signed-off-by: jolheiser <[email protected] >
* Revert changes to html.go
Signed-off-by: jolheiser <[email protected] >
* Better octicon contexts
Signed-off-by: jolheiser <[email protected] >
* Split out popup function for re-use
Signed-off-by: jolheiser <[email protected] >
* Style changes, test fixes, and cross-reference support
Signed-off-by: jolheiser <[email protected] >
* Prefer em to px
Signed-off-by: jolheiser <[email protected] >
* Move label margin to base CSS
Signed-off-by: jolheiser <[email protected] >
* Move JS to separate file.
Signed-off-by: jolheiser <[email protected] >
* Move JS to features and fix module
Signed-off-by: jolheiser <[email protected] >
* Remove query-string and hash
Co-Authored-By: silverwind <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: Antoine GIRARD <[email protected] >
Co-authored-by: silverwind <[email protected] >
Co-authored-by: Lunny Xiao <[email protected] >
Co-authored-by: zeripath <[email protected] >
2020-01-19 23:39:21 -05:00
c5014a7f2c
Add option to prevent LDAP from deactivating everything on empty search ( #9879 )
...
* Add option to prevent LDAP from deactivating everything on empty search
* Update options/locale/locale_en-US.ini
Co-Authored-By: guillep2k <[email protected] >
Co-authored-by: guillep2k <[email protected] >
Co-authored-by: Lunny Xiao <[email protected] >
2020-01-20 11:47:39 +08:00