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) => ( ${title} -
diff --git a/yarn.lock b/yarn.lock index 44c70f5..8fa0141 100644 --- a/yarn.lock +++ b/yarn.lock @@ -704,6 +704,25 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" +"@fortawesome/fontawesome-common-types@^0.2.25": + version "0.2.25" + resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.25.tgz#6df015905081f2762e5cfddeb7a20d2e9b16c786" + integrity sha512-3RuZPDuuPELd7RXtUqTCfed14fcny9UiPOkdr2i+cYxBoTOfQgxcDoq77fHiiHcgWuo1LoBUpvGxFF1H/y7s3Q== + +"@fortawesome/fontawesome-svg-core@^1.2.25": + version "1.2.25" + resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.25.tgz#24b03391d14f0c6171e8cad7057c687b74049790" + integrity sha512-MotKnn53JKqbkLQiwcZSBJVYtTgIKFbh7B8+kd05TSnfKYPFmjKKI59o2fpz5t0Hzl35vVGU6+N4twoOpZUrqA== + dependencies: + "@fortawesome/fontawesome-common-types" "^0.2.25" + +"@fortawesome/free-solid-svg-icons@^5.11.2": + version "5.11.2" + resolved "https://registry.yarnpkg.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.11.2.tgz#2f2f1459743a27902b76655a0d0bc5ec4d945631" + integrity sha512-zBue4i0PAZJUXOmLBBvM7L0O7wmsDC8dFv9IhpW5QL4kT9xhhVUsYg/LX1+5KaukWq4/cbDcKT+RT1aRe543sg== + dependencies: + "@fortawesome/fontawesome-common-types" "^0.2.25" + "@nodelib/fs.scandir@2.1.3": version "2.1.3" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz#3a582bdb53804c6ba6d146579c46e52130cf4a3b"