wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9296c31ff7 
							
						 
					 
					
						
						
							
							Fix incorrect URL for "Reference in New Issue" ( #28716 )  
						
						... 
						
						
						
						Gitea prefers to use relative URLs in code (to make multiple domain work
for some users)
So it needs to use `toAbsoluteUrl` to generate a full URL when click
"Reference in New Issues"
And add some comments in the test code 
						
						
					 
					
						2024-01-07 10:50:03 +00:00 
						 
				 
			
				
					
						
							
							
								Yarden Shoham 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							cdc33b29a0 
							
						 
					 
					
						
						
							
							Add global setting how timestamps should be rendered ( #28657 )  
						
						... 
						
						
						
						- Resolves https://github.com/go-gitea/gitea/issues/22493 
- Related to https://github.com/go-gitea/gitea/issues/4520 
Some admins prefer all timestamps to display the full date instead of
relative time. They can do that now by setting
```ini
[ui]
PREFERRED_TIMESTAMP_TENSE = absolute
```
This setting is set to `mixed` by default, allowing dates to render as
"5 hours ago". Here are some screenshots of the UI with this setting set
to `absolute`:



---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: delvh <dev.lh@web.de> 
						
						
					 
					
						2024-01-02 09:25:30 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ce55a74374 
							
						 
					 
					
						
						
							
							Update JS dependencies ( #28537 )  
						
						... 
						
						
						
						- Update all JS dependencies excluding mcaptcha (breaking changes) and
stylelint (plugin not compatible with v16)
- Regenerate SVGs
- Update markdownlint rule names
- Fix one issue of heading in markdown discovered during lint
- Update for monaco options renames
- Fix stylelint rule length-zero-no-unit for custom properties
- Tested editor, swagger, sorting, vue, lint 
						
						
					 
					
						2023-12-30 05:29:03 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6632d1497c 
							
						 
					 
					
						
						
							
							Polyfill SubmitEvent for PaleMoon ( #28441 )  
						
						
						
						
					 
					
						2023-12-15 07:26:36 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0a794b2bcd 
							
						 
					 
					
						
						
							
							Don't show unnecessary citation JS error on UI ( #28433 )  
						
						... 
						
						
						
						Fix  #28226  
					
						2023-12-12 11:31:11 +00:00 
						 
				 
			
				
					
						
							
							
								Earl Warren 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8b45a4d366 
							
						 
					 
					
						
						
							
							Use appSubUrl for OAuth2 callback URL tip ( #28266 )  
						
						... 
						
						
						
						- When crafting the OAuth2 callbackURL take into account `appSubUrl`,
which is quite safe given that its strictly formatted.
- No integration testing as this is all done in Javascript.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1795 
(cherry picked from commit 27cb6b7956136f87aa78067d9adb5a4c4ce28a24)
Co-authored-by: Gusted <postmaster@gusted.xyz> 
						
						
					 
					
						2023-11-29 01:37:12 +00:00 
						 
				 
			
				
					
						
							
							
								Nanguan Lin 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							37ed92d6fd 
							
						 
					 
					
						
						
							
							Revert "Fix EOL handling in web editor" ( #28101 )  
						
						... 
						
						
						
						Reverts go-gitea/gitea#27141
close  #28097  
						
						
					 
					
						2023-11-22 09:14:16 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							247927a9b5 
							
						 
					 
					
						
						
							
							Use "is-loading" to avoid duplicate form submit for code comment ( #28143 )  
						
						... 
						
						
						
						When the form is going to be submitted, add the "is-loading" class to
show an indicator and avoid user UI events.
When the request finishes (success / error), remove the "is-loading"
class to make user can interact the UI. 
						
						
					 
					
						2023-11-21 02:12:31 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f860fe31d9 
							
						 
					 
					
						
						
							
							Move some JS code from fomantic.js to standalone files ( #27994 )  
						
						... 
						
						
						
						To improve maintainability, this PR: 
1. Rename `web_src/js/modules/aria` to `web_src/js/modules/fomantic`
(the code there are all for aria of fomantic)
2. Move api/transition related code to
`web_src/js/modules/fomantic/api.js` and
`web_src/js/modules/fomantic/transition.js`
No logic is changed. 
						
						
					 
					
						2023-11-12 07:15:00 +00:00 
						 
				 
			
				
					
						
							
							
								Nanguan Lin 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6c9e196e54 
							
						 
					 
					
						
						
							
							Show error toast when file size exceeds the limits ( #27985 )  
						
						... 
						
						
						
						As title.
Before that, there was no alert at all.
After:
 
						
						
					 
					
						2023-11-10 19:43:18 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							10a6ebb3fd 
							
						 
					 
					
						
						
							
							Fix the overflow style for "Hide all checks" ( #27932 )  
						
						... 
						
						
						
						Fix  #27928 
---------
Co-authored-by: silverwind <me@silverwind.io> 
					
						2023-11-07 18:53:35 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							abd79ddebf 
							
						 
					 
					
						
						
							
							Update JS dependencies ( #27922 )  
						
						... 
						
						
						
						- Update all JS dependencies minus @mcaptcha/vanilla-glue (unsolved
error, see https://github.com/mCaptcha/glue/issues/65 )
- Migrate deprecated eslint rules to `@stylistic/eslint-plugin-js`
- Enable and autofix `@stylistic/js/no-multiple-empty-lines`
- Regenerate poetry.lock with latest poetry
- Tested Mermaid, Swagger, Citation, Vue 
						
						
					 
					
						2023-11-06 21:14:32 +00:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7a2ff6c162 
							
						 
					 
					
						
						
							
							Fix edit topic UI ( #27925 )  
						
						... 
						
						
						
						Before:
desktop view:

mobile view:

after click `Save` btn:


refresh the page, you will see that `gt-m-0` is missing after save
topic:

After:
desktop view:

mobile view:

after click `Save` btn:
 
						
						
					 
					
						2023-11-06 09:23:50 +00:00 
						 
				 
			
				
					
						
							
							
								delvh 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1f501dae9e 
							
						 
					 
					
						
						
							
							Fix JS NPE when viewing specific range of PR commits ( #27912 )  
						
						... 
						
						
						
						This should be the easiest fix.
While other solutions might be possible that exterminate the root cause,
they will not be as trivial. 
						
						
					 
					
						2023-11-06 02:05:24 +00:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dcb648ee71 
							
						 
					 
					
						
						
							
							Add Hide/Show all checks button to commit status check ( #26284 )  
						
						... 
						
						
						
						Step one for a GitHub like commit status check ui:



Step two:


The design now will list all commit status checks which takes too much
space.
This is a pre-improve for #26247 
---------
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2023-11-02 14:49:02 +00:00 
						 
				 
			
				
					
						
							
							
								KN4CK3R 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3c78cb832d 
							
						 
					 
					
						
						
							
							Change katex limits ( #27823 )  
						
						... 
						
						
						
						Fixes  #27812 
Use higher defaults again but limit the input size.
 
					
						2023-10-29 01:52:02 +00:00 
						 
				 
			
				
					
						
							
							
								Brecht Van Lommel 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7a286e4753 
							
						 
					 
					
						
						
							
							Improve pull request command line instructions ( #27778 )  
						
						... 
						
						
						
						* Show checkout instructions also when there is no permission to push,
for anyone who wants to locally test the changes.
* First checkout the branch exactly as is, without immediately having to
solve merge conflicts. Leave this to the merge step, since it's often
convenient to test a change without worrying about this.
* Use `git fetch -u`, so an existing local branch is updated when
re-testing the same pull request. But not the more risky `git fetch -f`
in to handle force pushes, as we don't want to accidentally overwrite
important local changes.
* Show different merge command depending on the chosen merge style,
interactively updated. 
						
						
					 
					
						2023-10-25 15:01:31 +00:00 
						 
				 
			
				
					
						
							
							
								Nanguan Lin 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3602a1987d 
							
						 
					 
					
						
						
							
							Add border to file tree 'sub-items' and add padding to 'item-file' ( #27593 )  
						
						... 
						
						
						
						## Add border to file tree 'sub-items'
close  #24766  
view in `gitea-light` 
<img width="275" alt="image"
src="https://github.com/go-gitea/gitea/assets/70063547/f1bf8736-2db3-454f-86f5-d050a2fae3eb ">
view in `gitea-dark`
<img width="296" alt="image"
src="https://github.com/go-gitea/gitea/assets/70063547/053e2e6e-28f7-41d2-a139-1dae4df45929 ">
## Change the 'item-file' padding 
Before that the 'item-file' only have padding when they in
'item-directory', which is too compact when 'item-file' after
'item-directory'
<details>

---------
Co-authored-by: silverwind <me@silverwind.io> 
						
						
					 
					
						2023-10-25 18:00:53 +08:00 
						 
				 
			
				
					
						
							
							
								Nanguan Lin 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							51d1dc22ff 
							
						 
					 
					
						
						
							
							Fix duplicate project board when hitting enter key ( #27746 )  
						
						... 
						
						
						
						When hitting the `enter` key to create a new project column, the request
is sent twice because the `submit` event and `key up` event are both
triggered.
Probably a better solution is to rewrite these parts of the code to
avoid using native jQuery but reuse the `form-fetch-action` class. But
it's beyond my ability. 
						
						
					 
					
						2023-10-23 12:40:33 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d8c09c25d1 
							
						 
					 
					
						
						
							
							Enable followCursor for language stats bar ( #27713 )  
						
						... 
						
						
						
						Fixes: https://github.com/go-gitea/gitea/issues/27600 

Also tested together with https://github.com/go-gitea/gitea/pull/27704 ,
works well. 
						
						
					 
					
						2023-10-22 13:06:04 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b39bb958cc 
							
						 
					 
					
						
						
							
							Improve diff tree spacing ( #27714 )  
						
						... 
						
						
						
						1. Un-indent top-level items, matching GitHub rendering
2. Increase item padding and add 1px gap between items
Before and After:
<img width="247" alt="Screenshot 2023-10-20 at 18 37 32"
src="https://github.com/go-gitea/gitea/assets/115237/43c1ce86-1814-4a8a-9dd2-0c4a82a2be7c ">
<img width="241" alt="Screenshot 2023-10-20 at 18 40 46"
src="https://github.com/go-gitea/gitea/assets/115237/b541b85b-c428-4903-becd-773ae5807495 ">
---------
Co-authored-by: 6543 <m.huber@kithara.com> 
						
						
					 
					
						2023-10-21 10:38:19 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0b654fa8dc 
							
						 
					 
					
						
						
							
							Clipboard copy enhancements ( #27669 )  
						
						... 
						
						
						
						1. Do not show temporary tooltips that are triggered from within
dropdowns. Previously this resulted in the tooltip being stuck to
top-left of the page like seen on issue comment URL copy. I could not
figure out any tippy options that prevent this, so I think it's better
to just not show it.
1. Refactor `initGlobalCopyToClipboardListener` so that it does not run
a often useless `document.querySelector` on every click, make
`data-clipboard-text-type` work with `data-clipboard-target`. No use in
current code base but still good to have. Finally some minor code
cleanup in the function.
Point 1 is for this copy button:
<img width="229" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/81f34746-8ea5-43d9-8c6f-f6f417a9e4ad ">
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-10-18 15:16:06 +00:00 
						 
				 
			
				
					
						
							
							
								puni9869 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4adc2a828d 
							
						 
					 
					
						
						
							
							Hide archived labels by default from the suggestions when assigning labels for an issue ( #27451 )  
						
						... 
						
						
						
						Followup of #27115 
Finally closes  #25237 
## Screenshots
### Issue Sidebar
<img width="513" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/9f7fda2f-5a03-4684-8619-fd3498a95b41 ">
### PR sidebar
<img width="367" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/53db9b64-faec-4a67-91d6-76945596a469 ">
### PR sidebar with archived labels shown
<img width="352" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/9dc5050f-4e69-4f76-bb83-582480a2281e ">
---------
Signed-off-by: puni9869 <punitinani1@hotmail.com>
Co-authored-by: silverwind <me@silverwind.io> 
						
						
					 
					
						2023-10-17 16:10:45 +02:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							73b63d9311 
							
						 
					 
					
						
						
							
							Replace ajax with fetch, improve image diff ( #27267 )  
						
						... 
						
						
						
						1. Dropzone attachment removal, pretty simple replacement
2. Image diff: The previous code fetched every image twice, once via
`img[src]` and once via `$.ajax`. Now it's only fetched once and a
second time only when necessary. The image diff code was partially
rewritten.
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-10-11 12:34:21 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							43632d9d34 
							
						 
					 
					
						
						
							
							Improve dropdown's behavior when there is a search input in menu ( #27526 )  
						
						... 
						
						
						
						Follow #27225 
The change in #27225  is not ideal, this should be the complete fix:
support the layout which Fomantic doesn't support. 
						
						
					 
					
						2023-10-09 06:48:51 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5bf367f904 
							
						 
					 
					
						
						
							
							Restore warning commit status ( #27504 )  
						
						... 
						
						
						
						Partial revert of https://github.com/go-gitea/gitea/pull/25839 . This
commit status is used by a number of external integrations, so I think
we should not remove it (See
https://github.com/go-gitea/gitea/pull/25839#issuecomment-1729002077 ).
This is a rare case where an existing migration needed to be alterted to
avoid data loss.
---------
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-10-08 22:16:06 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							08efeb5cdc 
							
						 
					 
					
						
						
							
							Fix mermaid flowchart margin issue ( #27503 )  
						
						... 
						
						
						
						Fixes: https://github.com/go-gitea/gitea/issues/27435 
Related: https://github.com/mermaid-js/mermaid/issues/4907 
<img width="924" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/494a1d2e-4c56-48d0-9843-82a5e5aa977e "> 
						
						
					 
					
						2023-10-08 03:20:12 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0bccf078c9 
							
						 
					 
					
						
						
							
							Update JS and PY dependencies ( #27501 )  
						
						... 
						
						
						
						- Update all JS and PY dependencies
- Enable eslint `prefer-object-has-own` and autofix issue
- Fix styling on citation buttons
- Tested citation, mermaid, monaco, swagger, katex
Citation button issue was that these buttons were not filled:
<img width="136" alt="Screenshot 2023-10-07 at 14 05 08"
src="https://github.com/go-gitea/gitea/assets/115237/435f0c91-28ac-46b3-bae4-dad768b29c05 ">
Co-authored-by: techknowlogick <techknowlogick@gitea.com> 
						
						
					 
					
						2023-10-08 00:16:20 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9f8d59858a 
							
						 
					 
					
						
						
							
							Refactor system setting ( #27000 )  
						
						... 
						
						
						
						This PR reduces the complexity of the system setting system.
It only needs one line to introduce a new option, and the option can be
used anywhere out-of-box.
It is still high-performant (and more performant) because the config
values are cached in the config system. 
						
						
					 
					
						2023-10-05 09:08:19 +08:00 
						 
				 
			
				
					
						
							
							
								puni9869 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							50070550a8 
							
						 
					 
					
						
						
							
							Hide archived labels when filtering by labels on the issue list ( #27115 )  
						
						... 
						
						
						
						Followup  https://github.com/go-gitea/gitea/pull/26820 
## Archived labels UI for issue filter and issue filter actions for
issues/pull request pages.
Changed:
* Enhanced the Issue filter and Issue filter actions UI page to
seamlessly incorporate a list of archived labels.
* Pagination functionality is same as before. If archived label checkbox
is checked then we are adding a query string`archived=true` in the url
to save the state of page.
* Issue filter actions menu is separated into different template.
* Adding the archived flag in issue url labels.
* Pull Request page is also work the same.
Outsourced:
* Defer the implementation of specialized handling for archived labels
to upcoming pull requests. This step will be undertaken subsequent to
the successful merge of this pull request.
Screenshots
### Issue page
<img width="1360" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/d7efb2ef-5b2b-449d-83f0-d430a32ec432 ">
### Issue page with label filter on archived label checkbox when not
checked --> No archived label is there in list
<img width="1249" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/ceea68ef-91f2-4693-910f-2e25e236bfc9 ">
### Issue page with label filter on archived label checkbox when checked
--> Show archived label in the list.
<img width="710" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/2414d26b-2079-4c3c-bd9e-f2f5411bcabf ">
### Issue page with label filter on issue action menu on archived label
checkbox when checked --> Show archived label in the list.
<img width="409" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/259cac87-3e21-4778-99a2-a6a0b8c81178 ">
### Applied the archived=true in Issue labels when archived checkbox is
checked.
<img width="984" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/657ce3db-c0ae-402e-b12d-3b580d3c2ed0 ">
---
Part of https://github.com/go-gitea/gitea/issues/25237 
---------
Signed-off-by: puni9869 <punitinani1@hotmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-10-01 09:04:39 -04:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1f00bc44b2 
							
						 
					 
					
						
						
							
							Fix review UI ( #27322 )  
						
						... 
						
						
						
						Close  #26730 
1. The `diff-detail-box` was abused, it shouldn't be used for
"DiffFileList/DiffFileTree".
2. Fix the sticky position for various screens.


 
					
						2023-09-28 10:00:26 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							72c68177ab 
							
						 
					 
					
						
						
							
							Improve issue history dialog and make poster can delete their own history ( #27323 )  
						
						... 
						
						
						
						Fix  #27313  (see the comment)
And some UI improvements:
### Before


### After


 
					
						2023-09-28 08:43:20 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ee27b94b2c 
							
						 
					 
					
						
						
							
							Use vitest globals ( #27102 )  
						
						... 
						
						
						
						Enable [globals](https://vitest.dev/config/#globals ) in vitest, reducing
the noise in test files. 
						
						
					 
					
						2023-09-27 04:37:13 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6967c13ad2 
							
						 
					 
					
						
						
							
							Fix some animation bugs ( #27287 )  
						
						... 
						
						
						
						Fix  #27286 
Replace #27279  
					
						2023-09-27 01:15:58 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							709c2fad8a 
							
						 
					 
					
						
						
							
							Add missed return to actions view fetch ( #27289 )  
						
						... 
						
						
						
						Should fix : #27213  
						
						
					 
					
						2023-09-27 08:34:52 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3a187eace5 
							
						 
					 
					
						
						
							
							Fix EOL handling in web editor ( #27141 )  
						
						... 
						
						
						
						Fixes https://github.com/go-gitea/gitea/issues/27136 .
This does the following for Monaco's EOL setting:
1. Use editorconfig setting if present
2. Use the file's dominant line ending as detected by monaco, which uses
LF for empty file 
						
						
					 
					
						2023-09-24 19:51:02 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							efd5176278 
							
						 
					 
					
						
						
							
							Fix Fomantic UI dropdown icon bug when there is a search input in menu ( #27225 )  
						
						... 
						
						
						
						Fix  #27224 
And add the case to the devtest page. 
					
						2023-09-24 21:07:57 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ae8e8f055e 
							
						 
					 
					
						
						
							
							Use fetch helpers instead of fetch ( #27026 )  
						
						... 
						
						
						
						WIP because:
- [x] Some calls set a `content-type` but send no body, can likely
remove the header
- [x] Need to check whether `charset=utf-8` has any significance on the
webauthn calls, I assume not as it is the default for json content.
- [x] Maybe `no-restricted-globals` is better for eslint, but will
require a lot of duplication in the yaml or moving eslint config to a
`.js` extension.
- [x] Maybe export `request` as `fetch`, shadowing the global. 
						
						
					 
					
						2023-09-19 00:50:30 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8099238618 
							
						 
					 
					
						
						
							
							Change green buttons to primary color ( #27099 )  
						
						... 
						
						
						
						I think it's better if the primary actions have primary color instead of
green which fits better into the overall single-color UI design. This PR
currently replaces every green button with primary:
<img width="141" alt="Screenshot 2023-09-16 at 14 07 59"
src="https://github.com/go-gitea/gitea/assets/115237/843c1e50-4fb2-4ec6-84ba-0efb9472dcbe ">
<img width="161" alt="Screenshot 2023-09-16 at 14 07 51"
src="https://github.com/go-gitea/gitea/assets/115237/9442195a-a3b2-4a42-b262-8377d6f5c0d1 ">
Modal actions now use uncolored/primary instead of previous green/red
colors. I also removed the box-shadow on all basic buttons:
<img width="259" alt="Screenshot 2023-09-16 at 14 16 39"
src="https://github.com/go-gitea/gitea/assets/115237/5beea529-127a-44b0-8d4c-afa7b034a490 ">
<img width="261" alt="Screenshot 2023-09-16 at 14 17 42"
src="https://github.com/go-gitea/gitea/assets/115237/4757f7b2-4d46-49bc-a797-38bb28437b88 ">
The change currently includes the "Merge PR" button, for which we might
want to make an exception to match the icon color there:
<img width="442" alt="Screenshot 2023-09-16 at 14 33 53"
src="https://github.com/go-gitea/gitea/assets/115237/993ac1a5-c94d-4895-b76c-0d872181a70b "> 
						
						
					 
					
						2023-09-18 22:05:31 +00:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							076eca8158 
							
						 
					 
					
						
						
							
							Fix incorrect default branch label while switching between branches ( #27053 )  
						
						... 
						
						
						
						Fix  #27008  
					
						2023-09-14 03:54:25 +00:00 
						 
				 
			
				
					
						
							
							
								Nanguan Lin 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							da50be7360 
							
						 
					 
					
						
						
							
							Replace 'userxx' with 'orgxx' in all test files when the user type is org  ( #27052 )  
						
						... 
						
						
						
						Currently 'userxx' and 'orgxx' are both used as username in test files
when the user type is org, which is confusing. This PR replaces all
'userxx' with 'orgxx' when the user type is org(`user.type==1`).
Some non-trivial changes
1. Rename `user3` dir to `org3` in `tests/git-repositories-meta` 
2. Change `end` in `issue reference` because 'org3' is one char shorter
than 'user3'

3. Change the search result number of `user/repo2` because
`user3/repo21` can't be searched now

4. Change the first org name getting from API because the result is
ordered by alphabet asc and now `org 17` is before `org25`


Other modifications are just find all and replace all.
Unit tests with SQLite are all passed.
---------
Co-authored-by: caicandong <1290147055@qq.com> 
						
						
					 
					
						2023-09-14 02:59:53 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							739e47cd80 
							
						 
					 
					
						
						
							
							Improve repo/user/org search  ( #27030 )  
						
						... 
						
						
						
						* Fix a regression from #26809  (the `data-org` is missing)
* Remove unnecessary style
Screenshots:


 
						
						
					 
					
						2023-09-12 16:44:48 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6d96f0b0d1 
							
						 
					 
					
						
						
							
							Add fetch wrappers, ignore network errors in actions view ( #26985 )  
						
						... 
						
						
						
						1. Introduce lightweight `fetch` wrapper functions that automatically
sets csfr token, content-type and use it in `RepoActionView.vue`.
2. Fix a specific issue on `RepoActionView.vue` where a fetch network
error is shortly visible during page reload sometimes. It can be
reproduced by F5-in in quick succession on the actions view page and was
also producing a red error box on the page.
Once approved, we can replace all current `fetch` uses in UI with this
in another PR.
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-09-11 10:25:10 +02:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dd6e8ab57b 
							
						 
					 
					
						
						
							
							Improve "language stats" UI ( #26968 )  
						
						... 
						
						
						
						Before:
* The layout is quite complex 
* The UI flickers when switch the stats (https://try.gitea.io/ )
After:
* Simplify the code
* The UI doesn't flicker 
						
						
					 
					
						2023-09-10 18:27:23 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							80d14b8f4a 
							
						 
					 
					
						
						
							
							Check newly added node type before "attachDirAuto" ( #26972 )  
						
						
						
						
					 
					
						2023-09-08 18:17:08 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1221221595 
							
						 
					 
					
						
						
							
							Add "dir=auto" for input/textarea elements by default ( #26735 )  
						
						... 
						
						
						
						Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-09-07 08:00:20 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							97aa749578 
							
						 
					 
					
						
						
							
							Vendor jquery.are-you-sure with strict mode fixes ( #26901 )  
						
						... 
						
						
						
						Extract from https://github.com/go-gitea/gitea/pull/25940  and because
https://github.com/go-gitea/gitea/pull/26743  does seem to need more
work.
This will be required if we are to run our JS in [strict
mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode ).
Previously, the two variables `$fields` and `$dirtyForms` polluted
`window`:
<img width="1145" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/e0270a0e-b881-4ed7-9cc4-e9ab25c0a2bc "> 
						
						
					 
					
						2023-09-06 00:02:44 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9a3de436f4 
							
						 
					 
					
						
						
							
							Reorder blocks in vue SFCs ( #26874 )  
						
						... 
						
						
						
						The [recommended order](https://vuejs.org/guide/scaling-up/sfc.html ) for
SFC blocks is script -> template -> style, which we were violating
because template and script were swapped. I do find script first also
easier to read because the imports are on top, letting me immideatly see
a component's dependencies.
This is a pure cut-paste refactor with some removal of some empty lines.
---------
Co-authored-by: Lauris BH <lauris@nix.lv> 
						
						
					 
					
						2023-09-02 14:59:07 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d5703d4a1b 
							
						 
					 
					
						
						
							
							Remove "TODO" tasks from CSS file ( #26835 )  
						
						... 
						
						
						
						1. Use `gt-invisible` instead of `invisible`.
2. Use `gt-word-break` instead of `dont-break-out` (there is a slight
different "hyphens", but I think it won't affect too much since it is
only used for the "full name").
3. Remove `.small.button:has(svg)` , now our buttons could layout SVG
correctly, and actually I didn't see this CSS class is used in code. 
						
						
					 
					
						2023-08-31 10:49:53 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c35b16a9a4 
							
						 
					 
					
						
						
							
							Remove joinPaths function ( #26833 )  
						
						... 
						
						
						
						Extract from https://github.com/go-gitea/gitea/pull/25940 .
`assetUrlPrefix` is guaranteed to not contain trailing slashes, making
this function unneeded. 
						
						
					 
					
						2023-08-31 02:46:44 +00:00