The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
310 B

  1. module.exports = class {
  2. onCreate(input) {
  3. this.state = {
  4. isImage: (input.file && input.file.mimeType.startsWith("image/"))
  5. }
  6. }
  7. onInput(input) {
  8. this.state.isImage = (input.file && input.file.mimeType.startsWith("image/"))
  9. }
  10. open() {
  11. }
  12. close() {
  13. this.emit("close")
  14. }
  15. }