Fix for 0.106 - bump card-tools. And a browser player editor.

This commit is contained in:
2020-02-20 09:07:32 +01:00
parent 03450c2efc
commit 2e1d1cd6c5
7 changed files with 74 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
import { LitElement, html, css } from "card-tools/src/lit-element";
import { registerCard } from "card-tools/src/editor";
class BrowserPlayerEditor extends LitElement {
setConfig(config) {
}
render() {
return html`
<div>
Nothing to configure.
</div>
`;
}
}
if(!customElements.get("browser-player-editor")) {
customElements.define("browser-player-editor", BrowserPlayerEditor);
registerCard("browser-player", "Browser Player");
}

View File

@@ -1,6 +1,7 @@
import { LitElement, html, css } from "card-tools/src/lit-element";
import { deviceID } from "card-tools/src/deviceId"
import { moreInfo } from "card-tools/src/more-info"
import "./browser-player-editor.js"
class BrowserPlayer extends LitElement {
@@ -10,6 +11,13 @@ class BrowserPlayer extends LitElement {
};
}
static getConfigElement() {
return document.createElement("browser-player-editor");
}
static getStubConfig() {
return {};
}
setConfig(config) {
this._config = config;
}

View File

@@ -107,6 +107,11 @@ class BrowserMod {
visibility: hidden;
`;
document.body.appendChild(this._blackout);
const pjson = require('../package.json');
console.info(`%cBROWSER_MOD ${pjson.version} IS INSTALLED
%cDeviceID: ${deviceID}`,
"color: green; font-weight: bold", "");
}
connect(conn) {