summaryrefslogtreecommitdiffstats
path: root/modules/base
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix random string generator (#384)Denis Denisov2016-12-202-10/+26
| | | | | | | | | | | * Remove unused custom-alphabet feature of random string generator Fix random string generator Random string generator should return error if it fails to read random data via crypto/rand * Fixes variable (un)initialization mixed assign Update test GetRandomString
* serve video files using the HTML5 video tag (#418)Nico Mandery2016-12-201-0/+5
| | | | | | * serve video files using the HTML5 video tag * lint fix: add comment to IsVideoFile
* Don't use custom PBKDF2 function (#382)Lunny Xiao2016-12-151-41/+0
|
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-271-1/+1
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* golint fixed for modules/baseLunny Xiao2016-11-242-7/+16
|
* Normalize files with gofmtThibault Meyer2016-11-111-2/+2
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-102-3/+3
| | | | | | | - 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
* Add test for IsTextFile()Matthias Loibl2016-11-071-3/+7
|
* Make long godoc comment 2 linesMatthias Loibl2016-11-071-1/+2
|
* Add test for IsLetter()Matthias Loibl2016-11-071-1/+15
|
* Add test for Int64sToMap()Matthias Loibl2016-11-071-1/+8
|
* Add tests for StringsToInt64s() & Int64sToStrings()Matthias Loibl2016-11-072-9/+45
|
* Add tests for TruncateString()Matthias Loibl2016-11-071-1/+11
|
* Use TruncateString(sha1,10) in ShortSha and deprecate it.Matthias Loibl2016-11-071-4/+2
|
* Add tests for EllipsisString() and fix bug if param length < 3Matthias Loibl2016-11-072-5/+16
|
* Test AvatarLink and refactor with tests passingMatthias Loibl2016-11-072-13/+32
|
* Use testify/assert for all tests in tool_test.goMatthias Loibl2016-11-071-31/+12
|
* Add unit test for base.FileSize()Matthias Loibl2016-11-071-2/+23
|
* Start to add tests for modules/base/toolMatthias Loibl2016-11-072-7/+85
|
* Fixed links to sdk docsThomas Boerger2016-11-071-1/+1
|
* Set correct doc url for go-sdkThomas Boerger2016-11-071-1/+1
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-2/+2
|
* #3559 fix template errorUnknwon2016-08-311-0/+4
|
* router/repo: code refactoringUnknwon2016-08-301-18/+6
|
* Fix #3321: commit tag shortener (#3418)Thibault Meyer2016-08-111-1/+1
| | | | | | | | | | | | * Fix #3321: commit tag shortener * Check short commit * remove debug * Edit unit tests * Show 10-char short SHA
* #3320 code cleanupUnknwon2016-08-071-14/+11
|
* Add support for federated avatars (#3320)Sandro Santilli2016-08-071-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for federated avatars Fixes #3105 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 #3214 * 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
* Use a gopher as default avatar (rather than the gravatar logo) (#3208)Sandro Santilli2016-06-271-1/+1
| | | | | | | | | | | | Also changes the avatar from a jpeg to a png, to allow for transparent background. The indexed png is also smaller in size. Note that at the moment the default avatar is only used when the user requested a custom avatar and the custom avatar file is not found (should never happen). In the future the default avatar could be used as a default return when by-mail avatar lookups fail too (both gravatar and libravatar support passing a default)
* PDF-Previews in file-lists now working (#3000)Kim Carlbäcker2016-04-261-0/+8
|
* Fix ref comment from commit create empty feedUnknwon2016-03-111-0/+1
|
* #1157 some avatar setting changesUnknwon2016-03-051-0/+9
| | | | - Allow to delete current avatar
* Make markdown as an independent moduleUnknwon2016-02-203-389/+24
|
* Fix inappropriate markdown post process end tag checkUnknwon2016-02-191-2/+2
| | | | | When <code> is nested inside <pre>, the next end tag token would not able to be the same as outer-most start tag. So we only check outer-most start and end tag token to be the same.
* #2650 fix possbility that use email as pusher user nameUnknwon2016-02-171-2/+0
| | | | | | | | | | Remove the possibility of using email as user name when user actually push through combination of email and password with HTTP. Also refactor update action function to replcae tons of arguments with single PushUpdateOptions struct. And define the user who pushes code as pusher, therefore variable names shouldn't be confusing any more.
* Remove cache avatar support and add its testsUnknwon2016-02-141-7/+11
|
* Merge pull request #2406 from bkcsoft/feature/markdown-custom-url-schemeUnknwon2016-02-052-16/+13
|\ | | | | Feature/markdown custom url scheme
| * Not working, but slightly better...Kim "BKC" Carlbäcker2016-01-272-11/+13
| |
| * Custom URL-Schemas for MarkdownKim "BKC" Carlbäcker2016-01-272-9/+4
| |
* | #2556 handle space in image URLUnknwon2016-02-041-1/+4
| |
* | #2229 adjust URL verbose depth for reverse proxy sub-pathUnknwon2016-01-311-1/+3
|/
* Made Sanitizer-setup cleanerKim "BKC" Carlbäcker2016-01-141-1/+10
|
* Checklist-rendering implementedKim "BKC" Carlbäcker2016-01-132-1/+11
|
* #2287 Truncate repository name if too longUnknwon2016-01-111-0/+9
|
* fix markdown autolink errorUnknwon2016-01-091-44/+50
|
* #2185 fall back to use custom chardet libUnknwon2015-12-311-9/+11
|
* #2282 fast detection of utf-8Unknwon2015-12-271-0/+6
|
* #2283 set text/plain for non-binary files in raw modeUnknwon2015-12-251-1/+5
|
* #2282 fix utf-8 recognized as windows-1252Unknwon2015-12-251-1/+3
|
* #2185 use Go sub-repo to detect encodingUnknwon2015-12-131-9/+4
|
* #2161 fix wrong regexpUnknwon2015-12-121-1/+1
|