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
diff --git a/server/modules/ventaLead/lib/VentaLead.js b/server/modules/ventaLead/lib/VentaLead.js | |
index 563c2bc..dede967 100644 | |
--- a/server/modules/ventaLead/lib/VentaLead.js | |
+++ b/server/modules/ventaLead/lib/VentaLead.js | |
@@ -5,87 +5,76 @@ var Car = require('../../car'); | |
var util = require('../../../../lib/util'); | |
var Canalcar = require('../../../../lib/canalcarApiClient'); | |
-var VentaLead = function (rawVentaLead){ | |
- var self = this; |
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
let action = (id, items) => { | |
return { | |
type: ACTION_TYPE; | |
item: items.filter(i => id === i._id)[0] // item with id will always exists in the array | |
} | |
} |
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 React, { Component, PropTypes } from 'react'; | |
import { connect } from 'react-redux'; | |
import { fetchItemsIfNeeded } from '../actions'; | |
import ListItem from '../components/ListItem'; | |
class ItemsList extends Component { | |
constructor(props) { | |
super(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
java -Dswing.aatext=true -Dswing.plaf.metal.controlFont=Tahoma-20 -Dswing.plaf.metal.userFont=Tahoma-20 -jar file.jar |
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
export default ({ | |
value, update | |
}) => (¬ | |
<div> | |
<input onChange={e => update(e.target.value) value={value}}/> | |
</div>¬ | |
); |
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 React from 'react'; | |
export default ({ | |
items, fetchItems | |
}) => { | |
if(items.size === 0) | |
fetchItems(); | |
return (<div>{items}</div>); | |
}; |
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 React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { fetchItemsIfNeeded } from './actions'; | |
import ListItem from './ListItem'; | |
class List extends Component{ | |
constructor(props) { | |
super(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
router.get('/', (req, res) => { | |
if(req.user){ | |
if req.user.active){ | |
if(req.query.id){ | |
findById(req.query.id).then(fClient => { | |
if(fClient){ | |
res.json(fClient); | |
} else { | |
res.json({}); | |
} |
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
'use strict'; | |
var _cloneNode, _createElement, _isCanvasBlank, jsPDF, downloadPdf; | |
_cloneNode = function(node, javascriptEnabled) { | |
var child, clone; | |
clone = node.nodeType === 3 ? document.createTextNode(node.nodeValue) : node.cloneNode(false); | |
child = node.firstChild; | |
while (child) { | |
if (javascriptEnabled === true || child.nodeType !== 1 || child.nodeName !== 'SCRIPT') { | |
clone.appendChild(_cloneNode(child, javascriptEnabled)); |
OlderNewer