Commit Graph

67 Commits (0a76d260fa16764ab66bf1623b4cd9e9adfdac27)

Author SHA1 Message Date
Lunny Xiao 659bc2814c go lint fixed for routers/admin
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io ()
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Thibault Meyer 6a81632e36 Fix typo CacheInternal -> CacheInterval ()
Unknwon b85927e488 show Git configs on admin panel
Sandro Santilli 90dd0657b5 Add support for federated avatars ()
* Add support for federated avatars

Fixes 

Removes avatar fetching duplication code
Adds an "Enable Federated Avatar" checkbox in user settings
(defaults to unchecked)

Moves avatar settings all in the same form, making
local and remote avatars mutually exclusive

Renames UploadAvatarForm to AvatarForm
as it's not anymore only for uploading

* Run gofmt on all modified files

* Move Avatar form in its own page

* Add go-libravatar dependency to vendor/ dir

Hopefully helps with accepting the contribution.
See also 

* Revert "Add go-libravatar dependency to vendor/ dir"

This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82.

* Make federated avatar setting a global configuration

Removes the per-user setting

* Move avatar handling back to base tool, disable federated avatar in offline mode

* Format, handle error

* Properly set fallback host

* Use unsupported github.com mirror for importing go-libravatar

* Remove comment showing life exists outside of github.com

... pity, but contribution would not be accepted otherwise

* Use Combo for Get and Post methods over /avatar

* FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR

* Fix persistance of federated avatar lookup checkbox at install time

* Federated Avatars -> Enable Federated Avatars

* Use len(string) == 0 instead of string == ""

* Move import line where it belong

See
https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md

Pity the import url is still the unofficial one, but oh well...

* Save a line (and waste much more expensive time)

* Remove redundant parens

* Remove an empty line

* Remove empty lines

* Reorder lines to make diff smaller

* Remove another newline

Unknwon review got me start a fight against newlines

* Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE

On re-reading the diff I figured what Unknwon meant here:
https://github.com/gogits/gogs/pull/3320/files#r73741106

* Remove newlines that weren't there before my intervention
Unknwon f1b8d52eb3 fix no mail notification when issue is closed/reopened
Unknwon 514382e2eb Rename module: middleware -> context
Unknwon f946040fa9 attempt to fix expected invalid CSRF token
- Remove unused config settings `[picture] service`
Unknwon 8055a0bdac Post work for
Improve test cases, config settings, also show SSH config settings on admin config panel.
Unknwon baaf6046a1 Minor fix for
Josh Frye c27038e392 Test mailer button. Addresses
Unknwon d8a994ef24 Move cron module to independent package
Make it easier to keep track of upstream changes and bug fixes
Unknwon 04be8c0de5 reinitialize all repos from the db
- Update locales
Unknwon efea642d6c add admin op: delete missing repos
Unknwon 932dbccb67 fix import path, fix
Unknwon 3fb1b6a608 drop oauth2 feature support
Unknwon 10de16beb0 typo and README
Unknwon b1696665bd make cron task configurable
Unknwon 6a23252edc able to allow insecure certification of webhook for
Unknwon f15fa9167a cmd: code fix for
- routers/admin: add rewrite update hook operation
- conf/locale: update locale file due to ini behavior changes
- cmd/cert_stub.go: remove useless code
- cmd/fix.go: no longer need fix command(at least now)
fzerorubigd 6643647687
add afunction to rewrite all public keys on admin request
refs 
Unknwon 81a44e4cd0 fix API changes
Unknwon d75013a0e8 fix
Unknwon 2d8c414f8c Fix
Unknwon 7ba9257a7f Add suburl support
Martin van Beurden 0055cbd365 Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
Conflicts:
	modules/setting/setting.go

Conflicts:
	templates/repo/release/list.tmpl
	templates/user/dashboard/dashboard.tmpl

Conflicts:
	routers/repo/setting.go
Unknwon 9bc63bda7d Finish all new admin pages.
Unknwon d2aff9a46a Continue working on new admin pages
Unknwon 8829174574 Finish new admin users pages
Unknwon 1aec1a2dda Finish new admin dashboard
Unknwon 7bbf644dd5 Convert captcha, cache, csrf as middlewares
Unknwon 8dd07c0ddd New UI merge in progress
Unknown 0f907301b7 Fix
Unknown 63cc14062a Paging function for users and repositories
Unknown b2801a2e98 Fix
Unknown 9924e65ca1 In progress of name template name constant
Unknown ad5ec45dd6 Fix
Unknown f147ad619a Basic process manager
Unknown d952b4200c Add corn rask monitor panel
Unknown 302c863cda Fix
Unknown ab13a29cb5 Fix
Unknown 688ec6ecbd Fixed
Unknown 0970d6cc38 Log to different adapter according to level
Unknown 33d32585b1 Add mention, read/unread support of issue tracker
Unknown 7cb5a15c9b Batch of mirror fixes
Unknown 6e3dba2cc5 Clean repo code
Lunny Xiao d8136c9c3c Merge branch 'dev-ldap' into dev
Lunny Xiao 79ea34e70e ldap support
Unknown e7d8fadb08 Add disable gravatar option