(
private user: User | null,
private issue: Issue | null
)
| 10 | private count: number = 0; |
| 11 | |
| 12 | constructor( |
| 13 | private user: User | null, |
| 14 | private issue: Issue | null |
| 15 | ) { |
| 16 | this.element = document.createElement('main'); |
| 17 | this.element.classList.add('timeline'); |
| 18 | this.element.innerHTML = ` |
| 19 | <h1 class="timeline-header"> |
| 20 | <a class="text-link" target="_blank"></a> |
| 21 | <em> |
| 22 | - powered by |
| 23 | <a class="text-link" href="https://utteranc.es" target="_blank">utteranc.es</a> |
| 24 | </em> |
| 25 | </h1>`; |
| 26 | this.countAnchor = this.element.firstElementChild!.firstElementChild as HTMLAnchorElement; |
| 27 | this.marker = document.createComment('marker'); |
| 28 | this.element.appendChild(this.marker); |
| 29 | this.setIssue(this.issue); |
| 30 | this.renderCount(); |
| 31 | } |
| 32 | |
| 33 | public setUser(user: User | null) { |
| 34 | this.user = user; |
nothing calls this directly
no test coverage detected