Commit graph

11 commits

Author SHA1 Message Date
Paul Slaughter
29dc365622 Resolve "Persistent banner creates problem for web ide" 2018-08-31 10:19:55 +00:00
Phil Hughes
7b4b9e1cc4
Web IDE & CodeSandbox
This enables JavaScripts projects to have live previews straight in the
browser without requiring any local configuration. This uses the
CodeSandbox package `sandpack` to compile it all inside of an iframe.

This feature is off by default and can be toggled on in the admin
settings. Only projects with a `package.json` and a `main` key are
supported.

Updates happen in real-time with hot-reloading. We just watch for
changes to files and then send them to `sandpack` to allow it to reload
the iframe. The iframe includes a very simple navigation bar, the text
bar is `readonly` to stop users navigating away from the preview and
the back and forward buttons just pop/splice the navigation stack
which is tracked by a listener on `sandpack`

There is a button inside the iframe which allows the user to open the
projects inside of CodeSandbox. This button is only visible on
**public** projects. On private or internal projects this button
get hidden to protect private code being leaked into an external
public URL.

Closes #47268
2018-08-07 14:45:55 +01:00
Tim Zallmann
4d3c6f4603 Moved repo.css to its own CSS bundle to reduce the size of the main bundle 2018-07-26 08:15:13 +00:00
Phil Hughes
dd17a48406
added correct help path to empty state 2018-05-29 11:06:00 +01:00
Phil Hughes
782c31a494
added empty state & YAML error state 2018-05-29 10:35:13 +01:00
Mike Greiling
eb548e6eb1
adjust IDE page loading config to ensure web workers are not loaded cross-origin 2018-05-03 11:56:34 -05:00
Phil Hughes
f527e6e185
Move IDE to CE
This also makes the IDE generally available
2018-03-20 14:12:48 +00:00
Phil Hughes
4927cb75e6
Remove IDE from CE 2018-03-02 08:42:02 +00:00
Tim Zallmann
e79db43d2c WebIDE: Fix Commit bugs 2018-01-19 09:38:34 +00:00
Tim Zallmann
91477f6dae Resolve "Helpful and instructing Empty state for multi file editor" 2018-01-05 17:35:34 +00:00
Tim Zallmann
213e91d439 Resolve "Decouple multi-file editor from file list" 2017-12-21 15:05:47 +00:00