words = newArr.map(e => {
let newE = new Object();
newE.character = e;
newE.decomp = decomp.lookup(e);
newE.decomp2 = hanzi.decompose(e, 1);
newE.decomp3 = hanzi.decompose(e, 2);
newE.entries = makeDictionaryTree(getEntries(e));
return newE;
})
http://www.hsk.wiki/search?term=玄玉瓜瓦甘&strokeOrderAnimationButton=
http://www.hsk.wiki/search?term=%26%2329572%3B%26%2329577%3B%26%2329916%3B%26%2329926%3B%26%2329976%3B&strokeOrderAnimationButton=
app.get('/search', (req, res) => {
let {query: {term: searchingBy }} = req;
res.render('search', {
pageTitle: 'mainPage',
searchingBy
});
});
http://www.hsk.wiki/search?term=%26%2329572%3B%26%2329577%3B%26%2329916%3B%26%2329926%3B%26%2329976%3B%26%2329983%3B%26%2329992%3B%26%2329993%3B%26%2330000%3B%26%2330091%3B%26%2330098%3B%26%2330326%3B%26%2330333%3B%26%2330382%3B%26%2330399%3B%26%2330446%3B%26%2330683%3B%26%2330690%3B%26%2330707%3B%26%2331034%3B%26%2331035%3B%26%2331160%3B%26%2331166%3B%26%2331348%3B%26%2331435%3B&strokeOrderAnimationButton=
http://www.hsk.wiki/search?term=玄玉瓜瓦甘生用甩田疋疒癶白皮皿目矛矢石示礻禸禾穴立&strokeOrderAnimationButton=
const nodemailer = require('nodemailer'); // Отправка через гмаил
var transport = nodemailer.createTransport({ // Отправка через гмаил
service: 'gmail',
auth: {
user: '***@gmail.com',
pass: '***'
}
});
...
await transport.sendMail(regEmail(email), function(err, info) { // Отправка через гмаил
if (err) {
console.log(err)
} else {
console.log(info);
}
});
...
const keys = require('./keys');
const sgMail = require('@sendgrid/mail'); // sendgrid
sgMail.setApiKey(keys.SENDGRID_API_KEY); // sendgrid
sgMail.send({
to: 'xxx@yandex.ru',
from: 'xxx@yandex.ru',
subject: 'hi there',
text: 'hi there',
})
node test