Skip to content

Commit 4f6bc2f

Browse files
authored
Merge branch 'master' into master
2 parents ac11405 + b0934bc commit 4f6bc2f

File tree

111 files changed

+2081
-1543
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+2081
-1543
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,15 @@
13851385
"contributions": [
13861386
"code"
13871387
]
1388+
},
1389+
{
1390+
"login": "hetpatel33",
1391+
"name": "Het Patel",
1392+
"avatar_url": "https://avatars0.githubusercontent.com/u/13877514?v=4",
1393+
"profile": "http://hetpatel33.github.io",
1394+
"contributions": [
1395+
"code"
1396+
]
13881397
}
13891398
],
13901399
"contributorsPerLine": 7,

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ merge of your pull request!
1818

1919
<!-- if this is a feature change -->
2020

21-
## What steps did you take to test this? This is required before we can merge.
21+
## What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.
2222

2323
1. Step A
2424
2. Step B

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [CodeSandbox](https://codesandbox.io) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/codesandbox) [![All Contributors](https://img.shields.io/badge/all_contributors-146-orange.svg?style=flat-square)](#contributors-) [![CircleCI](https://circleci.com/gh/codesandbox/codesandbox-client.svg?style=svg)](https://circleci.com/gh/codesandbox/codesandbox-client) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=cVJuczlJWUtqWXhIbFN1ZjVQekF4NzNsd3phNEZRaGlWU0pHYVVkdGRFWT0tLXFtTVhaOWRySmN0ZG5QVDNDQ0g5Z0E9PQ==--79fe3eae4f149a400d396c9b12d3988f685785cf)](https://www.browserstack.com/automate/public-build/cVJuczlJWUtqWXhIbFN1ZjVQekF4NzNsd3phNEZRaGlWU0pHYVVkdGRFWT0tLXFtTVhaOWRySmN0ZG5QVDNDQ0g5Z0E9PQ==--79fe3eae4f149a400d396c9b12d3988f685785cf) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![first-timers-only Friendly](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](http://www.firsttimersonly.com/) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
1+
# [CodeSandbox](https://codesandbox.io) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/codesandbox) [![All Contributors](https://img.shields.io/badge/all_contributors-148-orange.svg?style=flat-square)](#contributors-) [![CircleCI](https://circleci.com/gh/codesandbox/codesandbox-client.svg?style=svg)](https://circleci.com/gh/codesandbox/codesandbox-client) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=cVJuczlJWUtqWXhIbFN1ZjVQekF4NzNsd3phNEZRaGlWU0pHYVVkdGRFWT0tLXFtTVhaOWRySmN0ZG5QVDNDQ0g5Z0E9PQ==--79fe3eae4f149a400d396c9b12d3988f685785cf)](https://www.browserstack.com/automate/public-build/cVJuczlJWUtqWXhIbFN1ZjVQekF4NzNsd3phNEZRaGlWU0pHYVVkdGRFWT0tLXFtTVhaOWRySmN0ZG5QVDNDQ0g5Z0E9PQ==--79fe3eae4f149a400d396c9b12d3988f685785cf) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![first-timers-only Friendly](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](http://www.firsttimersonly.com/) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
22

33
[![Backers on Open Collective](https://opencollective.com/codesandbox/backers/badge.svg)](#backers)
44
[![Sponsors on Open Collective](https://opencollective.com/codesandbox/sponsors/badge.svg)](#sponsors)
@@ -41,7 +41,8 @@ Thanks goes to these wonderful people
4141
([emoji key](https://github.com/all-contributors/all-contributors#emoji-key)):
4242

4343
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
44-
<!-- prettier-ignore -->
44+
<!-- prettier-ignore-start -->
45+
<!-- markdownlint-disable -->
4546
<table>
4647
<tr>
4748
<td align="center"><a href="http://ivesvh.com"><img src="https://avatars0.githubusercontent.com/u/587016?v=3" width="100px;" alt="Ives van Hoorne"/><br /><sub><b>Ives van Hoorne</b></sub></a><br /><a href="#question-CompuIves" title="Answering Questions">💬</a> <a href="#blog-CompuIves" title="Blogposts">📝</a> <a href="https://github.com/codesandbox/codesandbox-client/issues?q=author%3ACompuIves" title="Bug reports">🐛</a> <a href="https://github.com/codesandbox/codesandbox-client/commits?author=CompuIves" title="Code">💻</a> <a href="#design-CompuIves" title="Design">🎨</a> <a href="https://github.com/codesandbox/codesandbox-client/commits?author=CompuIves" title="Documentation">📖</a> <a href="#example-CompuIves" title="Examples">💡</a> <a href="#infra-CompuIves" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#review-CompuIves" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/codesandbox/codesandbox-client/commits?author=CompuIves" title="Tests">⚠️</a> <a href="#tool-CompuIves" title="Tools">🔧</a></td>
@@ -232,8 +233,13 @@ Thanks goes to these wonderful people
232233
<td align="center"><a href="https://github.com/Sakthivel"><img src="https://avatars3.githubusercontent.com/u/205201?v=4" width="100px;" alt="Sakthivel Sengodan Sapient"/><br /><sub><b>Sakthivel Sengodan Sapient</b></sub></a><br /><a href="https://github.com/codesandbox/codesandbox-client/commits?author=sakthivel" title="Code">💻</a></td>
233234
<td align="center"><a href="https://github.com/vanya829"><img src="https://avatars0.githubusercontent.com/u/1397979?v=4" width="100px;" alt="vanya829"/><br /><sub><b>vanya829</b></sub></a><br /><a href="https://github.com/codesandbox/codesandbox-client/commits?author=vanya829" title="Code">💻</a></td>
234235
</tr>
236+
<tr>
237+
<td align="center"><a href="http://hetpatel33.github.io"><img src="https://avatars0.githubusercontent.com/u/13877514?v=4" width="100px;" alt="Het Patel"/><br /><sub><b>Het Patel</b></sub></a><br /><a href="https://github.com/codesandbox/codesandbox-client/commits?author=hetpatel33" title="Code">💻</a></td>
238+
</tr>
235239
</table>
236240

241+
<!-- markdownlint-enable -->
242+
<!-- prettier-ignore-end -->
237243
<!-- ALL-CONTRIBUTORS-LIST:END -->
238244

239245
## Backers

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"start:test": "lerna run start:test --scope app --stream",
5757
"start:vscode": "cross-env VSCODE=1 yarn start:fast & cd standalone-packages/monaco-editor && yarn simpleserver & cd standalone-packages/vscode && yarn watch",
5858
"test": "lerna run test --ignore codesandbox-browserfs",
59+
"test:pr": "node testpr-script",
5960
"test:ci": "lerna run test --ignore codesandbox-browserfs -- --ci --testResultsProcessor=\"jest-junit\" ",
6061
"test:integrations": "lerna exec --scope app --stream -- yarn test:integrations",
6162
"test:jest-lite": "lerna exec --scope app --stream -- yarn run test jest-lite --watch --coverage",
@@ -86,7 +87,8 @@
8687
"lint-staged": "^9.2.5",
8788
"prettier": "1.17.0",
8889
"pretty-quick": "^1.10.0",
89-
"typescript": "3.6.3"
90+
"typescript": "3.6.3",
91+
"username": "^5.1.0"
9092
},
9193
"husky": {
9294
"hooks": {

packages/app/config/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ const staticAssets = [
3333
from: isDev
3434
? 'standalone-packages/codesandbox-browserfs/build'
3535
: 'standalone-packages/codesandbox-browserfs/dist',
36-
to: 'static/browserfs4',
36+
to: 'static/browserfs5',
3737
},
3838
// For caching purposes
3939
{
4040
from: isDev
4141
? 'standalone-packages/codesandbox-browserfs/build'
4242
: 'standalone-packages/codesandbox-browserfs/dist',
43-
to: 'static/browserfs3',
43+
to: 'static/browserfs4',
4444
},
4545
];
4646

-15.4 MB
Binary file not shown.

packages/app/src/app/components/Alert/Alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Container, Title, Text, Buttons } from './elements';
44

55
interface IAlertProps {
66
title: string;
7-
body: string;
7+
body: string | React.ReactNode;
88
confirmMessage?: string;
99
onCancel: (event: React.MouseEvent<HTMLButtonElement>) => void;
1010
onConfirm: (event: React.MouseEvent<HTMLButtonElement>) => void;

packages/app/src/app/components/CodeEditor/Monaco/workers/linter/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Linter from 'eslint/lib/linter';
33
import monkeypatch from './monkeypatch-babel-eslint';
44

55
self.importScripts(
6-
`${process.env.CODESANDBOX_HOST}/static/browserfs4/browserfs.min.js`
6+
`${process.env.CODESANDBOX_HOST}/static/browserfs5/browserfs.min.js`
77
);
88

99
/* eslint-disable global-require */

packages/app/src/app/components/ContextMenu/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface ItemType {
1515
action: () => boolean | void;
1616
}
1717

18-
type Item = ItemType | ItemType[];
18+
export type Item = ItemType | ItemType[];
1919

2020
type ChildrenProps =
2121
| {

packages/app/src/app/components/Preview/DevTools/Terminal/index.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1+
import './styles.css';
2+
3+
import { listen } from 'codesandbox-api';
14
import React from 'react';
5+
import PlusIcon from 'react-icons/lib/md/add';
26
import { withTheme } from 'styled-components';
3-
import { listen } from 'codesandbox-api';
4-
57
import uuid from 'uuid';
6-
import PlusIcon from 'react-icons/lib/md/add';
7-
8-
import './styles.css';
98

109
import { Shell } from './Shell';
1110
import { TerminalComponent } from './Shell/Term';
1211
import { ShellTabs } from './ShellTabs';
13-
1412
import { ShellT, TerminalWithFit } from './types';
1513
import { DevToolProps } from '..';
1614

@@ -34,6 +32,7 @@ class DevToolTerminal extends React.Component<
3432
};
3533

3634
term: TerminalWithFit;
35+
messageQueue: any[];
3736
listener: () => void;
3837
node?: HTMLElement;
3938
timeout?: number;
@@ -46,9 +45,17 @@ class DevToolTerminal extends React.Component<
4645

4746
setTerminal = (terminal: TerminalWithFit) => {
4847
this.term = terminal;
48+
49+
this.messageQueue.forEach(this.handleMessage);
50+
this.messageQueue.length = 0;
4951
};
5052

5153
handleMessage = (data: any) => {
54+
if (!this.term) {
55+
this.messageQueue.push(data);
56+
return;
57+
}
58+
5259
if (data.type === 'terminal:message') {
5360
this.term.write(data.data);
5461

0 commit comments

Comments
 (0)