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
[ | |
[ | |
"gbdmg", | |
[ | |
[ | |
42, | |
69, | |
59 | |
], | |
[ |
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
function KonamiCodeMixin (callback) { | |
const KEYS = ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'KeyB', 'KeyA'] | |
let i = 0 | |
return { | |
mounted () { | |
window.addEventListener('keyup', this.onKeyUp) | |
}, | |
destroyed () { | |
window.removeEventListener('keyup', this.onKeyUp) |
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
const components = { | |
'*': 'strong', | |
'_': 'em', | |
'~': 's', | |
'```': 'code' | |
} | |
export default { | |
functional: true, | |
props: { |
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
import { createElement } from '@vue/composition-api' | |
import htm from 'htm' | |
const acceptValue = ['input', 'textarea', 'option', 'select'] | |
function getVNodeData (tag, attrs) { | |
const data = {} | |
const basics = ['slot', 'key', 'ref', 'refInFor', 'class', 'style'] |
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
[ | |
'facebookexternalhit', | |
'Facebot', | |
'Twitterbot', | |
'WhatsApp', | |
'Pinterest', | |
'TelegramBot', | |
'Google Web Preview', | |
'FeedFetcher-Google', | |
'linkedinbot', |
OlderNewer