aboutsummaryrefslogtreecommitdiffstats
path: root/public
Commit message (Collapse)AuthorAgeFilesLines
* Removes extra space from the body and footer to prevent scrolling on a page ↵Liam Cottam2018-04-162-3/+2
| | | | | that fits into the viewport (#3792) Signed-off-by: Liam Cottam <killtheidols@hotmail.co.uk>
* Add topic support (#3711)Lunny Xiao2018-04-113-1/+82
| | | | | | | | | | | | | | | | | | | | | | | | * add topic models and unit tests * fix comments * fix comment * add the UI to show or add topics for a repo * show topics on repositories list * fix test * don't show manage topics link when no permission * use green basic as topic label * fix topic label color * remove trace content * remove debug function
* Don't warn users about *every* dirty form (#3707)Gerben2018-03-231-2/+5
| | | | | | | | | | | The choice regarding which forms should or should not trigger a warning is subjective. I tried to be consistent and not warn about forms that: - run an action, rather than edit data: search, send an email. - delete data: a warning about losing data would be confusing Note that forms on sign-in pages were already ignored (using a selector, rather than an explicit class on the form element). Fixes #3698.
* Add label descriptions (#3662)Lauris BH2018-03-133-1/+13
| | | | | | * Add label descriptions * Add default descriptions to label template
* Added issue search via api (#3612)kolaente2018-03-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Started implementing issue api search * Implemented issue search via api * Added search to swagger.json * Removed todo * fmt * Added comment to generate swagger json via "generate-swagger" * Simplified search * fmt * Removed unessecary comment * Removed unessecary declaration of the issues-variable * Removed unessecary comment * Removed unessecary comment * Added explanation keyword * Simplified check for empty keyword * corrected check if keyword is empty
* Make columns in split view of the same width (#3619)Morgan Bazalgette2018-03-072-32/+45
| | | | as well as fix indentation and add 1px border to line counter of the new code on the right.
* Add Attachment API (#3478)Jonas Franz2018-03-061-1/+387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
* Use Segoe UI for Latin characters before falling back to YaHei (#3616)Mahmoud Al-Qudsi2018-03-042-2/+2
| | | | | | | | | | | | | * Use Segoe UI for Latin characters before falling back to YaHei This fixes issues with character rendering on hidpi displays and other aliasing/hinting issues, as Segoe UI has been painstakingly hinted by typographers for Microsoft while YaHei has not. See #3237 for more details. Closes #3237 * Include transformed LESS -> CSS in commit
* Rework special link parsing in the post-processing of markup (#3354)Morgan Bazalgette2018-02-273-68/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Get rid of autolink * autolink in markdown * Replace email addresses with mailto links * better handling of links * Remove autolink.js from footer * Refactor entire html.go * fix some bugs * Make tests green, move what we can to html_internal_test, various other changes to processor logic * Make markdown tests work again This is just a description to allow me to force push in order to restart the drone build. * Fix failing markdown tests in routers/api/v1/misc * Add license headers, log errors, future-proof <body> * fix formatting
* Fix checklist padding (#3460)modmew82018-02-062-15/+19
| | | | | | | | | | * Changed style of checklist in issuelist. * Adjusted padding for progressbar, updated index.css. * Fixed another wrong tab to spaces. Signed-off-by: modmew8 <modmew8@gmail.com>
* Emoji Autocomplete (#3433)modmew82018-02-035-17/+32
| | | | | | | | | | | | * Implemented emoji autocomplete. * Changed emoji access url. * Reverted vendor css to default, moved all style changes to _tribute.less * Made no-results overwriteable, added missing autocomplete to edit issue field. Signed-off-by: modmew8 <modmew8@gmail.com>
* Fix Delete repository message (#3260)muhfaris2018-01-151-1/+4
|
* Add Pull Request merge options - Ignore white-space for conflict checking, ↵Lauris BH2018-01-051-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rebase, Squash merge (#3188) * Pull request options migration and UI in settings * Add ignore whitespace functionality * Fix settings if pull requests are disabled * Fix migration transaction * Merge with Rebase functionality * UI changes and related functionality for pull request merging button * Implement squash functionality * Fix rebase merging * Fix pull request merge tests * Add squash and rebase tests * Fix API method to reuse default message functions * Some refactoring and small fixes * Remove more hardcoded values from tests * Remove unneeded check from API method * Fix variable name and comment typo * Fix reset commit count after PR merge
* Fix swagger docs (#3300)Ethan Koenig2018-01-041-155/+6
|
* Added progressbar for issues (#1146). (#3171)modmew82018-01-032-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | * Added progressbar for issues (#1146). * Updated the generated index.css. Signed-off-by: modmew8 <modmew8@gmail.com> * Removed stored progress percentage and changed it to css calc. Also added the issue task progress to the user/dashboard/issues. Signed-off-by: modmew8 <modmew8@gmail.com> * Removed unnecessary blanks. Signed-off-by: modmew8 <modmew8@gmail.com> * Formatted the files correctly, fmt-check terminates now without errors. Signed-off-by: modmew8 <modmew8@gmail.com> * Removed variables, made computing the tasks on demand with precompiled regexp. Signed-off-by: modmew8 <modmew8@gmail.com>
* Responsive view (#2750)Morgan Bazalgette2017-12-308-131/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Viewport meta tag * responsive: dashboard * responsive: issues page * responsive: Explore page * responsive: navbar, and some navbar css refactoring * responsive: button for collapsing navbar in mobile view * Mark the hamburger button as active when pressed * better homepage for responsive views * Bring back jump class in navbar The class was necessary, because this way the dropdown doesn't assume the contents of the selected item. * make repository homes responsive * Make file view page responsive * Make forms look good on responsive views * make commits and commit diff view responsive * issues and PRs * responsive wiki * Don't place auto-init far off the page * Minor changes to amend broken stuff minor improvements - make login/sign up in navbar stackable - make navbar in explore and sign in not stackable Change selected class in TestPullCompare Fix typo that happened when rebasing fix dashboard on org view improve profile UI Use clearing on file diff to fix broken UI caused by floating elements remove unresolved merge conflict, and | Sanitize Fix repo home not loading
* Improve suppressed diff boxes (#3193)silverwind2017-12-143-2/+5
|
* Mention completion for issue editor. (#3136)harry2017-12-113-0/+43
| | | | | | | | | | * new issue mention * Mention completion on new issue and view issue page. * Code format. * Require tribute in pull request page.
* Rework button styles on repo and commit page (#3104)silverwind2017-12-072-6/+8
|
* Delete a user's public key via admin api (closes #3014) (#3059)Vlad Temian2017-12-061-5/+196
| | | | | | | | | | | | | | | | * Delete a user's public key via admin api * Test admin ssh endpoint for creating a new ssh key * Adapt public ssh key test to also test the delete operation * Test that deleting a missing key will result in a 404 * Test that a normal user can't delete another user's ssh key * Make DeletePublicKey return err * Update swagger doc
* Fix reaction possition when there is attachments (#3099)Lauris BH2017-12-061-1/+7
|
* fix button heights on commits page (#3091)silverwind2017-12-052-6/+13
|
* Add reactions to issues/PR and comments (#2856)Lauris BH2017-12-043-2/+88
|
* Remove box-shadow from UI, fix dashboard issue (#3065)silverwind2017-12-033-1/+12
|
* Convert tabs to spaces in .less files (#3064)silverwind2017-12-0212-1357/+1357
|
* Fix misalignment issue in repo header (#3062)silverwind2017-12-022-3/+3
|
* Dashboard: Fix line height problem in issue titles (#3054)silverwind2017-12-022-2/+1
|
* Expandable commit bodies (#2980)Sondre Nilsen2017-11-303-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial working state of expandable commit bodies * Fix all commits having showing button for multiline commits * Refactor checking multiline messages method * Force newlines with <br> in commit body * Show multiple lines in the list view of repositories * Fixed proper newlines and minor refactor Use <pre> instead of <p>, this is so we can use \n instead of having to manually place <br> into the HTML. Makes it easier to display commit bodies. * Fix commit list messages jumping around * Fix indentation in view_list.tmpl * Use vertical-align: baseline instead of top * Refactor commit button toggle function * Remove RenderCommitBodyLink function * Add comments * Add newline at the end of _repository.less * Fix long commit bodies not properly wrapping inside <pre> * Don't split on double newlines * Show the commit body in commit view * Update stylesheets * Add/fix comments and run make fmt * Fix spaces not being tabs
* Add fingerprint to ssh key endpoints. (#3009)Vlad Temian2017-11-281-1/+5
| | | | | | * Add fingerprint to ssh key endpoints. * Update gitea sdk vendor
* Update gitgraph.js to fix blurry commit graph on HiDPI screens (#2957)Michael Kuhn2017-11-232-4/+21
|
* Add dingtalk webhook (#2777)Lunny Xiao2017-11-211-0/+0
| | | | | | | | | | | | * add dingtalk webhook type * add vendor * some fixes * fix name check * fix name check & improvment
* Fix comment API paths (#2813)Ethan Koenig2017-11-201-85/+186
|
* Fix API status code for hook creation (#2814)Ethan Koenig2017-11-201-1/+1
| | | | | | * Fix API status code for hook creation * Named constants for response statuses
* Page parameter for repo search API (#2915)Ethan Koenig2017-11-151-3/+9
|
* Update swagger documentation (#2899)Ethan Koenig2017-11-131-1184/+5297
| | | | | | | | | | | * Update swagger documentation Add docs for missing endpoints Add documentation for request parameters Make parameter naming consistent Fix response documentation * Restore delete comments
* Fix adding a new authentication source after selecting OAuth (#2889)Shaun2017-11-121-1/+1
|
* Fix attachments icon size on zoom in/out (#2853)Jakub2017-11-052-2/+2
| | | | | | * fix attachments icon size on zoom in/out * make public/css/index.css
* Use custom search for each filter type in dashboard (#2343)Morlinest2017-11-011-12/+52
| | | | | | | | | | * Do custom search for each filter in repo-search * Fix search url * Simplify code * Remove loader and reset counts when changing filter
* Add Safari pinned tab icon (#2799)Bastian Rinsche2017-10-281-0/+1
| | | | | Closes #2753 Signed-off-by: Bastian Rinsche <bastian.rinsche@gmail.com>
* Code/repo search (#2582)Ethan Koenig2017-10-272-3/+18
| | | Indexed search of repository contents (for default branch only)
* Add wrapping to long diff lines (#2789)Lauris BH2017-10-273-1717/+1721
| | | | | | | | | | * Add wrapping to long diff lines to fix #1827 * Fix css class and make changes to source (less) files * Fix wrong space indentation * Fix indentation inconsistencies and remove very old WebKit workaround
* Add search mode option to /api/repo/search (#2756)Morlinest2017-10-271-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | * Add repo type option to /api/repo/search * Add tests and fix result of collaborative filter in specific condition * Fix/optimize search & tests * Improve integration tests * Fix lint errors * Fix unit tests * Change and improve internal implementation of repo search * Use NonexistentID * Make search api more general * Change mirror and fork search behaviour * Fix tests & typo in comment
* Add branch overiew page (#2108)Bwko2017-10-264-25/+68
| | | | | | | | * Add branch overiew page * fix changed method name on sub menu * remove unused code
* Fix emojify image URL (#2769)Lauris BH2017-10-231-1/+1
|
* Fix activity css conflit with semantic ui (#2758)Lauris BH2017-10-212-2/+2
|
* Move swagger-ui under /api/v1 (#2746)Antoine GIRARD2017-10-219-174/+130
| | | | | | | | | | | | * Move swagger interface under /api/v1 * Update swagger-ui * Add /api/swagger and prepare for multiple api version * Update test links * Fix footer link
* Fix IE unsupported javascript construction (#2736)Lauris BH2017-10-191-2/+2
|
* Render plain text README.txt monospaced (#2721)Jonas Franz2017-10-172-1/+5
| | | Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Create new branch from branch selection dropdown (#2130)Lauris BH2017-10-153-13/+198
| | | | | | | | | | * Create new branch from branch selection dropdown and rewrite it to VueJS * Make updateLocalCopyToCommit as not exported * Move branch name validation to model * Fix possible race condition
* Add Activity page to repository (#2674)Lauris BH2017-10-153-2/+45
| | | | | | | | | | | | | | * Add Activity page to repository * Add request data for activity * Add issue data for activity * Add user unit right checks * Add releases to activity * Log repository unit loading error