please the iOS gods
@ -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;
|
||||
|
@ -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"))
|
||||
|
@ -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"
|
||||
}
|
||||
|
BIN
internal/server/static/icon/128.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
internal/server/static/icon/144.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
internal/server/static/icon/152.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
internal/server/static/icon/192.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
internal/server/static/icon/384.png
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
BIN
internal/server/static/icon/72.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
internal/server/static/icon/96.png
Normal file
After Width: | Height: | Size: 2.5 KiB |