diff --git a/package.json b/package.json index c6c5a11..a50db87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wetty", - "version": "1.2.0", + "version": "1.2.1", "description": "WeTTY = Web + TTY. Terminal access in browser over http/https", "homepage": "https://github.com/butlerx/wetty", "repository": { @@ -54,6 +54,8 @@ }, "preferGlobal": true, "dependencies": { + "@fortawesome/fontawesome-svg-core": "^1.2.25", + "@fortawesome/free-solid-svg-icons": "^5.11.2", "compression": "^1.7.4", "express": "^4.17.1", "file-type": "^12.3.0", diff --git a/src/client/index.ts b/src/client/index.ts index cdef050..9b5f158 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -1,6 +1,8 @@ import { Terminal } from 'xterm'; 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 { overlay, terminal } from './elements'; import { fileBuffer, onCompleteFile, FILE_BEGIN, FILE_END } from './download'; @@ -13,6 +15,10 @@ import { copySelected, copyShortcut } from './copyToClipboard'; import './wetty.scss'; import './favicon.ico'; +// Setup for fontawesome +library.add(faCogs); +dom.watch(); + socket.on('connect', () => { const term = new Terminal(); if (isNull(terminal)) return; diff --git a/src/server/socketServer/html.ts b/src/server/socketServer/html.ts index 16d8320..ad4cdc3 100644 --- a/src/server/socketServer/html.ts +++ b/src/server/socketServer/html.ts @@ -13,7 +13,6 @@ export default (base: string, title: string) => (