351 Commits (367894adc820964135095e50c1ae6d6a0b2b0310)

Author SHA1 Message Date
Ethan Koenig 4c89a9c33c Bug fixes and tests for modules/base (#442)
Also address other TODOs
8 years ago
Denis Denisov 380e32e129 Fix random string generator (#384)
* 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
8 years ago
Nico Mandery 6ade13e86e serve video files using the HTML5 video tag (#418)
* serve video files using the HTML5 video tag

* lint fix: add comment to IsVideoFile
8 years ago
Lunny Xiao d771e978a1 Don't use custom PBKDF2 function (#382) 8 years ago
Lunny Xiao 94da472717 Golint fixed for modules/setting (#262)
* golint fixed for modules/setting

* typo fixed and renamed UNIXSOCKET to UnixSocket
8 years ago
Lunny Xiao fb3bb69ec6 golint fixed for modules/base 8 years ago
Thibault Meyer ddee4c8b58
Normalize files with gofmt 8 years ago
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io (#135)
- 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
8 years ago
Matthias Loibl e74868a850
Add test for IsTextFile() 8 years ago
Matthias Loibl 95d4cd9292
Make long godoc comment 2 lines 8 years ago
Matthias Loibl 2bb188ae79
Add test for IsLetter() 8 years ago
Matthias Loibl 4235fff9ee
Add test for Int64sToMap() 8 years ago
Matthias Loibl d417aedcfa
Add tests for StringsToInt64s() & Int64sToStrings() 8 years ago
Matthias Loibl b00d82d679
Add tests for TruncateString() 8 years ago
Matthias Loibl 86c32f2706
Use TruncateString(sha1,10) in ShortSha and deprecate it. 8 years ago
Matthias Loibl 030ba2894f
Add tests for EllipsisString() and fix bug if param length < 3 8 years ago
Matthias Loibl f81711f40d
Test AvatarLink and refactor with tests passing 8 years ago
Matthias Loibl 70fb1cf9d1
Use testify/assert for all tests in tool_test.go 8 years ago
Matthias Loibl d874a9bf6b
Add unit test for base.FileSize() 8 years ago
Matthias Loibl 11c9160cd3
Start to add tests for modules/base/tool 8 years ago
Thomas Boerger 77f9c7e571
Fixed links to sdk docs 8 years ago
Thomas Boerger 6bf9910975
Set correct doc url for go-sdk 8 years ago
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs (#37) 8 years ago
Unknwon dadd35b636 #3559 fix template error 8 years ago
Unknwon 780cc2d110 router/repo: code refactoring 8 years ago
Thibault Meyer 7eafe3213f Fix #3321: commit tag shortener (#3418)
* Fix #3321: commit tag shortener

* Check short commit

* remove debug

* Edit unit tests

* Show 10-char short SHA
8 years ago
Unknwon 99385db0c4 #3320 code cleanup 8 years ago
Sandro Santilli 90dd0657b5 Add support for federated avatars (#3320)
* 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
8 years ago
Sandro Santilli 8a248696e9 Use a gopher as default avatar (rather than the gravatar logo) (#3208)
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)
8 years ago
Kim Carlbäcker 3df8eb60e3 PDF-Previews in file-lists now working (#3000) 8 years ago
Unknwon 5267dce210 Fix ref comment from commit create empty feed 8 years ago
Unknwon a2f13eae55 #1157 some avatar setting changes
- Allow to delete current avatar
8 years ago
Unknwon d5a3021a7d Make markdown as an independent module 8 years ago
Unknwon 341da3cea7 Fix inappropriate markdown post process end tag check
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.
8 years ago
Unknwon 338af89d56 #2650 fix possbility that use email as pusher user name
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.
8 years ago
Unknwon 58e004f7da Remove cache avatar support and add its tests 8 years ago
Unknwon 4e96a4a62b Merge pull request #2406 from bkcsoft/feature/markdown-custom-url-scheme
Feature/markdown custom url scheme
9 years ago
Unknwon 8e40f86d2c #2556 handle space in image URL 9 years ago
Unknwon 4848620594 #2229 adjust URL verbose depth for reverse proxy sub-path 9 years ago
Kim "BKC" Carlbäcker 1ab8a60d73 Not working, but slightly better... 9 years ago
Kim "BKC" Carlbäcker 3a9fd81f59 Custom URL-Schemas for Markdown 9 years ago
Kim "BKC" Carlbäcker a1a4f1103c Made Sanitizer-setup cleaner 9 years ago
Kim "BKC" Carlbäcker 8e09e03127 Checklist-rendering implemented 9 years ago
Unknwon f43cc90841 #2287 Truncate repository name if too long 9 years ago
Unknwon cc8c67ff29 fix markdown autolink error 9 years ago
Unknwon 4993ab1a76 #2185 fall back to use custom chardet lib 9 years ago
Unknwon 44637f03cc #2282 fast detection of utf-8 9 years ago
Unknwon 93f03707a7 #2283 set text/plain for non-binary files in raw mode 9 years ago
Unknwon 85af36332b #2282 fix utf-8 recognized as windows-1252 9 years ago
Unknwon 95f9c85bcc #2185 use Go sub-repo to detect encoding 9 years ago
Unknwon 7e88420bc6 #2161 fix wrong regexp 9 years ago
Unknwon 5911fc3512 #2161 No issue linking in commits when issue number in brackets 9 years ago
Unknwon e538ff2770 fix #1829 and fix #890 9 years ago
Unknwon ba92f4687e minor fix markdown post process 9 years ago
Unknwon 968edb3e44 more link fix 9 years ago
Unknwon 7f9598141b fix #2020 9 years ago
Unknwon f12832c61e fix possible panic 9 years ago
Unknwon 126228d146 HTML render fix 9 years ago
Unknwon 9b6c835715 fix #1873 9 years ago
Unknwon 1a901433e2 minor fix for #1949 9 years ago
Howl ca5678da32 Safely detect urlPrefix in the format /:owner/:repo 9 years ago
Howl 85c58eba90 Fix bad issue links in non-readme markdown files 9 years ago
Unknwon 1d57f0d64f Show custom avatars in commits 9 years ago
Unknwon 3b62a0fe0e fix #1572 fix file histrory paging issue 9 years ago
Unknwon 18c841050b fix 1540 and experimental SSH server support 9 years ago
Unknwon 54ca0b2f09 #1433 images with links in Markdown
- #1904 minor fix on image link
9 years ago
Unknwon 0af035c37e #1078 not show bin when rename a file 9 years ago
Unknwon 022820103d #1657 allow forcing all private repos 9 years ago
Unknwon aff49b1c9e unified API error response 9 years ago
Sergio Benitez 7acbcf9ddd Commit messages now rendered with line breaks and prefix spacing. 9 years ago
Unknwon 2729eb998c #1646 and other minor fixes 9 years ago
Unknwon c8d92fad30 #1595 pushing new branch will rereference issues in previous branch 9 years ago
Hongcai Deng e4d4662074 add regexp to restrict `<code class=""></code>` 9 years ago
Hongcai Deng 357c002c03 add allow attribute `class` to `<code>` 9 years ago
Unknwon 645d4d0c5b #1594 Collaborative Repositories missing suburl on Dashboard 9 years ago
Unknwon 85f34ba538 new user profile settings UI
Signed-off-by: Unknwon <u@gogs.io>
9 years ago
Unknwon 8af094967f #1377 add rename repo action 9 years ago
Unknwon 90a6553c37 #1009 Config option for preserving hard line breaks 9 years ago
Unknwon 55ddf225bb webhook APIs 9 years ago
Unknwon a7686e8749 #1203 bundle jquery with gogs 9 years ago
Unknwon a329bbc215 new org dashboard issues 9 years ago
Unknwon 6c2536b89c fix timezone 9 years ago
Unknwon a5b09b30d0 print time to debug 9 years ago
Unknwon 390027496c #1500 use UTC for TimeSince 9 years ago
无闻 ce8864c69a Merge pull request #1475 from donbowman/master
Fix race condition on ssh key delete, and revert re-revert of hard line break
9 years ago
Unknwon 133b19d0c5 finish view comments on issue page 9 years ago
Don Bowman 1cb46ede1a Merge branch 'master' of https://github.com/gogits/gogs
Conflicts:
	routers/repo/download.go
9 years ago
Don Bowman 9e6bd31d76 fixes for binary 9 years ago
Unknwon 922f3f3062 finish create issue with labels 9 years ago
Unknwon 9db4acc62e improve fork process 9 years ago
Fernando San Julián c5be40decb new markdown styles 9 years ago
Vladimir Vissoultchev 2cc050e21e Fix UTF-8 in upper-case, use ansi charset for all non UTF-8 encodings 9 years ago
Vladimir Vissoultchev 167265d533 Allow file and directory names to contain percent character 9 years ago
Vladimir Vissoultchev 53bcf373c1 Allow explicit charset/codepage setting for ANSI source files to alleviate issue #1088 9 years ago
Don Bowman 81e6173356 remove blackfriday.EXTENSION_HARD_LINE_BREAK from options. 9 years ago
Unknwon caf7618ea6 #1098 Hide gravatar email field if gravatar is disabled (or offline mode) 9 years ago
Unknwon ab6b288141 #637 #738 fix markdown: render special links
- code format for #1020
9 years ago
无闻 750d82b8e2 Merge pull request #1020 from jcracknell/tag-exclude-nethtml
Exclude HTML tags from Markdown post-processing
9 years ago
Unknwon b72e75e522 #1024: OFFLINE_MODE Still Uses Gravatar 9 years ago
James Cracknell 41cc43208e Mousewheel paste 9 years ago