Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update the base app
  • Loading branch information
jcgertig committed Jul 27, 2017
commit dd3c00c2093cc07285e90b4dc8a9d012d6c3041b
18 changes: 15 additions & 3 deletions starter/App.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react'; // eslint-disable-line
import { render } from 'react-dom';
import PseudoFileSystem from 'terminal-in-react-pseudo-file-system-plugin'; // eslint-disable-line
// import pseudoFileSystemPlugin from 'terminal-in-react-pseudo-file-system-plugin'; // eslint-disable-line
// import NodeEvalPlugin from 'terminal-in-react-node-eval-plugin'; // eslint-disable-line
// Bundle generated with npm run build:production ('../lib/js/index') or use '../src/js'
import Terminal from '../src/js';
import '../src/styles/index.scss'; // (../lib/css/index.css) or '../src/styles/index.scss'

// const FileSystemPlugin = pseudoFileSystemPlugin();

const App = () => (
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100vh' }}>
<Terminal
Expand All @@ -31,18 +34,27 @@ const App = () => (
}, 100 * i);
}
},
open: () => window.open('https://www.nitintulswani.surge.sh', '_blank'),
open: () => window.open('http://terminal-in-react.surge.sh', '_blank'),
}}
descriptions={{
color: 'option for color. For eg - color red',
'type-text': 'Types out input text',
open: 'Open a website',
open: 'Open a terminal website',
}}
shortcuts={{
'darwin,win,linux': {
'ctrl + a': 'echo whoo',
},
}}
// plugins={[
// FileSystemPlugin,
// {
// class: NodeEvalPlugin,
// config: {
// filesystem: FileSystemPlugin.displayName,
// },
// },
// ]}
/>
</div>
);
Expand Down