mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
WebUI: Add Web App manifest to allow standalone usage
This commit is contained in:
parent
27451469fa
commit
3fe3b82170
5 changed files with 17 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
"url": "https://github.com/qbittorrent/qBittorrent.git"
|
||||
},
|
||||
"scripts": {
|
||||
"format": "js-beautify -r *.mjs private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && prettier --write **.css",
|
||||
"format": "js-beautify -r *.mjs private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js public/*.json && prettier --write **.css",
|
||||
"lint": "eslint *.mjs private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && stylelint **/*.css && html-validate private public"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="css/noscript.css?v=${CACHEID}">
|
||||
</noscript>
|
||||
<link rel="manifest" href="manifest.json?v=${CACHEID}">
|
||||
|
||||
<script defer src="scripts/login.js?locale=${LANG}&v=${CACHEID}"></script>
|
||||
</head>
|
||||
|
|
13
src/webui/www/public/manifest.json
Normal file
13
src/webui/www/public/manifest.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"name": "QBT_TR(qBittorrent WebUI)QBT_TR[CONTEXT=Login]",
|
||||
"icons": [{
|
||||
"src": "images/qbittorrent32.png",
|
||||
"sizes": "32x32",
|
||||
"type": "image/png"
|
||||
}, {
|
||||
"src": "images/qbittorrent-tray.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml"
|
||||
}],
|
||||
"display": "standalone"
|
||||
}
|
|
@ -35,7 +35,7 @@ import re
|
|||
import sys
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
accepted_exts = [".js", ".html", ".css"]
|
||||
accepted_exts = [".js", ".html", ".css", ".json"]
|
||||
|
||||
no_obsolete = False
|
||||
www_folder = "."
|
||||
|
|
|
@ -447,6 +447,7 @@
|
|||
<file>public/images/qbittorrent-tray.svg</file>
|
||||
<file>public/images/qbittorrent32.png</file>
|
||||
<file>public/index.html</file>
|
||||
<file>public/manifest.json</file>
|
||||
<file>public/scripts/login.js</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue