This file contains 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
<template> | |
<Transition | |
v-bind="$attrs" | |
enter-active-class="ease-out duration-300" | |
enter-class="opacity-0" | |
enter-to-class="opacity-100" | |
leave-active-class="ease-in duration-200" | |
leave-class="opacity-100" | |
leave-to-class="opacity-0" | |
v-on="$listeners" |
This file contains 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
module.exports = { | |
output: { | |
assetModuleFilename: "img/[hash][ext][query]", | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.svg$/, | |
use: ["vue-loader", "vue-svg-loader"], | |
}, |
This file contains 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
// in setup() .. | |
// bind listeners on mount/unmount | |
useEscapeKeydownWhenMounted(() => { | |
emit('close'); | |
}); | |
// bind listeners based on condition | |
useEscapeKeydownWhen(toRef(props, 'open'), () => { | |
emit('close'); |
This file contains 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
<script> | |
import icons from '@pimer/octicons'; | |
export default { | |
functional: true, | |
render(createElement, { props }) { | |
return Object.hasOwnProperty.apply(icons, [props.name]) ? createElement('svg', { | |
domProps: { innerHTML: icons[props.name].path }, | |
attrs: { ...icons[props.name].options }, | |
}) : false; |
This file contains 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
<template> | |
<v-select :filter="fuseSearch" :options="books" :getOptionLabel="option => option.title"> | |
<template #option="{author, title}"> | |
{{ title }} <br> | |
<cite>{{ author.firstName }} {{ author.lastName }}</cite> | |
</template> | |
</v-select> | |
</template> | |
<script> |
This file contains 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
cd {{ release }} | |
# link node_modules from last deployment | |
ln -s {{ project }}/node_modules | |
# update linked folder with latest deps | |
yarn install | |
# remove the symlink | |
rm node_modules |
This file contains 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
#!/bin/sh | |
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php71.plist | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php71.plist | |
echo "xdebug disabled" |
This file contains 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
/** | |
* @test | |
*/ | |
public function $METHOD$() | |
{ | |
// $TEST$$END$ | |
} |
This file contains 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 | |
interface Container | |
{ | |
static function bind($name, Callable $resolver); | |
static function make($name); | |
} |
NewerOlder