]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix client build
authorChocobozzz <me@florianbigard.com>
Tue, 17 Nov 2020 13:49:36 +0000 (14:49 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 17 Nov 2020 13:52:57 +0000 (14:52 +0100)
client/src/app/shared/shared-main/misc/help.component.ts
shared/core-utils/renderer/html.ts

index 9647e05bdfd6aef7c4ea1bb2e6c3d48004e1de33..76e255d9943eef584d979699e54a42275249c55b 100644 (file)
@@ -1,6 +1,6 @@
 import { AfterContentInit, Component, ContentChildren, Input, OnChanges, OnInit, QueryList, TemplateRef } from '@angular/core'
-import { MarkdownService } from '@app/core'
 import { GlobalIconName } from '@app/shared/shared-icons'
+import { ENHANCED_RULES, TEXT_RULES } from '@shared/core-utils/renderer/markdown'
 import { PeerTubeTemplateDirective } from '../angular'
 
 @Component({
@@ -60,12 +60,12 @@ export class HelpComponent implements OnInit, OnChanges, AfterContentInit {
 
   private init () {
     if (this.helpType === 'markdownText') {
-      this.mainHtml = this.formatMarkdownSupport(MarkdownService.TEXT_RULES)
+      this.mainHtml = this.formatMarkdownSupport(TEXT_RULES)
       return
     }
 
     if (this.helpType === 'markdownEnhanced') {
-      this.mainHtml = this.formatMarkdownSupport(MarkdownService.ENHANCED_RULES)
+      this.mainHtml = this.formatMarkdownSupport(ENHANCED_RULES)
       return
     }
   }
index 37ae5147c585460341550d765b7c683cf680de2a..1220848a0a2cc4fcbb45ebebd8d9fb37f25ab9fd 100644 (file)
@@ -5,7 +5,7 @@ export const SANITIZE_OPTIONS = {
     a: [ 'href', 'class', 'target', 'rel' ]
   },
   transformTags: {
-    a: (tagName, attribs) => {
+    a: (tagName: string, attribs: any) => {
       let rel = 'noopener noreferrer'
       if (attribs.rel === 'me') rel += ' me'