From 2de3720358818fbc027d96499b000006830cdd85 Mon Sep 17 00:00:00 2001 From: shinytang6 <1074461480@qq.com> Date: Sat, 4 Aug 2018 17:17:11 +0800 Subject: [PATCH 01/45] init --- client/modules/IDE/components/Console.jsx | 60 +++++++++----- .../modules/IDE/components/ConsoleInput.jsx | 78 +++++++++++++++++++ .../modules/IDE/components/PreviewFrame.jsx | 31 +++++++- client/styles/abstracts/_variables.scss | 12 ++- client/styles/components/_console-input.scss | 39 ++++++++++ client/styles/components/_console.scss | 52 +++++++++++-- client/styles/main.scss | 1 + client/utils/createScopedEvaluationChain.js | 17 ++++ client/utils/evaluateConsole.js | 19 +++++ 9 files changed, 276 insertions(+), 33 deletions(-) create mode 100644 client/modules/IDE/components/ConsoleInput.jsx create mode 100644 client/styles/components/_console-input.scss create mode 100644 client/utils/createScopedEvaluationChain.js create mode 100644 client/utils/evaluateConsole.js diff --git a/client/modules/IDE/components/Console.jsx b/client/modules/IDE/components/Console.jsx index 997878ea82..6e86b40e04 100644 --- a/client/modules/IDE/components/Console.jsx +++ b/client/modules/IDE/components/Console.jsx @@ -12,9 +12,12 @@ import debugLightUrl from '../../../images/console-debug-light.svg'; import debugDarkUrl from '../../../images/console-debug-dark.svg'; import infoLightUrl from '../../../images/console-info-light.svg'; import infoDarkUrl from '../../../images/console-info-dark.svg'; +import ConsoleInput from './ConsoleInput'; const upArrowUrl = require('../../../images/up-arrow.svg'); const downArrowUrl = require('../../../images/down-arrow.svg'); +const leftArrowUrl = require('../../../images/left-arrow.svg'); +const rightArrowUrl = require('../../../images/right-arrow.svg'); class Console extends React.Component { componentDidUpdate(prevProps) { @@ -100,30 +103,45 @@ class Console extends React.Component { -