======= Service qrcode.chapril.org ========
====== Installation ======
===== Pré-requis =====
Installation des pré-requis :
apt install php7.3-gd imagemagick pngquant
===== L'application =====
Choix de l'installation par le dépôt Git :
cd /var/www/
git clone https://code.antopie.org/miraty/libreqr.git qrcode.chapril.org
Sélection de la dernière branche officielle :
cd /var/www/qrcode.chapril.org/
git checkout -b 1.3.0
S'assurer des permissions :
cd /var/www/qrcode.chapril.org/
chown www-data.www-data temp/
chmod ug+rwx temp/
===== L'arborescence du service =====
Tout service Chapril a son espace dédié :
mkdir -p /srv/qrcode.chapril.org/
cd /srv/qrcode.chapril.org/
ln -s /var/www/qrcode.chapril.org
Création d'un dépôt ''tools'' à lier à un projet ''qrcode.chapril.org-tools'' sur la forge April :
cd /srv/qrcode.chapril.org/tools/
echo "# Service qrcode.chapril.org" > README.md
git remote add origin ssh://gitea@forge.april.org:222/Chapril/qrcode.chapril.org-tools.git
git push -u origin master
===== Personnalisation =====
==== Thème personnalisé ====
Créer le thème personnalisé :
cd /var/www/qrcode.chapril.org/themes/
cp -a dark chapril
chmod -R go+rX chapril
Fichier ''themes/chapril/theme.php'' :
$variablesTheme = array(
"bg" => "#67a3f2",
"bgField" => "#2e5281",
"bgTextField" => "white",
"fgTextField" => "black",
"fgDefaultTextField" => "#999999",
"bgHelp" => "#2e5281",
"border" => "#2e5281",
"borderHover" => "#808080",
"borderFocus" => "white",
"text" => "white",
"secondaryText" => "white"
Propagations spécifiques dans ''style.less'' :
#txt {
background-color: @bgTextField;
- color: @text;
+ color: @fgTextField;
[…]
#txt::placeholder {
- color: @secondaryText;
+ color: @fgDefaultTextField;
opacity: 1;
Corrections pour la bannière Chapril dans ''style.less'' :
body {
- margin: 18px;
+ margin: 0px;
[…]
- height: 99%;
+ height: 96%;
Fichier ''config.inc.php'' :
-$theme = "dark";
+$theme = "chapril";
==== Favicon ====
Placer le fichier favicon source dans ''themes/chapril/icons/source.png'' puis :
cd /var/www/qrcode.chapril.org/
php themes/resize.php chapril
==== Logo principal ====
Placer le fichier logo dans ''themes/chapril/icons/chapril-libreqr-logo.png'' puis :
Fichier ''index.php'' :
-
+
==== Titre ====
Fichier ''index.php'' :
- LibreQR
+ QrcodeChaprilOrg
==== Durée de conservation des codes QR ====
Fichier ''locales/fr.php''
- Code QR sur Wikipédia
+ Code QR sur Wikipédia Votre code QR est conservé 7 jours avant suppression automatique.
====== Mise à jour ======
TODO