/** * Transforms `returns` doclet elements. * * @param {Object[]} nodes - doclet elements * @returns {Object} filtered object */ function transform( nodes ) { var type; var desc; if ( nodes.type ) { if ( nodes.type.names.length === 1 ) { type = nodes.type.names[ 0 ]; } else { type = nodes.type.names; } } else { type = ''; } desc = nodes.description || ''; return { 'type': type, 'description': desc }; }
<p style={textColor}>{_.truncate(service.description, {length: 200, omission: '...'})}</p> : <p style={textColor}>{service.description}</p>
const InsertCourseEventToCalendar = (event) => { let calendarID = store.getState().CalendarReducer.id; let obj = {}; obj.end = event.end; obj.start = event.start; obj.recurrence = event.recurrence; obj.location = event.location; obj.description = event.description; obj.summary = event.summary; obj.colorId = store.getState().CalendarReducer.courseColor; return insertEvent(calendarID, obj,{}); }
beforeEach(() => { result = memo(() => builders.description(item(), entitiesRepo())); descriptionValue = memo(() => result()[0].attributes.content); ogValue = memo(() => result()[1].attributes.content); cardValue = memo(() => result()[2].attributes.content); });
function createTransaction(uuid) { let amount = Math.floor(Math.random() * Math.floor(1200)) + ''; let date = dateFormat(new Date(), "mm, dd, yyyy"); let randomCategoryIndex = Math.floor(Math.random() * Math.floor(randomEntries.transactions.length)); let randomDescriptionIndex = Math.floor(Math.random() * Math.floor(randomEntries.transactions[randomCategoryIndex].description.length)); var body = { uuid: uuid, amount: amount, currency: 'AED', category: randomEntries.transactions[randomCategoryIndex].category, description: randomEntries.transactions[randomCategoryIndex].description[randomDescriptionIndex], date: date }; console.log('Adding transaction: '); console.log(body); var options = { method: 'POST', uri: `http://${basePath}:${ports.transactions}${process.env.CREATE_TRANSACTION_ENDPOINT}`, body: body, json: true }; request.post(options, function (err, response, body) { return; }); }
avatar={<Avatar src={Video.writer && Video.writer.image} />} title={<a href="https://ant.design">{Video.title}</a>} description={Video.description} /> <div></div>
function createTransaction(uuid) { let amount = Math.floor(Math.random() * Math.floor(1200)) + ''; let date = dateFormat(new Date(), "mm, dd, yyyy"); let randomCategoryIndex = Math.floor(Math.random() * Math.floor(randomEntries.transactions.length)); let randomDescriptionIndex = Math.floor(Math.random() * Math.floor(randomEntries.transactions[randomCategoryIndex].description.length)); var body = { uuid: uuid, amount: amount, currency: 'AED', category: randomEntries.transactions[randomCategoryIndex].category, description: randomEntries.transactions[randomCategoryIndex].description[randomDescriptionIndex], date: date }; console.log('Adding transaction: '); console.log(body); var options = { method: 'POST', uri: `http://${basePath}:${ports.transactions}${process.env.CREATE_TRANSACTION_ENDPOINT}`, body: body, json: true }; request.post(options, function (err, response, body) { return; }); }
avatar={<Avatar src={Video.writer && Video.writer.image} />} title={<a href="https://ant.design">{Video.title}</a>} description={Video.description} /> <div></div>