This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9a46bf6
Showing
26 changed files
with
8,101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["next/babel", "@zeit/next-typescript/babel"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:8@sha256:7b65413af120ec5328077775022c78101f103258a1876ec2f83890bce416e896 | ||
ADD . /playground | ||
WORKDIR /playground | ||
RUN npm install && npm run build | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["/playground/node_modules/.bin/next", "start", "--host", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# @nteract/play | ||
|
||
Play is a simple REPL-like interface for executing code online. It allows users to write code snippets and execute their output. Play is powered by [Binder](https://mybinder.org/). | ||
|
||
## Installation | ||
|
||
To set up this project for development, start by cloning this repository. | ||
|
||
``` | ||
$ git clone https://github.com/nteract/play.git | ||
``` | ||
|
||
Install the dependencies for this project. | ||
|
||
``` | ||
$ yarn | ||
``` | ||
|
||
Then run the project in development mode. | ||
|
||
``` | ||
$ yarn dev | ||
``` | ||
|
||
## Support | ||
|
||
If you experience an issue while using this package or have a feature request, please file an issue on the [issue board](https://github.com/nteract/play/issues/new/choose). | ||
|
||
## License | ||
|
||
[BSD-3-Clause](https://choosealicense.com/licenses/bsd-3-clause/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
file structure: | ||
|
||
/play | ||
/pages | ||
index.js | ||
/components | ||
index.js | ||
... | ||
/redux | ||
actionTypes.js | ||
actions.js | ||
reducer.js | ||
epics.js | ||
index.js | ||
|
||
|
||
state: | ||
|
||
{ | ||
ui: { | ||
repo: <string>, | ||
gitref: <string>, | ||
source: <string>, | ||
showPanel: <boolean>, | ||
currentServerId: <string>, | ||
currentKernelName: <string>, | ||
platform: <string> | ||
}, | ||
entities: { | ||
serversById: { | ||
<ID>: { | ||
server: { | ||
config: { | ||
endpoint: <string>, | ||
token: <string>, | ||
uri: <string>, | ||
crossDomain: <boolean> | ||
}, | ||
messages: <array>, | ||
kernelSpecs: { | ||
kernelSpecByKernelName: { | ||
<NAME>: { | ||
name: <NAME>, | ||
resources: <object>, | ||
spec: <object> | ||
} | ||
}, | ||
error: <object>, | ||
default: <string>, | ||
loading: <boolean> | ||
} | ||
activeKernelsByName: { | ||
<NAME>: { | ||
kernel: { | ||
name: <NAME>, | ||
id: <string>, | ||
lastActivity: <string>, | ||
channel: <rxjs$Subject>, | ||
outputs: <array>, | ||
status: <string>, | ||
messages: <array> | ||
}, | ||
loading: <boolean>, | ||
error: <object> | ||
} | ||
} | ||
}, | ||
loading: <boolean>, | ||
error: <object> | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
const PREFIX = "PLAY"; | ||
const FULFILLED = "FULFILLED"; | ||
const FAILED = "FAILED"; | ||
|
||
// UI-Related Action Types. | ||
export const SET_CURRENT_KERNEL_NAME = `${PREFIX}/SET_CURRENT_KERNEL_NAME`; | ||
export const SET_CURRENT_SERVER_ID = `${PREFIX}/SET_CURRENT_SERVER_ID`; | ||
export const SET_PLATFORM = `${PREFIX}/SET_PLATFORM`; | ||
export const SET_SHOW_PANEL = `${PREFIX}/SET_SHOW_PANEL`; | ||
export const SET_SOURCE = `${PREFIX}/SET_SOURCE`; | ||
export const SUBMIT_BINDER_FORM = `${PREFIX}/SUBMIT_BINDER_FORM`; | ||
export const SET_CODE_MIRROR_MODE = `${PREFIX}/SET_CODE_MIRROR_MODE`; | ||
|
||
// Server-Related Action Types | ||
export const ACTIVATE_SERVER = `${PREFIX}/ACTIVATE_SERVER`; | ||
export const ACTIVATE_SERVER_FULFILLED = `${PREFIX}/ACTIVATE_SERVER_${FULFILLED}`; | ||
export const ACTIVATE_SERVER_FAILED = `${PREFIX}/ACTIVATE_SERVER_${FAILED}`; | ||
|
||
export const KILL_SERVER = `${PREFIX}/KILL_SERVER`; | ||
export const KILL_SERVER_FULFILLED = `${PREFIX}/KILL_SERVER_${FULFILLED}`; | ||
export const KILL_SERVER_FAILED = `${PREFIX}/KILL_SERVER_${FAILED}`; | ||
|
||
export const FETCH_KERNEL_SPECS = `${PREFIX}/FETCH_KERNEL_SPECS`; | ||
export const FETCH_KERNEL_SPECS_FULFILLED = `${PREFIX}/FETCH_KERNEL_SPECS_${FULFILLED}`; | ||
export const FETCH_KERNEL_SPECS_FAILED = `${PREFIX}/FETCH_KERNEL_SPECS_${FAILED}`; | ||
|
||
export const ADD_SERVER_MESSAGE = `${PREFIX}/ADD_SERVER_MESSAGE`; | ||
|
||
// Kernel-Related Action Types | ||
export const ACTIVATE_KERNEL = `${PREFIX}/ACTIVATE_KERNEL`; | ||
export const ACTIVATE_KERNEL_FULFILLED = `${PREFIX}/ACTIVATE_KERNEL_${FULFILLED}`; | ||
export const ACTIVATE_KERNEL_FAILED = `${PREFIX}/ACTIVATE_KERNEL_${FAILED}`; | ||
|
||
export const INTERRUPT_KERNEL = `${PREFIX}/INTERRUPT_KERNEL`; | ||
export const INTERRUPT_KERNEL_FULFILLED = `${PREFIX}/INTERRUPT_KERNEL_${FULFILLED}`; | ||
export const INTERRUPT_KERNEL_FAILED = `${PREFIX}/INTERRUPT_KERNEL_${FAILED}`; | ||
|
||
export const KILL_KERNEL = `${PREFIX}/KILL_KERNEL`; | ||
export const KILL_KERNEL_FULFILLED = `${PREFIX}/KILL_KERNEL_${FULFILLED}`; | ||
export const KILL_KERNEL_FAILED = `${PREFIX}/KILL_KERNEL_${FAILED}`; | ||
|
||
export const ADD_KERNEL_MESSAGE = `${PREFIX}/ADD_KERNEL_MESSAGE`; | ||
export const ADD_KERNEL_OUTPUT = `${PREFIX}/ADD_KERNEL_OUTPUT`; | ||
export const CLEAR_KERNEL_OUTPUTS = `${PREFIX}/CLEAR_KERNEL_OUTPUTS`; | ||
export const RESTART_KERNEL = `${PREFIX}/RESTART_KERNEL`; | ||
export const RUN_SOURCE = `${PREFIX}/RUN_SOURCE`; | ||
export const SET_ACTIVE_KERNEL = `${PREFIX}/SET_ACTIVE_KERNEL`; | ||
export const SET_ACTIVE_KERNEL_LANGUAGE_INFO = `${PREFIX}/SET_ACTIVE_KERNEL_LANGUAGE_INFO`; | ||
export const SET_KERNEL_STATUS = `${PREFIX}/SET_KERNEL_STATUS`; | ||
|
||
export const INITIALIZE_FROM_QUERY = `${PREFIX}/INITIALIZE_FROM_QUERY`; |
Oops, something went wrong.