mirror of
https://github.com/yudai/gotty.git
synced 2026-03-09 23:22:34 +01:00
Add Progressive Web App support
provide manifest.json to enable PWA compatibilities
This commit is contained in:
parent
a080c85cbc
commit
b685b8040a
7 changed files with 146 additions and 54 deletions
BIN
resources/icon_192.png
Normal file
BIN
resources/icon_192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -2,6 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>{{ .title }}</title>
|
||||
<link rel="manifest" href="manifest.json">
|
||||
<link rel="icon" type="image/png" href="favicon.png">
|
||||
<link rel="stylesheet" href="./css/index.css" />
|
||||
<link rel="stylesheet" href="./css/xterm.css" />
|
||||
|
|
|
|||
15
resources/manifest.json
Normal file
15
resources/manifest.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"short_name": "{{ .title }}",
|
||||
"name": "{{ .title }}",
|
||||
"start_url": "./",
|
||||
"icons": [
|
||||
{
|
||||
"src": "./icon_192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
}
|
||||
],
|
||||
"display": "minimal-ui",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#000000"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue