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.

20 lines
918 B

  1. <modal class="modal color-text nolabel" key="modal" enabled=(input.enabled) closable on-close("close") on-open("open") >
  2. <h1>Manage Nicks</h1>
  3. <p class="color-error">${state.error}</p>
  4. <label>Add Nick</label>
  5. <div class="add-nick-row">
  6. <input key="newNick" placeholder="New_Nick" class="big" on-change("change", "newNick") value=state.values.newNick />
  7. <button disabled=state.loading on-click("addNick")>Add</button>
  8. </div>
  9. <label>Current Nicks</label>
  10. <div for(nick in input.character.nicks) class="existing-nick-row" >
  11. <div class="content color-text">${nick}</div>
  12. <button disabled=state.loading on-click("removeNick", nick)>Remove</button>
  13. </div>
  14. <h2>Unknown Nicks</h2>
  15. <p>These are the 100 most common nicks in the logs, maybe one of these belongs to <strong>${input.character.name}</strong>?</p>
  16. <unknown-nick-list key="un-list" on-select("selectUnknown") />
  17. </modal>