From 7b4b9e1cc453c2620502daceb94d3e2248b58dcb Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Wed, 13 Jun 2018 17:06:35 +0100 Subject: 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 --- config/dependency_decisions.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'config/dependency_decisions.yml') diff --git a/config/dependency_decisions.yml b/config/dependency_decisions.yml index 73115449871..dce1fc1bc45 100644 --- a/config/dependency_decisions.yml +++ b/config/dependency_decisions.yml @@ -546,3 +546,27 @@ :why: Our own library :versions: [] :when: 2018-07-17 21:02:54.529227000 Z +- - :approve + - lz-string + - :who: Phil Hughes + :why: https://github.com/pieroxy/lz-string/blob/master/LICENSE.txt + :versions: [] + :when: 2018-08-03 08:22:44.973457000 Z +- - :approve + - smooshpack + - :who: Phil Hughes + :why: https://github.com/CompuIves/codesandbox-client/blob/master/packages/sandpack/LICENSE.md + :versions: [] + :when: 2018-08-03 08:24:29.578991000 Z +- - :approve + - codesandbox-import-util-types + - :who: Phil Hughes + :why: https://github.com/codesandbox-app/codesandbox-importers/blob/master/packages/types/LICENSE + :versions: [] + :when: 2018-08-03 12:22:47.574421000 Z +- - :approve + - codesandbox-import-utils + - :who: Phil Hughes + :why: https://github.com/codesandbox-app/codesandbox-importers/blob/master/packages/import-utils/LICENSE + :versions: [] + :when: 2018-08-03 12:23:24.083046000 Z -- cgit v1.2.3