Trigger .trigger('contentUpdated') on the element where dynamic content is injected.
$.ajax({
url: 'https://www.example.com',
method: 'POST',
data: {
id: '1'| for var in "$@" | |
| do | |
| ./vendor/bin/php-cs-fixer fix --level=psr2 $var | |
| done |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo "Please provide a version. For example: php56, php70 or php71" | |
| echo "Valet only supports PHP 5.6+" | |
| exit | |
| fi | |
| if ! brew ls --versions $1 > /dev/null; then | |
| echo "Installing $1" | |
| brew install $1 |
| const readline = require('readline') | |
| const blank = '\n'.repeat(process.stdout.rows) | |
| console.log(blank) | |
| readline.cursorTo(process.stdout, 0, 0) | |
| readline.clearScreenDown(process.stdout) |
| #!/bin/bash | |
| set -e | |
| show_help() { | |
| cat << EOF | |
| Usage: ${0##*/} [-u USER] [-p PASS] [-P PORT] [-H HOST] [DATABASE] | |
| ${0##*/} -h | |
| Open a standard connection in Sequel PRO. |
| const list = ` | |
| item1 | |
| item2 | |
| `.trim() | |
| const translate = list.split('\n').map(item => `"${item}",""`).join('\n').trim() | |
| console.log(translate) |
| SET FOREIGN_KEY_CHECKS = 0; | |
| TRUNCATE catalog_product_entity_media_gallery; | |
| SET FOREIGN_KEY_CHECKS = 1; |
| alias get-headers='curl -X HEAD -i' |
| // Based on https://www.npmjs.com/package/morgan#vanilla-http-server | |
| const { send } = require('micro') | |
| const morgan = require('morgan') | |
| const logger = morgan('combined') | |
| module.exports = async function (req, res) { | |
| logger(req, res, function (err) { | |
| if (err) { | |
| return send(res, 500, 'Error') | |
| } |
| <referenceContainer name="content"> | |
| <referenceBlock name="checkout.root"> | |
| <arguments> | |
| <argument name="jsLayout" xsi:type="array"> | |
| <item name="components" xsi:type="array"> | |
| <item name="checkout" xsi:type="array"> | |
| <item name="children" xsi:type="array"> | |
| <item name="authentication" xsi:type="array"> | |
| <item name="componentDisabled" xsi:type="boolean">true</item> | |
| </item> |