Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-do-expressions",
"@babel/plugin-proposal-function-bind",
["@babel/plugin-proposal-private-methods", { "loose": true }]
["@babel/plugin-proposal-private-methods", { "loose": true }],
["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
]
}
7 changes: 0 additions & 7 deletions client/modules/IDE/components/Console.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ import { useDidUpdate } from '../hooks/custom-hooks';
import useHandleMessageEvent from '../hooks/useHandleMessageEvent';
import { listen } from '../../../utils/dispatcher';

const CONSOLE_FEED_WITHOUT_ICONS = {
LOG_WARN_ICON: 'none',
LOG_ERROR_ICON: 'none',
LOG_DEBUG_ICON: 'none',
LOG_INFO_ICON: 'none'
};

const CONSOLE_FEED_LIGHT_STYLES = {
BASE_BACKGROUND_COLOR: '',
LOG_ERROR_BACKGROUND: 'hsl(0, 100%, 97%)',
Expand Down
4 changes: 2 additions & 2 deletions client/modules/IDE/components/ShareModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import PropTypes from 'prop-types';
import React from 'react';
import { withTranslation } from 'react-i18next';
import CopyableInput from './CopyableInput';
import getConfig from '../../../utils/getConfig';
// import getConfig from '../../../utils/getConfig';

class ShareModal extends React.PureComponent {
render() {
const { projectId, ownerUsername, projectName } = this.props;
const hostname = window.location.origin;
const previewUrl = getConfig('PREVIEW_URL');
// const previewUrl = getConfig('PREVIEW_URL');
return (
<div className="share-modal">
<h3 className="share-modal__project-name">{projectName}</h3>
Expand Down
6 changes: 4 additions & 2 deletions client/modules/Preview/filesReducer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useMemo } from 'react';
import objectID from 'bson-objectid';
import blobUtil from 'blob-util';
import mime from 'mime-types';
import mime from 'mime';
import { PLAINTEXT_FILE_REGEX } from '../../../server/utils/fileUtils';

const defaultSketch = `function setup() {
Expand Down Expand Up @@ -112,7 +112,9 @@ export function createBlobUrl(file) {
blobUtil.revokeObjectURL(file.blobUrl);
}

const mimeType = mime.lookup(file.name);
const mimeType = mime.getType(file.name) || 'text/plain';
console.log(mimeType);

const fileBlob = blobUtil.createBlob([file.content], { type: mimeType });
const blobURL = blobUtil.createObjectURL(fileBlob);
return blobURL;
Expand Down
12 changes: 6 additions & 6 deletions client/styles/abstracts/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ $themes: (
error-color: $p5js-pink,
table-row-stripe-color: $medium-light,
table-row-stripe-color-alternate: $medium-light,
codefold-icon-open: url(../images/triangle-arrow-down.svg?byUrl),
codefold-icon-closed: url(../images/triangle-arrow-right.svg?byUrl),
codefold-icon-open: url("../images/triangle-arrow-down.svg?byUrl"),
codefold-icon-closed: url("../images/triangle-arrow-right.svg?byUrl"),

primary-button-color: $lightest,
primary-button-background-color: $p5js-pink,
Expand Down Expand Up @@ -178,8 +178,8 @@ $themes: (
error-color: $p5js-pink,
table-row-stripe-color: $dark,
table-row-stripe-color-alternate: $darker,
codefold-icon-open: url(../images/triangle-arrow-down-white.svg?byUrl),
codefold-icon-closed: url(../images/triangle-arrow-right-white.svg?byUrl),
codefold-icon-open: url("../images/triangle-arrow-down-white.svg?byUrl"),
codefold-icon-closed: url("../images/triangle-arrow-right-white.svg?byUrl"),

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

primary-button-color: $lightest,
primary-button-background-color: $p5js-pink,
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-development.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.4'
services:
mongo:
image: mongo:3.6
image: mongo:4.4
volumes:
- dbdata:/data/db
app:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.4'
services:
mongo:
image: mongo:3.6
image: mongo:4.4
volumes:
- dbdata:/data/db
app:
Expand Down
Loading