Browse Source

Remove the WebManifest

main
Miraty 4 months ago
parent
commit
05da7e24a7
  1. 1
      CHANGELOG.md
  2. 2
      README.md
  3. 2
      README_fr.md
  4. 1
      index.php
  5. 27
      manifest.php

1
CHANGELOG.md

@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* Ubuntu font (use system font instead)
* OpenSearch plugin (because LibreQR is not a search engine)
* WebManifest (because LibreQR is not a progressive web app)
## 1.3.0 - 2020-11-03

2
README.md

@ -10,8 +10,6 @@ A LibreQR instance is available at <https://qr.antopie.org>.
## How it works
A [WebManifest](https://developer.mozilla.org/docs/Web/Manifest) is also included, which allows better system integration using Fennec (Firefox Android) ou Chromium.
QR codes generated are located in the temp/ directory, named with the number of random characters set in config.inc.php (32 by default), and then deleted after the time set in config.inc.php (2 days by default).
See `config.inc.php` for more settings.

2
README_fr.md

@ -10,8 +10,6 @@ Une instance de LibreQR est disponible sur <https://qr.antopie.org>.
## Fonctionnement
Un [WebManifest](https://developer.mozilla.org/docs/Web/Manifest) est également inclus, ce qui permet de mieux l'intégrer au système via Fennec (Firefox Android) ou Chromium.
Les codes QR générés sont placés dans le dossier temp/, nommés avec le nombre de caractères aléatoires indiqué dans config.inc.php (32 par défaut), puis supprimés après le temps indiqué dans config.inc.php (2 jours par défaut).
Voir `config.inc.php` pour plus de paramètres.

1
index.php

@ -74,7 +74,6 @@ if (
<meta name="application-name" content="LibreQR">
<meta name="referrer" content="no-referrer">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src 'self' data:; style-src 'self'; manifest-src 'self'; form-action 'self';">
<link rel="manifest" href="manifest.php">
<?php
require_once "less.php/lib/Less/Autoloader.php";
Less_Autoloader::register();

27
manifest.php

@ -1,27 +0,0 @@
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
require "inc.php"; ?>
{
"dir": "ltr",
"lang": "<?= $locale ?>",
"name": "LibreQR",
"short_name": "LibreQR",
"description": "<?= $loc['subtitle'] ?>",
"start_url": "<?= $rootPath; ?>",
"scope": "<?= $rootPath; ?>",
"orientation": "any",
"icons":
[
<?php for ($i = 0; $i < (count($themeDimensionsIcons) - 1); $i++) { ?>
{
"src": "themes/<?= $theme; ?>/icons/<?= $themeDimensionsIcons[$i]; ?>.png",
"sizes": "<?= $themeDimensionsIcons[$i]; ?>x<?= $themeDimensionsIcons[$i]; ?>",
"type": "image/png"
},
<?php } ?>
{
"src": "themes/<?= $theme; ?>/icons/<?= $themeDimensionsIcons[$i]; ?>.png",
"sizes": "<?= $themeDimensionsIcons[$i]; ?>x<?= $themeDimensionsIcons[$i]; ?>",
"type": "image/png"
}
]
}
Loading…
Cancel
Save