Compare commits

..

11 Commits

Author SHA1 Message Date
Hugo A 3c1bddef83 conflits résolus 2022-08-27 11:19:51 +02:00
Hugo A 6ef753f308 merge 2022-08-15 12:28:16 +02:00
Hugo A 8623614468 branche initiale 2022-08-15 12:06:51 +02:00
Hugo A f73561ce36 branche initiale 2022-08-15 12:06:44 +02:00
Hugo A c99442982f branche initiale 2022-08-15 12:06:38 +02:00
Hugo A 03ca7ca0dd branche initiale 2022-08-15 12:06:32 +02:00
Hugo A 863364ac0e branche initiale 2022-08-15 12:06:27 +02:00
Hugo A 11b04ad4ad branche initiale 2022-08-15 12:06:22 +02:00
Hugo A 34e63f7df5 branche initiale 2022-08-15 12:06:06 +02:00
Hugo A 6b15754682 branche initiale 2022-08-15 12:05:59 +02:00
Hugo A a0b2c2a531 branche initiale 2022-08-15 12:05:50 +02:00
303 changed files with 3137 additions and 3413 deletions

View File

@ -4,17 +4,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## 2.0.1 - 2023-07-08
### Added
* Indonesian localization
* Basque localization
### Changed
* Update dependencies
## 2.0.0 - 2022-06-07
### Added
@ -28,7 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* Output generated QR code with `data:` URI
* Change the QR code generation library
* Use less.php instead of lesserphp
* Use the prefers-color-scheme CSS feature to let the client choose its preferred theme (dark/light)
* Use the prefers-color-scheme CSS feature to let the client choose its prefered theme (dark/light)
### Removed

View File

@ -10,7 +10,7 @@ A LibreQR instance is available at <https://qr.antopie.org>.
### Generic
Just place this source code in a Web server with PHP8.0+, extensions `gd`, `mbstring` and `iconv`, and writing rights on the `css/` directory.
Just place this source code in a Web server with PHP7.4+, extensions `gd`, `mbstring` and `iconv`, and writing rights on the `css/` directory.
#### Security hardening
@ -32,7 +32,8 @@ There is [a package](https://code.antopie.org/miraty/qr_ynh/) for [YunoHost](htt
For historical reasons, LibreQR is technically named `qr` in YunoHost.
You can install it from the WebAdmin or with this command:
You can install it from the WebAdmin or with this command :
```
sudo yunohost app install qr
```

0
composer.json Normal file → Executable file
View File

View File

@ -3,14 +3,14 @@
// LIBREQR SETTINGS
// Theme's directory name
define("THEME", "chapril");
define("THEME", "libreqr");
// Language used if those requested by the user are not available
define("DEFAULT_LOCALE", "fr");
// Will be printed at the bottom of the interface
define("CUSTOM_TEXT_ENABLED", true);
define("CUSTOM_TEXT", "Ce service est fourni par l'association Chapril. Le code source de ce service est disponible <a href='https://forge.april.org/Algov/qrcode.chapril.org'>ici</a>.");
define("CUSTOM_TEXT", "Ce service est fourni par l'association Chapril.");
// Default values
define("DEFAULT_REDUNDANCY", "high");

0
css/.gitkeep Normal file → Executable file
View File

View File

@ -10,7 +10,7 @@ use Endroid\QrCode\Color\Color;
require "config.inc.php";
require "vendor/autoload.php";
define("LIBREQR_VERSION", "2.0.1");
define("LIBREQR_VERSION", "2.0.0");
// Defines the locale to be used
$locale = DEFAULT_LOCALE;
@ -73,7 +73,6 @@ if (
http_response_code(400);
exit("Wrong value for margin");
}
if (is_numeric($_POST['size']) AND $_POST['size'] >= 21 AND $_POST['size'] <= 4096) {
$params['size'] = $_POST['size'];
} else if (empty($_POST['size'])) {
@ -154,6 +153,7 @@ 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'; form-action 'self';">
<link rel="stylesheet" type="text/css" href="resources/chapril-banner.css">
<?php
require "themes/" . THEME . "/theme.php";
$colorScheme['theme'] = THEME;
@ -166,44 +166,16 @@ $cssFileName = Less_Cache::Get(array("style.less" => ""), $options, $colorScheme
foreach($themeDimensionsIcons as $dimFav) // Set all icons dimensions
echo ' <link rel="icon" type="image/png" href="themes/' . THEME . '/icons/' . $dimFav . '.png" sizes="' . $dimFav . 'x' . $dimFav . '">' . "\n";
?>
<link rel="stylesheet" type="text/css" href="/themes/chapril/chapril-banner.css" />
</head>
<body>
<nav class="chapril-banniere-Nav">
<div class="chapril-banniere-Logo" aria-hidden="true">
<a href="https://www.chapril.org"><img alt="" src="/themes/chapril/chapril-banner-logo.png"/></a>
</div>
<div class="chapril-banniere-Menu" aria-hidden="true">
<details>
<summary>
<span></span>
<span></span>
<span></span>
</summary>
<div><a href="https://www.chapril.org/">Accueil Chapril</a></div>
<div><a href="https://www.chapril.org/services.html">Services libres</a></div>
<div><a href="https://pouet.april.org/@aprilorg">Nous suivre</a></div>
<div><a href="https://www.chapril.org/cgu.html">CGU</a></div>
<div><a href="https://www.chapril.org/a-propos.html">Mentions légales</a></div>
<div><a href="https://www.chapril.org/contact.html">Nous contacter</a></div>
</details>
</div>
<div class="chapril-banniere-Entree"><a href="https://www.chapril.org/" target="_blank">Accueil Chapril</a></div>
<div class="chapril-banniere-Entree"><a href="https://www.chapril.org/services.html" target="_blank">Services libres</a></div>
<div class="chapril-banniere-Entree"><a href="https://pouet.april.org/@aprilorg" target="_blank">Nous suivre</a></div>
<div class="chapril-banniere-Entree"><a href="https://www.chapril.org/cgu.html" target="_blank">CGU</a></div>
<div class="chapril-banniere-Entree"><a href="https://www.chapril.org/a-propos.html" target="_blank">Mentions légales</a></div>
<div class="chapril-banniere-Entree"><a href="https://www.chapril.org/contact.html" target="_blank">Nous contacter</a></div>
</nav>
<header>
<a id="linkTitles" href="./">
<img alt="" id="logo" src="themes/chapril/logo-dark.png">
<a id="linkTitles" href="./">
<img style"width: 64px; height: 64px;" alt="" id="logo" src="resources/logo.png"">
<div id="titles">
<h1>QrCodeChaprilOrg</h1>
<h2><?= $loc['subtitle'] ?></h2>
<h1>QrcodeChaprilOrg</h1>
<h2>Générateur de codes QR</h2>
</div>
</a>
</header>
@ -332,4 +304,30 @@ if ($qrCodeAvailable) {
</footer>
</body>
<nav class="chapril-banniere-Nav">
<div class="chapril-banniere-Logo" aria-hidden="true">
<a href="https://www.chapril.org"><img alt="" src="resources/chapril-banner-logo.png"></a>
</div>
<div class="chapril-banniere-Menu" aria-hidden="true">
<details>
<summary>
<span></span>
<span></span>
<span></span>
</summary>
<div><a href="https://www.chapril.org/">Accueil Chapril</a></div>
<div><a href="https://www.chapril.org/services.html">Services libres</a></div>
<div><a href="https://pouet.april.org/@aprilorg">Nous suivre</a></div>
<div><a href="https://www.chapril.org/cgu.html">CGU</a></div>
<div><a href="https://www.chapril.org/a-propos.html">Mentions légales</a></div>
<div><a href="https://www.chapril.org/contact.html">Nous contacter</a></div>
</details>
</div>
<div class="chapril-banniere-Entree"><a href="https://www.chapril.org/">Accueil Chapril</a></div>
<div class="chapril-banniere-Entree"><a href="https://www.chapril.org/services.html">Services libres</a></div>
<div class="chapril-banniere-Entree"><a href="https://pouet.april.org/@aprilorg">Nous suivre</a></div>
<div class="chapril-banniere-Entree"><a href="https://www.chapril.org/cgu.html">CGU</a></div>
<div class="chapril-banniere-Entree"><a href="https://www.chapril.org/a-propos.html">Mentions légales</a></div>
<div class="chapril-banniere-Entree"><a href="https://www.chapril.org/contact.html">Nous contacter</a></div>
</nav>
</html>

6
locales/en.php Normal file → Executable file
View File

@ -14,7 +14,7 @@ $loc = array(
'help_content' => "
<p>You can encode whatever text you want.</p>
<p>Software decoding these QR codes could suggest to open them with dedicated software, depending on their <a href='https://en.wikipedia.org/wiki/List_of_URI_schemes' hreflang='en' rel='help external noreferrer'>URI scheme</a>.</p>
<p>Software which decodes these QR codes could suggest to open them with dedicated software, depending on their <a href='https://en.wikipedia.org/wiki/List_of_URI_schemes' hreflang='en' rel='help external noreferrer'>URI scheme</a>.</p>
<p>For instance, to open a webpage: <code>https://www.example/</code></p>
<p>To send an email: <code>mailto:contact@email.example</code></p>
<p>To share geographic coordinates: <code>geo:48.867564,2.364057</code></p>
@ -33,10 +33,10 @@ $loc = array(
'metaText_qr' => "
<h3>What's a QR code?</h3>
A QR code is a 2 dimensional barcode in which text is written in binary. It can be decoded with a device equipped with a photo sensor and adequate software.
A QR code is a 2 dimensional barcode in which text is written in binary. It can be decoded with a device equipped with a photo sensor and an adequate software.
<a href='https://en.wikipedia.org/wiki/QR_code' hreflang='en' rel='help external noreferrer'>QR code on Wikipedia</a>.
",
'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " is free software whose <a href='https://code.antopie.org/miraty/libreqr/' rel='external noreferrer'>source code</a> is available under the terms of the <abbr title='GNU Affero General Public License version 3 or any later version'><a href='LICENSE.html' hreflang='en' rel='license'>AGPLv3</a>+</abbr>.",
'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " is a free software whose <a href='https://code.antopie.org/miraty/libreqr/' rel='external noreferrer'>source code</a> is available under the terms of the <abbr title='GNU Affero General Public License version 3 or any later version'><a href='LICENSE.html' hreflang='en' rel='license'>AGPLv3</a>+</abbr>.",
'error_generation' => "An error occurred while generating the QR code. Try with different parameters.",
);

View File

@ -1,42 +0,0 @@
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
$loc = array(
'subtitle' => "QR kode sortzailea",
'description' => "Sortu QR kodeak nahieran. Aukeratu edukia, neurria, kolorea…",
'label_content' => "Kodetzeko testua",
'label_redundancy' => "Erredundantzia-tasa",
'label_margin' => "Marjinaren tamaina",
'label_size' => "Irudiaren neurria",
'label_bgColor' => "Hondoaren kolorea",
'label_fgColor' => "Kolore nagusia",
'placeholder' => "Sartu QR kodean kodetzeko testua",
'help_content' => "
<p>Nahi duzun testua kodetu dezakezu.</p>
<p>QR kode horiek deskodetzen dituen softwareak software dedikatuarekin irekitzea iradoki lezake, <a href='https://en.wikipedia.org/wiki/List_of_URI_schemes' hreflang='en' rel='help external noreferrer'>URI eskema</a>ren arabera.</p>
<p>Adibidez, webgune bat irekitzeko: <code>https://www.adibidea.eus/</code></p>
<p>ePosta bidaltzeko: <code>mailto:lur_axpe@adibidea.eus</code></p>
<p>Koordenatu geografikoak partekatzeko: <code>geo:42.895367,-2.167805</code></p>",
'help_redundancy' => "Erredundantzia QR kodearen informazioa bikoiztean datza, deskodetzean akatsak zuzentzeko. Tasa altuagoak QR kode handiagoa sortuko du, baina behar bezala deskodetzeko aukera handiagoa izango du.
",
'help_margin' => "QR kodearen inguruko banda zuriaren pixel kopurua.",
'help_size' => "Irudiaren zabalera eta altuera pixeletan, marjinarik gabe.",
'button_create' => "Sortu",
'button_download' => "Gorde QR kodea",
'title_showOnlyQR' => "Erakutsi QR kode hau bakarrik",
'alt_QR_before' => 'QR kodearen esanahia "',
'alt_QR_after' => '"',
'metaText_qr' => "
<h3>Zer da QR kode bat?</h3>
QR kodea bi dimentsioko barra-kodea da, testua bitarrean idatzita duena. Argazki-sentsore bat eta software egokia dituen gailu batekin deskodetzen da.
<a href='https://eu.wikipedia.org/wiki/QR_kode' hreflang='eu' rel='help external noreferrer'>QR kodea Wikipedian</a>.
",
'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " software librea da, eta <a href='https://code.antopie.org/miraty/libreqr/' rel='external noreferrer'>iturburu-kodea</a> <abbr title='GNU Affero Lizentzia Publiko Orokorraren 3. bertsioaren edo ondorengo edozein bertsio'><a href='LICENSE.html' hreflang='en' rel='license'>AGPLv3</a>+</abbr>ren arabera dago eskuragarri.",
'error_generation' => "Errorea gertatu da QR kodea sortzerakoan. Saiatu berriro parametro desberdinak erabiliz.",
);

0
locales/fr.php Normal file → Executable file
View File

View File

@ -1,42 +0,0 @@
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
$loc = array(
'subtitle' => "Pembuat kode QR",
'description' => "Membuat kode QR dengan bebas. Pilih konten, ukuran warna, ...",
'label_content' => "Teks untuk dienkode",
'label_redundancy' => "Tingkat redundansi",
'label_margin' => "Ukuran tepi",
'label_size' => "Ukuran gambar",
'label_bgColor' => "Warna latar belakang",
'label_fgColor' => "Warna latar depan",
'placeholder' => "Masukkan teks untuk dienkode di kode QR",
'help_content' => "
<p>Anda bisa mengenkode teks apa pun.</p>
<p>Perangkat lunak yang mendekodekan kode QR tersebut bisa memberikan pilihan untuk membuka dengan perangkat lunak tertentu, tergantung pada <a href='https://en.wikipedia.org/wiki/List_of_URI_schemes' hreflang='en' rel='help external noreferrer'>Skema URI</a> mereka.</p>
<p>Contohnya, untuk membuka halaman situs: <code>https://www.contoh.id/</code></p>
<p>Untuk mengirim surel: <code>mailto:contact@email.example</code></p>
<p>Untuk membagikan koordinat geografik: <code>geo:48.867564,2.364057</code></p>
",
'help_redundancy' => "Redundansi adalah duplikasi informasi di kode QR untuk memperbaiki galat saat pendekodean. Tingkat lebih besar akan menghasilkan kode QR yang lebih besar, tetapi akan dapat hasil lebih baik untuk didekodekan dengan benar.",
'help_margin' => "Jumlah piksel di tepi putih di sekitar kode QR.",
'help_size' => "Tinggi dan lebar gambar dalam piksel, tanpa tepian.",
'button_create' => "Buat",
'button_download' => "Simpan kode QR ini",
'title_showOnlyQR' => "Tampilkan kode QR ini saja",
'alt_QR_before' => 'Arti kode QR "',
'alt_QR_after' => '"',
'metaText_qr' => "
<h3>Apa itu Kode QR?</h3>
Kode QR adalah kode batang 2 dimensi yang mana teks ditulis dalam biner. Bisa didekodekan dengan perangkat yang memiliki sensor foto dan perangkat lunak yang memadai.
<a href='https://id.wikipedia.org/wiki/Kode_QR' hreflang='id' rel='help external noreferrer'>Kode QR di Wikipedia</a>.
",
'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " adalah perangkat lunak bebas yang <a href='https://code.antopie.org/miraty/libreqr/' rel='external noreferrer'>kode sumber</a> tersedia di bawah ketentuan <abbr title='GNU Affero General Public License versi 3 atau selanjutnya version'><a href='LICENSE.html' hreflang='en' rel='license'>AGPLv3</a>+</abbr>.",
'error_generation' => "Galat terjadi ketika membuat kode QR. Coba dengan parameter yang berbeda.",
);

0
locales/oc.php Normal file → Executable file
View File

0
locales/template.php Normal file → Executable file
View File

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -46,13 +46,13 @@ body {
font-size: 20px;
@media @light {
color: @text-light;
background-color: @bg-light;
color: white;
background-color: #67a3f2;
}
@media @dark {
color: @text-dark;
background-color: @bg-dark;
color: white;
background-color: #67a3f2;
}
}
@ -60,11 +60,11 @@ a {
text-decoration: underline;
@media @light {
color: @text-light;
color: white;
}
@media @dark {
color: @text-dark;
color: white;
}
&:hover {
@ -85,13 +85,13 @@ code {
text-align: left;
@media @light {
background-color: @bgHelp-light;
border-color: @borderHelp-light;
background-color: #2e5281;
border-color: #005184;
}
@media @dark {
background-color: @bgHelp-dark;
border-color: @borderHelp-dark;
background-color: #2e5281;
border-color: #005184;
}
& p {
@ -235,13 +235,13 @@ h2 {
::selection {
@media @light {
color: @bg-light;
background-color: @text-light;
color: #67a3f2;
background-color: white;
}
@media @dark {
color: @bg-dark;
background-color: @text-dark;
color: #67a3f2;
background-color: white;
}
}
@ -268,21 +268,21 @@ label[for=txt] summary {
.metaText {
padding: 6px;
@media @light {
color: @text-light;
color: white;
}
@media @dark {
color: @text-dark;
color: white;
}
& a, a:visited {
text-decoration: underline;
@media @light {
color: @text-light;
color: white;
}
@media @dark {
color: @text-dark;
color: white;
}
}
@ -323,15 +323,15 @@ small {
margin: 6px;
@media @light {
color: @text-light;
background-color: @bgField-light;
border-color: @border-light;
color: white;
background-color: #2e5281;
border-color: #2e5281;
}
@media @dark {
color: @text-dark;
background-color: @bgField-dark;
border-color: @border-dark;
color: white;
background-color: #2e5281;
border-color: #2e5281;
}
&:hover {
@ -340,11 +340,11 @@ small {
border-style: solid;
@media @light {
border-color: @borderHover-light;
border-color: #67a3f2;
}
@media @dark {
border-color: @borderHover-dark;
border-color: #67a3f2;
}
}
@ -355,11 +355,11 @@ small {
outline: none;
@media @light {
border-color: @borderFocus-light;
border-color: #67a3f2;
}
@media @dark {
border-color: @borderFocus-dark;
border-color: #67a3f2;
}
}
}
@ -399,11 +399,11 @@ input[type=color] {
#redundancy, #size, #margin {
@media @light {
background-color: @bgField-light;
background-color: #2e5281;
}
@media @dark {
background-color: @bgField-dark;
background-color: #2e5281;
}
}
@ -418,15 +418,13 @@ input[type=color] {
scrollbar-width: auto;
@media @light {
background-color: @bgTextarea-light;
color: @textareaText-light;
scrollbar-color: @textareaText-light @bgTextarea-light;
background-color: white;
color: black;
}
@media @dark {
background-color: @bgTextarea-dark;
color: @textareaText-dark;
scrollbar-color: @textareaText-dark @bgTextarea-dark;
background-color: white;
color: black;
}
}
@ -459,3 +457,7 @@ a[download]::before {
drop-shadow(-1px 1px 1px white)
drop-shadow(1px -1px 1px white);
}
#logo {
width: 64px;
height: 64px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1005 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

View File

@ -1 +0,0 @@
logo-dark.png

View File

@ -1,6 +0,0 @@
:root{
#logo{
width: 64px;
height: 64px;
}
}

View File

@ -1,36 +0,0 @@
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
// List icons dimensions
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512);
$colorScheme = array(
// Light theme
"text-light" => "white",
"bg-light" => "#67a3f2", // Must be a long hexadecimal color
"bgField-light" => "#2e5281",
"bgHelp-light" => "#2e5281",
"bgTextarea-light" => "#FFFFFF",
"textareaText-light" => "black",
"textareaPlaceholder-light" => "grey",
"border-light" => "#67a3f2",
"borderHover-light" => "white",
"borderFocus-light" => "white",
"borderHelp-light" => "white",
"borderQr-light" => "white",
// Dark theme
"text-dark" => "white",
"bg-dark" => "#67a3f2", // Must be a long hexadecimal color
"bgField-dark" => "#2e5281",
"bgHelp-dark" => "#2e5281",
"bgTextarea-dark" => "#FFFFFF",
"textareaText-dark" => "black",
"textareaPlaceholder-dark" => "grey",
"border-dark" => "#67a3f2",
"borderWidth-dark" => "2px",
"borderHover-dark" => "white",
"borderHoverWidth-dark" => "3px",
"borderFocus-dark" => "white",
"borderFocusWidth-dark" => "4px",
"borderHelp-dark" => "white",
"borderQr-dark" => "white",
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
themes/libreqr/icons/16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
themes/libreqr/icons/32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
themes/libreqr/icons/48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
themes/libreqr/icons/64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
themes/libreqr/icons/96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
themes/libreqr/icons/source.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

259
themes/libreqr/libreqr.svg Executable file
View File

@ -0,0 +1,259 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg height="16" width="16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<rect fill="#000" height="1" width="1" x="0" y="0" />
<rect fill="#000" height="1" width="1" x="1" y="0" />
<rect fill="#000" height="1" width="1" x="2" y="0" />
<rect fill="#000" height="1" width="1" x="3" y="0" />
<rect fill="#000" height="1" width="1" x="4" y="0" />
<rect fill="#000" height="1" width="1" x="5" y="0" />
<rect fill="#000" height="1" width="1" x="6" y="0" />
<rect fill="#000" height="1" width="1" x="7" y="0" />
<rect fill="#000" height="1" width="1" x="8" y="0" />
<rect fill="#000" height="1" width="1" x="9" y="0" />
<rect fill="#000" height="1" width="1" x="10" y="0" />
<rect fill="#000" height="1" width="1" x="11" y="0" />
<rect fill="#000" height="1" width="1" x="12" y="0" />
<rect fill="#000" height="1" width="1" x="13" y="0" />
<rect fill="#000" height="1" width="1" x="14" y="0" />
<rect fill="#000" height="1" width="1" x="15" y="0" />
<rect fill="#000" height="1" width="1" x="0" y="1" />
<rect fill="#fff" height="1" width="1" x="1" y="1" />
<rect fill="#fff" height="1" width="1" x="2" y="1" />
<rect fill="#fff" height="1" width="1" x="3" y="1" />
<rect fill="#fff" height="1" width="1" x="4" y="1" />
<rect fill="#fff" height="1" width="1" x="5" y="1" />
<rect fill="#000" height="1" width="1" x="6" y="1" />
<rect fill="#000" height="1" width="1" x="7" y="1" />
<rect fill="#fff" height="1" width="1" x="8" y="1" />
<rect fill="#000" height="1" width="1" x="9" y="1" />
<rect fill="#fff" height="1" width="1" x="10" y="1" />
<rect fill="#fff" height="1" width="1" x="11" y="1" />
<rect fill="#fff" height="1" width="1" x="12" y="1" />
<rect fill="#fff" height="1" width="1" x="13" y="1" />
<rect fill="#fff" height="1" width="1" x="14" y="1" />
<rect fill="#000" height="1" width="1" x="15" y="1" />
<rect fill="#000" height="1" width="1" x="0" y="2" />
<rect fill="#fff" height="1" width="1" x="1" y="2" />
<rect fill="#000" height="1" width="1" x="2" y="2" />
<rect fill="#000" height="1" width="1" x="3" y="2" />
<rect fill="#000" height="1" width="1" x="4" y="2" />
<rect fill="#fff" height="1" width="1" x="5" y="2" />
<rect fill="#000" height="1" width="1" x="6" y="2" />
<rect fill="#fff" height="1" width="1" x="7" y="2" />
<rect fill="#000" height="1" width="1" x="8" y="2" />
<rect fill="#000" height="1" width="1" x="9" y="2" />
<rect fill="#fff" height="1" width="1" x="10" y="2" />
<rect fill="#000" height="1" width="1" x="11" y="2" />
<rect fill="#000" height="1" width="1" x="12" y="2" />
<rect fill="#000" height="1" width="1" x="13" y="2" />
<rect fill="#fff" height="1" width="1" x="14" y="2" />
<rect fill="#000" height="1" width="1" x="15" y="2" />
<rect fill="#000" height="1" width="1" x="0" y="3" />
<rect fill="#fff" height="1" width="1" x="1" y="3" />
<rect fill="#000" height="1" width="1" x="2" y="3" />
<rect fill="#fff" height="1" width="1" x="3" y="3" />
<rect fill="#000" height="1" width="1" x="4" y="3" />
<rect fill="#fff" height="1" width="1" x="5" y="3" />
<rect fill="#000" height="1" width="1" x="6" y="3" />
<rect fill="#fff" height="1" width="1" x="7" y="3" />
<rect fill="#000" height="1" width="1" x="8" y="3" />
<rect fill="#000" height="1" width="1" x="9" y="3" />
<rect fill="#fff" height="1" width="1" x="10" y="3" />
<rect fill="#000" height="1" width="1" x="11" y="3" />
<rect fill="#fff" height="1" width="1" x="12" y="3" />
<rect fill="#000" height="1" width="1" x="13" y="3" />
<rect fill="#fff" height="1" width="1" x="14" y="3" />
<rect fill="#000" height="1" width="1" x="15" y="3" />
<rect fill="#000" height="1" width="1" x="0" y="4" />
<rect fill="#fff" height="1" width="1" x="1" y="4" />
<rect fill="#000" height="1" width="1" x="2" y="4" />
<rect fill="#000" height="1" width="1" x="3" y="4" />
<rect fill="#000" height="1" width="1" x="4" y="4" />
<rect fill="#fff" height="1" width="1" x="5" y="4" />
<rect fill="#000" height="1" width="1" x="6" y="4" />
<rect fill="#000" height="1" width="1" x="7" y="4" />
<rect fill="#fff" height="1" width="1" x="8" y="4" />
<rect fill="#fff" height="1" width="1" x="9" y="4" />
<rect fill="#fff" height="1" width="1" x="10" y="4" />
<rect fill="#000" height="1" width="1" x="11" y="4" />
<rect fill="#000" height="1" width="1" x="12" y="4" />
<rect fill="#000" height="1" width="1" x="13" y="4" />
<rect fill="#fff" height="1" width="1" x="14" y="4" />
<rect fill="#000" height="1" width="1" x="15" y="4" />
<rect fill="#000" height="1" width="1" x="0" y="5" />
<rect fill="#fff" height="1" width="1" x="1" y="5" />
<rect fill="#fff" height="1" width="1" x="2" y="5" />
<rect fill="#fff" height="1" width="1" x="3" y="5" />
<rect fill="#fff" height="1" width="1" x="4" y="5" />
<rect fill="#fff" height="1" width="1" x="5" y="5" />
<rect fill="#fff" height="1" width="1" x="6" y="5" />
<rect fill="#000" height="1" width="1" x="7" y="5" />
<rect fill="#fff" height="1" width="1" x="8" y="5" />
<rect fill="#000" height="1" width="1" x="9" y="5" />
<rect fill="#fff" height="1" width="1" x="10" y="5" />
<rect fill="#fff" height="1" width="1" x="11" y="5" />
<rect fill="#fff" height="1" width="1" x="12" y="5" />
<rect fill="#fff" height="1" width="1" x="13" y="5" />
<rect fill="#fff" height="1" width="1" x="14" y="5" />
<rect fill="#000" height="1" width="1" x="15" y="5" />
<rect fill="#000" height="1" width="1" x="0" y="6" />
<rect fill="#000" height="1" width="1" x="1" y="6" />
<rect fill="#000" height="1" width="1" x="2" y="6" />
<rect fill="#000" height="1" width="1" x="3" y="6" />
<rect fill="#000" height="1" width="1" x="4" y="6" />
<rect fill="#000" height="1" width="1" x="5" y="6" />
<rect fill="#000" height="1" width="1" x="6" y="6" />
<rect fill="#000" height="1" width="1" x="7" y="6" />
<rect fill="#000" height="1" width="1" x="8" y="6" />
<rect fill="#fff" height="1" width="1" x="9" y="6" />
<rect fill="#000" height="1" width="1" x="10" y="6" />
<rect fill="#fff" height="1" width="1" x="11" y="6" />
<rect fill="#000" height="1" width="1" x="12" y="6" />
<rect fill="#000" height="1" width="1" x="13" y="6" />
<rect fill="#fff" height="1" width="1" x="14" y="6" />
<rect fill="#000" height="1" width="1" x="15" y="6" />
<rect fill="#000" height="1" width="1" x="0" y="7" />
<rect fill="#fff" height="1" width="1" x="1" y="7" />
<rect fill="#fff" height="1" width="1" x="2" y="7" />
<rect fill="#000" height="1" width="1" x="3" y="7" />
<rect fill="#fff" height="1" width="1" x="4" y="7" />
<rect fill="#fff" height="1" width="1" x="5" y="7" />
<rect fill="#fff" height="1" width="1" x="6" y="7" />
<rect fill="#fff" height="1" width="1" x="7" y="7" />
<rect fill="#000" height="1" width="1" x="8" y="7" />
<rect fill="#fff" height="1" width="1" x="9" y="7" />
<rect fill="#000" height="1" width="1" x="10" y="7" />
<rect fill="#000" height="1" width="1" x="11" y="7" />
<rect fill="#fff" height="1" width="1" x="12" y="7" />
<rect fill="#000" height="1" width="1" x="13" y="7" />
<rect fill="#000" height="1" width="1" x="14" y="7" />
<rect fill="#000" height="1" width="1" x="15" y="7" />
<rect fill="#000" height="1" width="1" x="0" y="8" />
<rect fill="#000" height="1" width="1" x="1" y="8" />
<rect fill="#fff" height="1" width="1" x="2" y="8" />
<rect fill="#fff" height="1" width="1" x="3" y="8" />
<rect fill="#000" height="1" width="1" x="4" y="8" />
<rect fill="#000" height="1" width="1" x="5" y="8" />
<rect fill="#000" height="1" width="1" x="6" y="8" />
<rect fill="#fff" height="1" width="1" x="7" y="8" />
<rect fill="#fff" height="1" width="1" x="8" y="8" />
<rect fill="#000" height="1" width="1" x="9" y="8" />
<rect fill="#000" height="1" width="1" x="10" y="8" />
<rect fill="#000" height="1" width="1" x="11" y="8" />
<rect fill="#fff" height="1" width="1" x="12" y="8" />
<rect fill="#000" height="1" width="1" x="13" y="8" />
<rect fill="#fff" height="1" width="1" x="14" y="8" />
<rect fill="#000" height="1" width="1" x="15" y="8" />
<rect fill="#000" height="1" width="1" x="0" y="9" />
<rect fill="#000" height="1" width="1" x="1" y="9" />
<rect fill="#000" height="1" width="1" x="2" y="9" />
<rect fill="#fff" height="1" width="1" x="3" y="9" />
<rect fill="#fff" height="1" width="1" x="4" y="9" />
<rect fill="#000" height="1" width="1" x="5" y="9" />
<rect fill="#000" height="1" width="1" x="6" y="9" />
<rect fill="#000" height="1" width="1" x="7" y="9" />
<rect fill="#000" height="1" width="1" x="8" y="9" />
<rect fill="#000" height="1" width="1" x="9" y="9" />
<rect fill="#fff" height="1" width="1" x="10" y="9" />
<rect fill="#fff" height="1" width="1" x="11" y="9" />
<rect fill="#fff" height="1" width="1" x="12" y="9" />
<rect fill="#000" height="1" width="1" x="13" y="9" />
<rect fill="#000" height="1" width="1" x="14" y="9" />
<rect fill="#000" height="1" width="1" x="15" y="9" />
<rect fill="#000" height="1" width="1" x="0" y="10" />
<rect fill="#fff" height="1" width="1" x="1" y="10" />
<rect fill="#fff" height="1" width="1" x="2" y="10" />
<rect fill="#fff" height="1" width="1" x="3" y="10" />
<rect fill="#fff" height="1" width="1" x="4" y="10" />
<rect fill="#fff" height="1" width="1" x="5" y="10" />
<rect fill="#fff" height="1" width="1" x="6" y="10" />
<rect fill="#000" height="1" width="1" x="7" y="10" />
<rect fill="#000" height="1" width="1" x="8" y="10" />
<rect fill="#fff" height="1" width="1" x="9" y="10" />
<rect fill="#fff" height="1" width="1" x="10" y="10" />
<rect fill="#000" height="1" width="1" x="11" y="10" />
<rect fill="#000" height="1" width="1" x="12" y="10" />
<rect fill="#fff" height="1" width="1" x="13" y="10" />
<rect fill="#000" height="1" width="1" x="14" y="10" />
<rect fill="#000" height="1" width="1" x="15" y="10" />
<rect fill="#000" height="1" width="1" x="0" y="11" />
<rect fill="#fff" height="1" width="1" x="1" y="11" />
<rect fill="#000" height="1" width="1" x="2" y="11" />
<rect fill="#000" height="1" width="1" x="3" y="11" />
<rect fill="#000" height="1" width="1" x="4" y="11" />
<rect fill="#fff" height="1" width="1" x="5" y="11" />
<rect fill="#fff" height="1" width="1" x="6" y="11" />
<rect fill="#000" height="1" width="1" x="7" y="11" />
<rect fill="#fff" height="1" width="1" x="8" y="11" />
<rect fill="#000" height="1" width="1" x="9" y="11" />
<rect fill="#000" height="1" width="1" x="10" y="11" />
<rect fill="#000" height="1" width="1" x="11" y="11" />
<rect fill="#fff" height="1" width="1" x="12" y="11" />
<rect fill="#fff" height="1" width="1" x="13" y="11" />
<rect fill="#000" height="1" width="1" x="14" y="11" />
<rect fill="#000" height="1" width="1" x="15" y="11" />
<rect fill="#000" height="1" width="1" x="0" y="12" />
<rect fill="#fff" height="1" width="1" x="1" y="12" />
<rect fill="#000" height="1" width="1" x="2" y="12" />
<rect fill="#fff" height="1" width="1" x="3" y="12" />
<rect fill="#000" height="1" width="1" x="4" y="12" />
<rect fill="#fff" height="1" width="1" x="5" y="12" />
<rect fill="#fff" height="1" width="1" x="6" y="12" />
<rect fill="#fff" height="1" width="1" x="7" y="12" />
<rect fill="#fff" height="1" width="1" x="8" y="12" />
<rect fill="#fff" height="1" width="1" x="9" y="12" />
<rect fill="#fff" height="1" width="1" x="10" y="12" />
<rect fill="#000" height="1" width="1" x="11" y="12" />
<rect fill="#000" height="1" width="1" x="12" y="12" />
<rect fill="#fff" height="1" width="1" x="13" y="12" />
<rect fill="#fff" height="1" width="1" x="14" y="12" />
<rect fill="#000" height="1" width="1" x="15" y="12" />
<rect fill="#000" height="1" width="1" x="0" y="13" />
<rect fill="#fff" height="1" width="1" x="1" y="13" />
<rect fill="#000" height="1" width="1" x="2" y="13" />
<rect fill="#000" height="1" width="1" x="3" y="13" />
<rect fill="#000" height="1" width="1" x="4" y="13" />
<rect fill="#fff" height="1" width="1" x="5" y="13" />
<rect fill="#000" height="1" width="1" x="6" y="13" />
<rect fill="#fff" height="1" width="1" x="7" y="13" />
<rect fill="#fff" height="1" width="1" x="8" y="13" />
<rect fill="#fff" height="1" width="1" x="9" y="13" />
<rect fill="#000" height="1" width="1" x="10" y="13" />
<rect fill="#000" height="1" width="1" x="11" y="13" />
<rect fill="#fff" height="1" width="1" x="12" y="13" />
<rect fill="#fff" height="1" width="1" x="13" y="13" />
<rect fill="#fff" height="1" width="1" x="14" y="13" />
<rect fill="#000" height="1" width="1" x="15" y="13" />
<rect fill="#000" height="1" width="1" x="0" y="14" />
<rect fill="#fff" height="1" width="1" x="1" y="14" />
<rect fill="#fff" height="1" width="1" x="2" y="14" />
<rect fill="#fff" height="1" width="1" x="3" y="14" />
<rect fill="#fff" height="1" width="1" x="4" y="14" />
<rect fill="#fff" height="1" width="1" x="5" y="14" />
<rect fill="#000" height="1" width="1" x="6" y="14" />
<rect fill="#000" height="1" width="1" x="7" y="14" />
<rect fill="#000" height="1" width="1" x="8" y="14" />
<rect fill="#000" height="1" width="1" x="9" y="14" />
<rect fill="#000" height="1" width="1" x="10" y="14" />
<rect fill="#fff" height="1" width="1" x="11" y="14" />
<rect fill="#000" height="1" width="1" x="12" y="14" />
<rect fill="#000" height="1" width="1" x="13" y="14" />
<rect fill="#fff" height="1" width="1" x="14" y="14" />
<rect fill="#000" height="1" width="1" x="15" y="14" />
<rect fill="#000" height="1" width="1" x="0" y="15" />
<rect fill="#000" height="1" width="1" x="1" y="15" />
<rect fill="#000" height="1" width="1" x="2" y="15" />
<rect fill="#000" height="1" width="1" x="3" y="15" />
<rect fill="#000" height="1" width="1" x="4" y="15" />
<rect fill="#000" height="1" width="1" x="5" y="15" />
<rect fill="#000" height="1" width="1" x="6" y="15" />
<rect fill="#000" height="1" width="1" x="7" y="15" />
<rect fill="#000" height="1" width="1" x="8" y="15" />
<rect fill="#000" height="1" width="1" x="9" y="15" />
<rect fill="#000" height="1" width="1" x="10" y="15" />
<rect fill="#000" height="1" width="1" x="11" y="15" />
<rect fill="#000" height="1" width="1" x="12" y="15" />
<rect fill="#000" height="1" width="1" x="13" y="15" />
<rect fill="#000" height="1" width="1" x="14" y="15" />
<rect fill="#000" height="1" width="1" x="15" y="15" />
</svg>

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

0
themes/libreqr/logo.less Executable file
View File

36
themes/libreqr/theme.php Executable file
View File

@ -0,0 +1,36 @@
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
// List icons dimensions
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512);
$colorScheme = array(
// Light theme
"text-light" => "black",
"bg-light" => "#ffffff", // Must be a long hexadecimal color
"bgField-light" => "white",
"bgHelp-light" => "white",
"bgTextarea-light" => "white",
"textareaText-light" => "black",
"textareaPlaceholder-light" => "#868686",
"border-light" => "black",
"borderHover-light" => "black",
"borderFocus-light" => "black",
"borderHelp-light" => "black",
"borderQr-light" => "black",
// Dark theme
"text-dark" => "white",
"bg-dark" => "#000000", // Must be a long hexadecimal color
"bgField-dark" => "#000000",
"bgHelp-dark" => "#000000",
"bgTextarea-dark" => "#000000",
"textareaText-dark" => "white",
"textareaPlaceholder-dark" => "#bababa",
"border-dark" => "white",
"borderWidth-dark" => "2px",
"borderHover-dark" => "white",
"borderHoverWidth-dark" => "3px",
"borderFocus-dark" => "white",
"borderFocusWidth-dark" => "4px",
"borderHelp-dark" => "white",
"borderQr-dark" => "white",
);

19
vendor/autoload.php vendored Normal file → Executable file
View File

@ -3,23 +3,10 @@
// autoload.php @generated by Composer
if (PHP_VERSION_ID < 50600) {
if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error');
}
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
if (!ini_get('display_errors')) {
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
fwrite(STDERR, $err);
} elseif (!headers_sent()) {
echo $err;
}
}
trigger_error(
$err,
E_USER_ERROR
);
echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
exit(1);
}
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitd4957e04ba4dff37d0ecbf0a4b59e14a::getLoader();
return ComposerAutoloaderInit6bb82695b2f28e8ee61f74ae2d5c5202::getLoader();

0
vendor/bacon/bacon-qr-code/LICENSE vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/README.md vendored Normal file → Executable file
View File

6
vendor/bacon/bacon-qr-code/composer.json vendored Normal file → Executable file
View File

@ -34,11 +34,5 @@
"allow-plugins": {
"ocramius/package-versions": true
}
},
"archive": {
"exclude": [
"/test",
"/phpunit.xml.dist"
]
}
}

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="BaconQrCode Tests">
<directory>./test</directory>
</testsuite>
</testsuites>
</phpunit>

0
vendor/bacon/bacon-qr-code/src/Common/BitArray.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Common/BitMatrix.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Common/BitUtils.php vendored Normal file → Executable file
View File

3
vendor/bacon/bacon-qr-code/src/Common/CharacterSetEci.php vendored Normal file → Executable file
View File

@ -89,9 +89,6 @@ final class CharacterSetEci extends AbstractEnum
*/
private static $nameToEci;
/**
* @param int[] $values
*/
public function __construct(array $values, string ...$otherEncodingNames)
{
$this->values = $values;

0
vendor/bacon/bacon-qr-code/src/Common/EcBlock.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Common/EcBlocks.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Common/ErrorCorrectionLevel.php vendored Normal file → Executable file
View File

2
vendor/bacon/bacon-qr-code/src/Common/FormatInformation.php vendored Normal file → Executable file
View File

@ -62,7 +62,7 @@ class FormatInformation
/**
* Offset i holds the number of 1 bits in the binary representation of i.
*
* @var int[]
* @var array
*/
private const BITS_SET_IN_HALF_BYTE = [0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4];

3
vendor/bacon/bacon-qr-code/src/Common/Mode.php vendored Normal file → Executable file
View File

@ -42,9 +42,6 @@ final class Mode extends AbstractEnum
*/
private $bits;
/**
* @param int[] $characterCountBitsForVersions
*/
protected function __construct(array $characterCountBitsForVersions, int $bits)
{
$this->characterCountBitsForVersions = $characterCountBitsForVersions;

0
vendor/bacon/bacon-qr-code/src/Common/ReedSolomonCodec.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Common/Version.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Encoder/BlockPair.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Encoder/ByteMatrix.php vendored Normal file → Executable file
View File

2
vendor/bacon/bacon-qr-code/src/Encoder/Encoder.php vendored Normal file → Executable file
View File

@ -37,7 +37,7 @@ final class Encoder
/**
* Codec cache.
*
* @var array<string,ReedSolomonCodec>
* @var array
*/
private static $codecs = [];

0
vendor/bacon/bacon-qr-code/src/Encoder/MaskUtil.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Encoder/MatrixUtil.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Encoder/QrCode.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Exception/ExceptionInterface.php vendored Normal file → Executable file
View File

View File

0
vendor/bacon/bacon-qr-code/src/Exception/OutOfBoundsException.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Exception/RuntimeException.php vendored Normal file → Executable file
View File

View File

0
vendor/bacon/bacon-qr-code/src/Exception/WriterException.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Color/Alpha.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Color/Cmyk.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Color/ColorInterface.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Color/Gray.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Color/Rgb.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Eye/CompositeEye.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Eye/EyeInterface.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Eye/ModuleEye.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Eye/SimpleCircleEye.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Eye/SquareEye.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Image/EpsImageBackEnd.php vendored Normal file → Executable file
View File

View File

View File

4
vendor/bacon/bacon-qr-code/src/Renderer/Image/SvgImageBackEnd.php vendored Normal file → Executable file
View File

@ -334,7 +334,7 @@ final class SvgImageBackEnd implements ImageBackEndInterface
$this->xmlWriter->writeAttribute('stop-color', $this->getColorString($startColor));
if ($startColor instanceof Alpha) {
$this->xmlWriter->writeAttribute('stop-opacity', (string) $startColor->getAlpha());
$this->xmlWriter->writeAttribute('stop-opacity', $startColor->getAlpha());
}
$this->xmlWriter->endElement();
@ -344,7 +344,7 @@ final class SvgImageBackEnd implements ImageBackEndInterface
$this->xmlWriter->writeAttribute('stop-color', $this->getColorString($endColor));
if ($endColor instanceof Alpha) {
$this->xmlWriter->writeAttribute('stop-opacity', (string) $endColor->getAlpha());
$this->xmlWriter->writeAttribute('stop-opacity', $endColor->getAlpha());
}
$this->xmlWriter->endElement();

View File

0
vendor/bacon/bacon-qr-code/src/Renderer/ImageRenderer.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Module/DotsModule.php vendored Normal file → Executable file
View File

View File

View File

@ -41,7 +41,7 @@ final class EdgeIterator implements IteratorAggregate
}
/**
* @return Traversable<Edge>
* @return Edge[]
*/
public function getIterator() : Traversable
{

0
vendor/bacon/bacon-qr-code/src/Renderer/Module/ModuleInterface.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Module/RoundnessModule.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Module/SquareModule.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Path/Close.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Path/Curve.php vendored Normal file → Executable file
View File

2
vendor/bacon/bacon-qr-code/src/Renderer/Path/EllipticArc.php vendored Normal file → Executable file
View File

@ -136,7 +136,7 @@ final class EllipticArc implements OperationInterface
/**
* @return Curve[]
*/
private function createCurves(float $fromX, float $fromY) : array
private function createCurves(float $fromX, $fromY) : array
{
$xAngle = deg2rad($this->xAxisAngle);
list($centerX, $centerY, $radiusX, $radiusY, $startAngle, $deltaAngle) =

0
vendor/bacon/bacon-qr-code/src/Renderer/Path/Line.php vendored Normal file → Executable file
View File

0
vendor/bacon/bacon-qr-code/src/Renderer/Path/Move.php vendored Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More