Fix for 0.106 - bump card-tools. And a browser player editor.
This commit is contained in:
20
js/browser-player-editor.js
Normal file
20
js/browser-player-editor.js
Normal 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");
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user