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.

19 lines
884 B

  1. <div class=["post", component.kindClass("post-type")]>
  2. <div class="post-meta-row">
  3. <post-meta kind="timestamp" value=input.post.time />
  4. <post-meta kind="nick" value=input.post.nick />
  5. </div>
  6. <div if(input.post.kind.startsWith("annotation.")) class="post-body" >
  7. <annotation level=(input.post.kind.substring(11))>
  8. <markdown class="post-content" source=state.text />
  9. </annotation>
  10. </div>
  11. <div if(input.post.kind === "scene") class="post-body color-text">
  12. <markdown class="post-content post-scene" source=state.text />
  13. </div>
  14. <div if(input.post.kind === "action") class="post-body color-text">
  15. <markdown class="post-content post-action" source=(state.shortName + " " + state.text) />
  16. </div>
  17. <div if(input.post.kind === "text") class="post-body color-text">
  18. <markdown class="post-content post-text" source=state.text />
  19. </div>
  20. </div>