From fcb7efc236bb25568a3cc260ebf98017097d063a Mon Sep 17 00:00:00 2001 From: afornerot Date: Sun, 3 Nov 2024 17:38:12 +0100 Subject: [PATCH] svg --- composer.lock | 506 ++++++++++++++++++++++------------ config/bundles.php | 1 + symfony.lock | 3 + templates/Home/home.html.twig | 7 +- templates/Home/user.html.twig | 9 + 5 files changed, 342 insertions(+), 184 deletions(-) diff --git a/composer.lock b/composer.lock index 1f93363..fe20268 100644 --- a/composer.lock +++ b/composer.lock @@ -1,11 +1,61 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "de8695694e414ca8b892c582b9abd20a", + "content-hash": "22203cdc7b5908bdc7578121b31345fd", "packages": [ + { + "name": "bacon/bacon-qr-code", + "version": "2.0.8", + "source": { + "type": "git", + "url": "https://github.com/Bacon/BaconQrCode.git", + "reference": "8674e51bb65af933a5ffaf1c308a660387c35c22" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/8674e51bb65af933a5ffaf1c308a660387c35c22", + "reference": "8674e51bb65af933a5ffaf1c308a660387c35c22", + "shasum": "" + }, + "require": { + "dasprid/enum": "^1.0.3", + "ext-iconv": "*", + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phly/keep-a-changelog": "^2.1", + "phpunit/phpunit": "^7 | ^8 | ^9", + "spatie/phpunit-snapshot-assertions": "^4.2.9", + "squizlabs/php_codesniffer": "^3.4" + }, + "suggest": { + "ext-imagick": "to generate QR code images" + }, + "type": "library", + "autoload": { + "psr-4": { + "BaconQrCode\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "BaconQrCode is a QR code generator for PHP.", + "homepage": "https://github.com/Bacon/BaconQrCode", + "time": "2022-12-07T17:46:57+00:00" + }, { "name": "brick/math", "version": "0.9.1", @@ -107,6 +157,52 @@ "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", "time": "2020-08-25T05:50:16+00:00" }, + { + "name": "dasprid/enum", + "version": "1.0.6", + "source": { + "type": "git", + "url": "https://github.com/DASPRiD/Enum.git", + "reference": "8dfd07c6d2cf31c8da90c53b83c026c7696dda90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/DASPRiD/Enum/zipball/8dfd07c6d2cf31c8da90c53b83c026c7696dda90", + "reference": "8dfd07c6d2cf31c8da90c53b83c026c7696dda90", + "shasum": "" + }, + "require": { + "php": ">=7.1 <9.0" + }, + "require-dev": { + "phpunit/phpunit": "^7 || ^8 || ^9 || ^10 || ^11", + "squizlabs/php_codesniffer": "*" + }, + "type": "library", + "autoload": { + "psr-4": { + "DASPRiD\\Enum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "PHP 7.1 enum implementation", + "keywords": [ + "enum", + "map" + ], + "time": "2024-08-09T14:30:48+00:00" + }, { "name": "doctrine/annotations", "version": "1.11.1", @@ -1265,6 +1361,7 @@ "reflection", "static" ], + "abandoned": "roave/better-reflection", "time": "2020-10-27T21:46:55+00:00" }, { @@ -1378,6 +1475,197 @@ ], "time": "2020-10-31T20:37:35+00:00" }, + { + "name": "endroid/installer", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/endroid/installer.git", + "reference": "7af9f7fdbe6dcbf65b1d3439932ac45a98d229b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/endroid/installer/zipball/7af9f7fdbe6dcbf65b1d3439932ac45a98d229b4", + "reference": "7af9f7fdbe6dcbf65b1d3439932ac45a98d229b4", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.1||^2.0", + "php": "^7.4||^8.0" + }, + "require-dev": { + "composer/composer": "^2.0", + "endroid/quality": "dev-master" + }, + "suggest": { + "roave/security-advisories": "Avoids installation of package versions with vulnerabilities" + }, + "type": "composer-plugin", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + }, + "class": "Endroid\\Installer\\Installer" + }, + "autoload": { + "psr-4": { + "Endroid\\Installer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jeroen van den Enden", + "email": "info@endroid.nl" + } + ], + "description": "Composer plugin for installing configuration files", + "funding": [ + { + "url": "https://github.com/endroid", + "type": "github" + } + ], + "time": "2021-10-30T23:14:36+00:00" + }, + { + "name": "endroid/qr-code", + "version": "4.6.1", + "source": { + "type": "git", + "url": "https://github.com/endroid/qr-code.git", + "reference": "a75c913b0e4d6ad275e49a2c1de1cacffc6c2184" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/endroid/qr-code/zipball/a75c913b0e4d6ad275e49a2c1de1cacffc6c2184", + "reference": "a75c913b0e4d6ad275e49a2c1de1cacffc6c2184", + "shasum": "" + }, + "require": { + "bacon/bacon-qr-code": "^2.0.5", + "php": "^7.4||^8.0" + }, + "require-dev": { + "endroid/quality": "dev-master", + "ext-gd": "*", + "khanamiryan/qrcode-detector-decoder": "^1.0.4", + "setasign/fpdf": "^1.8.2" + }, + "suggest": { + "ext-gd": "Enables you to write PNG images", + "khanamiryan/qrcode-detector-decoder": "Enables you to use the image validator", + "roave/security-advisories": "Makes sure package versions with known security issues are not installed", + "setasign/fpdf": "Enables you to use the PDF writer" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.x-dev" + } + }, + "autoload": { + "psr-4": { + "Endroid\\QrCode\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jeroen van den Enden", + "email": "info@endroid.nl" + } + ], + "description": "Endroid QR Code", + "homepage": "https://github.com/endroid/qr-code", + "keywords": [ + "code", + "endroid", + "php", + "qr", + "qrcode" + ], + "funding": [ + { + "url": "https://github.com/endroid", + "type": "github" + } + ], + "time": "2022-10-26T08:48:17+00:00" + }, + { + "name": "endroid/qr-code-bundle", + "version": "4.1.1", + "source": { + "type": "git", + "url": "https://github.com/endroid/qr-code-bundle.git", + "reference": "84b614be5582e83939ccdba0273a6671be5e0535" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/endroid/qr-code-bundle/zipball/84b614be5582e83939ccdba0273a6671be5e0535", + "reference": "84b614be5582e83939ccdba0273a6671be5e0535", + "shasum": "" + }, + "require": { + "endroid/installer": "^1.2.2", + "endroid/qr-code": "^4.6", + "php": "^7.4||^8.0", + "symfony/framework-bundle": "^4.4||^5.0||^6.0", + "symfony/twig-bundle": "^4.4||^5.0||^6.0", + "symfony/yaml": "^4.4||^5.0||^6.0" + }, + "require-dev": { + "endroid/quality": "dev-master" + }, + "suggest": { + "roave/security-advisories": "Avoids installation of package versions with vulnerabilities" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "4.x-dev" + } + }, + "autoload": { + "psr-4": { + "Endroid\\QrCodeBundle\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jeroen van den Enden", + "email": "info@endroid.nl" + } + ], + "description": "Endroid QR Code Bundle", + "homepage": "https://github.com/endroid/qr-code-bundle", + "keywords": [ + "bundle", + "code", + "endroid", + "php", + "qr", + "symfony" + ], + "funding": [ + { + "url": "https://github.com/endroid", + "type": "github" + } + ], + "time": "2022-10-04T17:28:16+00:00" + }, { "name": "exsyst/swagger", "version": "v0.4.1", @@ -2878,6 +3166,7 @@ "annotations", "controllers" ], + "abandoned": "Symfony", "time": "2020-08-25T19:10:18+00:00" }, { @@ -2940,6 +3229,7 @@ "mail", "mailer" ], + "abandoned": "symfony/mailer", "time": "2019-11-12T09:31:26+00:00" }, { @@ -3877,33 +4167,34 @@ }, { "name": "symfony/flex", - "version": "v1.9.10", + "version": "v1.21.8", "source": { "type": "git", "url": "https://github.com/symfony/flex.git", - "reference": "7335ec033995aa34133e621627333368f260b626" + "reference": "bda5f869ac51c8e985a6fe9f964c4cb78228a369" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/flex/zipball/7335ec033995aa34133e621627333368f260b626", - "reference": "7335ec033995aa34133e621627333368f260b626", + "url": "https://api.github.com/repos/symfony/flex/zipball/bda5f869ac51c8e985a6fe9f964c4cb78228a369", + "reference": "bda5f869ac51c8e985a6fe9f964c4cb78228a369", "shasum": "" }, "require": { "composer-plugin-api": "^1.0|^2.0", "php": ">=7.1" }, + "conflict": { + "composer/semver": "<1.7.2" + }, "require-dev": { "composer/composer": "^1.0.2|^2.0", - "symfony/dotenv": "^4.4|^5.0", - "symfony/phpunit-bridge": "^4.4|^5.0", - "symfony/process": "^3.4|^4.4|^5.0" + "symfony/dotenv": "^4.4|^5.0|^6.0", + "symfony/filesystem": "^4.4|^5.0|^6.0", + "symfony/phpunit-bridge": "^4.4.12|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0" }, "type": "composer-plugin", "extra": { - "branch-alias": { - "dev-main": "1.9-dev" - }, "class": "Symfony\\Flex\\Flex" }, "autoload": { @@ -3922,7 +4213,21 @@ } ], "description": "Composer plugin for Symfony", - "time": "2020-10-14T17:41:54+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-10-07T08:51:39+00:00" }, { "name": "symfony/form", @@ -4917,35 +5222,6 @@ ], "time": "2020-10-24T12:01:57+00:00" }, - { - "name": "symfony/orm-pack", - "version": "v1.2.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/orm-pack.git", - "reference": "21ac491414b5815e5ebb7425908c1d1568d2e775" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/orm-pack/zipball/21ac491414b5815e5ebb7425908c1d1568d2e775", - "reference": "21ac491414b5815e5ebb7425908c1d1568d2e775", - "shasum": "" - }, - "require": { - "composer/package-versions-deprecated": "*", - "doctrine/common": "^2", - "doctrine/doctrine-bundle": "^2", - "doctrine/doctrine-migrations-bundle": "^2", - "doctrine/orm": "^2" - }, - "type": "symfony-pack", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A pack for the Doctrine ORM", - "time": "2020-08-31T10:20:18+00:00" - }, { "name": "symfony/polyfill-intl-grapheme", "version": "v1.20.0", @@ -5504,33 +5780,6 @@ "homepage": "https://symfony.com", "time": "2020-10-24T12:01:57+00:00" }, - { - "name": "symfony/profiler-pack", - "version": "v1.0.5", - "source": { - "type": "git", - "url": "https://github.com/symfony/profiler-pack.git", - "reference": "29ec66471082b4eb068db11eb4f0a48c277653f7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/profiler-pack/zipball/29ec66471082b4eb068db11eb4f0a48c277653f7", - "reference": "29ec66471082b4eb068db11eb4f0a48c277653f7", - "shasum": "" - }, - "require": { - "symfony/stopwatch": "*", - "symfony/twig-bundle": "*", - "symfony/web-profiler-bundle": "*" - }, - "type": "symfony-pack", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A pack for the Symfony web profiler", - "time": "2020-08-12T06:50:46+00:00" - }, { "name": "symfony/property-access", "version": "v5.1.8", @@ -6134,35 +6383,6 @@ "homepage": "https://symfony.com", "time": "2020-10-24T12:01:57+00:00" }, - { - "name": "symfony/serializer-pack", - "version": "v1.0.4", - "source": { - "type": "git", - "url": "https://github.com/symfony/serializer-pack.git", - "reference": "61173947057d5e1bf1c79e2a6ab6a8430be0602e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer-pack/zipball/61173947057d5e1bf1c79e2a6ab6a8430be0602e", - "reference": "61173947057d5e1bf1c79e2a6ab6a8430be0602e", - "shasum": "" - }, - "require": { - "doctrine/annotations": "^1.0", - "phpdocumentor/reflection-docblock": "*", - "symfony/property-access": "*", - "symfony/property-info": "*", - "symfony/serializer": "*" - }, - "type": "symfony-pack", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A pack for the Symfony serializer", - "time": "2020-10-19T08:52:16+00:00" - }, { "name": "symfony/service-contracts", "version": "v2.2.0", @@ -6396,6 +6616,7 @@ ], "description": "Symfony SwiftmailerBundle", "homepage": "http://symfony.com", + "abandoned": "symfony/mailer", "time": "2020-10-06T05:51:35+00:00" }, { @@ -6750,33 +6971,6 @@ "homepage": "https://symfony.com", "time": "2020-10-24T12:01:57+00:00" }, - { - "name": "symfony/twig-pack", - "version": "v1.0.2", - "source": { - "type": "git", - "url": "https://github.com/symfony/twig-pack.git", - "reference": "08a73e833e07921c464336deb7630f93e85ef930" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-pack/zipball/08a73e833e07921c464336deb7630f93e85ef930", - "reference": "08a73e833e07921c464336deb7630f93e85ef930", - "shasum": "" - }, - "require": { - "symfony/twig-bundle": "*", - "twig/extra-bundle": "^2.12|^3.0", - "twig/twig": "^2.12|^3.0" - }, - "type": "symfony-pack", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A Twig pack for Symfony projects", - "time": "2020-10-19T08:46:41+00:00" - }, { "name": "symfony/validator", "version": "v5.1.8", @@ -7468,12 +7662,12 @@ "version": "1.9.1", "source": { "type": "git", - "url": "https://github.com/webmozart/assert.git", + "url": "https://github.com/webmozarts/assert.git", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", "shasum": "" }, @@ -7944,34 +8138,6 @@ "homepage": "https://symfony.com", "time": "2020-10-24T12:01:57+00:00" }, - { - "name": "symfony/debug-pack", - "version": "v1.0.9", - "source": { - "type": "git", - "url": "https://github.com/symfony/debug-pack.git", - "reference": "cfd5093378e9cafe500f05c777a22fe8a64a9342" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/debug-pack/zipball/cfd5093378e9cafe500f05c777a22fe8a64a9342", - "reference": "cfd5093378e9cafe500f05c777a22fe8a64a9342", - "shasum": "" - }, - "require": { - "symfony/debug-bundle": "*", - "symfony/monolog-bundle": "^3.0", - "symfony/profiler-pack": "*", - "symfony/var-dumper": "*" - }, - "type": "symfony-pack", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A debug pack for Symfony projects", - "time": "2020-10-19T08:51:51+00:00" - }, { "name": "symfony/dom-crawler", "version": "v5.1.8", @@ -8093,33 +8259,6 @@ "description": "Symfony PHPUnit Bridge", "homepage": "https://symfony.com", "time": "2020-10-24T15:53:55+00:00" - }, - { - "name": "symfony/test-pack", - "version": "v1.0.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/test-pack.git", - "reference": "e61756c97cbedae00b7cf43b87abcfadfeb2746c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/test-pack/zipball/e61756c97cbedae00b7cf43b87abcfadfeb2746c", - "reference": "e61756c97cbedae00b7cf43b87abcfadfeb2746c", - "shasum": "" - }, - "require": { - "symfony/browser-kit": "*", - "symfony/css-selector": "*", - "symfony/phpunit-bridge": "*" - }, - "type": "symfony-pack", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A pack for functional and end-to-end testing within a Symfony app", - "time": "2020-10-19T08:52:28+00:00" } ], "aliases": [], @@ -8132,5 +8271,6 @@ "ext-ctype": "*", "ext-iconv": "*" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "1.1.0" } diff --git a/config/bundles.php b/config/bundles.php index 40aec7b..46e97b4 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -20,4 +20,5 @@ return [ Oneup\UploaderBundle\OneupUploaderBundle::class => ['all' => true], Knp\Bundle\SnappyBundle\KnpSnappyBundle::class => ['all' => true], Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true], + Endroid\QrCodeBundle\EndroidQrCodeBundle::class => ['all' => true], ]; diff --git a/symfony.lock b/symfony.lock index b9ee548..806d569 100644 --- a/symfony.lock +++ b/symfony.lock @@ -84,6 +84,9 @@ "egulias/email-validator": { "version": "2.1.17" }, + "endroid/qr-code-bundle": { + "version": "4.1.1" + }, "exsyst/swagger": { "version": "v0.4.1" }, diff --git a/templates/Home/home.html.twig b/templates/Home/home.html.twig index 85dc0c8..b2d7d25 100644 --- a/templates/Home/home.html.twig +++ b/templates/Home/home.html.twig @@ -390,7 +390,12 @@ {% endif %} -
+
+
+ {% set qrCode = qr_code_result(absolute_url(path("app_home"))) %} + +
+
diff --git a/templates/Home/user.html.twig b/templates/Home/user.html.twig index eb2cfe7..96a45bc 100644 --- a/templates/Home/user.html.twig +++ b/templates/Home/user.html.twig @@ -382,6 +382,15 @@ Youtube = {{ config.youtube }}
{% endif %} + + + + +
+
+ {% set qrCode = qr_code_result(absolute_url(path("app_home_user",{userpseudo:user.slug}))) %} + +