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.

13 lines
1.0 KiB

  1. <if (!state.deleted)>
  2. <compact-list-property primary short label="ID" value=input.data.id />
  3. <compact-list-property label="Nick" value=(input.data.nick) weak=("+" + (input.data.nicks.length - 1)) showWeak=(input.data.nicks.length > 0) />
  4. <compact-list-property long label="Name" value=input.data.name />
  5. <compact-list-property short label="Author" value=input.data.author />
  6. <compact-list-options long>
  7. <a key="edit" on-click("open", "edit", input.data)>Edit</a>
  8. <a key="nicks" on-click("open", "nicks", input.data)>Nicks</a>
  9. <a key="remove" on-click("open", "remove", input.data)>Remove</a>
  10. </compact-list-options>
  11. <remove-character-modal enabled=(state.modal === "remove") character=input.data on-removed("emit", "removed") on-close("close") />
  12. <edit-character-modal enabled=(state.modal === "edit") character=input.data on-edited("emit", "edited") on-close("close") />
  13. <character-nicks-modal enabled=(state.modal === "nicks") character=input.data on-nicks("emit", "nicks") on-close("close") />
  14. </if>