From ffe6f257121629c7cac1e05387b2889c39467a4c Mon Sep 17 00:00:00 2001 From: "github-action[bot]" <> Date: Tue, 1 Sep 2026 17:28:28 +0000 Subject: [PATCH] Create Flex endpoint --- index.json | 20 ++++++++ tito10047.iconcaptcha-bundle.0.1.json | 69 +++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 index.json create mode 100644 tito10047.iconcaptcha-bundle.0.1.json diff --git a/index.json b/index.json new file mode 100644 index 00000000..b3fce39a --- /dev/null +++ b/index.json @@ -0,0 +1,20 @@ +{ + "aliases": [], + "recipes": { + "tito10047/iconcaptcha-bundle": [ + "0.1" + ] + }, + "recipe-conflicts": [], + "versions": [], + "branch": "main", + "is_contrib": true, + "_links": { + "repository": "github.com/symfony/recipes-contrib", + "origin_template": "{package}:{version}@github.com/symfony/recipes-contrib:main", + "recipe_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2036/{package_dotted}.{version}.json", + "recipe_template_relative": "{package_dotted}.{version}.json", + "archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2036/archived/{package_dotted}/{ref}.json", + "archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json" + } +} diff --git a/tito10047.iconcaptcha-bundle.0.1.json b/tito10047.iconcaptcha-bundle.0.1.json new file mode 100644 index 00000000..a51539e6 --- /dev/null +++ b/tito10047.iconcaptcha-bundle.0.1.json @@ -0,0 +1,69 @@ +{ + "manifests": { + "tito10047/iconcaptcha-bundle": { + "manifest": { + "bundles": { + "Tito10047\\IconcaptchaBundle\\IconcaptchaBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "add-lines": [ + { + "file": "assets/app.js", + "content": "import '@fabianwennink/iconcaptcha/css/iconcaptcha.min.css';", + "position": "top", + "requires": "symfony/asset-mapper", + "warn_if_missing": true + } + ], + "post-install-output": [ + " ", + " What's next? ", + " ", + "", + " * The captcha needs a session: make sure framework.session is enabled.", + "", + " * Add the widget to a form:", + " $builder->add('captcha', Tito10047\\IconcaptchaBundle\\Type\\IconCaptchaType::class);", + "", + " * Serve the client assets. With AssetMapper they were just declared in", + " importmap.php; without it, run php bin/console iconcaptcha:install-assets", + " once and after every update of fabianwennink/iconcaptcha.", + "", + " * Read the documentation at https://github.com/tito10047/IconCaptchaBundle", + "" + ] + }, + "files": { + "config/packages/icon_captcha.yaml": { + "contents": [ + "icon_captcha:", + " theme: light", + "", + "# A test cannot solve a challenge, so the protected form has to stay submittable.", + "# \"enable: false\" switches both ends at once: nothing is rendered and the", + "# constraint always passes.", + "when@test:", + " icon_captcha:", + " enable: false", + "" + ], + "executable": false + }, + "config/routes/icon_captcha.yaml": { + "contents": [ + "icon_captcha:", + " resource: '@IconcaptchaBundle/config/routes.php'", + " type: php", + "" + ], + "executable": false + } + }, + "ref": "29a446fc32a16544b332e67f3cfaa02b6d0f3a12" + } + } +}