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.

35 lines
1.4 KiB

  1. <modal class="modal color-text nolabel link-file-modal" key="modal" enabled=(input.enabled) closable on-close("close") on-open("open") >
  2. <h1>Links for ${input.file.name}</h1>
  3. <p>
  4. Below are links and copy-pastable syntax for sharing the file. They can be used for linking to it
  5. in your stories and wiki pages.
  6. </p>
  7. <p class="color-danger">
  8. This is the link to the actual file on the CDN, not a share of it. You must delete the file if you want
  9. to un-share it.
  10. </p>
  11. <if(state.isImage)>
  12. <p class="color-danger">
  13. Images uploaded here cannot be inlined on the wiki. For that you have to upload it there.
  14. </p>
  15. </if>
  16. <label>URL</label>
  17. <input key="url" disabled placeholder="(None)" on-change("change", "eventName") value=input.file.url />
  18. <label>Markdown link</label>
  19. <input key="mdLink" disabled placeholder="(None)" on-change("change", "locationName") value=`[Link text](${input.file.url})` />
  20. <label>Wiki link</label>
  21. <input key="wikiLink" disabled placeholder="(None)" on-change("change", "locationName") value=`[${input.file.url} Link text]` />
  22. <if(state.isImage)>
  23. <label>Markdown image</label>
  24. <input key="mdImage" disabled placeholder="(None)" on-change("change", "locationName") value=`![Alt. text](${input.file.url})` />
  25. <label>Image Preview</label>
  26. <img src=input.file.url alt="File preview"/>
  27. </if>
  28. </modal>