Work in progress on tag language
Fix - message sent to a list not associated with a campaign couldn't be shown in archive - to know which message to show even if the list is not at the campaign, we store test messages in table test_messages
This commit is contained in:
parent
00e328a914
commit
4113cb8476
17 changed files with 312 additions and 172 deletions
|
@ -1,5 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const {TagLanguages} = require('./templates');
|
||||
|
||||
const UnsubscriptionMode = {
|
||||
MIN: 0,
|
||||
|
||||
|
@ -42,10 +44,13 @@ function getFieldColumn(field) {
|
|||
return field.column || 'grouped_' + field.id;
|
||||
}
|
||||
|
||||
const toNameTagLangauge = TagLanguages.SIMPLE;
|
||||
|
||||
module.exports = {
|
||||
UnsubscriptionMode,
|
||||
SubscriptionStatus,
|
||||
SubscriptionSource,
|
||||
FieldWizard,
|
||||
getFieldColumn
|
||||
getFieldColumn,
|
||||
toNameTagLangauge
|
||||
};
|
|
@ -1,14 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
const {TagLanguages} = require('./templates');
|
||||
|
||||
function renderTag(tagLanguage, tag) {
|
||||
if (tagLanguage === TagLanguages.SIMPLE) {
|
||||
return `[${tag}]`;
|
||||
} else if (tagLanguage === TagLanguages.HBS) {
|
||||
return `{{${tag}}}`;
|
||||
}
|
||||
}
|
||||
const {renderTag} = require('./templates');
|
||||
|
||||
function getVersafix(tagLanguage) {
|
||||
const tg = tag => renderTag(tagLanguage, tag);
|
||||
|
|
|
@ -7,6 +7,14 @@ const TagLanguages = {
|
|||
|
||||
const allTagLanguages = [TagLanguages.SIMPLE, TagLanguages.HBS];
|
||||
|
||||
function renderTag(tagLanguage, tag) {
|
||||
if (tagLanguage === TagLanguages.SIMPLE) {
|
||||
return `[${tag}]`;
|
||||
} else if (tagLanguage === TagLanguages.HBS) {
|
||||
return `{{${tag}}}`;
|
||||
}
|
||||
}
|
||||
|
||||
function _getBases(trustedBaseUrl, sandboxBaseUrl, publicBaseUrl) {
|
||||
if (trustedBaseUrl.endsWith('/')) {
|
||||
trustedBaseUrl = trustedBaseUrl.substring(0, trustedBaseUrl.length - 1);
|
||||
|
@ -67,5 +75,6 @@ module.exports = {
|
|||
unbase,
|
||||
getMergeTagsForBases,
|
||||
TagLanguages,
|
||||
allTagLanguages
|
||||
allTagLanguages,
|
||||
renderTag
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue