feat: improve Symcon controls, device readings and designer help

This commit is contained in:
jhartworks committed 2026-11-10 09:19:13 +01:00
1 parent ff54f4461a
commit 00fca890de
50 files changed
+2447 -1840

No files matched your search

+4 -3
View File
@@ -9,6 +9,7 @@ import type { FurniturePack } from "../packs.ts";
import { controls, tokens } from "../styles.ts";
import type { HomeAssistant } from "../types.ts";
import type { ModelInfo } from "../viewer/viewer3d.ts";
import { hint } from "./editor/fields.ts";
type Present = "unknown" | "yes" | "no";
@@ -214,7 +215,7 @@ export class NfModelUpload extends LitElement {
<button class="nf-btn" @click=${() => this.turn(-1)}>↺ 90°</button>
<button class="nf-btn" @click=${() => this.turn(1)}>↻ 90°</button>
</div>
<small class="nf-sub">${this.t("model_front_hint")}</small>
${hint(this.t("model_front_hint"))}
</div>
<div class="nf-field">
<span>${this.t("model_paint")}</span>
@@ -242,12 +243,12 @@ export class NfModelUpload extends LitElement {
if (slots.length === 0 || !(this.hass?.user?.is_admin ?? false)) return nothing;
return html`<section class="nf-ext-card">
<h3>${this.t("models")}</h3>
<p class="nf-sub">${this.t("models_hint")}</p>
${hint(this.t("models_hint"))}
${slots.map((slot) => this.row(slot))}
${this._draft ? this.editor(this._draft) : nothing}
${this._busy && !this._draft ? html`<p class="nf-sub">${this.t("loading")}</p>` : nothing}
${this._message ? html`<p class="nf-sub ${this._message.ok ? "nf-notice" : "nf-pack-error"}">${this._message.text}</p>` : nothing}
<p class="nf-sub">${this.t("models_licence")}</p>
${hint(this.t("models_licence"))}
</section>`;
}