aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
Commit message (Collapse)AuthorAgeFilesLines
* Diff box fixes (#15214)silverwind2021-03-312-16/+8
| | | | | | | | | | | | | - Fix misaligned "Show Outdated" buttons via flexbox - Add hover effect to "Show Outdated" buttons - Remove overreaching margin from selector .diff-file-box and handle cases individually. Fixes: https://github.com/go-gitea/gitea/issues/15097 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Remove vendored copy of fomantic-dropdown (#15193)silverwind2021-03-302-4301/+0
| | | | | | | | | | | | | | | jQuery 3.6.0 seems to have broke the dropdown focus handling (focus would get stuck on the dropdown) in this module which we have vendored on top of fomantic for accessibility improvements. Either downgrading jQuery to 3.5.1 or removing the vendor copy seems to resolve the issue and I opted for removing the copy because I think such changes should be done upstream and the removal also lightens the JS by 155kB before minify/gzip. Fixes: https://github.com/go-gitea/gitea/issues/15172 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix webhook delivery and issue checklist for arc-green (#15195)silverwind2021-03-302-5/+5
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add Tabular Diff for CSV files (#14661)KN4CK3R2021-03-293-25/+72
| | | | | | | | | | | | | | | | | | | | | | | Implements request #14320 The rendering of CSV files does match the diff style. * Moved CSV logic into base package. * Added method to create a tabular diff. * Added CSV compare context. * Added CSV diff template. * Use new table style in CSV markup. * Added file size limit for CSV rendering. * Display CSV parser errors in diff. * Lazy read single file. * Lazy read rows for full diff. * Added unit tests for various CSV changes.
* Fix margin between avatars on org pages (#15194)silverwind2021-03-291-0/+1
| | | Fixes: https://github.com/go-gitea/gitea/issues/15191
* Implement delete release attachments and update release attachments' name ↵Lunny Xiao2021-03-232-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | (#14130) * Implement delete release attachment * Add attachments on release edit page * Fix bug * Finish del release attachments * Fix frontend lint * Fix tests * Support edit release attachments * Added tests * Remove the unnecessary parameter isCreate from UpdateReleaseOrCreatReleaseFromTag * Rename UpdateReleaseOrCreatReleaseFromTag to UpdateRelease * Fix middle align
* Update JS dependencies (#15033)silverwind2021-03-227-45/+36
| | | | | | | | | | | | | * Update JS dependencies - Update all JS dependencies - For octicons, rename trashcan to trash - For svgo, migrate to v2 api, output seems to have slightly changed but icons look the same - For stylelint, update config, fix custom property duplicates - For monaco, drop legacy Edge support - For eslint, enable new rules, fix new issues - For less-loader, remove deprecated import syntax * update svgo usage in generate-images and rebuild logo.svg with it
* Fix markdown rendering in milestone content (#15056)silverwind2021-03-201-0/+1
| | | | | | - Add missing markdown class for rendered markdown. - Increase font size of milestone name in list. Fixes: https://github.com/go-gitea/gitea/issues/15046
* Fix UI elements getting underline like links (#15038)Mike L2021-03-191-1/+1
|
* Fix CJK fonts again and misc. font issues (#14575)Mike L2021-03-195-39/+186
| | | | | | | | | | | | | | | | | | | | | * Push system-ui further down the stack, fix #12966 * Fix Firefox showing U+300x in emoji font and more * Revert emoji font and fix long-standing Safari bug * Exclude Safari emoji fix above 1.25x zoom * Minor correctness/typo fix, affects only legacy platforms * Emoji consistency for monospace (e.g. EasyMDE) * Override paradigm; macOS/iOS-specific metric fix * Move whitespace fix to font-face * Handle metric calculation errors with Firefox * One last workaround for aliased fonts in Linux
* Fix hover color for last row of repo file list (#15018)Mike L2021-03-181-0/+10
|
* Create new issue from code (#14863)Roger Luo2021-03-172-0/+76
| | | | | | | | | | | | | | * Feat: add reference in new issue with permalink menu for code view. * Fix: recover index.js file. * Add comments and redo ci. * Fix code convention * Fix code. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de>
* Fix repo page language stat span color (#14993)Mike L2021-03-141-4/+1
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Re-enable listing of forks when logged out (#14992)Mike L2021-03-142-4/+16
| | | | | * Re-enable listing of forks when logged out * Further improvements on repo button logic
* Fix Anchor jumping with escaped query components (#14969)zeripath2021-03-121-1/+1
| | | | | | Fix #14968 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix excluding more than two labels on issues list (#14962)zeripath2021-03-131-18/+12
| | | | | | | | | | | | | | | | | | | | * Fix excluding more than two labels on issues list Fix #14840 Signed-off-by: Andrew Thornton <art27@cantab.net> * refactor DRY * fix multiple-label filter on milestone issuelist * Apply suggestions from code review Co-authored-by: jaqra <48099350+jaqra@users.noreply.github.com> * Update web_src/js/index.js Co-authored-by: Norwin Roosen <git@nroo.de> Co-authored-by: jaqra <48099350+jaqra@users.noreply.github.com>
* Minor UI fixes (#14926)Norwin2021-03-081-1/+6
| | | | | | | * disable fork button when not signed in * fix commit body styling on PR page * fixup! fix commit body styling on PR page
* docs: swagger show models by default (#14880)Norwin2021-03-071-0/+1
|
* Signed-off-by: jolheiser <john.olheiser@gmail.com> (#14898)John Olheiser2021-03-051-4/+5
|
* Create tag on ui (#13467)a10121127962021-02-281-1/+2
| | | | | | | | | | Support create single tag directly support create tag with message from create release ui Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* add preview support for wiki editor when disable simpleMDE (#14757)a10121127962021-02-281-2/+22
| | | | Signed-off-by: a1012112796 <1012112796@qq.com>
* Add Image Diff options in Pull Request Diff view (#14450)KN4CK3R2021-02-274-0/+314
| | | Implemented GitHub style image diff
* Fix dashboard UI bugs and more (#14767)Mike L2021-02-253-25/+5
| | | | | | | | This PR fixes a few UI bugs I spontaneously encountered: - Fixes emojis in repo titles getting head-cut and tail-cut in dashboard feed due to introduction of 1.25 em emojis at 1 em line-height, by simply using the original 1 3/7 em value of `semantic.css` - Fixes regression (too long repo names should be capped to 70%) in #13828 due to flex children not respecting properties like `overflow: hidden;`, and removes a block of dead style code - Follow-up to #14761, removes extraneous code for top navbar and correct right margin for Font Awesome - Fixes color emphasis inversion in arc-green theme for top right buttons (edit, delete) on commit view boxes
* use gogs.ico to create a better svg for migration page (#14795)65432021-02-251-1/+60
|
* Add EasyMDE support for release content editor (#14744)a10121127962021-02-221-0/+15
| | | | | * Add easyMDE(simpleMDE) support for release content editor Signed-off-by: a1012112796 <1012112796@qq.com>
* fix link account ui (#14763)a10121127962021-02-211-0/+30
| | | | | Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Only for direct descendants of items (#14761)Kyle D2021-02-211-1/+1
|
* Heatmap days clickable (#13935)gordon--2021-02-201-1/+20
| | | | | | | | | | | | | | | | * Heatmap days clickable * Error handling * Unselect filter * better dayclick handler * made linter happy * clickable heatmap for profiles Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* stopwatch notif: check if timetracking is enabled (#14750)Norwin2021-02-201-2/+5
| | | fixes #14435
* fix preview status switch button on wiki editr (#14742)a10121127962021-02-191-1/+1
| | | Signed-off-by: a1012112796 <1012112796@qq.com>
* Add UI to delete tracked times (#14100)Norwin2021-02-191-1/+15
| | | Co-authored-by: 6543 <6543@obermui.de>
* Move the stopwatches to the eventsource stream (#14588)zeripath2021-02-192-1/+57
| | | | | | | | | Move the stopwatches to the eventsource stream Use the /user/events eventsource to update the stopwatches instead of polling /api/v1/user/stopwatches if the eventsource is enabled. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add fullTextSearch to dropdowns by default (#14694)zeripath2021-02-162-4/+11
| | | | | | | | | | | | | | | This PR adds `fullTextSearch: 'exact'` to most dropdown invocations meaning that if there is a search box for the dropdown it will automatically do a fullTextSearch looking for the provided fragment instead of starting at the beginning We should consider changing other places that use `fullTextSearch: true` to `'exact'` because these will be using a fuzzy-textual search that doesn't necessarily return the expected results. Fix #14689 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix svg spacing (#14638)Kyle D2021-02-141-0/+9
| | | | | * Add right margin to icons in menu items * Reduce padding on user profile submenu to fit in one line by default (english)
* Fix truncated organization names (#14655)vnkmpf2021-02-123-11/+17
| | | | | | | * Fix truncated organization names Previous ellipsis implementation hid vertical overflow - image + descent line of letters. Organization visibility in select on dashboard was not always visible. This commit extracts classes which don't make collisions with other items on page.
* Make fileheader sticky in diffs (#14616)vnkmpf2021-02-113-1/+55
| | | | | | | | | | | | | | | | | | | | | * Make fileheader sticky #12552 * Remove sticky filenames when width is 480px or less On mobile phone sticky filename is hidden due to the combination of many possible widths and lengths. * Fix text color for .markdown-info * Fix visual of sticky diff box on 480px or less - Hide arrow for select buttons. - Fix changes, additions and deletions. With flexbox they look very broken. This commit hides some words to, so the result is: "123 changed files 987 additions 456 deletions" - center text in buttons Co-authored-by: zeripath <art27@cantab.net>
* Add dismiss review feature (#12674)a10121127962021-02-111-0/+7
| | | | | | | | | | | | | | | * Add dismiss review feature refs: https://github.blog/2016-10-12-dismissing-reviews-on-pull-requests/ https://developer.github.com/v3/pulls/reviews/#dismiss-a-review-for-a-pull-request * change modal ui and error message * Add unDismissReview api Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Sort / Move project boards (#14634)Romain2021-02-111-0/+29
| | | Sort Project board (#14533)
* Truncated organisations name #14583 (#14615)vnkmpf2021-02-092-0/+11
| | | | | - truncate to max length 40 - add CSS ellipsis
* Redirect on changed user and org name (#11649)Andrew Bezold2021-01-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add redirect for user * Add redirect for orgs * Add user redirect test * Appease linter * Add comment to DeleteUserRedirect function * Fix locale changes * Fix GetUserByParams * Fix orgAssignment * Remove debug logging * Add redirect prompt * Dont Export DeleteUserRedirect & only use it within a session * Unexport newUserRedirect * cleanup * Fix & Dedub API code * Format Template * Add Migration & rm dublicat * Refactor: unexport newRepoRedirect() & rm dedub del exec * if this fails we'll need to re-rename the user directory Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix close/reopen with comment (#14436)Jimmy Praet2021-01-231-1/+1
| | | it previously only worked for the simple textarea, and not for the rich textarea
* ensure timeout error is shown on u2f timeout (#14417)zeripath2021-01-221-1/+1
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add support to migrate from gogs (#14342)65432021-01-211-0/+1
| | | | | | | | | | | | | Add support to migrate gogs: * issues * comments * labels * milestones * wiki Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Andrew Thornton <art27@cantab.net>
* Display current stopwatch in navbar (#14122)Norwin2021-01-212-0/+93
| | | | | | | | | | | | | | | | | * add notification about running stopwatch to header * serialize seconds, duration in stopwatches api * ajax update stopwatch i should get my testenv working locally... * new variant: hover dialog * noscript compatibility * js: live-update stopwatch time * js live update robustness
* Comment - Reference in new issue (#14366)KN4CK3R2021-01-211-0/+47
| | | | | | | | | | | | | | | | | | * Implemented "Reference in new issue" * Fixed menu style on "pulls/x/files" because "button" has a style. * Added context menu for PR file comments. * Use only a single modal for every comment. * Use current repository as default. Added search filter. * Added suggested changes. * Fixed assignment. Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Project: show referenced PRs in issue cards (#14183)Roberto Santalla2021-01-201-1/+1
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Align dropdown right (#14406)Kyle D2021-01-201-1/+1
|
* Add edit, delete and reaction support to code review comments on issue page ↵Lauris BH2021-01-171-0/+31
| | | | (#14339)
* KanBan: be able to set default board (#14147)65432021-01-151-4/+19
| | | | Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net>
* restrict query selector to edit form (#14307)Norwin2021-01-151-2/+2
| | | Co-authored-by: Lauris BH <lauris@nix.lv>