esphome / dashboard

ESPHome dashboard and ESPHome Web
https://web.esphome.io
MIT License
73 stars 55 forks source link

Migrate editor to Lit #5

Closed balloob closed 1 year ago

balloob commented 3 years ago

raw_package/static/js/esphome.js is the legacy JavaScript file. Code in there needs to be refactored into Lit/TypeScript.

This issue is to track moving the editor.

balloob commented 3 years ago

Use for toast replacement: https://material-components.github.io/material-components-web-components/demos/snackbar/

glmnet commented 2 years ago

Im working on this. I have no experience with lit and roll up but managed to get the Monaco editor in place (it was an ugly fight where I lost my esteem several times). Ace is nice but this way it would look more like vscode with ESPHome add on, also syntax highlighting in ace wouldn't be with lambda coloring, in Monaco out of the box neither but I've seen oniguruma texmate grammars can be used (will be painful too)

Misiu commented 1 year ago

Legacy code moved to: https://github.com/esphome/dashboard/blob/main/src/legacy.js