mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Move jquery-minicolors to npm/webpack (#12305)
* Move jquery-minicolors to npm/webpack - Unvendor and add as npm dependency - Removed unneeded backend variable - Fixed existing bug where picker would previously initizalize to the same green color when editing a label. There was probably a version bump because the previous version was over 3 years old but it seems to be compatible. * use file-loader * trailing comma and comment update * misc tweaks Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		
							
								
								
									
										10
									
								
								web_src/js/features/colorpicker.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								web_src/js/features/colorpicker.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| export default async function createColorPicker($els) { | ||||
|   if (!$els || !$els.length) return; | ||||
|  | ||||
|   await Promise.all([ | ||||
|     import(/* webpackChunkName: "minicolors" */'@claviska/jquery-minicolors'), | ||||
|     import(/* webpackChunkName: "minicolors" */'@claviska/jquery-minicolors/jquery.minicolors.css'), | ||||
|   ]); | ||||
|  | ||||
|   $els.minicolors(); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user