diff --git a/cmd/webserver.go b/cmd/webserver.go index 24636b17..d52f3c1a 100644 --- a/cmd/webserver.go +++ b/cmd/webserver.go @@ -83,6 +83,8 @@ func startWebServer(c *cli.Context) error { }) router.StaticFile("robots.txt", filepath.Join(config.StaticRootPath, "robots.txt")) + router.StaticFile("favicon.ico", filepath.Join(config.StaticRootPath, "favicon.ico")) + router.StaticFile("favicon.png", filepath.Join(config.StaticRootPath, "favicon.png")) mobileEntryRoute := router.Group("/mobile") mobileEntryRoute.Use(bindMiddleware(middlewares.ServerSettingsCookie(config))) @@ -93,6 +95,10 @@ func startWebServer(c *cli.Context) error { router.Static("/mobile/css", filepath.Join(config.StaticRootPath, "css")) router.Static("/mobile/img", filepath.Join(config.StaticRootPath, "img")) router.Static("/mobile/fonts", filepath.Join(config.StaticRootPath, "fonts")) + router.StaticFile("/mobile/favicon.ico", filepath.Join(config.StaticRootPath, "favicon.ico")) + router.StaticFile("/mobile/favicon.png", filepath.Join(config.StaticRootPath, "favicon.png")) + router.StaticFile("/mobile/touchicon.png", filepath.Join(config.StaticRootPath, "touchicon.png")) + router.StaticFile("/mobile/manifest.json", filepath.Join(config.StaticRootPath, "manifest.json")) desktopEntryRoute := router.Group("/desktop") desktopEntryRoute.Use(bindMiddleware(middlewares.ServerSettingsCookie(config))) @@ -103,6 +109,10 @@ func startWebServer(c *cli.Context) error { router.Static("/desktop/css", filepath.Join(config.StaticRootPath, "css")) router.Static("/desktop/img", filepath.Join(config.StaticRootPath, "img")) router.Static("/desktop/fonts", filepath.Join(config.StaticRootPath, "fonts")) + router.StaticFile("/desktop/favicon.ico", filepath.Join(config.StaticRootPath, "favicon.ico")) + router.StaticFile("/desktop/favicon.png", filepath.Join(config.StaticRootPath, "favicon.png")) + router.StaticFile("/desktop/touchicon.png", filepath.Join(config.StaticRootPath, "touchicon.png")) + router.StaticFile("/desktop/manifest.json", filepath.Join(config.StaticRootPath, "manifest.json")) apiRoute := router.Group("/api") diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 00000000..c6e320c4 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/favicon.png b/public/favicon.png new file mode 100644 index 00000000..955b7920 Binary files /dev/null and b/public/favicon.png differ diff --git a/public/img/lab-192.png b/public/img/lab-192.png new file mode 100644 index 00000000..0b48c447 Binary files /dev/null and b/public/img/lab-192.png differ diff --git a/public/img/lab-512.png b/public/img/lab-512.png new file mode 100644 index 00000000..9c52200d Binary files /dev/null and b/public/img/lab-512.png differ diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 00000000..b63203b5 --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "lab account book", + "short_name": "lab", + "icons": [ + { + "src": "img/lab-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "img/lab-512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "start_url": "/", + "scope": "/", + "display": "standalone", + "background_color": "#F3F3F3", + "theme_color": "#C67E48", + "related_applications": [], + "prefer_related_applications": false +} diff --git a/public/touchicon.png b/public/touchicon.png new file mode 100644 index 00000000..f0f7ba7e Binary files /dev/null and b/public/touchicon.png differ diff --git a/src/public/mobile.html b/src/public/mobile.html index 0ea922e4..2af2ac95 100644 --- a/src/public/mobile.html +++ b/src/public/mobile.html @@ -9,12 +9,13 @@ - - - + lab + + +