mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	Follow #23394 There were many bad smells in old code. This PR only moves the code into Vue SFC, doesn't touch the unrelated logic. update: after https://github.com/go-gitea/gitea/pull/23421/commits/5f23218c851e12132f538a404c946bbf6ff38e62 , there should be no usage of the vue-rumtime-compiler anymore (hopefully), so I think this PR could close #19851 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
		
			
				
	
	
		
			3 lines
		
	
	
	
		
			99 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
	
		
			99 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| export function pathEscapeSegments(s) {
 | |
|   return s.split('/').map(encodeURIComponent).join('/');
 | |
| }
 |