silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							507fbf4c3c 
							
						 
					 
					
						
						
							
							Use querySelector over alternative DOM methods ( #31280 )  
						
						... 
						
						
						
						As per
https://github.com/go-gitea/gitea/pull/30115#discussion_r1626060164 ,
prefer `querySelector` by enabling
[`unicorn/prefer-query-selector`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-query-selector.md )
and autofixing all except 10 issues.
According to
[this](https://old.reddit.com/r/learnjavascript/comments/i0f5o8/performance_of_getelementbyid_vs_queryselector/ ),
querySelector may be faster as well, so it's a win-win.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2024-06-10 22:49:33 +02:00 
						 
				 
			
				
					
						
							
							
								Yarden Shoham 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5e1bf3efe2 
							
						 
					 
					
						
						
							
							Remove jQuery from repo migrate page ( #29219 )  
						
						... 
						
						
						
						- Switched to plain JavaScript
- Tested the repo migrate functionality and it works as before
# Demo using JavaScript without jQuery

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io> 
						
						
					 
					
						2024-02-17 21:07:47 +01: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 
						 
				 
			
				
					
						
							
							
								Kerwin Bryant 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							865d2221c0 
							
						 
					 
					
						
						
							
							Add Retry button when creating a mirror-repo fails ( #26228 )  
						
						... 
						
						
						
						fixed  #26156  
* Added a retry button in the frontend (only displayed when the status
is abnormal)
* After clicking Retry, the backend adds the task back to the task queue


---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
					
						2023-08-04 10:21:32 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f6e029e6c7 
							
						 
					 
					
						
						
							
							Make repo migration cancelable and fix various bugs ( #24605 )  
						
						... 
						
						
						
						Replace #12917 
Close  #24601 
Close  #12845 




---------
Co-authored-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-05-11 08:25:46 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d32af84a10 
							
						 
					 
					
						
						
							
							Refactor hiding-methods, remove jQuery show/hide, remove .hide class, remove inline style=display:none ( #22950 )  
						
						... 
						
						
						
						Close  #22847 
This PR:
* introduce Gitea's own `showElem` and related functions
* remove jQuery show/hide
* remove .hide class
* remove inline style=display:none 
From now on:
do not use:
* "[hidden]" attribute: it's too weak, can not be applied to an element
with "display: flex"
* ".hidden" class: it has been polluted by Fomantic UI in many cases
* inline style="display: none": it's difficult to tweak
* jQuery's show/hide/toggle: it can not show/hide elements with
"display: xxx !important"
only use:
* this ".gt-hidden" class
* showElem/hideElem/toggleElem functions in "utils/dom.js"
cc: @silverwind , this is the all-in-one PR 
					
						2023-02-19 12:06:14 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c8b217110b 
							
						 
					 
					
						
						
							
							Update JS dependencies ( #21881 )  
						
						... 
						
						
						
						- Update all JS deps
- Regenerate SVGs
- Add new eslint rules, fix issues
- Tested Mermaid, Swagger, Vue, Webpack, Citation
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
						
						
					 
					
						2022-11-22 08:58:55 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							19b017f398 
							
						 
					 
					
						
						
							
							Use explicit jQuery import, remove unused eslint globals ( #18435 )  
						
						... 
						
						
						
						- Don't rely on globals (window.$) for jQuery import
- Remove eslint globals no longer in use 
						
						
					 
					
						2022-01-28 21:00:11 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2add8fe9be 
							
						 
					 
					
						
						
							
							Frontend refactor, PascalCase to camelCase, remove unused code ( #17365 )  
						
						... 
						
						
						
						* Frontend refactor, PascalCase to camelCase, remove unused code
* fix 
						
						
					 
					
						2021-10-21 15:37:43 +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