mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-19 07:53:25 +00:00
testing
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { on } from "@storyteller/framework";
|
||||
import { type InspectorDomChanged } from "dist/studio/studio";
|
||||
import { LitElement, html, unsafeCSS, nothing, HTMLTemplateResult } from "lit";
|
||||
import { customElement, state } from "lit/decorators.js";
|
||||
|
||||
@customElement("sts-inspector")
|
||||
export class AppElement extends LitElement {
|
||||
@state() vdom?: string | null;
|
||||
|
||||
@on("window:inspector-dom-changed")
|
||||
onInspectorDomChanged({ detail: state}: InspectorDomChanged): void {
|
||||
console.log("inspector dom changed:", state);
|
||||
}
|
||||
|
||||
protected override render = () => html`
|
||||
<div id="some_id">
|
||||
|
||||
</div>
|
||||
`;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user