Giteabot 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f13a294b47 
							
						 
					 
					
						
						
							
							More db.DefaultContext refactor ( #27265 ) ( #27347 )  
						
						 
						
						... 
						
						
						
						Backport #27265  by @JakobDev
Part of #27065 
This PR touches functions used in templates. As templates are not static
typed, errors are harder to find, but I hope I catch it all. I think
some tests from other persons do not hurt.
Co-authored-by: JakobDev <jakobdev@gmx.de> 
						
						
					 
					
						2023-09-29 13:35:01 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4fc4f6e634 
							
						 
					 
					
						
						
							
							Refactor "editorconfig" ( #26391 )  
						
						 
						
						... 
						
						
						
						There are 2 kinds of ".Editorconfig" in code, one is `JSON string` for
the web edtior, another is `*editorconfig.Editorconfig` for the file
rendering (used by `TabSizeClass`)
This PR distinguish them with different names.
And by the way, change the default tab size from 8 to 4, I think few
people would like to use 8-size tabs nowadays. 
						
						
					 
					
						2023-08-08 10:44:19 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							88f835192d 
							
						 
					 
					
						
						
							
							Replace interface{} with any ( #25686 )  
						
						 
						
						... 
						
						
						
						Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`.
Basically the same [as golang did](2580d0e08d ). 
						
						
					 
					
						2023-07-04 18:36:08 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							56ae853ca0 
							
						 
					 
					
						
						
							
							Simplify template helper functions ( #24570 )  
						
						 
						
						... 
						
						
						
						To avoid bloating the template helper functions, some functions could be
provided by type methods.
And the new code `data-line-type="{{.GetHTMLDiffLineType}}"` reads
better than `data-line-type="{{DiffLineTypeToStr .GetType}}"`
After the fix, screenshots (the same as before):
<details>


</details> 
						
						
					 
					
						2023-05-07 09:49:46 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							241b74f6c5 
							
						 
					 
					
						
						
							
							Improve template helper ( #24417 )  
						
						 
						
						... 
						
						
						
						It seems that we really need the "context function" soon. So we should
clean up the helper functions first.
Major changes:
* Improve StringUtils and add JsonUtils
* Remove one-time-use helper functions like CompareLink
* Move other code (no change) to util_avatar/util_render/util_misc (no
need to propose changes for them)
I have tested the changed templates:




---------
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-04-29 08:02:29 -04:00