summaryrefslogtreecommitdiffstats
path: root/web_src
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Add option to change username to the admin panel (#14229)65432021-01-101-0/+2
| | | | | Co-authored-by: Bwko <bouwko@gmail.com> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: zeripath <art27@cantab.net>
* Do not reload page after adding comments in Pull Request reviews (#13877)Jimmy Praet2021-01-081-39/+63
| | | | | | | | | | | | | | | | Fixed #8861 * use ajax on PR review page * handle review comments * extract duplicate code FetchCodeCommentsByLine was initially more or less copied from fetchCodeCommentsByReview. Now they both use a common findCodeComments function instead * use the Engine that was passed into the method Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Various UI fixes (#14239)Cirno the Strongest2021-01-043-3/+21
| | | | | | | | | | | | | | | * Fix #14238 * Fix #14235 * Fix #14237 * Fix #14234 * Use octicon to show private status of repo in admin dashboard * Fix #14232 * Fix #14236
* Kd/fix team avatar aspect ratio (#14200)Kyle D2021-01-031-1/+5
| | | | | * Add org member avatar to text data for fixed width * set min-width to prevent single char lines
* Prevent clipping input text in Chrome (#14179)Kyle D2021-01-011-0/+2
|
* fix branch selector on new issue page (#14194)a10121127962020-12-311-0/+5
| | | | | | | fix #14185 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Improve label and text wrapping (#14113)silverwind2020-12-293-14/+7
| | | | | | | | | | | | | | | | | | | | | * Improve label wrapping - Adjust issue list styles so labels can wrap on the same line as the text. This relies on `display: inline` with the HTML whitespace being used as the separator. - Add global word-break: break-word. This should generally avoid text overflows in various places. * add whitespace to history labels * use overflow-wrap * restore word-break rules * use correct pre * use better selector for middle align Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Team dashboards (#14159)Jimmy Praet2020-12-271-2/+7
|
* Update JS dependencies and webpack (#14118)silverwind2020-12-275-72/+64
| | | | | | | | | | | | | | | | | | * Update JS dependencies - Update all JS dependencies - Adapt webpack config for version 5 - Update to Less 4.0, adapting usage of removed mixin syntax - Enable new ESLint rules and fix discovered issues * update license-webpack-plugin to fix missing licenses * update license-webpack-plugin once more to get webpack into the license output * switch to license-checker-webpack-plugin again for performance * update deps again Co-authored-by: Lauris BH <lauris@nix.lv>
* Improve basic button and label styles (#14119)silverwind2020-12-275-99/+66
| | | | | | | | | | | | | | | | | | | | | | * Improve disabled styles for repo buttons - Simplify disabled styling of label by matching for the disabled attribute. - Raise fomantic disabled opacity from .45 to .55 to for more contrast. - Use CSS vars for basic button styles. * restore clickability on label * color tweaks and remove arc-green style * slightly reduce button size * consolidate vars * also cover active class * slightly more distinct active class * remove useless rule
* Fix UI on edit auth source page (#14137)Norwin2020-12-261-15/+19
| | | | * do not override OAuth URLs with default values when editing an auth source (fixes #12014) * show custom url inputs by default for providers that don't provide an official hosted service
* Disable Fomantic's custom scrollbars (#14109)silverwind2020-12-242-63/+1
| | | | | | We already have custom scrollbars in our own CSS which are superior to Fomantic's so diable them to save a few bytes and prevent interference.
* Fix heatmap total contributions (#14141)Lunny Xiao2020-12-241-1/+10
|
* Search and Diff CSS enhancements (#14050)silverwind2020-12-206-98/+71
| | | | | | | | | | | | | | | | | | | * Search and Diff CSS enhancements - Use flexbox for language stats - Improve labels and code boxes on repo and code search - Use flexbox on diff header and improve suppressed diff text - Add dedicated color for diff expander * more diff tweaks, less vertical padding on header * more minor tweaks * always show fold icon, image diff improvments * remove margin Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Show dropdown with all statuses for commit (#13977)Cirno the Strongest2020-12-203-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Show dropdown with all statuses for commit * Use popups * Remove unnecessary change * Style popup * Use divided list * As per @silverwind * Refactor GetLastCommitStatus * Missing dropdown on repo home and commit page * Fix tests * Make status icon be a part of a link on PR list * Fix missing translation call * Indent fix Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix merge button dropdown triangle alignment (#14041)silverwind2020-12-181-0/+4
| | | | | | | | | https://github.com/go-gitea/gitea/pull/14028 had improved dropdown triangle display for buttons with text but had regressed it for buttons without. Fix this by adding a class to prevent horizontal margin adjustment. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Commit list display tweaks (#14043)silverwind2020-12-182-36/+14
| | | | | | | | | | - Make plain <pre> inherit our monospace fonts, overriding fomantic's css reset which means expanded commit messages now follow the font settings. - Adjust link styling and keyword highlighting in commit message - Consolidate .commit-summary styles to single selector group Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Dashboard search tweaks (#14008)silverwind2020-12-172-7/+9
| | | | | | | - Fix color of inactive pagination parts caused by overreaching CSS selector. - Slightly reduce horizontal padding on list items - Add spacing around pagination and move it outside of <ul>
* Diff and code review refactors and improvements (#13922)silverwind2020-12-174-271/+120
| | | | | | | | | | | | | | | | * Diff CSS refactors and misc tweaks - Simplify Diff CSS styling - Add color variables for diff - Fix vertical centering of inline comment button - Slightly adjust text colors, e.g. in comment header * Code review improvments * selector tweak * fix diff issues, add inactive bg color Co-authored-by: 6543 <6543@obermui.de>