mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-23 06:35:24 -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"
|
"url": "https://github.com/qbittorrent/qBittorrent.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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"
|
"lint": "eslint *.mjs private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && stylelint **/*.css && html-validate private public"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<noscript>
|
<noscript>
|
||||||
<link rel="stylesheet" type="text/css" href="css/noscript.css?v=${CACHEID}">
|
<link rel="stylesheet" type="text/css" href="css/noscript.css?v=${CACHEID}">
|
||||||
</noscript>
|
</noscript>
|
||||||
|
<link rel="manifest" href="manifest.json?v=${CACHEID}">
|
||||||
|
|
||||||
<script defer src="scripts/login.js?locale=${LANG}&v=${CACHEID}"></script>
|
<script defer src="scripts/login.js?locale=${LANG}&v=${CACHEID}"></script>
|
||||||
</head>
|
</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 sys
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
|
|
||||||
accepted_exts = [".js", ".html", ".css"]
|
accepted_exts = [".js", ".html", ".css", ".json"]
|
||||||
|
|
||||||
no_obsolete = False
|
no_obsolete = False
|
||||||
www_folder = "."
|
www_folder = "."
|
||||||
|
|
|
@ -447,6 +447,7 @@
|
||||||
<file>public/images/qbittorrent-tray.svg</file>
|
<file>public/images/qbittorrent-tray.svg</file>
|
||||||
<file>public/images/qbittorrent32.png</file>
|
<file>public/images/qbittorrent32.png</file>
|
||||||
<file>public/index.html</file>
|
<file>public/index.html</file>
|
||||||
|
<file>public/manifest.json</file>
|
||||||
<file>public/scripts/login.js</file>
|
<file>public/scripts/login.js</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue