please the iOS gods

This commit is contained in:
Roberto Hidalgo 2023-04-16 17:03:18 -06:00
parent b768c878d6
commit a34457492c
11 changed files with 45 additions and 1 deletions

View File

@ -10,6 +10,13 @@
<link rel="stylesheet" href="https://cdn.rob.mx/nidito/index.css" />
<link rel="stylesheet" href="/static/index.css" />
<link rel="manifest" href="/static/admin-manifest.webmanifest" />
<link rel="icon" type="image/png" href="/static/icon/128.png" sizes="128x128" />
<link rel="icon" type="image/png" href="/static/icon/512.png" sizes="512" />
<link rel="apple-touch-icon" href="/static/icon/512.png">
<link rel="apple-touch-icon" sizes="152x152" href="/static/icon/152.png">
<link rel="apple-touch-icon" sizes="384x384" href="/static/icon/384.png">
<link rel="apple-touch-icon" sizes="192x192" href="/static/icon/192.png">
<style>
#user-list {
display: grid;

View File

@ -9,6 +9,7 @@ import (
"io"
"io/fs"
"log"
"mime"
"net/http"
"os"
"time"
@ -236,6 +237,7 @@ func Initialize(config *Config) (http.Handler, error) {
assetRoot = http.FS(subfs)
}
mime.AddExtensionType(".webmanifest", "application/manifest+json")
router.ServeFiles("/static/*filepath", assetRoot)
router.GET("/login", renderTemplate(loginTemplate))
router.GET("/", auth.RequireAuthOrRedirect(renderTemplate(indexTemplate), "/login"))

View File

@ -4,7 +4,42 @@
"display": "standalone",
"icons": [
{
"src": "static/512.png",
"src": "static/icon/72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "static/icon/96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "static/icon/128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "static/icon/144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "static/icon/152.png",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "static/icon/192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "static/icon/384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "static/icon/512.png",
"sizes": "512x512",
"type": "image/png"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB