Some fixes
This commit is contained in:
parent
d14942da93
commit
4f408a26d5
9 changed files with 18 additions and 23 deletions
18
client/package-lock.json
generated
18
client/package-lock.json
generated
|
@ -2214,7 +2214,7 @@
|
||||||
},
|
},
|
||||||
"underscore": {
|
"underscore": {
|
||||||
"version": "1.8.3",
|
"version": "1.8.3",
|
||||||
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
|
"resolved": "http://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
|
||||||
"integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI="
|
"integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4507,13 +4507,11 @@
|
||||||
},
|
},
|
||||||
"balanced-match": {
|
"balanced-match": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"bundled": true,
|
"bundled": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"brace-expansion": {
|
"brace-expansion": {
|
||||||
"version": "1.1.11",
|
"version": "1.1.11",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"balanced-match": "^1.0.0",
|
"balanced-match": "^1.0.0",
|
||||||
"concat-map": "0.0.1"
|
"concat-map": "0.0.1"
|
||||||
|
@ -4530,8 +4528,7 @@
|
||||||
},
|
},
|
||||||
"concat-map": {
|
"concat-map": {
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"bundled": true,
|
"bundled": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"console-control-strings": {
|
"console-control-strings": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
|
@ -4660,7 +4657,6 @@
|
||||||
"minimatch": {
|
"minimatch": {
|
||||||
"version": "3.0.4",
|
"version": "3.0.4",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"brace-expansion": "^1.1.7"
|
"brace-expansion": "^1.1.7"
|
||||||
}
|
}
|
||||||
|
@ -6757,7 +6753,7 @@
|
||||||
},
|
},
|
||||||
"keymaster": {
|
"keymaster": {
|
||||||
"version": "1.6.2",
|
"version": "1.6.2",
|
||||||
"resolved": "https://registry.npmjs.org/keymaster/-/keymaster-1.6.2.tgz",
|
"resolved": "http://registry.npmjs.org/keymaster/-/keymaster-1.6.2.tgz",
|
||||||
"integrity": "sha1-4a5U0OqUiPn2C2a2aPAumhlGxus="
|
"integrity": "sha1-4a5U0OqUiPn2C2a2aPAumhlGxus="
|
||||||
},
|
},
|
||||||
"kind-of": {
|
"kind-of": {
|
||||||
|
@ -7896,9 +7892,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mjml4-in-browser": {
|
"mjml4-in-browser": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/mjml4-in-browser/-/mjml4-in-browser-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/mjml4-in-browser/-/mjml4-in-browser-1.0.2.tgz",
|
||||||
"integrity": "sha512-k2kczYb28cCsL2ebi0cv2ui4UiF1V5r8KDqAKZA8dedOtPKvOJ7Y+hWhJlMDzrnOtQzs1kGbU4BWZmOu+2CcTQ==",
|
"integrity": "sha512-E/pgBIy0RNgFUrncEjEZb83jpFQyF913x55lNANahGTCWjEn85h0fiMuw045wv7ZnzTV9coBhRnY34m4rM/pog==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"html-minifier": "^3.5.3",
|
"html-minifier": "^3.5.3",
|
||||||
"htmlparser2": "^3.9.2",
|
"htmlparser2": "^3.9.2",
|
||||||
|
|
|
@ -26,14 +26,14 @@
|
||||||
"bootstrap": "^4.2.1",
|
"bootstrap": "^4.2.1",
|
||||||
"datatables.net": "^1.10.19",
|
"datatables.net": "^1.10.19",
|
||||||
"datatables.net-bs4": "^1.10.19",
|
"datatables.net-bs4": "^1.10.19",
|
||||||
"grapesjs": "0.14.49",
|
"grapesjs": "^0.14.49",
|
||||||
"grapesjs-mjml": "0.0.27",
|
"grapesjs-mjml": "0.0.27",
|
||||||
"grapesjs-preset-newsletter": "^0.2.20",
|
"grapesjs-preset-newsletter": "^0.2.20",
|
||||||
"i18next": "^13.1.0",
|
"i18next": "^13.1.0",
|
||||||
"i18next-browser-languagedetector": "^2.2.4",
|
"i18next-browser-languagedetector": "^2.2.4",
|
||||||
"immutable": "^4.0.0-rc.12",
|
"immutable": "^4.0.0-rc.12",
|
||||||
"juice": "^5.1.0",
|
"juice": "^5.1.0",
|
||||||
"mjml4-in-browser": "^1.0.1",
|
"mjml4-in-browser": "^1.0.2",
|
||||||
"moment": "^2.23.0",
|
"moment": "^2.23.0",
|
||||||
"moment-timezone": "^0.5.23",
|
"moment-timezone": "^0.5.23",
|
||||||
"popper.js": "^1.14.6",
|
"popper.js": "^1.14.6",
|
||||||
|
|
|
@ -132,7 +132,7 @@ class Form extends Component {
|
||||||
{props.children}
|
{props.children}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{!props.noStatus && statusMessageText &&
|
{!props.noStatus && statusMessageText &&
|
||||||
<AlignedRow htmlId="form-status-message">
|
<AlignedRow format={props.format} htmlId="form-status-message">
|
||||||
<p className={`alert alert-${statusMessageSeverity} ${styles.formStatus}`} role="alert">{statusMessageText}</p>
|
<p className={`alert alert-${statusMessageSeverity} ${styles.formStatus}`} role="alert">{statusMessageText}</p>
|
||||||
</AlignedRow>
|
</AlignedRow>
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@ import {CodeEditorSourceType} from "./sandboxed-codeeditor-shared";
|
||||||
|
|
||||||
import mjml2html
|
import mjml2html
|
||||||
from "mjml4-in-browser";
|
from "mjml4-in-browser";
|
||||||
|
|
||||||
import juice
|
import juice
|
||||||
from "juice";
|
from "juice";
|
||||||
import {withComponentMixins} from "./decorator-helpers";
|
import {withComponentMixins} from "./decorator-helpers";
|
||||||
|
|
|
@ -166,11 +166,11 @@
|
||||||
|
|
||||||
:global .modal-dialog {
|
:global .modal-dialog {
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
width: 700px;
|
max-width: 700px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1000px) {
|
@media (min-width: 1000px) {
|
||||||
width: 900px;
|
max-width: 900px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9adbb72253e29a014dc791a7ac976f1ade080ec6
|
Subproject commit a9ad4bab17475ab8646a0294338df59aa3864cb9
|
|
@ -9,8 +9,7 @@ const bluebird = require('bluebird');
|
||||||
|
|
||||||
const hasher = require('node-object-hash')();
|
const hasher = require('node-object-hash')();
|
||||||
|
|
||||||
const mjml = require('mjml');
|
const mjml2html = require('mjml');
|
||||||
const mjml2html = mjml.default;
|
|
||||||
|
|
||||||
const hbs = require('hbs');
|
const hbs = require('hbs');
|
||||||
const juice = require('juice');
|
const juice = require('juice');
|
||||||
|
|
|
@ -651,7 +651,7 @@ async function enforceSendPermissionTx(tx, context, campaignId) {
|
||||||
const requiredPermission = getSendConfigurationPermissionRequiredForSend(campaign, sendConfiguration);
|
const requiredPermission = getSendConfigurationPermissionRequiredForSend(campaign, sendConfiguration);
|
||||||
|
|
||||||
await shares.enforceEntityPermissionTx(tx, context, 'sendConfiguration', campaign.send_configuration, requiredPermission);
|
await shares.enforceEntityPermissionTx(tx, context, 'sendConfiguration', campaign.send_configuration, requiredPermission);
|
||||||
await shares.enforceEntityPermissionTx(tx, context, 'campaign', campaignId, 'send');
|
await shares.enforceEntityPermissionTx(tx, context, 'campaign', campaign.id, 'send');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -853,7 +853,7 @@ async function _changeStatus(context, campaignId, permittedCurrentStates, newSta
|
||||||
throw new interoperableErrors.NotFoundError();
|
throw new interoperableErrors.NotFoundError();
|
||||||
}
|
}
|
||||||
|
|
||||||
await enforceSendPermissionTx(tx, context, campaign);
|
await enforceSendPermissionTx(tx, context, entity);
|
||||||
|
|
||||||
if (!permittedCurrentStates.includes(entity.status)) {
|
if (!permittedCurrentStates.includes(entity.status)) {
|
||||||
throw new interoperableErrors.InvalidStateError(invalidStateMessage);
|
throw new interoperableErrors.InvalidStateError(invalidStateMessage);
|
||||||
|
|
|
@ -10,8 +10,7 @@ const namespaceHelpers = require('../lib/namespace-helpers');
|
||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const mjml = require('mjml');
|
const mjml2html = require('mjml');
|
||||||
const mjml2html = mjml.default;
|
|
||||||
|
|
||||||
const lists = require('./lists');
|
const lists = require('./lists');
|
||||||
const dependencyHelpers = require('../lib/dependency-helpers');
|
const dependencyHelpers = require('../lib/dependency-helpers');
|
||||||
|
|
Loading…
Reference in a new issue