{ "locks": { "api-platform/admin-pack": { "version": "1.0", "recipe": { "repo": "1.0", "branch": "master", "version": "1.0", "ref": "703c6453b039330753a7ae6cebd0af8ab1d770d8" } } }, "manifests": { "api-platform/admin-pack": { "repository": "github.com/symfony/recipes", "package": "api-platform/admin-pack", "version": "1.0", "manifest": { "copy-from-recipe": { "assets/": "assets/", "config/": "%CONFIG_DIR%/", "templates/": "templates/" }, "aliases": [ "api-admin", "api-platform-admin", "react-admin" ], "post-install-output": [ " * Your admin is almost ready:", " 1. Install the JavaScript dependencies by running yarn add @api-platform/admin @babel/preset-react", " 2. Edit webpack.config.js and uncomment the following lines:", "", " Encore", " // ...", " .enableReactPreset()", " .addEntry('admin', './assets/js/admin.js')", "", " * Mark entities you want in the admin with the @ApiResource annotation, it appears in the admin!", "", " * Using MakerBundle? Try php bin/console make:entity --api-resource" ] }, "files": { "templates/admin.html.twig": { "contents": "{% extends 'base.html.twig' %}\n\n{% block title %}API Platform Admin{% endblock %}\n\n{% block body %}
{% endblock %}\n\n{% block javascripts %}\n \n {{ encore_entry_script_tags('admin') }}\n{% endblock %}\n", "executable": false, "encoding": "" }, "config/routes/api_platform_admin.yaml": { "contents": "admin:\n path: /admin\n controller: Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController\n defaults:\n template: admin.html.twig\n", "executable": false, "encoding": "" }, "assets/js/admin.js": { "contents": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { HydraAdmin } from '@api-platform/admin';\n\nconst entrypoint = document.getElementById('api-entrypoint').innerText;\n\nReactDOM.render(, document.getElementById('api-platform-admin'));\n", "executable": false, "encoding": "" } }, "origin": "api-platform/admin-pack:1.0@github.com/symfony/recipes:master", "is_contrib": false } } }