This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; | |
use Composer\XdebugHandler\XdebugHandler; | |
/* | |
* Check if Xdebug is enabled and disable it. | |
*/ | |
$xdebug = new XdebugHandler('no-prefix'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The mixin | |
import kebabcase from 'lodash.kebabcase' | |
export default { | |
// The component will bind class to this computed property. | |
computed: { | |
classes () { | |
const classes = {} | |
Object.keys(this.$props) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Instead of doing this in lots of components: | |
export default { | |
props: { | |
colorClass: { | |
type: String, | |
required: true, | |
default: 'blue', | |
validator: value => ['red', 'blue'].includes(value) | |
} | |
} |