Changeset - d678c2757cd4
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 3 years ago 2022-05-22 00:06:25
drewp@bigasterisk.com
config log() better. note that in chrome, you have to turn on 'verbose' in the console log to see anything :(
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/collector/web/Light9CollectorUi.ts
Show inline comments
 
import { sortBy, uniq } from "underscore";
 
import * as debug from "debug";
 
import debug from "debug";
 
import { html, LitElement } from "lit";
 
import { customElement, property } from "lit/decorators.js";
 
debug.enable("*");
 

	
 
debug.enable('*');
 
const log = debug("collector");
 

	
 
class Updates {
 
  constructor() {
 
    this.listeners = [];
 
  }
 
  addListener(cb) {
 
    this.listeners.push(cb);
 
  }
 
  onMessage(msg) {
 
    this.listeners.forEach(function (lis) {
 
      lis(msg);
 
    });
 
  }
 
}
 

	
 
@customElement("light9-collector-ui")
 
export class Light9CollectorUi extends LitElement {
 
  static styles = [];
 
  render() {
 
    return html`
 
      <rdfdb-synced-graph graph="{{graph}}"></rdfdb-synced-graph>
 

	
 
      <h1>Collector <a href="stats/">[stats]</a></h1>
 

	
0 comments (0 inline, 0 general)