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 
								
							 
						 
						
							
							
								
							
							
	
	
	e82f1b15c7 
 
						 
						
							
							
								
								
								Refactor dashboard repo list to Vue SFC ( #23405 )  
							
							... 
							
							
							
							
							Similar to #23394 
The dashboard repo list mixes jQuery/Fomantic UI/Vue together, it's very
diffcult to maintain and causes unfixable a11y problems.
This PR uses two steps to refactor the repo list:
1. move `data-` attributes to JS object and use Vue data as much as
possible
https://github.com/go-gitea/gitea/pull/23405/commits/d3adc0dcacf7de87b9819277e6598ac3993bbfa3 
2. move the code into a Vue SFC
https://github.com/go-gitea/gitea/pull/23405/commits/7ebe55df6e67adfd272a4bf0a96ad6688edf661f 
Total: +516 −585
Screenshots:
<details>



</details>
---------
Co-authored-by: John Olheiser <john.olheiser@gmail.com> 
							
						 
						
							2023-03-14 12:09:06 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	1a7473ff45 
 
						 
						
							
							
								
								
								Split index.js to separate files ( #17315 )  
							
							... 
							
							
							
							
							* split `index.js` to separate files
* tune clipboard
* fix promise
* fix document
* remove intermediate empty file
* fix async event listener
* use `export function` instead of `export {}`, add more comments
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de> 
							
						 
						
							2021-10-17 01:28:04 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	56362043d3 
 
						 
						
							
							
								
								
								Frontend refactor: move Vue related code from index.js to components dir, and remove unused codes. ( #17301 )  
							
							... 
							
							
							
							
							* frontend refactor
* Apply suggestions from code review
Co-authored-by: delvh <dev.lh@web.de>
* Update templates/base/head.tmpl
Co-authored-by: delvh <dev.lh@web.de>
* Update docs/content/doc/developers/guidelines-frontend.md
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* fix typo
* fix typo
* refactor PageData to pageData
* Apply suggestions from code review
Co-authored-by: delvh <dev.lh@web.de>
* Simply for the visual difference.
Co-authored-by: delvh <dev.lh@web.de>
* Revert "Apply suggestions from code review"
This reverts commit 4d78ad9b0e96ca180e0823de17659a2e0814c099.
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de> 
							
						 
						
							2021-10-15 10:35:26 +08:00