silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	8f4dafcd4e 
 
						 
						
							
							
								
								
								Rework header bar on issue, pull requests and milestone ( #24420 )  
							
							 
							
							... 
							
							
							
							
							- Make search bar dynamic full width via flexbox
- Make all buttons `small` so font size is the same for all elements in
the header
- Remove primary color from search field, add SVG icon like on Code tab
- Fix button vertical padding being enlarged by SVG icons
[View diff without
whitespace](https://github.com/go-gitea/gitea/pull/24420/files?diff=unified&w=1 )
<img width="1226" alt="Screenshot 2023-04-29 at 11 58 53"
src="https://user-images.githubusercontent.com/115237/235296851-74848267-664f-4c1f-b94c-a1b94196ff75.png ">
<img width="1219" alt="Screenshot 2023-04-29 at 11 59 39"
src="https://user-images.githubusercontent.com/115237/235296852-bcfde5ed-8658-43c2-b7e5-3ad84611e76f.png ">
Mobile:
<img width="437" alt="Screenshot 2023-04-29 at 11 59 52"
src="https://user-images.githubusercontent.com/115237/235296860-99263373-7b27-4540-868c-a93e70f281ca.png ">
<img width="433" alt="Screenshot 2023-04-29 at 12 00 00"
src="https://user-images.githubusercontent.com/115237/235296862-6cf64317-a864-405a-a00f-b5ab620349f5.png "> 
							
						 
						
							2023-04-29 23:33:25 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	5a5ab8ef5a 
 
						 
						
							
							
								
								
								Start cleaning the messy ".ui.left / .ui.right", improve label list page, fix stackable menu ( #24393 )  
							
							 
							
							... 
							
							
							
							
							Since 2015/2016, there is a global pollution: ".ui.left" / ".ui.right".
Fomantic UI doesn't work this way, it just conflicts with many Fomantic
definitions.
This PR starts the cleaning work of such techinical debts.
And, the "label list" page has been quite messy for long time, for
example, why "li" appears in "div" ......
And fix  #24296 
<details>





</details> 
							
						 
						
							2023-04-29 07:35:59 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Hester Gong 
								
							 
						 
						
							
							
								
							
							
	
	
	72e956b79a 
 
						 
						
							
							
								
								
								Improve protected branch setting page ( #24379 )  
							
							 
							
							... 
							
							
							
							
							Main changes:
1. Change html structure of protected branch page, use [`grouped
fields`](https://fomantic-ui.com/collections/form.html#grouped-fields )
instead of `fields` for better margin, and wrap `grouped fields` around
related `field`s, remove unnecessary `<div id="protection_box"
class="fields">` outer div
2. Changed some order of field to make them more categorized, used `ui
dividing header` for categorization and fine tune css.
Before:
<img width="1907" alt="Screen Shot 2023-04-27 at 14 56 19"
src="https://user-images.githubusercontent.com/17645053/234783731-bce8a7ce-dfc9-4d47-a3a8-b962ebea9467.png ">
<img width="1849" alt="Screen Shot 2023-04-27 at 14 56 30"
src="https://user-images.githubusercontent.com/17645053/234783740-c47d314e-5e2d-4854-98fd-c88f85ef3584.png ">
<img width="1872" alt="Screen Shot 2023-04-27 at 14 56 36"
src="https://user-images.githubusercontent.com/17645053/234783745-18e35a75-07e8-451d-b001-f9bcf16fcab5.png ">
After:
https://user-images.githubusercontent.com/17645053/235114568-da010aad-7654-4410-ab8c-5d0fce7edadb.mov 
3. Changed "Enable Merge Whitelist" to radio checkbox, and added "Enable
Merge" radio checkbox, which are exclusive
Before:
<img width="926" alt="Screen Shot 2023-04-28 at 13 08 29"
src="https://user-images.githubusercontent.com/17645053/235059233-75790f7a-e5ea-4e1c-82c6-509fef8b84b3.png ">
After:
<img width="942" alt="Screen Shot 2023-04-28 at 13 09 28"
src="https://user-images.githubusercontent.com/17645053/235059367-852d1f61-8407-4126-8c79-315b9c1ffada.png ">
4. Add a link to set default branch on branch list page (with reference
to github)
https://user-images.githubusercontent.com/17645053/234787404-61c1c7b6-aabf-429f-a109-5b690e4e0b5a.mov 
5. Removed dead codes.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-29 06:44:52 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	c0ddec8a2a 
 
						 
						
							
							
								
								
								Revert "Add Debian package registry" ( #24412 )  
							
							 
							
							... 
							
							
							
							
							Reverts go-gitea/gitea#22854  
							
						 
						
							2023-04-28 18:06:41 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	bf77e2163b 
 
						 
						
							
							
								
								
								Add Debian package registry ( #22854 )  
							
							 
							
							... 
							
							
							
							
							Co-authored-by: @awkwardbunny
This PR adds a Debian package registry. You can follow [this
tutorial](https://www.baeldung.com/linux/create-debian-package ) to build
a *.deb package for testing. Source packages are not supported at the
moment and I did not find documentation of the architecture "all" and
how these packages should be treated.
---------
Co-authored-by: Brian Hong <brian@hongs.me>
Co-authored-by: techknowlogick <techknowlogick@gitea.io> 
							
						 
						
							2023-04-28 17:51:36 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	83022013c8 
 
						 
						
							
							
								
								
								Fix layouts of admin table / adapt repo / email test  ( #24370 )  
							
							 
							
							... 
							
							
							
							
							Ref:
https://github.com/go-gitea/gitea/pull/24315#pullrequestreview-1403034993 
And fix the incorrect layout for "dasbboard", the "form" shouldn't
follow `<h4 class="ui top attached header">`, so move it to inner.
Diff with ignoring spaces:
https://github.com/go-gitea/gitea/pull/24370/files?diff=unified&w=1 
A known bug: the adapt/delete button doesn't work due to a historical
messy logic, will fix it in next PR (#24374 )



 
							
						 
						
							2023-04-28 09:48:41 +08:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Hester Gong 
								
							 
						 
						
							
							
								
							
							
	
	
	63a401ac40 
 
						 
						
							
							
								
								
								Move secrets and runners settings to actions settings ( #24200 )  
							
							 
							
							... 
							
							
							
							
							This PR moves the secrets and runners settings to actions settings on
all settings(repo,org,user,admin) levels.
After this PR, if
[ENABLED](5e7543fcf4/custom/conf/app.example.ini (L2604) )
inside `app.ini` under `[actions]` is set to `false`, the "Actions" tab
(including runners management and secrets management) will not be shown.
After, the settings under actions settings for each level:
1. Admin Level
"Runners Management"
<img width="1437" alt="Screen Shot 2023-04-26 at 14 34 20"
src="https://user-images.githubusercontent.com/17645053/234489731-15822d21-38e1-4560-8bbe-69f122376abc.png ">
2. User Level
"Secrets Management"
<img width="1427" alt="Screen Shot 2023-04-26 at 14 34 30"
src="https://user-images.githubusercontent.com/17645053/234489795-68c9c0cb-24f8-4f09-95c6-458ab914c313.png ">
3. Repo and Organization Levels
"Runners Management" and "Secrets Management" 
   Org:
<img width="1437" alt="Screen Shot 2023-04-26 at 14 35 07"
src="https://user-images.githubusercontent.com/17645053/234489996-f3af5ebb-d354-46ca-9087-a0b586845281.png ">
<img width="1433" alt="Screen Shot 2023-04-26 at 14 35 14"
src="https://user-images.githubusercontent.com/17645053/234490004-3abf8fed-81fd-4ce2-837a-935dade1793d.png ">
    Repo:
<img width="1419" alt="Screen Shot 2023-04-26 at 14 34 50"
src="https://user-images.githubusercontent.com/17645053/234489904-80c11038-4b58-462c-9d0b-8b7cf70bc2b3.png ">
    
<img width="1430" alt="Screen Shot 2023-04-26 at 14 34 57"
src="https://user-images.githubusercontent.com/17645053/234489918-4e8d1fe2-9bcd-4d8a-96c1-238a8088d92e.png ">
It also finished these tasks :
- [x] rename routers function "runners" to "actions", and refactor
related file names
- [x] check and modify part of the runners related functions to match
their name
- [x] Fix backend check caused by fmt check
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-04-27 20:08:47 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	50133b02bd 
 
						 
						
							
							
								
								
								Add eslint-plugin-regexp ( #24361 )  
							
							 
							
							... 
							
							
							
							
							Add
[`eslint-plugin-regexp`](https://github.com/ota-meshi/eslint-plugin-regexp )
and fix discovered issues. Config is mostly the recommended one, but I
relaxed a few rules. 
							
						 
						
							2023-04-26 22:08:16 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									sillyguodong 
								
							 
						 
						
							
							
								
							
							
	
	
	8f57aa014b 
 
						 
						
							
							
								
								
								Alert error message if open dependencies are included in the issues that try to batch close ( #24329 )  
							
							 
							
							... 
							
							
							
							
							fix  #24185  
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-04-26 12:54:17 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Hester Gong 
								
							 
						 
						
							
							
								
							
							
	
	
	f1a4330306 
 
						 
						
							
							
								
								
								Modify width of ui container, fine tune css for settings pages and org header ( #24315 )  
							
							 
							
							... 
							
							
							
							
							Close  #24302  
Part of #24229 , Follows #24246 
This PR focused on CSS style fine-tune, main changes:
1. Give `.ui.ui.ui.container` a width of `1280px` with a max-width of
`calc(100vw - 64px)`, so the main contents looks better on large
devices.
2. Share styles for table elements in all levels settings pages to fix
overflow of runners table on mobile and for consistency (The headers on
mobile can be further improved, but haven't found a proper way yet).
3. Use [stackable
grid](https://fomantic-ui.com/collections/grid.html#stackable ) and
[device column width](https://fomantic-ui.com/examples/responsive.html )
for responsiveness for some pages (repo/org collaborators settings
pages, org teams related page)
4. Fixed  #24302  by sharing label related CSS in reporg.css
5. Fine tune repo tags settings page
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-04-26 11:59:08 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	4d5c803f8b 
 
						 
						
							
							
								
								
								Fix Monaco IOS keyboard button ( #24341 )  
							
							 
							
							... 
							
							
							
							
							Fix https://github.com/go-gitea/gitea/issues/16188 . Turns out the
element was completely misaligned by fomantic styles. Add most of the
original styles in `!important` form to fix.
Tapping the button doesn't do anything useful in Simulator.app, but I
guess it's still better to not outright hide it in case it has a
possiblity to work.
<img width="121" alt="image"
src="https://user-images.githubusercontent.com/115237/234379685-4e67f8cd-7e91-4bcc-8e17-9d5b2ebed6cd.png ">
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-26 01:31:50 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	75e35fb03a 
 
						 
						
							
							
								
								
								Fix runner button height ( #24338 )  
							
							 
							
							... 
							
							
							
							
							Fixes https://github.com/go-gitea/gitea/issues/24326 .
Set size class and downsize any such buttons that have a dropdown icon
because the dropdown icon increases button height artificially.
[`:has()`](https://developer.mozilla.org/en-US/docs/Web/CSS/:has ) is not
supported in Firefox yet, but works fine with the experimental pref
enabled. I see this as a graceful degradation in unsupporting browsers. 
							
						 
						
							2023-04-26 00:09:29 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	59d060622d 
 
						 
						
							
							
								
								
								Improve RSS ( #24335 )  
							
							 
							
							... 
							
							
							
							
							Follow  #22719 
### Major changes
1. `ServerError` doesn't do format, so remove the `%s`
2. Simplify `RenderBranchFeed` (slightly)
3. Remove unused `BranchFeedRSS`
4. Make `feed.RenderBranchFeed` respect `EnableFeed` config
5. Make `RepoBranchTagSelector.vue` respect `EnableFeed` setting,
otherwise there is always RSS icon
6. The `(branchURLPrefix + item.url).replace('src', 'rss')` doesn't seem
right for all cases, for example, the string `src` could appear in
`branchURLPrefix`, so we need a separate `rssURLPrefix`
7. The `<a>` in Vue menu needs `@click.stop`, otherwise the menu itself
would be triggered at the same time
8. Change `<a><button></button></a>` to `<a role=button>`
9. Use `{{PathEscapeSegments .TreePath}}` instead of `{{range $i, $v :=
.TreeNames}}/{{$v}}{{end}}`
Screenshot of changed parts:
<details>



</details>
### Other thoughts
Should we remove the RSS icon from the branch dropdown list? It seems
too complex for a list UI, and users already have the chance to get the
RSS feed URL from "branches" page.
---------
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-04-25 22:53:44 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									yp05327 
								
							 
						 
						
							
							
								
							
							
	
	
	5f21e0f8eb 
 
						 
						
							
							
								
								
								Automatically select the org when click create repo from org dashboard ( #24325 )  
							
							 
							
							... 
							
							
							
							
							
In org dashboard, the create repo link will be `repo/create?org={orgId}` 
							
						 
						
							2023-04-25 22:25:29 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	ee6fa8d633 
 
						 
						
							
							
								
								
								Restore bold on repolist ( #24337 )  
							
							 
							
							... 
							
							
							
							
							Looking at it again, it does look a bit "odd" without bold, so revert
the repolist change done in
https://github.com/go-gitea/gitea/pull/24307 .
<img width="141" alt="image"
src="https://user-images.githubusercontent.com/115237/234331813-c6e2402f-e099-43b3-aed6-46a0e24e3899.png "> 
							
						 
						
							2023-04-25 17:19:22 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	0e8045d8ea 
 
						 
						
							
							
								
								
								Fix template function DateTime ( #24317 )  
							
							 
							
							... 
							
							
							
							
							Before, 500 error
 
							
						 
						
							2023-04-25 15:48:30 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Zettat123 
								
							 
						 
						
							
							
								
							
							
	
	
	30c1cd9775 
 
						 
						
							
							
								
								
								Add tags list for repos whose release setting is disabled ( #23465 )  
							
							 
							
							... 
							
							
							
							
							Close  #23427  
Co-Author: @wxiaoguang 
If a repo's release setting is enabled, the logic has't changed.
Clicking the "Tags" button will jump to `/{user}/{repo}/tags` and
`templates/repo/release/list.tmpl` template will be used.
<img
src="https://user-images.githubusercontent.com/15528715/224939362-bd8974fd-08b0-4f79-a114-3389d15847ca.png "
width="600px" />
If the release setting is disabled, clicking the "Tags" button will
still jump to `/{user}/{repo}/tags` but a new template
`templates/repo/tag/list.tmpl` will be used.
<img
src="https://user-images.githubusercontent.com/15528715/233834564-74741e49-f4e9-47c8-ac12-e306642798dc.png "
width="600px" />
Since both templates above need to render the tags list, I moved the
tags list to a shared template located in
`templates/repo/tag/table.tmpl`.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-25 18:29:00 +02:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									jladbrook 
								
							 
						 
						
							
							
								
							
							
	
	
	56d4893b2a 
 
						 
						
							
							
								
								
								Add RSS Feeds for branches and files ( #22719 )  
							
							 
							
							... 
							
							
							
							
							Fix  #22228  adding RSS feeds for branches and files. 
RSS feeds are accessed through:
* [gitea]/src/branch/{branch}.rss
* [gitea]/src/branch/{branch}/{file_name}.rss
No changes have been made to the UI to expose the feed urls for branches
and files. 
							
						 
						
							2023-04-25 22:08:29 +08:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	f16b668980 
 
						 
						
							
							
								
								
								Make SVG in dropdown menu have the same margin-right as IMG ( #24316 )  
							
							 
							
							... 
							
							
							
							
							Fix  #24226 

Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-04-25 07:34:37 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	20a3b03fe5 
 
						 
						
							
							
								
								
								Add --font-weight-bold and set previous bold to 601 ( #24307 )  
							
							 
							
							... 
							
							
							
							
							Fix  #24305 
According to MDN, "bold" starts from 700, some fonts do not provide
"bolding" for weight 600
https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight 
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-24 13:46:00 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	75c62054a6 
 
						 
						
							
							
								
								
								Improve some modal action buttons ( #24289 )  
							
							 
							
							... 
							
							
							
							
							Follow #24097  and #24285 
And add a devtest page for modal action button testing.
http://localhost:3000/devtest/fomantic-modal 
Now the `modal_actions_confirm.tmpl` could support: green / blue /
yellow positive buttons, the negative button is "secondary".
ps: this PR is only a small improvement, there are still a lot of
buttons not having proper colors. In the future these buttons could be
improved by this approach.
These buttons could also be improved according to the conclusion of
#24285  in the future.

And add GitHub-like single danger button (context:
https://github.com/go-gitea/gitea/issues/24285#issuecomment-1519100312 )

---------
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-04-24 07:08:59 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	774d1a0fbd 
 
						 
						
							
							
								
								
								Tweak pull request branch delete ui ( #23951 )  
							
							 
							
							... 
							
							
							
							
							- Move delete button to right and remove red color on it.
- Remove CLI instructions when PR has been merged.
Before:
<img width="855" alt="Screenshot 2023-04-06 at 20 21 47"
src="https://user-images.githubusercontent.com/115237/230463178-95735fc0-9632-4d51-bbd5-2131c40186c4.png ">
After:
<img width="865" alt="Screenshot 2023-04-06 at 20 23 17"
src="https://user-images.githubusercontent.com/115237/230463347-8155cbf9-4e58-421a-93a8-56ce6188dab8.png ">
After (deleted):
<img width="860" alt="Screenshot 2023-04-06 at 20 19 30"
src="https://user-images.githubusercontent.com/115237/230463442-f53d7500-191d-4d75-a097-d100a461672a.png ">
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-23 14:12:36 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Hester Gong 
								
							 
						 
						
							
							
								
							
							
	
	
	476a043a5f 
 
						 
						
							
							
								
								
								Refactor delete_modal_actions template and use it for project column related actions ( #24097 )  
							
							 
							
							... 
							
							
							
							
							Co-Author: @wxiaoguang 
This PR is to fix
https://github.com/go-gitea/gitea/issues/23318#issuecomment-1506275446  .
The way to fix this in this PR is to use `delete_modal_actions.tmpl`
here both to fix this issue and keep ui consistency (as suggested by
[TODO
here](4299c3b7db/templates/projects/view.tmpl (L161) ))
And this PR also refactors `delete_modal_actions.tmpl` and its related
styles, and use the template for more modal actions:
1. Added template attributes:
* locale
* ModalButtonStyle: "yes" (default) or "confirm"
* ModalButtonCancelText
* ModalButtonOkText
2. Rename `delete_modal_actions.tmpl` template to
`modal_actions_confirm.tmpl` because it is not only used for action
modals deletion now.
3. Refactored css related to modals into `web_src/css/modules/modal.css`
and improved the styles.
4. Also use the template for PR deletion modal and remove issue
dependency modal.
5. Some modals should also use the template, but not sure how to open
them, so mark these modal actions by `{{/* TODO: Convert to
base/modal_actions_confirm */}}`
After (Also tested on arc green):
Hovering on the left buttons
<img width="711" alt="Screen Shot 2023-04-23 at 15 17 12"
src="https://user-images.githubusercontent.com/17645053/233825650-76307e65-9255-44bb-80e8-7062f58ead1b.png ">
<img width="786" alt="Screen Shot 2023-04-23 at 15 17 21"
src="https://user-images.githubusercontent.com/17645053/233825652-4dc6f7d1-a180-49fb-a468-d60950eaee0d.png ">
Test for functionalities:
https://user-images.githubusercontent.com/17645053/233826857-76376fda-022c-42d0-b0f3-339c17ca4e59.mov 
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-04-23 17:24:19 +08:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	3cc87370c3 
 
						 
						
							
							
								
								
								Improve emoji and mention matching ( #24255 )  
							
							 
							
							... 
							
							
							
							
							Prioritize matches that start with the given text, then matches that
contain the given text.
I wanted to add a heart emoji on a pull request comment so I started
writing `:`, `h`, `e`, `a`, `r` (at this point I still couldn't find the
heart), `t`... The heart was not on the list, that's weird - it feels
like I made a typo or a mistake. This fixes that.
This also feels more like GitHub's emoji auto-complete.
# Before

# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-04-22 11:32:34 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	7447b39de7 
 
						 
						
							
							
								
								
								Fix footer display ( #24251 )  
							
							 
							
							... 
							
							
							
							
							Fix  #24249 
Diff with ignoring spaces:
https://github.com/go-gitea/gitea/pull/24251/files?diff=split&w=1 
Screenshots:
<details>
<img width="1440" alt="image"
src="https://user-images.githubusercontent.com/2114189/233592840-d9ef7296-64eb-4e48-a598-300807a7c2f9.png ">
<img width="923" alt="image"
src="https://user-images.githubusercontent.com/2114189/233593015-16edc531-43c2-4ff0-b27e-ca75dbadce0c.png ">
</details>
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-22 01:58:59 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	948a9ee5e8 
 
						 
						
							
							
								
								
								Fix label color, fix divider in dropdown ( #24215 )  
							
							 
							
							... 
							
							
							
							
							Two small CSS fixes:
1. Fix basic primary label hover
2. Fix border color of divider in dropdown and remove margin so it looks
better with hover effect, as discussed in
https://github.com/go-gitea/gitea/pull/24143 : 
							
						 
						
							2023-04-20 21:53:17 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									yp05327 
								
							 
						 
						
							
							
								
							
							
	
	
	8ea33baa1c 
 
						 
						
							
							
								
								
								Introduce eslint-plugin-no-jquery/no-event-shorthand ( #24198 )  
							
							 
							
							... 
							
							
							
							
							https://github.com/go-gitea/gitea/pull/24098#issuecomment-1514010690 
---------
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-04-20 05:28:27 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Hester Gong 
								
							 
						 
						
							
							
								
							
							
	
	
	6793ef0069 
 
						 
						
							
							
								
								
								Use secondary pointing menu for tabs on user/organization home page ( #24162 )  
							
							 
							
							... 
							
							
							
							
							Close  #24108 
Use secondary pointing menu for tabs on user/organization home page so
the tabs look the same.
Main changes:
1. modified a part of dom structure in
`templates/user/overview/header.tmpl` to make it the same as
`templates/org/header.tmpl` in order to produce the same ui.
2. Move some css to `web_src/css/shared/repoorgshared.css` to make them
shareable between `templates/user/overview/header.tmpl` and
`templates/org/header.tmpl`
After:
https://user-images.githubusercontent.com/17645053/232400617-2add5bec-d483-4ab1-b48d-eaee157f7b09.mov 
For further improvements. Need some thoughts: 
For [this
TODO](729ad294cb/templates/user/overview/header.tmpl (L1) ),
it is viable to make it a shared template for [this
part](729ad294cb/templates/user/overview/header.tmpl (L2-L17) )
and [this
part](729ad294cb/templates/org/header.tmpl (L1-L16) )
because they are the same except for the variable. But for the menu
parts, they are quite different so might not be suitable to use a shared
template. So need some thoughts and advice about extracting the shared
template from these two headers.
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-20 04:58:26 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	de2268ffab 
 
						 
						
							
							
								
								
								Fix issue attachment handling ( #24202 )  
							
							 
							
							... 
							
							
							
							
							Close  #24195 
Some of the changes are taken from my another fix
https://github.com/go-gitea/gitea/pull/20147/commits/f07b0de997125c9b79cc5af27966a7cdd1803a4d 
in #20147  (although that PR was discarded ....)
The bug is:
1. The old code doesn't handle `removedfile` event correctly
2. The old code doesn't provide attachments for type=CommentTypeReview
This PR doesn't intend to refactor the "upload" code to a perfect state
(to avoid making the review difficult), so some legacy styles are kept.
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-20 02:39:44 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	b39a5bbbd6 
 
						 
						
							
							
								
								
								Make wiki title supports dashes and improve wiki name related features ( #24143 )  
							
							 
							
							... 
							
							
							
							
							Close  #7570 
1. Clearly define the wiki path behaviors, see
`services/wiki/wiki_path.go` and tests
2. Keep compatibility with old contents
3. Allow to use dashes in titles, eg: "2000-01-02 Meeting record"
4. Add a "Pages" link in the dropdown, otherwise users can't go to the
Pages page easily.
5. Add a "View original git file" link in the Pages list, even if some
file names are broken, users still have a chance to edit or remove it,
without cloning the wiki repo to local.
6. Fix 500 error when the name contains prefix spaces.
This PR also introduces the ability to support sub-directories, but it
can't be done at the moment due to there are a lot of legacy wiki data,
which use "%2F" in file names.


Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-19 13:50:10 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Brecht Van Lommel 
								
							 
						 
						
							
							
								
							
							
	
	
	738f2af527 
 
						 
						
							
							
								
								
								Fix Resolve Conversation not working in Conversation view ( #24191 )  
							
							 
							
							... 
							
							
							
							
							It only worked in the Files Changed view.
Caused by #23639 . 
							
						 
						
							2023-04-19 13:05:25 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Krzysztof Jeziorny 
								
							 
						 
						
							
							
								
							
							
	
	
	fcad9fd19f 
 
						 
						
							
							
								
								
								Vertical widths of containers removed ( #24184 )  
							
							 
							
							... 
							
							
							
							
							A vertical overflow appears in Firefox 112/MacOS 12.6 when the system
setting for scrollbars is to "Always" show them.
--- 
Here, the fixed 100vw container widths are removed, which removes the
overflow. It is, however, only simulated in Developer Tools in latest
Firefox and Chromium, so please test on a Gitea installation. 
							
						 
						
							2023-04-19 12:13:00 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									yp05327 
								
							 
						 
						
							
							
								
							
							
	
	
	f30cc9faa9 
 
						 
						
							
							
								
								
								Add unset default project column ( #23531 )  
							
							 
							
							... 
							
							
							
							
							Close: https://github.com/go-gitea/gitea/issues/23401  
							
						 
						
							2023-04-19 10:28:28 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	e422342eeb 
 
						 
						
							
							
								
								
								Allow adding new files to an empty repo ( #24164 )  
							
							 
							
							... 
							
							
							
							
							 
							
						 
						
							2023-04-19 21:40:42 +08:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Hester Gong 
								
							 
						 
						
							
							
								
							
							
	
	
	5e7543fcf4 
 
						 
						
							
							
								
								
								Use same action status svg icons on actions list as on action page ( #24178 )  
							
							 
							
							... 
							
							
							
							
							Close  #24020  
After:
These icons are the same now:
<img width="1287" alt="截屏2023-04-18 13 52 11"
src="https://user-images.githubusercontent.com/17645053/232684252-05ddc101-dc5b-41b5-b374-132c3d853a41.png ">
<img width="1141" alt="截屏2023-04-18 13 54 48"
src="https://user-images.githubusercontent.com/17645053/232684261-6ebd864a-a9aa-4982-af32-2cea91c35be8.png ">
In this PR, didn't use `ActionRunStatus.vue` because the mounting of the
component will cause flash of the icons like below:
https://user-images.githubusercontent.com/17645053/232682646-713202dc-9023-4b9c-a849-c3a1ae6dd155.mov 
Instead, modified and used `status.tmpl` to make it the same as
`ActionRunStatus.vue` to avoid the ui flash (Welcomed to show how to use
`ActionRunStatus.vue` without flashing if there is a way).
Added comments to both of them for reminding synchronization of these
two files.
---------
Co-authored-by: Jason Song <i@wolfogre.com> 
							
						 
						
							2023-04-19 13:42:53 +08:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Brecht Van Lommel 
								
							 
						 
						
							
							
								
							
							
	
	
	e541a8c654 
 
						 
						
							
							
								
								
								Make mention autocomplete case insensitive in new markdown editor ( #24190 )  
							
							 
							
							... 
							
							
							
							
							This matches EasyMDE, and makes it easier to find the right user without
having to remember the exact name.
---------
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-04-18 13:25:11 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Hester Gong 
								
							 
						 
						
							
							
								
							
							
	
	
	7ca7590c39 
 
						 
						
							
							
								
								
								Fix duplicate modals when clicking on "remove all" repository button ( #24129 )  
							
							 
							
							... 
							
							
							
							
							Under Team tab of an organization, click on "remove all" repositories
button will trigger two modals. Because `data-modal-id` is not proerly
added.
Before:
https://user-images.githubusercontent.com/17645053/231988545-ac690b86-e3fe-4bf5-81c6-5ef09302e849.mov 
After:
https://user-images.githubusercontent.com/17645053/231989678-53be4f91-fdc9-4bc5-ba11-a08aa4548e37.mov  
							
						 
						
							2023-04-19 00:49:49 +08:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	1ab16e48cc 
 
						 
						
							
							
								
								
								Improve Wiki TOC ( #24137 )  
							
							 
							
							... 
							
							
							
							
							The old code has a lot of technical debts, eg: `repo/wiki/view.tmpl` /
`Iterate`
This PR improves the Wiki TOC display and improves the code.
---------
Co-authored-by: delvh <dev.lh@web.de> 
							
						 
						
							2023-04-17 15:05:19 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	f045e58cc7 
 
						 
						
							
							
								
								
								Localize activity heatmap (except tooltip) ( #24131 )  
							
							 
							
							... 
							
							
							
							
							The calculation of the total sum is moved to the backend so a full HTML
string could be sent.

- Closes  #10669 
- 2nd attempt (the first was in #21570 )
---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-17 14:26:01 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	f20057271d 
 
						 
						
							
							
								
								
								Fix Org edit page bugs: renaming detection, maxlength ( #24161 )  
							
							 
							
							... 
							
							
							
							
							## Before
* The renaming detection is wrong (eg: pasting a new name into the input
doesn't trigger the detection)
* The renaming prompt layout is not good
* Some MaxSize/maxlength rules is missing


## After
* Fix these problems
 
							
						 
						
							2023-04-17 11:35:57 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	dcde4701a5 
 
						 
						
							
							
								
								
								Fix math and mermaid rendering bugs ( #24049 )  
							
							 
							
							... 
							
							
							
							
							1. Fix multiple error display for math and mermaid:

2. Fix height calculation of certain mermaid diagrams by reading the
iframe inner height from it's document instead of parsing it from SVG:
Before:
<img width="866" alt="Screenshot 2023-04-11 at 11 56 27"
src="https://user-images.githubusercontent.com/115237/231126480-b194e02b-ea8c-4ddf-8c79-50c525815d92.png ">
After:
<img width="855" alt="Screenshot 2023-04-11 at 11 56 35"
src="https://user-images.githubusercontent.com/115237/231126494-5fe86a48-8d21-455a-8b95-79b6ee27a16f.png ">
3. Refactor error handling to a common function
4. Rename to `renderAsciicast` for consistency
5. Improve mermaid loading sequence
Note: I did try `securityLevel: 'sandbox'` to make mermaid output a
iframe directly, but that showed a bug in mermaid where the iframe style
height was set incorrectly. Opened
https://github.com/mermaid-js/mermaid/issues/4289  for this.
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-17 12:10:22 +02:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	7681d582cd 
 
						 
						
							
							
								
								
								Refactor locale number ( #24134 )  
							
							 
							
							... 
							
							
							
							
							Before, the `GiteaLocaleNumber.js` was just written as a a drop-in
replacement for old `js-pretty-number`.
Actually, we can use Golang's `text` package to format.
This PR partially completes the TODOs in `GiteaLocaleNumber.js`:
> if we have complete backend locale support (eg: Golang "x/text"
package), we can drop this component.
> tooltip: only 2 usages of this, we can replace it with Golang's
"x/text/number" package in the future.
This PR also helps #24131 
Screenshots:
<details>


</details> 
							
						 
						
							2023-04-17 11:37:23 +08:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	685b0ffa19 
 
						 
						
							
							
								
								
								Use 1.18's aria role for dropdown menus ( #24144 )  
							
							 
							
							... 
							
							
							
							
							According to erion's feedback, the 1.18 approach works with Safari
(`role=menu` on the parent container), while the 1.19's approach doesn't
work well with Safari+VoiceOver (although I tested it worked with Chrome
a little better).
I have tested this 1.18 approach could work for all
Safari/Chrome+VoiceOver and Chrome+Talkback.
Let's try to make it on try.gitea.io to see whether it helps Safari
users. 
							
						 
						
							2023-04-16 21:58:22 +08:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	0e05984667 
 
						 
						
							
							
								
								
								Set EasyMDE heading font-size to the same size as the resulting markdown ( #24151 )  
							
							 
							
							... 
							
							
							
							
							Fix  #23816 
According to my personal experience, the EasyMDE is still useful when
writing a lot of contents, eg: the wiki page.
It's not difficult to improve its heading styles, so let's make it.
Before:
<img width="815" alt="image"
src="https://user-images.githubusercontent.com/2114189/232280943-9177f0bc-e380-426f-8588-20ff8d8e5293.png ">
After:
<img width="538" alt="image"
src="https://user-images.githubusercontent.com/2114189/232280903-e8c476ee-f5b1-48fe-8a93-86fcd79680c3.png "> 
							
						 
						
							2023-04-16 20:01:08 +08:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	2902d1e9d1 
 
						 
						
							
							
								
								
								Sort repo topic labels by name ( #24123 )  
							
							 
							
							... 
							
							
							
							
							Close  #24077  
							
						 
						
							2023-04-14 15:29:05 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Tyrone Yeh 
								
							 
						 
						
							
							
								
							
							
	
	
	ed81b608cb 
 
						 
						
							
							
								
								
								Add option to search for users is active join a team ( #24093 )  
							
							 
							
							... 
							
							
							
							
							Adding a user in a team to enter a username gives a list of no active
users
---------
Co-authored-by: Jason Song <i@wolfogre.com> 
							
						 
						
							2023-04-14 14:48:36 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	1c8bc4081a 
 
						 
						
							
							
								
								
								Show friendly 500 error page to users and developers ( #24110 )  
							
							 
							
							... 
							
							
							
							
							Close  #24104 
This also introduces many tests to cover many complex error handling
functions.
### Before
The details are never shown in production.
<details>

</details>
### After
The details could be shown to site admin users. It is safe.
 
							
						 
						
							2023-04-14 13:19:11 +08:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	469dc4459b 
 
						 
						
							
							
								
								
								Add monospace toggle button to textarea ( #24034 )  
							
							 
							
							... 
							
							
							
							
							- Add new button to textarea to switch font. State is persisted in
localStorage.
- Change markdown-switch-easymde button from `<span>` to `<button>`
- Slightly increased monospace font globally by 5% as I think it fits
better.
For hover effect on these buttons I'm deferring to
https://github.com/go-gitea/gitea/pull/23896 .

---------
Co-authored-by: delvh <dev.lh@web.de> 
							
						 
						
							2023-04-13 15:05:06 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									sillyguodong 
								
							 
						 
						
							
							
								
							
							
	
	
	3753ecd583 
 
						 
						
							
							
								
								
								Update the value of the diffEnd when click Show More btn in the DiffFileTree ( #24069 )  
							
							 
							
							... 
							
							
							
							
							In the component `DiffFileTree`,if don't update the value of the
`diffEnd` in the callback of ajax request, click `Show More` btn will
always return the same response, duplicate files are appended to the
file list.
Before:
https://user-images.githubusercontent.com/33891828/231371188-82d169af-10bb-47e2-8aca-83ced2597f2d.mov 
After:
https://user-images.githubusercontent.com/33891828/231369805-39a5a4d0-662c-4f08-bc5a-7d31e8782453.mov 
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2023-04-12 15:11:23 +02:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									sillyguodong 
								
							 
						 
						
							
							
								
							
							
	
	
	e03e827dcb 
 
						 
						
							
							
								
								
								Expand selected file when clicking file tree ( #24041 )  
							
							 
							
							... 
							
							
							
							
							Auto expand the selected file when clicking the file item of the file
tree.
This is consistent with Github's behavior.
https://user-images.githubusercontent.com/33891828/231048124-61f180af-adba-42d7-9ffa-626e1de04aed.mov  
							
						 
						
							2023-04-12 15:06:39 +08:00