silverwind
abb4c2c2de
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 <art27@cantab.net >
Co-authored-by: techknowlogick <matti@mdranta.net >
2020-01-22 14:35:29 +08:00
Lunny Xiao
d309096507
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
bdd3c2d013
add remote ip to the invalid credentials error message ( #9918 )
2020-01-21 17:51:39 -05:00
John Olheiser
60e7eb5f4f
Fix RocketChat ( #9908 )
...
* Fix RocketChat??
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Don't send attachment for repo create/delete
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-21 21:29:24 +01:00
zeripath
93487f1c92
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 <matti@mdranta.net >
2020-01-21 18:49:30 +00:00
Lunny Xiao
c71ad36f7c
fix wrong font url on semantic-ui ( #9917 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-21 18:07:34 +00:00
silverwind
f15671d4c9
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
dda9d17c0a
[skip ci] Updated translations via Crowdin
2020-01-21 16:27:57 +00:00
Antoine GIRARD
abb6a35797
Filter locales under 25% ( #9893 )
...
* Create update-locales.sh
* Update .drone.yml
* fix file perms +x
2020-01-21 17:26:17 +01:00
zeripath
b968bc7392
Update queue_redis.go ( #9910 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-01-21 12:50:27 +00:00
guillep2k
4c9180de31
Fix missing defer prepareTestEnv(t)() on some tests ( #9906 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2020-01-21 12:40:21 +01:00
GiteaBot
46f88f0e6a
[skip ci] Updated translations via Crowdin
2020-01-21 10:21:24 +00:00
Brad Albright
1a285e4a14
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 <sapk@users.noreply.github.com >
2020-01-21 10:18:52 +00:00
Lunny Xiao
398c4b6f38
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 <das7pad@outlook.com >
* 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 <das7pad@outlook.com >
2020-01-21 13:17:58 +08:00
GiteaBot
58dc8f9a2a
[skip ci] Updated translations via Crowdin
2020-01-20 23:35:43 +00:00
David Svantesson
cd82c591a9
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 <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: zeripath <art27@cantab.net >
2020-01-21 00:34:23 +01:00
zeripath
356f3b7393
fix broken link ( #9901 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-20 15:45:16 -05:00
Lunny Xiao
1fe8928251
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
zeripath
640ddf1ce8
Add documentation to add Mermaid.js to Gitea ( #9872 )
...
* Add documentation to add mermaid to Gitea
* Update documentation
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-01-20 11:14:03 -05:00
GiteaBot
b08174ad1b
[skip ci] Updated translations via Crowdin
2020-01-20 15:46:46 +00:00
guillep2k
6df2f20a62
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 <sapk@users.noreply.github.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-01-20 16:45:14 +01:00
Lunny Xiao
474d4e0e2a
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 <art27@cantab.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-20 13:00:32 +01:00
Lauris BH
ceafddf8b2
Add top author stats to activity page ( #9615 )
2020-01-20 12:07:30 +02:00
John Olheiser
dc3c5b6cc4
Issue/PR Context Popups ( #9822 )
...
* Add data-index attribute to issue anchors
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Init JS
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add required data to anchor
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Finish popup
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Revert changes to html.go
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Better octicon contexts
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Split out popup function for re-use
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Style changes, test fixes, and cross-reference support
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Prefer em to px
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Move label margin to base CSS
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Move JS to separate file.
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Move JS to features and fix module
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Remove query-string and hash
Co-Authored-By: silverwind <me@silverwind.io >
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2020-01-19 23:39:21 -05:00
zeripath
3c83e7d5b6
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 <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-01-20 11:47:39 +08:00
zeripath
7f09c97ff4
Give the stdout on temp_repo error ( #9871 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-01-20 09:32:47 +08:00
zeripath
e942e33546
Check user != nil before checking values ( #9881 )
...
* Check user != nil before checking values
* Handle autoAdmin
2020-01-19 18:49:55 -05:00
guillep2k
c21427461c
Add missing columns to repository and user ( #9861 )
2020-01-19 22:27:44 +00:00
zeripath
6407c74e8e
Allow hyphen in language name ( #9873 )
2020-01-19 21:36:00 +00:00
zeripath
690c2eeed7
Ensure that 2fa is checked on reset-password ( #9857 )
...
* Ensure that 2fa is checked on reset-password
* Apply suggestions from code review
Co-Authored-By: Lauris BH <lauris@nix.lv >
* Properly manage scratch_code regeneration
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-19 20:17:36 +00:00
zeripath
614ec3ab6a
Ensure that 2fa is checked on reset-password ( #9857 )
...
* Ensure that 2fa is checked on reset-password
* Apply suggestions from code review
Co-Authored-By: Lauris BH <lauris@nix.lv >
* Properly manage scratch_code regeneration
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-19 20:17:12 +00:00
zeripath
a4ae02719a
Make CertFile and KeyFile relative to CustomPath ( #9868 )
...
* Make CertFile and KeyFile relative to CustomPath
The current code will absolute CertFile and KeyFile against the current working directory. This is quite unexpected for users. This code makes relative paths absolute against the CustomPath.
Fix #4196
* Improve error reporting when reading certificates
* Apply suggestions from code review
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-01-19 19:07:44 +00:00
GiteaBot
0182fb5971
[skip ci] Updated translations via Crowdin
2020-01-19 09:19:29 +00:00
techknowlogick
66e76442b0
run translations pipeline on arm server ( #9865 )
2020-01-19 10:17:57 +01:00
GiteaBot
07d42e2f92
[skip ci] Updated translations via Crowdin
2020-01-19 06:44:47 +00:00
Lunny Xiao
96b33ee5df
Fix issues/pulls dependencies problems ( #9842 )
...
* Fix issues/pulls dependencies problems
* fix swagger and api param name
* fix js
2020-01-19 14:43:38 +08:00
David Svantesson
4fd284e4ae
Change won't sign information text to black. ( #9843 )
...
* Change won't sign information text to black.
* icon and text same color
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-01-18 12:30:35 +01:00
David Svantesson
65744a05d6
Explicitly refer to PR in squash-merge commit message in case of external tracker ( #9844 )
...
* Explicitly refer to PR in squash-merge commit message in case of external tracker
* documentation
Co-authored-by: zeripath <art27@cantab.net >
2020-01-18 12:40:43 +08:00
6543
10ad368c5d
[Docs] add usefull info to REQUIRE_SIGNIN_VIEW ( #9848 )
2020-01-17 18:34:55 -05:00
6543
07a5e2e518
Changelog 1.10.3 ( #9832 ) ( #9850 )
2020-01-17 17:03:07 -05:00
GiteaBot
de92c1b3bc
[skip ci] Updated translations via Crowdin
2020-01-17 18:35:33 +00:00
Lunny Xiao
42771f85e6
Improve notification pager ( #9821 )
...
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-01-17 19:31:26 +01:00
6543
1dadca85fe
fix ( #9836 )
2020-01-17 22:37:46 +08:00
Lunny Xiao
dfbf91c97e
Fix download file wrong content-type ( #9825 )
...
* Fix download file wrong content-type
* change the error text to be more precise
* fix test
2020-01-17 20:16:05 +08:00
GiteaBot
155dbaae65
[skip ci] Updated translations via Crowdin
2020-01-17 10:24:56 +00:00
Lunny Xiao
ea2a88d328
Fix wrong identify poster on a migrated pull request when submi… ( #9827 )
2020-01-17 11:23:46 +01:00
David Svantesson
f2e6acf35d
Add setting to set default and global disabled repository units. ( #8788 )
...
* Add possibility to global disable repo units.
* Add Default Repo Unit app.ini setting.
* Hide units
* Hide disabled repo units
* Minor fixes
* Indicate disabled units in team settings.
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2020-01-17 09:34:37 +02:00
6543
f90f1d5730
Add "Update Branch" button to Pull Requests ( #9784 )
...
* add Divergence
* add Update Button
* first working version
* re-use code
* split raw merge commands and db-change functions (notify, cache, ...)
* use rawMerge (remove redundant code)
* own function to get Diverging of PRs
* use FlashError
* correct Error Msg
* hook is triggerd ... so remove comment
* add "branch2" to "user2/repo1" because it unit-test "TestPullView_ReviewerMissed" use it but dont exist jet :/
* move GetPerm to IsUserAllowedToUpdate
* add Flash Success MSG
* imprufe code
- remove useless js chage
* fix-lint
* TEST: add PullRequest ID:5
Repo: user2/repo1
Base: branch1
Head: pr-to-update
* correct comments
* make PR5 outdated
* fix Tests
* WIP: add pull update test
* update revs
* update locales
* working TEST
* update UI
* misspell
* change style
* add 1s delay so rev exist
* move row up (before merge row)
* fix lint nit
* UI remove divider
* Update style
* nits
* do it right
* introduce IsSameRepo
* remove useless check
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-17 08:03:40 +02:00
Lunny Xiao
c2363c76fa
fix dump non-exist log directory ( #9818 )
2020-01-16 21:56:51 -05:00
silverwind
eab024ab56
remove promise-polyfill ( #9812 )
...
promises are polyfilled by babel, it's no longer needed.
2020-01-16 22:52:07 +00:00