diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md index a220d5f..3b0db9f 100644 --- a/DEPENDENCIES.md +++ b/DEPENDENCIES.md @@ -13,10 +13,12 @@ Major dependencies includes: - [Babel](https://babeljs.io/), Licensed under MIT license - [XTerm.js](https://xtermjs.org/), Licensed under MIT license - [normalize.css](https://github.com/necolas/normalize.css), Licensed under MIT license -- [Roboto font](https://en.wikipedia.org/wiki/Roboto), Licensed under Apache license. +- [Roboto font](https://en.wikipedia.org/wiki/Roboto), Licensed under Apache license Packaged by [Christian Hoffmeister](https://github.com/choffmeister/roboto-fontface-bower), Licensed under Apache 2.0 - [iconv-lite](https://github.com/ashtuchkin/iconv-lite), Licensed under MIT license - [buffer](https://github.com/feross/buffer), Licensed under MIT license +- [Hack font](https://github.com/source-foundry/Hack), [View license](https://github.com/source-foundry/Hack/blob/master/LICENSE.md) +- [fontfaceobserver](https://github.com/bramstein/fontfaceobserver), [View license](https://github.com/bramstein/fontfaceobserver/blob/master/LICENSE) ## For back-end application diff --git a/package-lock.json b/package-lock.json index 37d9aed..62ef901 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6522,6 +6522,12 @@ } } }, + "fontfaceobserver": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fontfaceobserver/-/fontfaceobserver-2.1.0.tgz", + "integrity": "sha512-ReOsO2F66jUa0jmv2nlM/s1MiutJx/srhAe2+TE8dJCMi02ZZOcCTxTCQFr3Yet+uODUtnr4Mewg+tNQ+4V1Ng==", + "dev": true + }, "for-each": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", @@ -7505,6 +7511,12 @@ "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", "dev": true }, + "hack-font": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/hack-font/-/hack-font-3.3.0.tgz", + "integrity": "sha512-RohrcAr3UaKiIoxDlOytCjObcUAucfFc6V5fKu6gBrvmvTfIXeBqZwR0Q5kb9qpbluThJWt326LClLKIGiFyug==", + "dev": true + }, "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", diff --git a/package.json b/package.json index f6ae0b6..3a933bf 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,8 @@ "eslint-plugin-prettier": "^3.1.1", "eslint-plugin-vue": "^5.2.3", "file-loader": "^4.3.0", + "fontfaceobserver": "^2.1.0", + "hack-font": "^3.3.0", "html-loader": "^0.5.5", "html-webpack-plugin": "^3.2.0", "iconv-lite": "^0.5.0", diff --git a/ui/common.css b/ui/common.css index 0534444..38cab43 100644 --- a/ui/common.css +++ b/ui/common.css @@ -285,6 +285,14 @@ body { box-shadow: 1px 1px 0 2px #0003; } +.icon.icon-keyboardkey2 { + background: #fff; + color: #999; + padding: 4px 6px; + display: inline-block; + border-radius: 3px; +} + /* Windows */ .window { position: absolute; diff --git a/ui/home.css b/ui/home.css index f6f14cd..22624af 100644 --- a/ui/home.css +++ b/ui/home.css @@ -369,6 +369,16 @@ flex-direction: column; color: #fff; font-size: 1.2em; + position: relative; +} + +#home-content-preload-drop { + height: 0px; + width: 0px; + overflow: hidden; + position: absolute; + bottom: 0; + right: 0; } @media (max-width: 768px) { @@ -377,26 +387,6 @@ } } -#home-content > .screen { - display: flex; - justify-content: top; - flex-direction: column; - font-size: 1em; -} - -#home-content > .screen > .screen-error { - display: block; - padding: 10px; - background: #b44; - color: #fff; - font-size: 0.75em; - flex: 0 0; -} - -#home-content > .screen > .screen-screen { - flex: auto; -} - #home-content-wrap { max-width: 520px; margin: 50px auto; diff --git a/ui/home.vue b/ui/home.vue index 40de3c7..a4e601f 100644 --- a/ui/home.vue +++ b/ui/home.vue @@ -62,6 +62,8 @@ :screen="tab.current" :screens="tab.tabs" @stopped="tabStopped" + @warning="tabWarning" + @info="tabInfo" @updated="tabUpdated" >