1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 10:48:44 +00:00

Add script editor (#393)

* Add script editor

* Cleanup
This commit is contained in:
Paulus Schoutsen
2017-08-15 22:09:43 -07:00
committed by GitHub
parent 34e45427ea
commit faf576d43d
46 changed files with 656 additions and 54 deletions

View File

@@ -0,0 +1,10 @@
import { h, render } from 'preact';
import Script from './script';
window.ScriptEditor = function (mountEl, props, mergeEl) {
return render(h(Script, props), mountEl, mergeEl);
};
window.unmountPreact = function (mountEl, mergeEl) {
render(() => null, mountEl, mergeEl);
};