|
@ -1,6 +1,8 @@ |
|
|
import { Terminal } from 'xterm'; |
|
|
import { Terminal } from 'xterm'; |
|
|
import { isNull } from 'lodash'; |
|
|
import { isNull } from 'lodash'; |
|
|
|
|
|
|
|
|
|
|
|
import { library, dom } from "@fortawesome/fontawesome-svg-core"; |
|
|
|
|
|
import { faCogs } from "@fortawesome/free-solid-svg-icons/faCogs"; |
|
|
import { socket } from './socket'; |
|
|
import { socket } from './socket'; |
|
|
import { overlay, terminal } from './elements'; |
|
|
import { overlay, terminal } from './elements'; |
|
|
import { fileBuffer, onCompleteFile, FILE_BEGIN, FILE_END } from './download'; |
|
|
import { fileBuffer, onCompleteFile, FILE_BEGIN, FILE_END } from './download'; |
|
@ -13,6 +15,10 @@ import { copySelected, copyShortcut } from './copyToClipboard'; |
|
|
import './wetty.scss'; |
|
|
import './wetty.scss'; |
|
|
import './favicon.ico'; |
|
|
import './favicon.ico'; |
|
|
|
|
|
|
|
|
|
|
|
// Setup for fontawesome
|
|
|
|
|
|
library.add(faCogs); |
|
|
|
|
|
dom.watch(); |
|
|
|
|
|
|
|
|
socket.on('connect', () => { |
|
|
socket.on('connect', () => { |
|
|
const term = new Terminal(); |
|
|
const term = new Terminal(); |
|
|
if (isNull(terminal)) return; |
|
|
if (isNull(terminal)) return; |
|
|