mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Swap swagger-ui with swagger-ui-dist (#13777)
* Swap swagger-ui with swagger-ui-dist The prebuilt version of swagger-ui is identical to the regular one but brings the benefit of faster webpack compilation and less npm dependencies so it npm installs will speed up too. * use bundle file directly
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| import SwaggerUI from 'swagger-ui'; | ||||
| import 'swagger-ui/dist/swagger-ui.css'; | ||||
| import SwaggerUI from 'swagger-ui-dist/swagger-ui-es-bundle.js'; | ||||
| import 'swagger-ui-dist/swagger-ui.css'; | ||||
|  | ||||
| window.addEventListener('load', async () => { | ||||
|   const url = document.getElementById('swagger-ui').dataset.source; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user