gitlab-org--gitlab-foss/db
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
..
fixtures We want letters and numbers 2018-07-12 09:24:43 +08:00
migrate Web IDE & CodeSandbox 2018-08-07 14:45:55 +01:00
optional_migrations Enable rubocop for db/**/* and ee/db/**/* 2018-07-25 17:47:12 +08:00
post_migrate Merge branch 'ce-6064-geo-sql-query-for-counting-projects-with-wikis-is-very-slow' into 'master' 2018-07-25 18:09:05 +00:00
schema.rb Web IDE & CodeSandbox 2018-08-07 14:45:55 +01:00
seeds.rb