diff --git a/css/_console.scss b/css/_console.scss deleted file mode 100644 index 2f36179..0000000 --- a/css/_console.scss +++ /dev/null @@ -1,110 +0,0 @@ -// Console V1 - -.console-wrapper { - background: black; - padding: 1rem; - border-radius: 4px; -} - -.console { - font-family: monospace; - text-align: left; - font-size: 16px; - padding: 0; - background-color: black; - color: white; - overflow: auto; - height: 400px; - line-height: 1; - left: auto; - - .xterm { - height: 100%; - } - - .xterm-viewport { - overflow: auto; - } - - .xterm-screen, - .xterm-text-layer, - .xterm-selection-layer, - .xterm-link-layer, - .xterm-cursor-layer { - height: 100% !important; - } -} - -.console-active-line { - // Somehow fix the active input line spacing here - line-height: 0; - text-align: left; -} - -.console-input { - color: inherit; - font-family: inherit; - border: none; - background-image: none; - background-color: transparent; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - width: 75%; -} - -.console-input:focus { - outline: none; -} - -// Console V2 - -@import '~xterm/css/xterm.css'; - -#console-html, -#console-body { - background-color: black; - height: 100%; - border: solid gray; - border-width: 2px; - .xterm { - height: 100%; - } -} - -.console-details-row { - padding: 1rem; - border-radius: 4px; - - display: flex; - justify-content: space-between; - align-items: center; -} - -.console-v2 { - height: 100%; - color: white; -} - -.online { - background-image: url('/images/icons/check.svg'); - padding-left: 1.5rem; - background-repeat: no-repeat; - font-weight: bold; - display: inline-flex; - line-height: 44px; -} - -.offline, -.rebooting { - background-image: url('/images/icons/cross.svg'); - padding-left: 1.5rem; - background-repeat: no-repeat; - font-weight: bold; - display: inline-flex; - line-height: 44px; -} - -.console-progress { - width: 100px; -} diff --git a/css/app.scss b/css/app.scss index 94dfca4..5e420ff 100644 --- a/css/app.scss +++ b/css/app.scss @@ -10,7 +10,6 @@ $fa-font-path: '~@fortawesome/fontawesome-free/webfonts'; @import '~@fortawesome/fontawesome-free/scss/fontawesome.scss'; @import '_animate.css'; @import 'audit_log_feed'; -@import 'console'; @import 'layout'; @import 'typography'; @import 'buttons'; diff --git a/package-lock.json b/package-lock.json index 36f774d..14ae97c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,9 +9,7 @@ "@popperjs/core": "^2.11.4", "bootstrap": "^5.1.3", "joshjs": "^1.0.7", - "jquery": "^3.6.0", - "xterm": "^4.18.0", - "xterm-addon-fit": "^0.5.0" + "jquery": "^3.6.0" }, "devDependencies": { "@babel/core": "^7.14.8", @@ -11883,19 +11881,6 @@ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", "dev": true }, - "node_modules/xterm": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/xterm/-/xterm-4.18.0.tgz", - "integrity": "sha512-JQoc1S0dti6SQfI0bK1AZvGnAxH4MVw45ZPFSO6FHTInAiau3Ix77fSxNx3mX4eh9OL4AYa8+4C8f5UvnSfppQ==" - }, - "node_modules/xterm-addon-fit": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/xterm-addon-fit/-/xterm-addon-fit-0.5.0.tgz", - "integrity": "sha512-DsS9fqhXHacEmsPxBJZvfj2la30Iz9xk+UKjhQgnYNkrUIN5CYLbw7WEfz117c7+S86S/tpHPfvNxJsF5/G8wQ==", - "peerDependencies": { - "xterm": "^4.0.0" - } - }, "node_modules/xxhashjs": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/xxhashjs/-/xxhashjs-0.2.2.tgz", @@ -20781,17 +20766,6 @@ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", "dev": true }, - "xterm": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/xterm/-/xterm-4.18.0.tgz", - "integrity": "sha512-JQoc1S0dti6SQfI0bK1AZvGnAxH4MVw45ZPFSO6FHTInAiau3Ix77fSxNx3mX4eh9OL4AYa8+4C8f5UvnSfppQ==" - }, - "xterm-addon-fit": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/xterm-addon-fit/-/xterm-addon-fit-0.5.0.tgz", - "integrity": "sha512-DsS9fqhXHacEmsPxBJZvfj2la30Iz9xk+UKjhQgnYNkrUIN5CYLbw7WEfz117c7+S86S/tpHPfvNxJsF5/G8wQ==", - "requires": {} - }, "xxhashjs": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/xxhashjs/-/xxhashjs-0.2.2.tgz", diff --git a/package.json b/package.json index e216da9..5817186 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,7 @@ "@popperjs/core": "^2.11.4", "bootstrap": "^5.1.3", "joshjs": "^1.0.7", - "jquery": "^3.6.0", - "xterm": "^4.18.0", - "xterm-addon-fit": "^0.5.0" + "jquery": "^3.6.0" }, "devDependencies": { "@babel/core": "^7.14.8",