Commit Graph

3071 Commits (7979c3654eb91adce4fd9717d9ff891496a56ff3)

Author SHA1 Message Date
KN4CK3R 8e5a37c310
Fixed unknown translation key. ()
zeripath 7a484c0788
Hide mirror passwords on repo settings page ()
This PR simply hides mirror passwords from being displayed on the repo settings page.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind 37205039fc
Replace clipboard.js with async clipboard api ()
Use async clipboard api [1] over this dependency, saving around 10kB
bundle size before minify while delivering the same functionality.

The issue comment button works but does not have a popup indication. We
could add some toast-style notifications in the future to fix that but I
think it's out of scope of this PR.

[1] https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText
Kyle D 2a998048ef
Remove New PR button in PRs ()
Jimmy Praet c9480c5f60
Add links to toggle WIP status ()
* Add links to toggle PR WIP status

* Allow PR author to toggle WIP status

* refactors and restyling, remove links from translations

Co-authored-by: Norwin <noerw@users.noreply.github.com>
Co-authored-by: silverwind <me@silverwind.io>
Kyle D c61b460038
Fix extra curly brace breaking release compare ()
a1012112796 d1dbbf43b0
not show link to migration on repo reate page when it was disabled ()
* not show link to migration on repo reate page when it was disabled

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

* fix lint

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
fnetX (aka fralix) d5f20104da
Remove branch URL before IssueRefURL ()
Revert change for account / org dashboard where IssueRefURLs do not
contain the full repo URL (case RepoLink is not true)

Co-authored-by: Norwin <noerw@users.noreply.github.com>

Remove trailing whitespace from PR review
Viktor Yakovchuk 5285a3e70e
Add possibility to make branch in branch page ()
* Add possibility to make branch in branch page ()

Add possibility to make branch in branch page
in the area next to Download and Delete buttons.
It is a more intuitive place in the interface
compared to what is already there.

Signed-off-by: Viktor Yakovchuk <viktor@yakovchuk.net>

* Update templates/repo/branch/list.tmpl

Co-authored-by: zeripath <art27@cantab.net>
KN4CK3R 6021fbfe7a
Make tasklist checkboxes clickable ()
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
silverwind b4d10598c9
Remove fomantic accordion module ()
Replace it with native <detail> element. Did some slight restyling on
the release downloads, new behaviour should be exactly the same
otherwise.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind 308b562b3c
Remove remaining fontawesome usage in templates ()
Can not remove the dependency yet because easymde depends on it.
Norwin 35b0c8aa7d
fix default avatar url ()
sebastian-sauer 90eeb6363c
Fix layout of milestone view ()
fix 

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
zeripath 17be645498
Encrypt LDAP bind password in db with SECRET_KEY ()
* Encrypt LDAP bind password in db with SECRET_KEY

The LDAP source bind password are currently stored in plaintext in the db
This PR simply encrypts them with the setting.SECRET_KEY.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>

* remove ui warning regarding unencrypted password

Co-authored-by: silverwind <me@silverwind.io>
silverwind 370cfde35e
Fix and restyle menu on code line ()
* Fix and restyle menu on code line

* fix multiline and more tweaks

* move to separate files

* remove has-context-menu class

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Norwin ba76bd78b6
remove unimplemented searchbar from project view ()
silverwind a32bfd867d
Issue sidebar and misc css fixes ()
- Replace remaining font icons with SVG in issue sidebar
- Rework issue due date display
- Realign avatar in timeline
- Fix font size in repo search and code explore
- Consolidate active button styles
- Fix loading form on arc-green
- Align time tracker buttons vertically

Fixes: https://github.com/go-gitea/gitea/issues/15896
Lunny Xiao 892e6561ff
Use a special name for update default branch on repository setting ()
zeripath f582ec4e53
Create a session on ReverseProxy and ensure that ReverseProxy users cannot change username ()
* Create a session on ReverseProxy and ensure that ReverseProxy users cannot change username

ReverseProxy users should generate a session on reverse proxy username change.

Also prevent ReverseProxy users from changing their username.

Fix 

* add testcase

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath d234d37aa8
Restore PAM user autocreation functionality ()
* Restore PAM user autocreation functionality

PAM autoregistration of users currently fails due to email invalidity.
This PR adds a new setting to PAM to allow an email domain to be set
or just sets the email to the noreply address and if that fails falls
back to uuid@localhost

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>

* As per KN4CKER

Signed-off-by: Andrew Thornton <art27@cantab.net>
Mike L 793e03244b
label size, PR ref, new PR button alignment ()
Co-authored-by: zeripath <art27@cantab.net>
zeripath fc6501e4e0
Set autocomplete off on branches selector ()
Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
KN4CK3R f8335444de
Add Active and ProhibitLogin to API ()
* Added active and prohibit_login.

* Do not omit fields for normal users.
6543 a229e34387
Allow only internal registration ()
* Add ALLOW_ONLY_INTERNAL_REGISTRATION into settings

* OpenID respect setting too
silverwind 2a9b8d173a
Code comments improvements ()
- Right-align the Reply and Resolve buttons
- Center Resolved text and add some padding
- Add padding to inline comments
- Indent the comment content to align with author name
- Re-parent form to allow better button layout space.

Co-authored-by: zeripath <art27@cantab.net>
silverwind 24ad131221
Rename StaticUrlPrefix to AssetUrlPrefix ()
Use a new name for this template/frontend variable to make it distinct
from the server variable StaticURLPrefix.
Jonathan Tran 9557b8603a
Add selecting tags on the compare page ()
* Add selecting tags on the compare page

* Remove unused condition and change indentation

* Fix tag tab in dropdown to be black

* Add compare tag integration test

Co-authored-by: Jonathan Tran <jon@allspice.io>
zeripath a4c13229b7
Use pulls in commit graph unless pulls are disabled ()
Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
a1012112796 c25813182c
not show `ref-in-new-issue` pop when issue was disabled ()
fix 

Signed-off-by: a1012112796 <1012112796@qq.com>
6543 640066840e
Use a generic markup class to display externally rendered files and diffs ()
* creates and implements generic markup less class

* How to give custom CSS to externally rendered html

* Clarifies sources of CSS styling of markup

* further clarification of sources of markup styling

* rename _markdown to _markup

* remove defunct import

* fix orphaned reference

* Update docs/content/doc/advanced/external-renderers.en-us.md

* more renames markdown -> markup

* do not suggest less customization

* add back tokens

* fix class whitespace, remove useless if-clause

* remove unused csv-data rules

* use named exports and rename functions

* sort imports

Co-authored-by: HarvsG <11440490+HarvsG@users.noreply.github.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
N. L. H 45970ae82e
Feature/oauth userinfo ()
* Implemented userinfo 

* Make lint happy

* Add userinfo endpoint to openid-configuration

* Give an error when uid equals 0

* Implemented BearerTokenErrorCode handling

* instead of ctx.error use ctx.json so that clients
parse error and error_description correctly

* Removed unneeded if statement

* Use switch instead of subsequent if statements
Have a default for unknown errorcodes.

Co-authored-by: Nils Hillmann <hillmann@nlh-software.de>
Co-authored-by: nlhsoftware <nlhsoftware@noreply.localhost>
6543 6a3ad0b24e
reverse partial and comment ()
* reverse & comment

* Update templates/repo/graph/commits.tmpl

Co-authored-by: 6543 <6543@obermui.de>

Co-authored-by: zeripath <art27@cantab.net>
a1012112796 3088866531
fix some ui bug about draft release ()
* fix some ui bug about draft release

- should not show draft release in tag list because
  it will't create real tag
- still show draft release without tag and commit message
  for draft release instead of 404 error
- remove tag load for attachement links because it's useless

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

* add test code

* fix test

That's because has added a new release in relaese test database.

* fix dropdown link for draft release
silverwind a961335dc7
Issue list alignment tweaks ()
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
KN4CK3R 5e98d670d3
Commit Graph: Pull-Requests should not link to issues ()
Use `/pulls` and simplify code.
Loutro 34b21625c2
Display specific message if diff is not displayed because of too long line ()
* 7184-  message if line too long

* Update options/locale/locale_en-US.ini

Co-authored-by: silverwind <me@silverwind.io>

* add flag on missing cases

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Jonathan Tran 5e047b9bd7
Add compare tag dropdown to releases page ()
* Add compare tag dropdown to releases page

* Change defaults to be more intuitive and remove unneeded option

* Fix to select branch on releases page

Co-authored-by: Jonathan Tran <jon@allspice.io>
Co-authored-by: Kyle D <kdumontnu@gmail.com>
KN4CK3R 8c8471e754
Addition to (Add Location, Website and Description to API ) ()
* Use same name as other structs.

* Sync with normal forms.

* Edit description with API.

* Workaround for nil value.
KN4CK3R 67e10397af
Add Location, Website and Biography to API ()
KN4CK3R 7670c1c99e
Fixed several activation bugs ()
* Removed unneeded form tag.

* Fixed typo.

* Fixed NPE.

* Use better error page.

* Splitted GET and POST.
KN4CK3R c80d7f33b6
Unified link creation. ()
Garrit Franke f67e36097a
fix(settings): misaligned buttons ()
Co-authored-by: 6543 <6543@obermui.de>
silverwind cc7d118b12
Remove x-ua-compatible header ()
The header is deprecated since IE 11 so it only serves to support IE 10
and below which are browsers which are long unsupported now.
zeripath b07938be5b
Fix commit graph author link ()
The author link on the commit graph is incorrect and isn't providing a link to the author.

Signed-off-by: Andrew Thornton <art27@cantab.net>
silverwind 834fc74873
Raw file view tweaks ()
- Limit SVG images to 600px width
- Adjust size of view toggle buttons to match other buttons
- Make Edit/Delete buttons easier to click

Had to create a separate CSS file because the less parser can not parse
CSS4 case-insensitive attribute selectors which are widely supported by
browsers.

Fixes: https://github.com/go-gitea/gitea/issues/15515
zeripath df416f2414
Add placeholder text to deploy key textarea ()
* Add placeholder text to deploy key textarea

Related 

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update templates/repo/settings/deploy_keys.tmpl

* Update templates/repo/settings/deploy_keys.tmpl
silverwind 5e85cdad29
Project board improvements ()
* Project board improvements

- Fix link colors
- Extract CSS to own file
- Various minor tweaks to make it look better

Fixes: https://github.com/go-gitea/gitea/issues/15424
Fixes: https://github.com/go-gitea/gitea/issues/15506
Fixes: https://github.com/go-gitea/gitea/pull/15511

* fix squashed cards on small view area

* more css fixes, add second row from issue list

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
techknowlogick 024ef3940f
add well-known config for OIDC ()
* add well-known config for OIDC

* spacing per feedback

* Update oidc_wellknown.tmpl

* add id_token

* Update oidc_wellknown.tmpl

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Lunny Xiao 8202dd1311
Performance improvement for list pull requests ()