Edoruin commited on
Commit
acfa403
·
1 Parent(s): d8abcf2

add assets icons use to flet web page

Browse files
Files changed (2) hide show
  1. app/main.py +1 -1
  2. assets/site.webmanifest +19 -1
app/main.py CHANGED
@@ -343,4 +343,4 @@ def main(page: ft.Page):
343
 
344
  if __name__ == "__main__":
345
  port = int(os.getenv("PORT", 7860))
346
- ft.app(target=main, view=ft.AppView.WEB_BROWSER, host="0.0.0.0", port=port)
 
343
 
344
  if __name__ == "__main__":
345
  port = int(os.getenv("PORT", 7860))
346
+ ft.app(target=main, view=ft.AppView.WEB_BROWSER, host="0.0.0.0", port=port, assets_dir="../assets")
assets/site.webmanifest CHANGED
@@ -1 +1,19 @@
1
- {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Maker Station",
3
+ "short_name": "MakerStation",
4
+ "icons": [
5
+ {
6
+ "src": "/icon192x192.png",
7
+ "sizes": "192x192",
8
+ "type": "image/png"
9
+ },
10
+ {
11
+ "src": "/icon-512x512.png",
12
+ "sizes": "512x512",
13
+ "type": "image/png"
14
+ }
15
+ ],
16
+ "theme_color": "#1a1c1e",
17
+ "background_color": "#1a1c1e",
18
+ "display": "standalone"
19
+ }