Split js parts
This commit is contained in:
@@ -18,11 +18,24 @@ class BrowserModPanel extends LitElement {
|
||||
</app-header>
|
||||
|
||||
<ha-config-section .narrow=${this.narrow} full-width>
|
||||
<ha-card header="Device ID">
|
||||
<ha-card header="This Browser">
|
||||
<div class="card-content">
|
||||
<div class="option">
|
||||
<h3>Enable</h3>
|
||||
<ha-switch></ha-switch>
|
||||
</div>
|
||||
Enable this browser as a Device in Home Assistant
|
||||
<div class="option">
|
||||
<h3>DeviceID</h3>
|
||||
</div>
|
||||
<ha-textfield .value=${deviceID}> </ha-textfield>
|
||||
The device ID is a unique identifier for your browser/device
|
||||
combination.
|
||||
<ha-textfield .value=${deviceID}> </ha-textfield>
|
||||
<div class="option">
|
||||
<h3>Enable Camera</h3>
|
||||
<ha-switch> </ha-switch>
|
||||
</div>
|
||||
Get Camera input from this device (hardware dependent)
|
||||
</div>
|
||||
<div class="card-actions">
|
||||
<div class="spacer"></div>
|
||||
@@ -30,6 +43,10 @@ class BrowserModPanel extends LitElement {
|
||||
</div>
|
||||
</ha-card>
|
||||
|
||||
<ha-card header="Current User">
|
||||
<div class="card-content"></div>
|
||||
</ha-card>
|
||||
|
||||
<ha-card header="Tweaks">
|
||||
<div class="card-content">
|
||||
<div class="option">
|
||||
@@ -12,7 +12,7 @@ import { BrowserModCameraMixin } from "./camera";
|
||||
import { BrowserModScreensaverMixin } from "./screensaver";
|
||||
import { BrowserModPopupsMixin } from "./popups";
|
||||
import { BrowserModBrowserMixin } from "./browser";
|
||||
import pjson from "../package.json";
|
||||
import pjson from "../../package.json";
|
||||
|
||||
const ext = (baseClass, mixins) =>
|
||||
mixins.reduceRight((base, mixin) => mixin(base), baseClass);
|
||||
@@ -1,6 +1,6 @@
|
||||
const a = {};
|
||||
|
||||
import { BrowserMod } from "./browser_mod";
|
||||
import { BrowserMod } from "./main";
|
||||
|
||||
interface FullyKiosk {
|
||||
// Get device info
|
||||
Reference in New Issue
Block a user