- Installer Tape (cf ressources et Google)
- JS ES6
- Html & CSS
| { | |
| "name": "rx-rover", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "babel-node test.js | faucet", | |
| "test_debug": "babel-node test.js" | |
| }, | |
| "author": "", |
| <?php | |
| function displayAndConvert($input) { | |
| display($input); | |
| return strtoupper($input); | |
| } | |
| // displayAndConvert('foo') -> display('foo') -> return 'FOO' | |
| function beforeDisplayAndConvert($input) { | |
| return $input . ' - With before'; | |
| } |
| /* | |
| X-Frame-Options: DENY | |
| X-XSS-Protection: 1; mode=block | |
| Content-Security-Policy: script-src 'self' https://apis.google.com | |
| /css/main.css | |
| Cache-Control: public max-age=31536000 | |
| /app.js | |
| Cache-Control: public max-age=31536000 |
Voici comme promis les docs pour Magento 1 afin de comprendre les différentes parties.
Le site https://magentotherightway.com/ reprend de manière assez concise un gros ensemble de bonnes pratiques.
Je pense que à froid cela vous semblera cryptique, mais je vous invite à vous mettre un rappel (par exemple toutes les 2 semaines) pour relire rapidement les différentes sections.
| <?php | |
| namespace Terrang\Fluxs\Test\Fake\Repository; | |
| use Magento\Framework\Exception\NoSuchEntityException; | |
| class FakeAddressRepository implements \Magento\Customer\Api\AddressRepositoryInterface | |
| { | |
| private $db = []; |
| { | |
| "consumer": { | |
| "name": "Front Commerce" | |
| }, | |
| "provider": { | |
| "name": "Magento 2 Url" | |
| }, | |
| "interactions": [ | |
| { | |
| "description": "A find request for entity with type category and id 6", |
| import React from "react"; | |
| import PropTypes from "prop-types"; | |
| import ResizedImage from "theme/atoms/Images/ResizedImage"; | |
| import ImagesGallery from "theme/molecules/Product/View/ImagesGallery"; | |
| import EnhanceProductGallery from "common/enhancers/organisms/EnhanceProductGallery"; | |
| import ProductGalleryQuery from "./ProductGalleryQuery.gql"; | |
| import createFullUrlFromPath from "utils/createFullUrlFromPath"; | |
| const ProductGallery = ({ | |
| mainImageSrc, |
| { | |
| product(sku:"LOW-310589") { | |
| name | |
| imageUrl | |
| giftMessageAvailable | |
| sku | |
| brand | |
| terrangAdvice | |
| isBuyableOnline | |
| additionalInformation { |