Skip to content

Commit cb331c7

Browse files
authored
Merge pull request #2020 from processing/chore/webpack-v5
Chore/webpack v5
2 parents 76dc522 + ac21e1a commit cb331c7

File tree

12 files changed

+40173
-40324
lines changed

12 files changed

+40173
-40324
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"@babel/plugin-proposal-nullish-coalescing-operator",
8888
"@babel/plugin-proposal-do-expressions",
8989
"@babel/plugin-proposal-function-bind",
90-
["@babel/plugin-proposal-private-methods", { "loose": true }]
90+
["@babel/plugin-proposal-private-methods", { "loose": true }],
91+
["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
9192
]
9293
}

client/modules/IDE/components/Console.jsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ import { useDidUpdate } from '../hooks/custom-hooks';
3737
import useHandleMessageEvent from '../hooks/useHandleMessageEvent';
3838
import { listen } from '../../../utils/dispatcher';
3939

40-
const CONSOLE_FEED_WITHOUT_ICONS = {
41-
LOG_WARN_ICON: 'none',
42-
LOG_ERROR_ICON: 'none',
43-
LOG_DEBUG_ICON: 'none',
44-
LOG_INFO_ICON: 'none'
45-
};
46-
4740
const CONSOLE_FEED_LIGHT_STYLES = {
4841
BASE_BACKGROUND_COLOR: '',
4942
LOG_ERROR_BACKGROUND: 'hsl(0, 100%, 97%)',

client/modules/IDE/components/ShareModal.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import PropTypes from 'prop-types';
22
import React from 'react';
33
import { withTranslation } from 'react-i18next';
44
import CopyableInput from './CopyableInput';
5-
import getConfig from '../../../utils/getConfig';
5+
// import getConfig from '../../../utils/getConfig';
66

77
class ShareModal extends React.PureComponent {
88
render() {
99
const { projectId, ownerUsername, projectName } = this.props;
1010
const hostname = window.location.origin;
11-
const previewUrl = getConfig('PREVIEW_URL');
11+
// const previewUrl = getConfig('PREVIEW_URL');
1212
return (
1313
<div className="share-modal">
1414
<h3 className="share-modal__project-name">{projectName}</h3>

client/modules/Preview/filesReducer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useMemo } from 'react';
22
import objectID from 'bson-objectid';
33
import blobUtil from 'blob-util';
4-
import mime from 'mime-types';
4+
import mime from 'mime';
55
import { PLAINTEXT_FILE_REGEX } from '../../../server/utils/fileUtils';
66

77
const defaultSketch = `function setup() {
@@ -112,7 +112,9 @@ export function createBlobUrl(file) {
112112
blobUtil.revokeObjectURL(file.blobUrl);
113113
}
114114

115-
const mimeType = mime.lookup(file.name);
115+
const mimeType = mime.getType(file.name) || 'text/plain';
116+
console.log(mimeType);
117+
116118
const fileBlob = blobUtil.createBlob([file.content], { type: mimeType });
117119
const blobURL = blobUtil.createObjectURL(fileBlob);
118120
return blobURL;

client/styles/abstracts/_variables.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ $themes: (
9696
error-color: $p5js-pink,
9797
table-row-stripe-color: $medium-light,
9898
table-row-stripe-color-alternate: $medium-light,
99-
codefold-icon-open: url(../images/triangle-arrow-down.svg?byUrl),
100-
codefold-icon-closed: url(../images/triangle-arrow-right.svg?byUrl),
99+
codefold-icon-open: url("../images/triangle-arrow-down.svg?byUrl"),
100+
codefold-icon-closed: url("../images/triangle-arrow-right.svg?byUrl"),
101101

102102
primary-button-color: $lightest,
103103
primary-button-background-color: $p5js-pink,
@@ -178,8 +178,8 @@ $themes: (
178178
error-color: $p5js-pink,
179179
table-row-stripe-color: $dark,
180180
table-row-stripe-color-alternate: $darker,
181-
codefold-icon-open: url(../images/triangle-arrow-down-white.svg?byUrl),
182-
codefold-icon-closed: url(../images/triangle-arrow-right-white.svg?byUrl),
181+
codefold-icon-open: url("../images/triangle-arrow-down-white.svg?byUrl"),
182+
codefold-icon-closed: url("../images/triangle-arrow-right-white.svg?byUrl"),
183183

184184
primary-button-color: $lightest,
185185
primary-button-background-color: $p5js-pink,
@@ -258,8 +258,8 @@ $themes: (
258258
error-color: $p5-contrast-pink,
259259
table-row-stripe-color: $dark,
260260
table-row-stripe-color-alternate: $darker,
261-
codefold-icon-open: url(../images/triangle-arrow-down-white.svg?byUrl),
262-
codefold-icon-closed: url(../images/triangle-arrow-right-white.svg?byUrl),
261+
codefold-icon-open: url("../images/triangle-arrow-down-white.svg?byUrl"),
262+
codefold-icon-closed: url("../images/triangle-arrow-right-white.svg?byUrl"),
263263

264264
primary-button-color: $lightest,
265265
primary-button-background-color: $p5js-pink,

docker-compose-development.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.4'
22
services:
33
mongo:
4-
image: mongo:3.6
4+
image: mongo:4.4
55
volumes:
66
- dbdata:/data/db
77
app:

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.4'
22
services:
33
mongo:
4-
image: mongo:3.6
4+
image: mongo:4.4
55
volumes:
66
- dbdata:/data/db
77
app:

0 commit comments

Comments
 (0)