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
266 changed files with 233 additions and 49 deletions

0
composer.json Normal file → Executable file
View File

View File

@ -6,11 +6,11 @@
define("THEME", "libreqr");
// Language used if those requested by the user are not available
define("DEFAULT_LOCALE", "en");
define("DEFAULT_LOCALE", "fr");
// Will be printed at the bottom of the interface
define("CUSTOM_TEXT_ENABLED", false);
define("CUSTOM_TEXT", "This LibreQR instance is hosted by <a href='https://foo.example/'>foo</a>.");
define("CUSTOM_TEXT_ENABLED", true);
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

@ -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;
@ -172,9 +172,10 @@ foreach($themeDimensionsIcons as $dimFav) // Set all icons dimensions
<header>
<a id="linkTitles" href="./">
<img style"width: 64px; height: 64px;" alt="" id="logo" src="resources/logo.png"">
<div id="titles">
<h1>LibreQR</h1>
<h2><?= $loc['subtitle'] ?></h2>
<h1>QrcodeChaprilOrg</h1>
<h2>Générateur de codes QR</h2>
</div>
</a>
</header>
@ -303,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>

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

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

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

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

162
resources/chapril-banner.css Executable file
View File

@ -0,0 +1,162 @@
/*
____ _ _ _ _ ____ ____ ____
/ ___| |__ __ _ _ __ _ __(_) | | |__ __ _ _ __ _ __ ___ _ __ / ___/ ___/ ___|
| | | '_ \ / _` | '_ \| '__| | | | '_ \ / _` | '_ \| '_ \ / _ \ '__| | | \___ \___ \
| |___| | | | (_| | |_) | | | | | | |_) | (_| | | | | | | | __/ | | |___ ___) |__) |
\____|_| |_|\__,_| .__/|_| |_|_| |_.__/ \__,_|_| |_|_| |_|\___|_| \____|____/____/
|_|
*/
/********************************
* Ajustement global
*******************************/
body {
margin-top: 0;
padding-top: 42px !important;
}
/********************************
* Classes .chapril-banniere-
*******************************/
.chapril-banniere-Entree {
font-family: sans-serif;
text-transform: uppercase;
font-size: small;
}
.chapril-banniere-Logo {
display: flex;
}
.chapril-banniere-Logo a {
padding-bottom: 4px;
}
.chapril-banniere-Logo img {
display: block;
width: auto;
height: 28px;
}
.chapril-banniere-Menu {
display: none;
}
.chapril-banniere-Nav {
position: fixed;
top: 0;
left: 0;
right: 0;
min-height: 42px;
background-color: #005184;
display: flex;
justify-content: space-around;
align-items: center;
z-index: 1001;
}
.chapril-banniere-Nav a, .chapril-banniere-Nav a:visited {
color: #fff;
text-decoration: none;
}
.chapril-banniere-Nav a:hover {
color: #ff9759;
}
@media screen and (max-width: 800px) {
.chapril-banniere-Entree {
display: none;
}
.chapril-banniere-Logo {
padding-left: 12px;
}
.chapril-banniere-Logo a {
padding-top: 5px;
}
.chapril-banniere-Menu {
display: block;
}
.chapril-banniere-Menu summary {
height: 26px;
width: 30px;
display: block;
position: absolute;
top: 8px;
right: 12px;
border-radius: 2px;
border-style: solid;
border-width: 1px;
box-sizing: border-box;
border-color: #fff;
padding-left: 4px;
padding-top: 1px;
}
.chapril-banniere-Menu summary {
list-style: none;
}
.chapril-banniere-Menu summary::-webkit-details-marker {
display: none;
}
.chapril-banniere-Menu summary span {
display: block;
margin-top: 4px;
width: 20px;
height: 2px;
border-radius: 2px;
background-color: #fff;
}
.chapril-banniere-Menu summary:hover {
border-color: #ff9759;
cursor:pointer;
}
.chapril-banniere-Menu summary:hover span {
background-color: #ff9759;
}
.chapril-banniere-Menu div {
padding-top: 8px;
padding-bottom: 8px;
text-align: center;
background-color: #153a6a;
border-top: 1px solid #005184;
font-family: sans-serif;
text-transform: uppercase;
font-size: small;
}
.chapril-banniere-Nav {
display: block;
}
}
/************************************
* Adaptation pour certains services
************************************
/* Dokuwiki. */
#dokuwiki__usertools {
top: 43px !important;
}
/* PAD. */
#editorcontainerbox {
top: 43px !important;
}

BIN
resources/logo.png Normal file

Binary file not shown.

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;
}

BIN
themes/libreqr/icons/128.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 B

After

Width:  |  Height:  |  Size: 2.8 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 B

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
themes/libreqr/icons/192.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 B

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
themes/libreqr/icons/256.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 B

After

Width:  |  Height:  |  Size: 4.9 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 B

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
themes/libreqr/icons/384.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 7.1 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 11 KiB

BIN
themes/libreqr/icons/512.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 B

After

Width:  |  Height:  |  Size: 8.9 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 B

After

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 B

After

Width:  |  Height:  |  Size: 14 KiB

0
themes/libreqr/libreqr.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

7
themes/libreqr/logo.less Normal file → Executable file
View File

@ -1,7 +0,0 @@
:root {
// base64 -w 0 logo-light.png
--logo-light: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX///8AAABVwtN+AAAAWElEQVQoz43O0RHAMAgCUDZg/y3ZgKJtP8PF/LzkiApcFG3IVgVICB0cqCPH368jMvCffsLuPWMLmOQ+FMBxNqvgXCZ8xixGsSNppWsF33hFaLjD27Xioh5ZH8ftcymlGAAAAABJRU5ErkJggg==");
// base64 -w 0 logo-dark.png
--logo-dark: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX///8AAABVwtN+AAAAXklEQVQoz43SsRHAIAxDUW3g/bfUBoqckDL/AgWvMFgcKGcIYCkjDSJ2JgwvhhFHZ9cn2vDt/oUNvkcS3MpNRuh0ew6iyyYjbDCPGa2+WxL8lCN6vZYy+nBxED/+xgWM9DYk64ncIgAAAABJRU5ErkJggg==");
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

View File

View File

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

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

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

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

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

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

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

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

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

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

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

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

View File

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