refac: assets
| @ -587,6 +587,14 @@ load_oauth_providers() | ||||
| 
 | ||||
| STATIC_DIR = Path(os.getenv("STATIC_DIR", OPEN_WEBUI_DIR / "static")).resolve() | ||||
| 
 | ||||
| for file_path in (FRONTEND_BUILD_DIR / "static").glob("**/*"): | ||||
|     if file_path.is_file(): | ||||
|         target_path = STATIC_DIR / file_path.relative_to( | ||||
|             (FRONTEND_BUILD_DIR / "static") | ||||
|         ) | ||||
|         target_path.parent.mkdir(parents=True, exist_ok=True) | ||||
|         shutil.copyfile(file_path, target_path) | ||||
| 
 | ||||
| frontend_favicon = FRONTEND_BUILD_DIR / "static" / "favicon.png" | ||||
| 
 | ||||
| if frontend_favicon.exists(): | ||||
|  | ||||
							
								
								
									
										
											BIN
										
									
								
								backend/open_webui/static/apple-touch-icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 7.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								backend/open_webui/static/favicon-96x96.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								backend/open_webui/static/favicon-dark.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 16 KiB | 
							
								
								
									
										
											BIN
										
									
								
								backend/open_webui/static/favicon.ico
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 15 KiB | 
							
								
								
									
										3
									
								
								backend/open_webui/static/favicon.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 14 KiB | 
							
								
								
									
										21
									
								
								backend/open_webui/static/site.webmanifest
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,21 @@ | ||||
| { | ||||
|   "name": "Open WebUI", | ||||
|   "short_name": "WebUI", | ||||
|   "icons": [ | ||||
|     { | ||||
|       "src": "/favicon/web-app-manifest-192x192.png", | ||||
|       "sizes": "192x192", | ||||
|       "type": "image/png", | ||||
|       "purpose": "maskable" | ||||
|     }, | ||||
|     { | ||||
|       "src": "/favicon/web-app-manifest-512x512.png", | ||||
|       "sizes": "512x512", | ||||
|       "type": "image/png", | ||||
|       "purpose": "maskable" | ||||
|     } | ||||
|   ], | ||||
|   "theme_color": "#ffffff", | ||||
|   "background_color": "#ffffff", | ||||
|   "display": "standalone" | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								backend/open_webui/static/splash-dark.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								backend/open_webui/static/web-app-manifest-192x192.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 8.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								backend/open_webui/static/web-app-manifest-512x512.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 29 KiB | 
							
								
								
									
										
											BIN
										
									
								
								static/static/favicon-dark.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 16 KiB |