Sha256: eb59b96aa6ba2dd40b81e6259a9dad21996c4a8ff1be299917d233efefacee7d

Contents?: true

Size: 654 Bytes

Versions: 9

Compression:

Stored size: 654 Bytes

Contents

import Component from "@ember/component";
import { formatTime } from "client-app/lib/utilities";
import { computed } from "@ember/object";

export default Component.extend({
  tagName: "span",
  classNames: "auto-update-time",
  attributeBindings: ["dataTimestamp:data-timestamp", "title"],

  title: computed(function() {
    return this.get("moment").format();
  }),

  dataTimestamp: computed(function() {
    return this.get("timestamp");
  }),

  moment: computed(function() {
    return moment(this.get("timestamp"));
  }),

  time: computed("timestamp", function() {
    return formatTime(this.get("timestamp"));
  })
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logster-2.1.0 client-app/app/components/time-formatter.js
logster-2.0.1 client-app/app/components/time-formatter.js
logster-2.0.0.pre client-app/app/components/time-formatter.js
logster-1.4.0.pre client-app/app/components/time-formatter.js
logster-1.3.4 client-app/app/components/time-formatter.js
logster-1.3.3 client-app/app/components/time-formatter.js
logster-1.3.2 client-app/app/components/time-formatter.js
logster-1.3.0 client-app/app/components/time-formatter.js
logster-1.3.pre client-app/app/components/time-formatter.js