Basic support for Mosaico templates.
TODO: - Allow choosing a mosaico template in a mosaico-based template - Integrate the custom mosaico templates with templates (endpoint for retrieving a mosaico template, replacement of URL_BASE and PLACEHOLDER tags - Implement support for MJML-based Mosaico templates - Implement support for MJML-based templates - Implement support for GrapeJS-based templates
This commit is contained in:
parent
7b5642e911
commit
6706d93bc1
21 changed files with 2192 additions and 26 deletions
|
@ -106,6 +106,13 @@ class InvalidConfirmationForUnsubscriptionError extends InteroperableError {
|
|||
}
|
||||
}
|
||||
|
||||
class DependencyPresentError extends InteroperableError {
|
||||
constructor(msg, data) {
|
||||
super('DependencyPresentError', msg, data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const errorTypes = {
|
||||
InteroperableError,
|
||||
NotLoggedInError,
|
||||
|
@ -123,7 +130,8 @@ const errorTypes = {
|
|||
PermissionDeniedError,
|
||||
InvalidConfirmationForSubscriptionError,
|
||||
InvalidConfirmationForAddressChangeError,
|
||||
InvalidConfirmationForUnsubscriptionError
|
||||
InvalidConfirmationForUnsubscriptionError,
|
||||
DependencyPresentError
|
||||
};
|
||||
|
||||
function deserialize(errorObj) {
|
||||
|
|
1537
shared/mosaico-templates.js
Normal file
1537
shared/mosaico-templates.js
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue