diff --git a/index.html b/index.html index 5776ef7..2ac203d 100644 --- a/index.html +++ b/index.html @@ -193,6 +193,22 @@ top: 156px } + #version { + position: fixed; + top: 95vh; + font-size: 75%; + background: #5c5c5c; + color: black; + opacity: 1; + padding: 10px; + padding-top: 5px; + padding-bottom: 0px; + border-radius: 8px; + } + + #version:hover { + top: 90vh; + } a:visited, a:active, @@ -272,8 +288,17 @@
+
+

+

+
diff --git a/lib/system-status.js b/lib/system-status.js index b5ac6bb..4c551a2 100644 --- a/lib/system-status.js +++ b/lib/system-status.js @@ -3,7 +3,7 @@ import os from 'os' import fs from 'fs' import path from 'path' import { spawn } from 'child_process' -const { config, versions } = Pear +const { config } = Pear const BIN = path.join(config.pearDir, 'bin') const isWin = process.platform === 'win32' @@ -27,13 +27,6 @@ customElements.define('pear-welcome', class extends HTMLElement { font-family: 'overpass-mono'; border-radius: 1px; } - #version { - position: fixed; - top: 90vh; - font-size: 75%; - color: #efeaea; - opacity: 0.5; - }

Pear is in the system PATH and ready to go .

@@ -47,22 +40,11 @@ customElements.define('pear-welcome', class extends HTMLElement { -
-

-

-
` this.root = this.attachShadow({ mode: 'open' }) this.root.appendChild(this.template.content.cloneNode(true)) } - - connectedCallback () { - versions().then(({ app, platform }) => { - this.root.querySelector('#platform-version').innerText = 'Pear version: ' + platform.key + '_' + platform.length - this.root.querySelector('#app-version').innerText = 'App version: ' + app.key + '_' + app.length - }) - } }) customElements.define('system-status', class extends HTMLElement {