mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	Integrate SwaggerUI with direct download and cleanup package
Added a customized SwaggerUI HTML template under Dev directory. Removed outdated swagger-ui dependency from package.json to streamline dependency management.
This commit is contained in:
		| @@ -54,7 +54,6 @@ | ||||
|     "masonry-layout": "^4.2.2", | ||||
|     "mime": "^4.0.0", | ||||
|     "pdfjs-dist": "^4.3.136", | ||||
|     "swagger-ui": "^4.15.5", | ||||
|     "vis-network": "^9.1.0", | ||||
|     "vue": "^3.2.37", | ||||
|     "vue-i18n": "^9.1.6", | ||||
|   | ||||
| @@ -0,0 +1,22 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| <head> | ||||
|     <meta charset="utf-8" /> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
|     <meta name="description" content="SwaggerUI" /> | ||||
|     <title>SwaggerUI</title> | ||||
|     <link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui.css" /> | ||||
| </head> | ||||
| <body> | ||||
| <div id="swagger-ui"></div> | ||||
| <script src="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui-bundle.js" crossorigin></script> | ||||
| <script> | ||||
|     window.onload = () => { | ||||
|         window.ui = SwaggerUIBundle({ | ||||
|             url: '/_dev/specs.yaml', | ||||
|             dom_id: '#swagger-ui', | ||||
|         }); | ||||
|     }; | ||||
| </script> | ||||
| </body> | ||||
| </html> | ||||
		Reference in New Issue
	
	Block a user