Skip to content

Commit 3353e89

Browse files
authored
Merge branch 'develop' into refactor/keydown
2 parents 5abc3c9 + 4bae3e1 commit 3353e89

File tree

8 files changed

+17
-2850
lines changed

8 files changed

+17
-2850
lines changed

.storybook/preview.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import React from 'react';
22
import { Provider } from 'react-redux';
3+
import { MemoryRouter } from 'react-router';
34

45
import ThemeProvider from '../client/modules/App/components/ThemeProvider';
56
import configureStore from '../client/store';
67
import '../client/i18n-test';
7-
import '../client/styles/build/css/main.css'
8+
import '../client/styles/storybook.css'
89

910
const initialState = window.__INITIAL_STATE__;
1011

@@ -13,9 +14,11 @@ const store = configureStore(initialState);
1314
export const decorators = [
1415
(Story) => (
1516
<Provider store={store}>
16-
<ThemeProvider>
17-
<Story />
18-
</ThemeProvider>
17+
<MemoryRouter>
18+
<ThemeProvider>
19+
<Story />
20+
</ThemeProvider>
21+
</MemoryRouter>
1922
</Provider>
2023
),
2124
]

client/styles/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
storybook.css

client/styles/build/css/main.css

Lines changed: 0 additions & 2835 deletions
This file was deleted.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p5.js-web-editor",
3-
"version": "2.7.1",
3+
"version": "2.7.3",
44
"description": "The web editor for p5.js.",
55
"scripts": {
66
"clean": "rimraf dist",
@@ -23,7 +23,8 @@
2323
"update-syntax-highlighting": "node ./server/scripts/update-syntax-highlighting.js",
2424
"update-p5-hinter": "node ./server/scripts/update-p5-hinter.js",
2525
"heroku-postbuild": "touch .env; npm run build",
26-
"storybook": "storybook dev -p 6006",
26+
"storybook:build:css": "node-sass client/styles/main.scss client/styles/storybook.css",
27+
"storybook": "npm run storybook:build:css && storybook dev -p 6006",
2728
"build-storybook": "storybook build"
2829
},
2930
"husky": {

server/utils/renderMjml.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { mjml2html } from 'mjml';
1+
import mjml2html from 'mjml';
22

33
export default (template) => {
44
try {
55
const output = mjml2html(template);
66
return output.html;
77
} catch (e) {
8+
console.error(e);
89
// fall through to null
910
}
1011

server/views/consolidationMailLayout.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ export default ({
2121
</mj-raw>
2222
</mj-head>
2323
<mj-body>
24-
<mj-container>
2524
<mj-section>
2625
<mj-column>
27-
<mj-image width="192" src="${domain}/images/p5js-square-logo.png" alt="p5.js" />
26+
<mj-image width="192px" src="${domain}/images/p5js-square-logo.png" alt="p5.js" />
2827
<mj-divider border-color="#ed225d"></mj-divider>
2928
</mj-column>
3029
</mj-section>
@@ -71,7 +70,6 @@ export default ({
7170
</mj-text>
7271
</mj-column>
7372
</mj-section>
74-
</mj-container>
7573
</mj-body>
7674
</mjml>
7775
`;

server/views/mailLayout.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ export default ({
1818
</mj-raw>
1919
</mj-head>
2020
<mj-body>
21-
<mj-container>
2221
<mj-section>
2322
<mj-column>
24-
<mj-image width="192" src="${domain}/images/p5js-square-logo.png" alt="p5.js" />
23+
<mj-image width="192px" src="${domain}/images/p5js-square-logo.png" alt="p5.js" />
2524
<mj-divider border-color="#ed225d"></mj-divider>
2625
</mj-column>
2726
</mj-section>
@@ -59,7 +58,6 @@ export default ({
5958
</mj-text>
6059
</mj-column>
6160
</mj-section>
62-
</mj-container>
6361
</mj-body>
6462
</mjml>
6563
`;

0 commit comments

Comments
 (0)