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.

16 lines
326 B

  1. const moment = require("moment")
  2. module.exports = class {
  3. onCreate(input) {
  4. this.state = {
  5. log: input.log
  6. }
  7. }
  8. get title() {
  9. if (this.state.log.title) {
  10. return this.state.log.title
  11. }
  12. return `${this.state.log.channel.name}${moment(this.state.log.date).format("MMMM D, YYYY")}`
  13. }
  14. }