Typo and formatage
This commit is contained in:
parent
d481674e86
commit
6dcc12461b
5 changed files with 9 additions and 9 deletions
|
@ -10,7 +10,7 @@ let fields = require('./models/fields');
|
|||
let forms = require('./models/forms');
|
||||
let _ = require('./translate')._;
|
||||
let objectHash = require('object-hash');
|
||||
let mjml2html = require("mjml");
|
||||
let mjml2html = require('mjml');
|
||||
let mjmlTemplates = new Map();
|
||||
let hbs = require('hbs');
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ let templates = new Map();
|
|||
let htmlToText = require('html-to-text');
|
||||
let aws = require('aws-sdk');
|
||||
let objectHash = require('object-hash');
|
||||
let mjml2html = require("mjml");
|
||||
let mjml2html = require('mjml');
|
||||
|
||||
|
||||
let _ = require('./translate')._;
|
||||
|
|
|
@ -4,7 +4,7 @@ let db = require('../db');
|
|||
let fs = require('fs');
|
||||
let path = require('path');
|
||||
let tools = require('../tools');
|
||||
let mjml2html = require("mjml");
|
||||
let mjml2html = require('mjml');
|
||||
let _ = require('../translate')._;
|
||||
|
||||
let allowedKeys = [
|
||||
|
|
|
@ -7,15 +7,15 @@ let tableHelpers = require('../table-helpers');
|
|||
|
||||
let allowedKeys = ['description', 'editor_name', 'editor_data', 'html', 'text'];
|
||||
|
||||
module.exports.editorName = (edt) => {
|
||||
module.exports.editorName = edt => {
|
||||
const names = {
|
||||
grapejs: 'GrapesJS',
|
||||
summernote: 'Summernote',
|
||||
codeeditor: 'Code Editor',
|
||||
mosaico: 'Mosaico',
|
||||
mosaico: 'Mosaico'
|
||||
};
|
||||
return names[edt] || edt || 'Unknow';
|
||||
}
|
||||
};
|
||||
|
||||
module.exports.list = (start, limit, callback) => {
|
||||
tableHelpers.list('templates', ['*'], 'name', null, start, limit, callback);
|
||||
|
|
|
@ -287,7 +287,7 @@ router.post('/ajax', (req, res) => {
|
|||
htmlescape(striptags(row.description) || ''),
|
||||
getStatusText(row),
|
||||
'<span class="datestring" data-date="' + row.created.toISOString() + '" title="' + row.created.toISOString() + '">' + row.created.toISOString() + '</span>'
|
||||
].concat('<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span><a href="/campaigns/edit/' + row.id + '">' + _('Edit') + '</a>'))
|
||||
].concat('<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> <a href="/campaigns/edit/' + row.id + '">' + _('Edit') + '</a>'))
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -617,8 +617,8 @@ router.post('/clicked/ajax/:id/:linkId/stats', (req, res) => {
|
|||
|
||||
res.json({
|
||||
draw: req.body.draw,
|
||||
total: total,
|
||||
data: data
|
||||
total,
|
||||
data
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue