Sha256: 1edf00e6549d6e8028a834b055ea5d585f5627030b94116cd11bd16ff42a6abf

Contents?: true

Size: 629 Bytes

Versions: 36

Compression:

Stored size: 629 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

36 entries across 36 versions & 1 rubygems

Version Path
logster-2.11.4 client-app/app/components/time-formatter.js
logster-2.11.3 client-app/app/components/time-formatter.js
logster-2.11.2 client-app/app/components/time-formatter.js
logster-2.11.1 client-app/app/components/time-formatter.js
logster-2.11.0 client-app/app/components/time-formatter.js
logster-2.10.1 client-app/app/components/time-formatter.js
logster-2.10.0 client-app/app/components/time-formatter.js
logster-2.9.8 client-app/app/components/time-formatter.js
logster-2.9.7 client-app/app/components/time-formatter.js
logster-2.9.6 client-app/app/components/time-formatter.js
logster-2.9.5 client-app/app/components/time-formatter.js
logster-2.9.4 client-app/app/components/time-formatter.js
logster-2.9.3 client-app/app/components/time-formatter.js
logster-2.9.2 client-app/app/components/time-formatter.js
logster-2.9.1 client-app/app/components/time-formatter.js
logster-2.9.0 client-app/app/components/time-formatter.js
logster-2.8.0 client-app/app/components/time-formatter.js
logster-2.7.1 client-app/app/components/time-formatter.js
logster-2.7.0 client-app/app/components/time-formatter.js
logster-2.6.3 client-app/app/components/time-formatter.js