Skip to content

Commit

Permalink
Merge branch 'develop' into refactor/keydown
Browse files Browse the repository at this point in the history
  • Loading branch information
raclim authored Aug 22, 2023
2 parents 5abc3c9 + 4bae3e1 commit 3353e89
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 2,850 deletions.
11 changes: 7 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from 'react';
import { Provider } from 'react-redux';
import { MemoryRouter } from 'react-router';

import ThemeProvider from '../client/modules/App/components/ThemeProvider';
import configureStore from '../client/store';
import '../client/i18n-test';
import '../client/styles/build/css/main.css'
import '../client/styles/storybook.css'

const initialState = window.__INITIAL_STATE__;

Expand All @@ -13,9 +14,11 @@ const store = configureStore(initialState);
export const decorators = [
(Story) => (
<Provider store={store}>
<ThemeProvider>
<Story />
</ThemeProvider>
<MemoryRouter>
<ThemeProvider>
<Story />
</ThemeProvider>
</MemoryRouter>
</Provider>
),
]
Expand Down
1 change: 1 addition & 0 deletions client/styles/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
storybook.css
2,835 changes: 0 additions & 2,835 deletions client/styles/build/css/main.css

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p5.js-web-editor",
"version": "2.7.1",
"version": "2.7.3",
"description": "The web editor for p5.js.",
"scripts": {
"clean": "rimraf dist",
Expand All @@ -23,7 +23,8 @@
"update-syntax-highlighting": "node ./server/scripts/update-syntax-highlighting.js",
"update-p5-hinter": "node ./server/scripts/update-p5-hinter.js",
"heroku-postbuild": "touch .env; npm run build",
"storybook": "storybook dev -p 6006",
"storybook:build:css": "node-sass client/styles/main.scss client/styles/storybook.css",
"storybook": "npm run storybook:build:css && storybook dev -p 6006",
"build-storybook": "storybook build"
},
"husky": {
Expand Down
3 changes: 2 additions & 1 deletion server/utils/renderMjml.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { mjml2html } from 'mjml';
import mjml2html from 'mjml';

export default (template) => {
try {
const output = mjml2html(template);
return output.html;
} catch (e) {
console.error(e);
// fall through to null
}

Expand Down
4 changes: 1 addition & 3 deletions server/views/consolidationMailLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ export default ({
</mj-raw>
</mj-head>
<mj-body>
<mj-container>
<mj-section>
<mj-column>
<mj-image width="192" src="${domain}/images/p5js-square-logo.png" alt="p5.js" />
<mj-image width="192px" src="${domain}/images/p5js-square-logo.png" alt="p5.js" />
<mj-divider border-color="#ed225d"></mj-divider>
</mj-column>
</mj-section>
Expand Down Expand Up @@ -71,7 +70,6 @@ export default ({
</mj-text>
</mj-column>
</mj-section>
</mj-container>
</mj-body>
</mjml>
`;
4 changes: 1 addition & 3 deletions server/views/mailLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ export default ({
</mj-raw>
</mj-head>
<mj-body>
<mj-container>
<mj-section>
<mj-column>
<mj-image width="192" src="${domain}/images/p5js-square-logo.png" alt="p5.js" />
<mj-image width="192px" src="${domain}/images/p5js-square-logo.png" alt="p5.js" />
<mj-divider border-color="#ed225d"></mj-divider>
</mj-column>
</mj-section>
Expand Down Expand Up @@ -59,7 +58,6 @@ export default ({
</mj-text>
</mj-column>
</mj-section>
</mj-container>
</mj-body>
</mjml>
`;

0 comments on commit 3353e89

Please sign in to comment.