mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-07 08:34:15 +01:00
feat: Add necessary files for PWA (#347)
* feat: PWA Implementation * feat: PWA Implementation. fix comments * feat: PWA Implementation. fix comments Co-authored-by: Viacheslav Bondar <bondarslavik@gmail.com>
This commit is contained in:
parent
9fc8374a4d
commit
9e46e3972d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
.idea
|
||||
.vscode
|
||||
.DS_Store
|
||||
*.db
|
||||
*.db-shm
|
||||
*.db-wal
|
||||
|
BIN
web/app/public/apple-touch-icon.png
Normal file
BIN
web/app/public/apple-touch-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
@ -6,12 +6,18 @@
|
||||
window.config = {logo: "{{ .Logo }}", header: "{{ .Header }}", link: "{{ .Link }}", buttons: []};{{- range .Buttons}}window.config.buttons.push({name:"{{ .Name }}",link:"{{ .Link }}"});{{end}}
|
||||
</script>
|
||||
<title>{{ .Title }}</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<meta property="description" content="{{ .Description }}" />
|
||||
<meta name="description" content="{{ .Description }}" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-title" content="{{ .Title }}" />
|
||||
<meta name="application-name" content="{{ .Title }}" />
|
||||
<meta name="theme-color" content="#f7f9fb" />
|
||||
</head>
|
||||
<body class="dark:bg-gray-900">
|
||||
<noscript><strong>Enable JavaScript to view this page.</strong></noscript>
|
||||
|
BIN
web/app/public/logo-192x192.png
Normal file
BIN
web/app/public/logo-192x192.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
BIN
web/app/public/logo-512x512.png
Normal file
BIN
web/app/public/logo-512x512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
24
web/app/public/manifest.json
Normal file
24
web/app/public/manifest.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": "gatus",
|
||||
"name": "Gatus",
|
||||
"short_name": "Gatus",
|
||||
"description": "Gatus is an advanced automated status page that lets you monitor your applications and configure alerts to notify you if there's an issue",
|
||||
"lang": "en",
|
||||
"scope": "/",
|
||||
"start_url": "/",
|
||||
"theme_color": "#f7f9fb",
|
||||
"background_color": "#f7f9fb",
|
||||
"display": "standalone",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/logo-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/logo-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
BIN
web/static/apple-touch-icon.png
Normal file
BIN
web/static/apple-touch-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
@ -1 +1 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><script>window.config = {logo: "{{ .Logo }}", header: "{{ .Header }}", link: "{{ .Link }}", buttons: []};{{- range .Buttons}}window.config.buttons.push({name:"{{ .Name }}",link:"{{ .Link }}"});{{end}}</script><title>{{ .Title }}</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="shortcut icon" href="/favicon.ico"/><meta property="description" content="{{ .Description }}"/><script defer="defer" src="/js/chunk-vendors.js"></script><script defer="defer" src="/js/app.js"></script><link href="/css/app.css" rel="stylesheet"></head><body class="dark:bg-gray-900"><noscript><strong>Enable JavaScript to view this page.</strong></noscript><div id="app"></div></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><script>window.config = {logo: "{{ .Logo }}", header: "{{ .Header }}", link: "{{ .Link }}", buttons: []};{{- range .Buttons}}window.config.buttons.push({name:"{{ .Name }}",link:"{{ .Link }}"});{{end}}</script><title>{{ .Title }}</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/favicon.ico"/><meta name="description" content="{{ .Description }}"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="{{ .Title }}"><meta name="application-name" content="{{ .Title }}"><meta name="theme-color" content="#f7f9fb"><script defer="defer" src="/js/chunk-vendors.js"></script><script defer="defer" src="/js/app.js"></script><link href="/css/app.css" rel="stylesheet"></head><body class="dark:bg-gray-900"><noscript><strong>Enable JavaScript to view this page.</strong></noscript><div id="app"></div></body></html>
|
BIN
web/static/logo-192x192.png
Normal file
BIN
web/static/logo-192x192.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
BIN
web/static/logo-512x512.png
Normal file
BIN
web/static/logo-512x512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
24
web/static/manifest.json
Normal file
24
web/static/manifest.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": "gatus",
|
||||
"name": "Gatus",
|
||||
"short_name": "Gatus",
|
||||
"description": "Gatus is an advanced automated status page that lets you monitor your applications and configure alerts to notify you if there's an issue",
|
||||
"lang": "en",
|
||||
"scope": "/",
|
||||
"start_url": "/",
|
||||
"theme_color": "#f7f9fb",
|
||||
"background_color": "#f7f9fb",
|
||||
"display": "standalone",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/logo-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/logo-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user