This commit is contained in:
Home Assistant Version Control
2026-07-29 04:12:24 +00:00
parent 9ea95c3a46
commit 2bc77c43ce
41 changed files with 22649 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
{
"domain": "cafe",
"name": "C.A.F.E.",
"version": "0.7.0",
"codeowners": [],
"config_flow": true,
"dependencies": ["frontend", "http"],
"documentation": "https://github.com/FezVrasta/cafe-hass",
"documentation_url": "https://github.com/FezVrasta/cafe-hass",
"integration_type": "service",
"iot_class": "local_push",
"issue_tracker": "https://github.com/FezVrasta/cafe-hass/issues",
"requirements": []
}
+14
View File
@@ -0,0 +1,14 @@
{
"config": {
"title": "C.A.F.E.",
"step": {
"user": {
"title": "Set up C.A.F.E.",
"description": "C.A.F.E. is a visual automation editor for Home Assistant. It allows you to create and manage your automations using a visual flow editor.\n\nClick Submit to add C.A.F.E. to your Home Assistant."
}
},
"abort": {
"already_configured": "C.A.F.E. is already configured"
}
}
}
@@ -0,0 +1,14 @@
{
"config": {
"title": "C.A.F.E.",
"step": {
"user": {
"title": "Set up C.A.F.E.",
"description": "C.A.F.E. is a visual automation editor for Home Assistant. It allows you to create and manage your automations using a visual flow editor.\n\nClick Submit to add C.A.F.E. to your Home Assistant."
}
},
"abort": {
"already_configured": "C.A.F.E. is already configured"
}
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
var d=Object.defineProperty;var o=(t,s,e)=>s in t?d(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var h=(t,s,e)=>o(t,typeof s!="symbol"?s+"":s,e);class m extends HTMLElement{constructor(){super(...arguments);h(this,"_messageHandler");h(this,"iframe",null);h(this,"_hass")}set hass(e){var a;this._hass=e,window.hass=e;const i=(a=this.iframe)==null?void 0:a.contentWindow;i!=null&&i.setHass&&i.setHass(e)}get hass(){return this._hass}connectedCallback(){var a,n;this.style.display="block",this.style.width="100%",this.style.height="100%",this.style.position="relative";const i=((n=(a=this._hass)==null?void 0:a.themes)==null?void 0:n.darkMode)??!1?"hsl(222.2, 84%, 4.9%)":"hsl(0, 0%, 100%)";this.iframe=document.createElement("iframe"),this.iframe.src="/cafe-hass/index.html",this.iframe.style.width="100%",this.iframe.style.height="100%",this.iframe.style.border="none",this.iframe.style.display="block",this.iframe.style.background=i,this.iframe.setAttribute("allow","clipboard-read *; clipboard-write *"),this.appendChild(this.iframe),this._messageHandler=r=>{var l;r.source===((l=this.iframe)==null?void 0:l.contentWindow)&&r.data&&r.data.type==="CAFE_TOGGLE_SIDEBAR"&&this.dispatchEvent(new Event("hass-toggle-menu",{bubbles:!0,composed:!0}))},window.addEventListener("message",this._messageHandler)}disconnectedCallback(){this.iframe&&(this.removeChild(this.iframe),this.iframe=null),window.hass=void 0,this._messageHandler&&(window.removeEventListener("message",this._messageHandler),this._messageHandler=void 0)}}customElements.get("cafe-panel")||customElements.define("cafe-panel",m);
//# sourceMappingURL=panel-wrapper.js.map