gitlab-org--gitlab-foss/app/views/admin
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
..
abuse_reports
appearances Remove FaviconUploader favicon_main version 2018-06-15 12:28:23 +02:00
application_settings Web IDE & CodeSandbox 2018-08-07 14:45:55 +01:00
applications
background_jobs
broadcast_messages
dashboard Disable SAML if OmniAuth is disabled 2018-07-20 18:54:46 +08:00
deploy_keys
gitaly_servers Fix translation placeholder for Gitaly address 2018-06-10 23:12:45 -07:00
groups i18n: externalize strings from 'app/views/admin/groups' 2018-07-13 01:36:09 +10:00
health_check
hook_logs
hooks Replace label-light with label-bold. Because it's bold, not light 2018-07-19 17:11:31 -05:00
identities Fix broken breadcrumb in admin/user 2018-07-17 19:50:01 +02:00
impersonation_tokens Fix broken breadcrumb in admin/user 2018-07-17 19:50:01 +02:00
jobs
keys
labels Resolve "System level labels UI broken" 2018-08-07 10:56:17 +00:00
logs
projects Send resize parameters for avatars 2018-08-07 06:04:33 +00:00
requests_profiles
runners Add container to show runner page 2018-07-20 15:09:44 -05:00
services
spam_logs
system_info
users Remove background color from card-body style 2018-07-18 12:38:25 +03:00