aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+about/about-peertube/about-peertube-contributors.component.ts
blob: dd774a4ef902d4d56d66dfdf39e971b8dcb21873 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Component, OnInit } from '@angular/core'
import { MarkdownService } from '@app/core'

@Component({
  selector: 'my-about-peertube-contributors',
  templateUrl: './about-peertube-contributors.component.html',
  styleUrls: [ './about-peertube-contributors.component.scss' ]
})
export class AboutPeertubeContributorsComponent implements OnInit {
  creditsHtml: string

  private markdown = require('raw-loader!../../../../../CREDITS.md').default

  constructor (private markdownService: MarkdownService) { }

  async ngOnInit () {
    this.creditsHtml = await this.markdownService.unsafeMarkdownToHTML(this.markdown, true)
  }
}