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
# Editors | |
.idea | |
.vscode | |
# OS | |
.DS_Store | |
# Misc | |
node_modules/ |
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
// 0-9, #, and * | |
const dtmfRegex = /^[\d#*]+$/ |
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
<template> | |
<div class="wrapper"> | |
<transition name="fade"> | |
<div v-if="drawerOpenOnMobile" class="overlay" @click="toggleDrawer"></div> | |
</transition> | |
<transition name="slide"> | |
<aside v-if="drawerOpen" class="drawer"> | |
<p>First item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Drawer item</p><p>Last item</p> | |
</aside> | |
</transition> |
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
/** | |
* Generic input component of type [text] or [number] | |
*/ | |
export default { | |
render (createElement) { | |
return createElement( | |
'input', | |
{ | |
'class': { | |
'has-error': this.hasErrorClass && !this.hasValidClass, |
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
const args = { | |
SOME: 'some', | |
EVERY: 'every' | |
} | |
const permissions = [ | |
'create', | |
'view', | |
'update', | |
'delete' |
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 following has been tested to work in Atom v1.13.1 x64 | |
* Add the styles to styles.less accessible from Atom -> Stylesheet... | |
*/ | |
atom-notification { | |
height: 32px !important; | |
width: 32px !important; | |
} |
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
import axios from 'axios' | |
function httpRequest (method, url, request) { | |
return axios[method](url, request) | |
.then(response => Promise.resolve(response)) | |
.catch(error => Promise.reject(error)) | |
} | |
export default { | |
get (url, request) { |