MarcUs7i
b59e943aa6
Set timeout to explicit 0 in gogs.js ( #7890 )
...
## Describe the pull request
A simple fix in public/js/gogs.js making bug upload not result in a
timeout (added just one line)
Link to the issue: closes https://github.com/gogs/gogs/issues/6149
## Test plan
- Set the max_size of `attachment` to a high number
```toml
[release.attachment]
ENABLED = true
ALLOWED_TYPES = */*
MAX_SIZE = 512
MAX_FILES = 20
```
- Upload a file to releases

It doesn't randomly timeout!
2025-01-01 19:41:24 -05:00
ᴜɴᴋɴᴡᴏɴ
3af91d7cfd
auth: decouple types and functions from db ( #6320 )
2020-09-20 11:19:02 +08:00
alpencrossi
3e055e329c
repo: disable public access option when using external wiki and issue tracker ( #6081 )
2020-04-09 04:13:50 +08:00
ᴜɴᴋɴᴡᴏɴ
af0cfe112b
web: rename CSRF header ( #6027 )
2020-03-28 19:17:15 +08:00
ᴜɴᴋɴᴡᴏɴ
344b784d69
js: fix jQuery error
2020-02-29 23:52:35 +08:00
guan
40214ef109
public: fix jquery3.x syntax error ( #5951 )
...
$.post().success -> $.post().done
2020-02-28 22:52:26 +08:00
Michael Li
4d83fd4238
Use go-bindata to embed `public` and `templates` files into binary ( #5920 )
...
* fixed private repositories are hidden in the organization's view
* use go-bindata integrate public and templates files to gogs binary
* optimize Dockerfile don't COPY public and templates files
* use kevinburke's go-bindata to generate assets code
* reset develepment as default run mode in configure file
* optimize generated assets code relayout and help function
* fixed code format
* Update conf/app.ini
* assets: add LICENSE headers
* Some housekeeping
* assets/public: simplify code logic
* assets/templates: simplify code logic
* cmd/web: more concise variable names
* Minor changes
* Add custom public and templates support back
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
2020-02-17 22:48:24 +08:00
Unknwon
19ae04da66
public/plugins: upgrade highlight.js 9.16.2 to 9.18.0
2020-01-31 23:33:47 +08:00
Unknwon
2e00f00ab0
public/plugins: upgrade Dropzone 4.2.0 to 5.5.0
2020-01-31 23:27:56 +08:00
Unknwon
54067d105b
public/js: upgrade clipboard 1.5.9 to 2.0.4
2020-01-31 21:21:30 +08:00
Johannes
7a0fbd0eb1
public: makes CodeMirror mode by filename lookups case-insensitive ( #5857 )
...
* updated the highlight.js plugin
* added some explicit mappings for syntax highlighting
* public: makes CodeMirror mode by filename extension lookup case-insensitive
2019-11-08 15:23:08 -08:00
haixunlu
311df9c521
auth: add new authentication source: GitHub, including GitHub Enterprise ( #5340 )
...
* Add new Authentication Source: GitHub, including GitHub Enterprise.
* Add vendor dependencies.
2018-12-18 15:49:30 -05:00
Unknwon
f545faa06d
templates: make state changing routes to POST method ( #5541 )
...
- pkg/context: add ParamsUser to unify the injection process
2018-12-06 22:58:02 -05:00
Unknwon
f6bdefe3f3
public: minor fix for PR #5276
2018-06-26 21:16:29 +08:00
Unknwon
dfd494c113
repo: minor improve for PR #5219 and support UTF-8 byte count
2018-06-11 21:06:24 +08:00
Sergey Dryabzhinsky
57897cc8c2
repo: update repository description field to contain more than 256 symbols ( #5219 )
...
* Update repository description field to contain more than 256 symbols
- update repository model - description field now is `TEXT` and limited by 4000 symbols
- new migration
- add description to html forms - repo creation and repo settings
- add translation for description
* Update for description field, new features
- add autosize (height) for description textarea, new plugin
- set max description length to 512 symbols
- update locales
* Fix migration - typo in var
* Update repo description behaviour
- add textarea autosize for /repo/create
- add symbols counter under description testarea (create/edit)
* Fix function definition - it a var
* Revert ru-RU locale
* Update by review
- Use type `varchar(512)` in migration
- Remove unused files from autosize plugin
* Fix migration - new project paths
* Fixes after review 2
- copyright year
- format includes
- use switch instead of multi-if
* Remove unused `default:` option.
2018-06-11 20:34:26 +08:00
Unknwon
a1d411a018
ldap: minor fix for PR #4398
2017-05-29 23:18:34 -04:00
Unknwon
91cd350b63
repo/editor: fix wrong context for subdirectory ( #4368 )
2017-04-07 21:44:55 -04:00
Unknwon
6ea9642d64
js: remove Preview, Full Screen and Side-by-side buttons for repository file editing ( #4402 )
2017-04-07 18:46:03 -04:00
Unknwon
3c0de17133
js: set cursor to the end of autofocus input string
2017-04-06 17:00:12 -04:00
Hassan Amouhzi
864761c2d0
js: use jQuery .find() ( #4343 )
2017-03-28 17:36:48 -04:00
Unknwon
8196430f47
repo: allow private repository to have public wiki or issues
...
Relates to #649 and #2157
2017-03-24 16:25:40 -04:00
Unknwon
66c1e6b0e8
user/settings: complete repositories panel ( #4312 )
2017-03-23 14:28:31 -04:00
Unknwon
71753cdd46
templates/label: another minor style improve
2017-03-22 16:20:31 -04:00
Unknwon
2807274e2d
repo/webhook: able to retrigger delivery history ( #2187 )
2017-03-19 17:44:46 -04:00
Unknwon
2d4dc544be
install: able to enable console mode ( #3119 )
2017-03-17 00:16:46 -04:00
Unknwon
d591cb0dfb
dashboard/feeds: able to load more history ( #2511 )
2017-03-16 22:05:53 -04:00
Unknwon
86c7f45383
js: minor fix for #4294
2017-03-15 16:38:41 -04:00
Brian Paulson
50b36a732c
ui: added Select class to ui.dropdown menus to prevent label changing ( #4294 )
2017-03-15 16:35:13 -04:00
Unknwon
452551fa23
webhook: highlight delivery response on click
...
This decreases page load time for webhook edit page.
2017-02-24 12:22:22 -05:00
Unknwon
6072e9a52c
repo: add protect branch whitelist ( #4177 )
...
Add options to add users and teams to whitelist of a protected
branch. This is only available for organizational repositories.
2017-02-23 18:25:12 -05:00
Unknwon
934734a85a
diff: able to highlight line with hashtag URL
2017-02-20 16:16:32 -05:00
Unknwon
21d538a738
install: able to enable builtin SSH server ( #3773 )
2017-02-18 12:47:35 -05:00
Unknwon
266586e866
repo: assignee can be anyone who has read access ( #3739 )
2017-02-17 22:17:27 -05:00
Unknwon
7e09d210ba
Initial version of protected branches ( #776 )
...
- Able to restrict force push and deletion
- Able to restrict direct push
2017-02-17 15:10:50 -05:00
dlob
5179063e71
Added mssql support. ( #3772 )
2017-02-13 20:50:00 -05:00
Joel-Liang
d674cb7f20
Fix wrong anchors for non-latin headings ( #3981 )
...
Change Javascript regular expression to match non-latin characters
The regex comes from here: http://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters#comment22322603_150078
And this patch should fixed these two issues: #3919 #3843
2016-12-26 22:37:20 -05:00
无闻
cd9b926af7
Support Editorconfig on web editor ( #3512 )
2016-08-30 16:47:22 -07:00
Andrey Nering
9ac46fb983
Support Editorconfig on web editor
2016-08-30 20:30:47 -03:00
Unknwon
c0c1a4b01b
js: fix comment issue status button title change
2016-08-30 14:37:46 -07:00
Unknwon
0114fdcba4
Web editor: improve delete file process
2016-08-28 01:41:44 -07:00
Unknwon
f8a48ffaad
Web editor: improve code quality
2016-08-24 21:35:03 -07:00
Unknwon
7f7216be6e
Code quality improvement on JS
2016-08-17 22:44:07 -07:00
Unknwon
ec332cf903
Minor naming improvement
2016-08-17 16:10:07 -07:00
Unknwon
a00c932bbc
General code quality improvement
2016-08-16 23:06:38 -07:00
Unknwon
4a19fd6441
Web editor: temporarily disable upload and quick fix for edit and new
...
Try to merge into develop branch ASAP, then continue minor fixes afterwards.
2016-08-15 01:42:20 -07:00
Unknwon
15845cb287
Code clean up for new config options
2016-08-14 23:52:24 -07:00
Richard Mahn
d0a0239bac
Squashed commit of the following:
...
commit 0afcb843d7
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 17:13:29 2016 -0600
Removed Upload stats as the upload table is just a temporary table
commit 7ecd73ff55
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 08:42:41 2016 -0600
Fix for CodeMirror mode
commit c29b9ab531
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 08:03:33 2016 -0600
Made tabbing in editor use spaces
commit 23af384c53
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:56:46 2016 -0600
Fix for data-url
commit cfb8a97591
Merge: 7fc8a89
991ce42
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:42:53 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
public/js/gogs.js
commit 7fc8a89cb4
Merge: fd3d86c
c03d040
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:40:00 2016 -0600
Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file
commit fd3d86ca6b
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:39:44 2016 -0600
Code cleanup
commit c03d0401c1
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 29 15:38:23 2016 -0600
Code cleanup
commit 98e1206ccf
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 18:36:01 2016 -0600
Code cleanup and fixes
commit c2895dc742
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 18:24:04 2016 -0600
Fixes per Unknwon's requests
commit 6aa7e46b21
Merge: 889e9fa
ad7ea88
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 17:13:43 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
modules/setting/setting.go
commit 889e9faf1b
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:09:18 2016 -0600
Fix in gogs.js
commit 47603edf22
Merge: bb57912
cf85e9e
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:07:36 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
public/js/gogs.js
commit bb57912558
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:02:18 2016 -0600
Update for using CodeMirror mode addon
commit d10d128c51
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Tue Jul 19 16:12:57 2016 -0600
Update for Edit
commit 34a3498202
Merge: fa1b752
1c7dcdd
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Tue Jul 19 11:52:02 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
commit fa1b752be2
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 15 18:35:42 2016 -0600
Feature for editing, creating, uploading and deleting files
2016-08-14 23:52:24 -07:00
Rory McNamara
c8b45ecc27
Render the Code view on the server (minus syntax highlighting) ( #2942 )
...
* render code view server side
* remove debug print
* fix multiline selection bug
* change string concatenation to bytes.Buffer for efficiency
* Fix newlines added by previous for hljs
* fix selection highlighting
* make css changes in .less
2016-08-09 12:35:20 -07:00
Unknwon
99385db0c4
#3320 code cleanup
2016-08-07 11:01:47 -07:00