Skip to content

Instantly share code, notes, and snippets.

View tedpatrick's full-sized avatar

Ted Patrick tedpatrick

View GitHub Profile
@tedpatrick
tedpatrick / vue.config.js
Created June 21, 2018 16:36
Simple config for Vue CLI 3
module.exports = {
productionSourceMap: false,
baseUrl: '/',
outputDir: 'dist',
assetsDir: 'assets',
runtimeCompiler: false,
parallel: true,
css: {
extract: false
}
@tedpatrick
tedpatrick / inputtextallow.js
Last active March 13, 2018 17:05
inputtextallow and inputtextblock
Vue.component( 'inputtextallow' , {
template:'<input type="text" :value="value" @focus="selectField($event)" @input="input($event.target.value)" @change="change" @keyup="keyup" @keydown="keydown($event)" @keypress="keypress" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" >',
props:['value','allow'],
data(){
return {
allowset:{
c65:true,
c66:true,
c69:true,
c84:true
{
"catalogRefId1": "sku3480015_sk",
"productId": "prod3540010_prd",
"previewImageUrl": "",
"itemDesignName": "",
"subSkuIds": "",
"nfc": true,
"commerceItemId": "",
"productConfigurationXML": {
"CheckPersonalization": {
{
"catalogRefId1": "sku3480005_sk",
"productId": "prod3540005_prd",
"previewImageUrl": "",
"itemDesignName": "",
"subSkuIds": "",
"nfc": true,
"commerceItemId": "",
"productConfigurationXML": {
"CheckPersonalization": {
@tedpatrick
tedpatrick / component
Created February 20, 2018 03:28
<tbr>
Vue.component( 'tbr' , {
template:'<component>{{value}}<br v-if="value"/></component>',
props:['value']
});