mirror of
https://github.com/librespeed/speedtest.git
synced 2026-08-04 14:48:38 +00:00
Merge pull request #818 from sstidl/feat/add-pwa-manifest
feat: add installable PWA metadata
This commit is contained in:
commit
7e10d1eb96
10 changed files with 38 additions and 1 deletions
|
|
@ -27,6 +27,8 @@ COPY index-modern.html /speedtest/
|
|||
COPY config.json /speedtest/
|
||||
COPY stability.html /speedtest/
|
||||
COPY favicon.ico /speedtest/
|
||||
COPY manifest.webmanifest /speedtest/
|
||||
COPY images/ /speedtest/images/
|
||||
|
||||
COPY docker/entrypoint.sh /
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ COPY index-modern.html /speedtest/
|
|||
COPY config.json /speedtest/
|
||||
COPY stability.html /speedtest/
|
||||
COPY favicon.ico /speedtest/
|
||||
COPY manifest.webmanifest /speedtest/
|
||||
COPY images/ /speedtest/images/
|
||||
|
||||
COPY docker/entrypoint.sh /
|
||||
|
||||
|
|
|
|||
|
|
@ -41,8 +41,10 @@ cp /speedtest/stability.html /var/www/html/
|
|||
cp /speedtest/config.json /var/www/html/
|
||||
cp /speedtest/design-switch.js /var/www/html/
|
||||
|
||||
# Copy favicon
|
||||
# Copy PWA metadata and icons
|
||||
cp /speedtest/favicon.ico /var/www/html/
|
||||
cp /speedtest/manifest.webmanifest /var/www/html/
|
||||
cp -r /speedtest/images /var/www/html/
|
||||
|
||||
# Set custom webroot on alpine
|
||||
if is_alpine; then
|
||||
|
|
|
|||
BIN
images/icon-192.png
Normal file
BIN
images/icon-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
images/icon-512.png
Normal file
BIN
images/icon-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
<head>
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<link rel="apple-touch-icon" href="images/icon-192.png">
|
||||
<meta name="theme-color" content="#000000">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
|
||||
<meta charset="UTF-8" />
|
||||
<script type="text/javascript" src="speedtest.js"></script>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@
|
|||
<meta name="description"
|
||||
content="Free and Open Source Speedtest. Run it right now in your browser, or self-host on a PHP, Golang, Rust or Node server. License: LGPL." />
|
||||
<link rel="shortcut icon" href="images/favicon.svg" />
|
||||
<link rel="manifest" href="manifest.webmanifest" />
|
||||
<link rel="apple-touch-icon" href="images/icon-192.png" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<script type="text/javascript" src="speedtest.js"></script>
|
||||
<script type="text/javascript">
|
||||
// Set this to a different URL to load the server list from another location.
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
<head>
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<link rel="apple-touch-icon" href="images/icon-192.png">
|
||||
<meta name="theme-color" content="#000000">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
|
||||
<meta charset="UTF-8" />
|
||||
<script type="text/javascript" src="design-switch.js"></script>
|
||||
|
|
|
|||
20
manifest.webmanifest
Normal file
20
manifest.webmanifest
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "LibreSpeed",
|
||||
"short_name": "LibreSpeed",
|
||||
"start_url": "./",
|
||||
"display": "standalone",
|
||||
"background_color": "#000000",
|
||||
"theme_color": "#000000",
|
||||
"icons": [
|
||||
{
|
||||
"src": "images/icon-192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "images/icon-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -50,6 +50,8 @@
|
|||
"stability.html",
|
||||
"index.html",
|
||||
"favicon.ico",
|
||||
"manifest.webmanifest",
|
||||
"images/",
|
||||
"backend/",
|
||||
"examples/",
|
||||
"results/"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue