aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Dropdown triangle fixes (#14028)silverwind2020-12-172-6/+20
| | | | | | | | | | | * Dropdown triangle fixes Fomantic's CSS assumes the dropdown triangles are fonts but we've recently swapped them for SVG so we need to wrestle a bit with Fomantic to get it to display properly and not cause buttons to resize. Fixes: https://github.com/go-gitea/gitea/issues/14014 * move css and add link
* Fix webhook list styling (#14001)Cirno the Strongest2020-12-161-0/+10
| | | | | * Fix webhook list styling * As per @silverwind
* Fix markdown checkboxes on Blink (#13988)silverwind2020-12-152-2/+8
| | | | | | Blink still requires a vendor prefix for `mask-image` and `mask-size`, so add that here to fix the rendering. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Hide command line instructions when merge form is visible (#13956)Cirno the Strongest2020-12-152-1/+8
| | | | | | | * Hide commandline instructions when merge form is visible * As per @silverwind Co-authored-by: zeripath <art27@cantab.net>
* add thumbnail preview section to issue attachments (#13826)bobemoe2020-12-132-48/+5
| | | | | | | | | | | | | | | | * add thumbnail preview section to attachments * dont show thumbnail if the image is already shown inline * update router to pass the `content` to the attachemnts template * limit attachment preview height to 150px (same as width) * remove unused css (referance removed in https://github.com/go-gitea/gitea/pull/11141/files#diff-9faae32445ed9673de2830c9fc35e93f44487f0a0068202988adaf00a5bac850L66 ) * dont show divider after edit if no attachemnts Co-authored-by: James <inbox.dev@jhodges.co.uk> Co-authored-by: 6543 <6543@obermui.de>
* Markdown task list improvements (#13952)silverwind2020-12-131-6/+50
| | | | | | | | | | | | * Markdown task list improvements - Remove `.ui` class and wrappers to prevent fomantic from messing with it. - Change rendered HTML to match GitHub. - Add custom styling for the checkboxes. * fix unittest Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Diff stat improvements (#13954)silverwind2020-12-121-32/+19
| | | | | | | | | | | | * Diff stat improvements - Combine number to just total number of changes - Add tooltip over stats bar - Increase contrast on file name - Refactor classes and CSS to be more reusable * misc tweaks * make count bold
* Reorganize Chroma styles (#13934)silverwind2020-12-117-751/+189
| | | | This moves the Chroma styles into separate files with base,light and dark variants. Should work exactly as before.
* Better vertical align of buttons in headers (#13932)silverwind2020-12-101-7/+5
| | | | | | | | | | | The previous method used `transform` which formed a CSS stacking context which caused issues with dropdowns appearing behind other elements which made `position: static` necessary but that again caused even more issues. This method achieves the same as before, but without the additional stacking context. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Remove JS globals related to timetracking and due date (#13921)silverwind2020-12-101-24/+29
| | | Refactor to avoid these globals. Should work exactly as before.
* Add pull request manually merge instruction (#13840)Lunny Xiao2020-12-104-5/+17
| | | | | | | | | | | | | | | | | | | | | | | * add pull request command line instructions * Add pull request manually merge instuction * Fix styles * Fix lint * Move inline style to class file * add space between merge button and hint text * Add sentence end charcter * Change the language file * adjust secondary bg * further adjustment Co-authored-by: silverwind <me@silverwind.io>
* Replace more icons with SVG, repo search tweaks (#13860)silverwind2020-12-094-6/+29
| | | | | | | | | | | | | | | | * Replace more icons with SVG - Replace remaining icons on admin page with SVG - Fix vertical menu background on arc-green - Minor improvments to frontpage repo search - More icon replacements here and there * fix integration * whitespace tweak * add comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Markdown: Enable wrapping in code blocks and a color tweak (#13894)silverwind2020-12-092-6/+6
| | | | | | | | - Enable wrapping of long lines in code blocks like already done in code view. - Slightly lighten the background of code blocks on default theme - Darken the background on inline code and kbd elements on arc-green Co-authored-by: 6543 <6543@obermui.de>
* Fix frontpage avatars (#13853)silverwind2020-12-092-11/+12
| | | | | | | | | | The frontpage uses a rather strange method to obtain the commit's avatar which I've overlooked earlier. I don't exactly understand how it works but this change fixes the wrong default avatars by using the function that was in previous use. Also introduced a few constants for size an size increase factor. Fixes: https://github.com/go-gitea/gitea/issues/13844
* Fix Quote Reply button on review diff (#13830)Jimmy Praet2020-12-081-15/+15
| | | | | | | * Fix Quote Reply #13762 * requestAnimationFrame() instead of setTimeout() Co-authored-by: 6543 <6543@obermui.de>
* Repo avatar fixes (#13891)silverwind2020-12-073-35/+28
| | | | | | | | | - Split up avatar rendering helpers for performance - Fix showing repo SVG icon when no avatar is set - Make repo SVG and avatar same size at 32px - Fix fork line by adding vertical flexbox on repo title Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix issue participants (#13893)silverwind2020-12-071-7/+0
| | | | | | | | | | | | | | | * Fix issue participants * use list class for margin * remove wrapper and don't render on zero participants * keep whitespace * remove participants class * add some margin for timetracking stuff Co-authored-by: 6543 <6543@obermui.de>
* Fix mermaid chart size (#13863)silverwind2020-12-061-1/+2
| | | | | | | | | | * Fix mermaid chart size Seems like one of the recent updates to the module unexpectedly shrunk these charts, bring them back up to full width. * don't stretch to full width Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Font weight tweaks (#13854)silverwind2020-12-056-12/+8
| | | | | | | | Font weight 500 is not discernible from 400 on some fonts/operating systems so push them back to previous value 600 except for fomantic-ui elements which stay at 500. Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: 6543 <6543@obermui.de>
* Improve migrate page and add card CSS (#13751)silverwind2020-12-055-35/+56
| | | | | | | - Use original gitea logo on migrate page - Add card styles and map colors to css vars - Tweak migrate page, adding hover effect to cards Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>