Commit Graph

450 Commits (14d8cb781911ebb5a44fbcf02738e8e02f492e04)

Author SHA1 Message Date
Norwin f4ce10c6a3
Minor UI fixes ()
* disable fork button when not signed in

* fix commit body styling on PR page

* fixup! fix commit body styling on PR page
Norwin 5eafd117a6
docs: swagger show models by default ()
John Olheiser f1da46622e
Signed-off-by: jolheiser <john.olheiser@gmail.com> ()
a1012112796 83cf1a894e
Create tag on ui ()
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>
a1012112796 5de76965a1
add preview support for wiki editor when disable simpleMDE ()
Signed-off-by: a1012112796 <1012112796@qq.com>
KN4CK3R 904a26c57c
Add Image Diff options in Pull Request Diff view ()
Implemented GitHub style image diff
Mike L 4172b1955f
Fix dashboard UI bugs and more ()
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  due to flex children not respecting properties like `overflow: hidden;`, and removes a block of dead style code
- Follow-up to , 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
6543 8f4d55452a
use gogs.ico to create a better svg for migration page ()
a1012112796 5d2b7ba639
Add EasyMDE support for release content editor ()
* Add easyMDE(simpleMDE) support for release content editor

Signed-off-by: a1012112796 <1012112796@qq.com>
a1012112796 1ecdc55aff
fix link account ui ()
Signed-off-by: a1012112796 <1012112796@qq.com>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Kyle D a50ca28355
Only for direct descendants of items ()
gordon-- 343c756357
Heatmap days clickable ()
* 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>
Norwin 91424fff3d
stopwatch notif: check if timetracking is enabled ()
fixes 
a1012112796 39aa11f9c0
fix preview status switch button on wiki editr ()
Signed-off-by: a1012112796 <1012112796@qq.com>
Norwin d38ae597e1
Add UI to delete tracked times ()
Co-authored-by: 6543 <6543@obermui.de>
zeripath 092299891f
Move the stopwatches to the eventsource stream ()
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>
zeripath 60ef2a7c67
Add fullTextSearch to dropdowns by default ()
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 

Signed-off-by: Andrew Thornton <art27@cantab.net>
Kyle D d475d53c41
Fix svg spacing ()
* Add right margin to icons in menu items

* Reduce padding on user profile submenu to fit in one line by default (english)
vnkmpf 51fb0463a3
Fix truncated organization names ()
* 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.
vnkmpf 441f3f0f20
Make fileheader sticky in diffs ()
* Make fileheader sticky 

* 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>
a1012112796 ac701637b4
Add dismiss review feature ()
* 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>
Romain c69c01d2b6
Sort / Move project boards ()
Sort Project board ()
vnkmpf 3a4801d195
Truncated organisations name ()
- truncate to max length 40
- add CSS ellipsis
Andrew Bezold bc05ddc0eb
Redirect on changed user and org name ()
* 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>
Jimmy Praet 271a011ba1
Fix close/reopen with comment ()
it previously only worked for the simple textarea, and not for the rich textarea
zeripath 20f980dcc2
ensure timeout error is shown on u2f timeout ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
6543 81c833d92d
Add support to migrate from gogs ()
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>
Norwin b5570d3e68
Display current stopwatch in navbar ()
* 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
KN4CK3R 56a8929605
Comment - Reference in new issue ()
* 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>
Roberto Santalla ef85bf84ee
Project: show referenced PRs in issue cards ()
Co-authored-by: Lauris BH <lauris@nix.lv>
Kyle D 41e19b93a2
Align dropdown right ()
Lauris BH ca63a9d3f1
Add edit, delete and reaction support to code review comments on issue page ()
6543 3091600cc8
KanBan: be able to set default board ()
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
Norwin a21adf92ec
restrict query selector to edit form ()
Co-authored-by: Lauris BH <lauris@nix.lv>
6543 6b3b6f1833
Add option to change username to the admin panel ()
Co-authored-by: Bwko <bouwko@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: zeripath <art27@cantab.net>
Jimmy Praet bcb7f35221
Do not reload page after adding comments in Pull Request reviews ()
Fixed  
* 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>
Cirno the Strongest 21fbee1503
Various UI fixes ()
* Fix 

* Fix 

* Fix 

* Fix 

* Use octicon to show private status of repo in admin dashboard

* Fix 

* Fix 
Kyle D 4092c044e0
Kd/fix team avatar aspect ratio ()
* Add org member avatar to text data for fixed width

* set min-width to prevent single char lines
Kyle D 0f99edf123
Prevent clipping input text in Chrome ()
a1012112796 b003116fca
fix branch selector on new issue page ()
fix 

Signed-off-by: a1012112796 <1012112796@qq.com>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
silverwind 8e5aea88c7
Improve label and text wrapping ()
* 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>
Jimmy Praet 40274b4a93
Team dashboards ()
silverwind 50a2dd52ba
Update JS dependencies and webpack ()
* 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>
silverwind fe403725f4
Improve basic button and label styles ()
* 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
Norwin 24ecdbdb0d
Fix UI on edit auth source page ()
* do not override OAuth URLs with default values when editing an auth source (fixes )
* show custom url inputs by default for providers that don't provide an official hosted service
silverwind 04ae0f2f3f
Disable Fomantic's custom scrollbars ()
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.
Lunny Xiao 2c8d302eb1
Fix heatmap total contributions ()
silverwind b4f8da533e
Search and Diff CSS enhancements ()
* 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>
Cirno the Strongest f3c4baa84b
Show dropdown with all statuses for commit ()
* 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>
silverwind 4aabbacdfe
Fix merge button dropdown triangle alignment ()
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>