mirror of
				https://github.com/StefBuwalda/dashboard_test.git
				synced 2025-10-30 19:29:58 +00:00 
			
		
		
		
	Changed page title and added a favicon
This commit is contained in:
		
							
								
								
									
										7
									
								
								app.py
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								app.py
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | |||||||
| # import requests as r | # import requests as r | ||||||
| from flask import jsonify, Flask, render_template | from flask import jsonify, Flask, render_template, send_file | ||||||
| from poll_services import start_async_loop | from poll_services import start_async_loop | ||||||
| from mem import services | from mem import services | ||||||
| import threading | import threading | ||||||
| @@ -19,6 +19,11 @@ def status(): | |||||||
|     return jsonify([s.to_dict() for s in services]) |     return jsonify([s.to_dict() for s in services]) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @app.route("/favicon.svg") | ||||||
|  | def favicon(): | ||||||
|  |     return send_file("/static/favicon.svg") | ||||||
|  |  | ||||||
|  |  | ||||||
| # Only run if directly running file | # Only run if directly running file | ||||||
| if __name__ == "__main__": | if __name__ == "__main__": | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										23
									
								
								static/favicon.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								static/favicon.svg
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||||
|  | <!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  --> | ||||||
|  | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | ||||||
|  | <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | ||||||
|  | 	 width="250px" height="250px" viewBox="-77.997 -77.998 250 250" enable-background="new -77.997 -77.998 250 250" | ||||||
|  | 	 xml:space="preserve"> | ||||||
|  | <circle fill="#009090" cx="47.003" cy="47.002" r="121.834"/> | ||||||
|  | <g> | ||||||
|  | 	<path fill="#FFFFFF" d="M135.518,28.755c0,5.432-0.891,10.791-2.618,15.942c-8.112,36.712-78.279,81.124-81.264,83.017 | ||||||
|  | 		c-0.934,0.581-1.978,0.884-3.046,0.884c-1.063,0-2.125-0.271-3.06-0.884c-0.8-0.521-20.569-12.996-40.611-30.144 | ||||||
|  | 		c-2.4-2.071-2.653-5.639-0.639-8.026c2.062-2.37,5.627-2.661,8.031-0.645c14.94,12.766,30.039,23.081,36.308,27.238 | ||||||
|  | 		c21.07-13.738,67.592-48.691,73.293-74.471c1.489-4.553,2.164-8.695,2.164-12.899c0-14.636-7.967-28.126-20.797-35.195 | ||||||
|  | 		c-16.387-9.091-38.32-4.898-50.309,9.551c-2.151,2.61-6.583,2.61-8.778,0C32.171-11.335,10.254-15.495-6.107-6.441 | ||||||
|  | 		c-12.871,7.083-20.839,20.567-20.839,35.187c0,4.177,0.707,8.335,2.025,12.354c0.845,3.76,2.462,7.437,4.52,11.25h33.237 | ||||||
|  | 		L24.25,26.116c0.978-2.245,3.313-3.657,5.714-3.405c2.447,0.214,4.487,1.973,5.032,4.363L43.4,62.599l10.868-17.824 | ||||||
|  | 		c1.024-1.693,2.869-2.727,4.86-2.727h20.629c3.137,0,5.689,2.541,5.689,5.696c0,3.137-2.553,5.693-5.689,5.693H62.323 | ||||||
|  | 		L45.948,80.335c-1.044,1.714-2.885,2.739-4.842,2.739c-0.311,0-0.611-0.025-0.89-0.067c-2.293-0.369-4.101-2.062-4.652-4.306 | ||||||
|  | 		l-7.678-32.358l-6.068,13.967c-0.906,2.098-2.96,3.423-5.226,3.423h-66.41c-3.117,0-5.694-2.55-5.694-5.693 | ||||||
|  | 		c0-3.138,2.577-5.694,5.694-5.694h16.698c-1.185-2.826-2.142-5.57-2.735-8.224c-1.589-4.608-2.449-9.975-2.449-15.379 | ||||||
|  | 		c0-18.779,10.213-36.071,26.716-45.163c19.114-10.573,44.406-7.249,60.202,7.594c15.754-14.845,41.027-18.167,60.175-7.594 | ||||||
|  | 		C125.272-7.339,135.518,9.964,135.518,28.755z"/> | ||||||
|  | </g> | ||||||
|  | </svg> | ||||||
| After Width: | Height: | Size: 2.0 KiB | 
| @@ -3,12 +3,10 @@ | |||||||
|  |  | ||||||
| <head> | <head> | ||||||
|     <meta ame="viewport" content="width=device-width, initial-scale=1" charset=" UTF-8"> |     <meta ame="viewport" content="width=device-width, initial-scale=1" charset=" UTF-8"> | ||||||
|     <title>Debug Divs</title> |     <title>Dashboard</title> | ||||||
|     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" |     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" | ||||||
|         integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous"> |         integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous"> | ||||||
|     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" |     <link rel="icon" type="image/svg+xml" href="/static/favicon.svg"> | ||||||
|         integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" |  | ||||||
|         crossorigin="anonymous"></script> |  | ||||||
| </head> | </head> | ||||||
|  |  | ||||||
| <body id="main_body" class="m-2 bg-light-subtle d-flex flex-wrap justify-content-center"> | <body id="main_body" class="m-2 bg-light-subtle d-flex flex-wrap justify-content-center"> | ||||||
| @@ -56,7 +54,10 @@ | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     fetchData(); // start the loop |     fetchData(); // start the loop | ||||||
|  |  | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
|  | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" | ||||||
|  |     integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" | ||||||
|  |     crossorigin="anonymous"></script> | ||||||
|  |  | ||||||
| </html> | </html> | ||||||
		Reference in New Issue
	
	Block a user