Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-06-13 19:06:35 +0300
committerPhil Hughes <me@iamphill.com>2018-08-07 16:45:55 +0300
commit7b4b9e1cc453c2620502daceb94d3e2248b58dcb (patch)
tree96f79cdace962466a0a27d31c91dbdbc82d4bd88 /config/dependency_decisions.yml
parentf3b36ac1171f6d170d008c52a0a324a438f3e886 (diff)
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
Diffstat (limited to 'config/dependency_decisions.yml')
-rw-r--r--config/dependency_decisions.yml24
1 files changed, 24 insertions, 0 deletions
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