mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Optimize web config to be installed as PWA (#10405)
* Update values and add site manifest * Use appropriate icon types * Add purpose to all * Adjust dark theme color * Remove unused
This commit is contained in:
		
							parent
							
								
									09cf54c731
								
							
						
					
					
						commit
						b8e472643d
					
				@ -25,9 +25,12 @@
 | 
				
			|||||||
    <link rel="icon" type="image/svg+xml" href="/images/favicon.svg" />
 | 
					    <link rel="icon" type="image/svg+xml" href="/images/favicon.svg" />
 | 
				
			||||||
    <link rel="manifest" href="/site.webmanifest" />
 | 
					    <link rel="manifest" href="/site.webmanifest" />
 | 
				
			||||||
    <link rel="mask-icon" href="/images/favicon.svg" color="#3b82f7" />
 | 
					    <link rel="mask-icon" href="/images/favicon.svg" color="#3b82f7" />
 | 
				
			||||||
 | 
					    <meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
 | 
				
			||||||
 | 
					    <meta name="theme-color" content="#000000" media="(prefers-color-scheme: dark)" />
 | 
				
			||||||
  </head>
 | 
					  </head>
 | 
				
			||||||
  <body>
 | 
					  <body>
 | 
				
			||||||
    <div id="root"></div>
 | 
					    <div id="root"></div>
 | 
				
			||||||
 | 
					    <noscript>You need to enable JavaScript to run this app.</noscript>
 | 
				
			||||||
    <script type="module" src="/src/main.tsx"></script>
 | 
					    <script type="module" src="/src/main.tsx"></script>
 | 
				
			||||||
  </body>
 | 
					  </body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								web/public/images/android-chrome-192x192.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								web/public/images/android-chrome-192x192.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 9.0 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								web/public/images/android-chrome-512x512.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								web/public/images/android-chrome-512x512.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 17 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								web/public/images/apple-touch-icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								web/public/images/apple-touch-icon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 3.9 KiB  | 
							
								
								
									
										28
									
								
								web/site.webmanifest
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								web/site.webmanifest
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "name": "Frigate",
 | 
				
			||||||
 | 
					  "short_name": "Frigate",
 | 
				
			||||||
 | 
					  "start_url": "/",
 | 
				
			||||||
 | 
					  "icons": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "src": "/images/android-chrome-512x512.png",
 | 
				
			||||||
 | 
					      "sizes": "512x512",
 | 
				
			||||||
 | 
					      "type": "image/png",
 | 
				
			||||||
 | 
					      "purpose": "any"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "src": "/images/android-chrome-192x192.png",
 | 
				
			||||||
 | 
					      "sizes": "192x192",
 | 
				
			||||||
 | 
					      "type": "image/png",
 | 
				
			||||||
 | 
					      "purpose": "any"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "src": "/images/apple-touch-icon.png",
 | 
				
			||||||
 | 
					      "sizes": "180x180",
 | 
				
			||||||
 | 
					      "type": "image/png",
 | 
				
			||||||
 | 
					      "purpose": "maskable"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "theme_color": "#ffffff",
 | 
				
			||||||
 | 
					  "background_color": "#ffffff",
 | 
				
			||||||
 | 
					  "display": "standalone"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user