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.

15 lines
225 B

  1. module.exports = class {
  2. onCreate(input) {
  3. this.state = {
  4. characters: input.characters,
  5. modal: null,
  6. }
  7. }
  8. open(modal) {
  9. this.state.modal = modal
  10. }
  11. close() {
  12. this.state.modal = null
  13. }
  14. }