Commit graph

16 commits

Author SHA1 Message Date
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
Phil Hughes
c1b29823cb
added specs 2018-06-27 09:49:23 +01:00
Phil Hughes
9dce759f7e
fixed getters spec 2018-06-27 09:49:22 +01:00
Phil Hughes
433ad2d0f5
karma fixes 2018-06-27 09:49:22 +01:00
André Luís
b7f3d7470b Resolve "Clean up bottom status bar Web IDE" 2018-05-07 17:42:56 +00:00
Phil Hughes
d9f3af500c
Merge branch 'master' into 44846-improve-web-ide-left-panel-and-modes 2018-05-04 13:36:50 +01:00
Phil Hughes
bec24d1581
use getters to correctly get the counts for both unstaged & staged changes 2018-05-01 09:29:08 +01:00
Phil Hughes
7adbed7464
Merge branch 'master' into ide-workbench-bar 2018-04-25 10:38:06 +01:00
Phil Hughes
d14a06da4e
spec updates 2018-04-19 13:51:20 +01:00
Phil Hughes
79b498169e
Merge branch 'master' into ide-file-finder 2018-04-19 13:01:02 +01:00
Phil Hughes
4a22a97e78
added specs to stores allBlobs getter 2018-04-16 09:49:02 +01:00
Phil Hughes
49f198e6c1
Merge branch 'master' into ide-staged-changes 2018-04-03 11:10:01 +01:00
Tim Zallmann
38d56a8b7c Added Tests for all new functionality 2018-03-28 12:17:30 +02:00
Phil Hughes
51c64f3fc7
Added staged files state to IDE
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/4541
2018-03-22 10:33:19 +00:00
Phil Hughes
af22ddafe4
updated file references in specs 2018-03-20 14:16:38 +00:00
Phil Hughes
f527e6e185
Move IDE to CE
This also makes the IDE generally available
2018-03-20 14:12:48 +00:00