-
-
Notifications
You must be signed in to change notification settings - Fork 845
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
Showing
21 changed files
with
4,515 additions
and
3,261 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,14 @@ | ||
const { src, dest, task } = require("gulp"); | ||
const clean = require('gulp-clean'); | ||
const inlinesource = require('gulp-inline-source'); | ||
|
||
task('clean', () => { | ||
return src('build', {read: false, allowEmpty: true}) | ||
.pipe(clean()); | ||
}); | ||
|
||
task('default', () => { | ||
return src('build/index.html') | ||
.pipe(inlinesource()) | ||
.pipe(dest('../src/')); | ||
}); |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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,45 @@ | ||
import { h, Component } from 'preact'; | ||
|
||
import { ITerminalOptions, ITheme } from 'xterm'; | ||
import Terminal from './terminal'; | ||
|
||
if ((module as any).hot) { | ||
require('preact/debug'); | ||
} | ||
|
||
const protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://'; | ||
const wsPath = window.location.pathname.endsWith('/') ? 'ws' : '/ws'; | ||
const url = [protocol, window.location.host, window.location.pathname, wsPath, window.location.search].join(''); | ||
const termOptions = { | ||
fontSize: 13, | ||
fontFamily: '"Menlo for Powerline", Menlo, Consolas, "Liberation Mono", Courier, monospace', | ||
theme: { | ||
foreground: '#d2d2d2', | ||
background: '#2b2b2b', | ||
cursor: '#adadad', | ||
black: '#000000', | ||
red: '#d81e00', | ||
green: '#5ea702', | ||
yellow: '#cfae00', | ||
blue: '#427ab3', | ||
magenta: '#89658e', | ||
cyan: '#00a7aa', | ||
white: '#dbded8', | ||
brightBlack: '#686a66', | ||
brightRed: '#f54235', | ||
brightGreen: '#99e343', | ||
brightYellow: '#fdeb61', | ||
brightBlue: '#84b0d8', | ||
brightMagenta: '#bc94b7', | ||
brightCyan: '#37e6e8', | ||
brightWhite: '#f1f1f0' | ||
} as ITheme | ||
} as ITerminalOptions; | ||
|
||
export default class App extends Component { | ||
public render() { | ||
return ( | ||
<Terminal id='terminal-container' url={url} options={termOptions} /> | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.